/* ==========================================================================
   jheel.io — Design System
   Outfit (display) + Fragment Mono (body)
   Monochrome parchment + circuit-green terminal accent
   ========================================================================== */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Fragment+Mono:ital@0;1&family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* === DESIGN TOKENS ======================================================== */

:root {
  --parchment:    #F4F2EC;
  --white:        #FFFFFF;
  --ink:          #111111;
  --graphite:     #5C5A54;
  --slate:        #9A9892;
  --fog:          #D0CEC7;
  --fog-light:    #E8E6DF;
  --fog-deep:     #C2BFB8;

  --terminal-bg:  #0D0D0D;
  --terminal-fg:  #DEDEDE;
  --terminal-dim: #8A8A8A;
  --circuit:      #7ED848;   /* sole accent — terminal only */

  --font-display: 'Outfit', -apple-system, system-ui, sans-serif;
  --font-mono:    'Fragment Mono', 'Menlo', 'Courier New', monospace;

  --nav-h: 58px;
  --max-w: 1280px;
  --read-w: 700px;
}

/* === RESET ================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-mono);
  background: var(--parchment);
  color: var(--ink);
  font-size: 0.875rem;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: 1.05;
  font-weight: 800;
  color: var(--ink);
}

p { margin-bottom: 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-underline-offset: 3px; transition: opacity 0.15s; }
a:hover { opacity: 0.55; }

ul { list-style: none; }

img { display: block; max-width: 100%; }

code {
  font-family: var(--font-mono);
  font-size: 0.84em;
  background: var(--fog-light);
  padding: 0.1em 0.42em;
}

hr {
  border: none;
  border-top: 1px solid var(--fog);
  margin: 48px 0;
}

/* === LAYOUT =============================================================== */

.wrap {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 40px;
}

.wrap--narrow {
  max-width: var(--read-w);
  margin: 0 auto;
  padding: 0 40px;
}

/* === NAVIGATION =========================================================== */

.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  height: var(--nav-h);
  background: rgba(244, 242, 236, 0.93);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--fog);
}

.nav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.nav__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.125rem;
  letter-spacing: -0.05em;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 1px;
}

.nav__logo-dot { color: var(--slate); }

.nav__links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.nav__links a {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.15s;
}

.nav__links a:hover { color: var(--ink); opacity: 1; }

.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  color: var(--ink);
  border: 1.5px solid var(--ink);
  padding: 7px 14px;
  transition: background 0.15s, color 0.15s;
}

.nav__cta:hover {
  background: var(--ink);
  color: var(--parchment);
  opacity: 1;
}

/* === HERO ================================================================= */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: var(--nav-h);
  background-image: radial-gradient(circle, rgba(0,0,0,0.07) 1px, transparent 1px);
  background-size: 22px 22px;
}

.hero__grid {
  display: grid;
  // grid-template-columns: 55fr 45fr;
  grid-template-columns: minmax(0, 55fr) minmax(0, 45fr);
  gap: 80px;
  align-items: center;
  padding: 64px 0;
}

.hero__grid > div {
    width: 100%;
    min-width: 0;
    overflow: hidden;
}

.hero__eyebrow {
  display: block;
  font-size: 0.656rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 28px;
}

.hero__heading {
  font-family: var(--font-display);
  font-size: clamp(3rem, 3.5vw, 4rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.93;
  color: var(--ink);
  margin-bottom: 32px;
}

.hero__heading-muted {
  color: var(--slate);
  display: block;
}

.hero__sub {
  font-size: 0.9rem;
  color: var(--graphite);
  line-height: 1.75;
  max-width: 720px;
  margin-bottom: 44px;
}

.hero__actions {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
}

/* === BUTTONS ============================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.05em;
  text-decoration: none;
  cursor: pointer;
  border: none;
  background: none;
  transition: all 0.15s;
  white-space: nowrap;
}

.btn--solid {
  background: var(--ink);
  color: var(--parchment);
  padding: 11px 22px;
  border: 1.5px solid var(--ink);
}

.btn--solid:hover {
  background: transparent;
  color: var(--ink);
  opacity: 1;
}

.btn--outline {
  color: var(--graphite);
  border-bottom: 1px solid var(--fog-deep);
  padding-bottom: 2px;
}

.btn--outline:hover {
  color: var(--ink);
  border-color: var(--ink);
  opacity: 1;
}

/* === TERMINAL ============================================================= */

.terminal {
  background: var(--terminal-bg);
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0,0,0,0.28);
}

.terminal__chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  background: rgba(255,255,255,0.03);
}

.terminal__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.t-red    { background: #FF5F57; }
.t-yellow { background: #FEBC2E; }
.t-green  { background: #28C840; }

.terminal__label {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  color: var(--terminal-dim);
  margin-left: auto;
  letter-spacing: 0.04em;
}

.terminal__body {
  padding: 20px 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
  color: var(--terminal-fg);
  min-height: 300px;
  overflow-y: auto;
  overflow-x: auto;
  position: relative;
  white-space: pre;
}

.t-prompt  { color: var(--circuit); }
.t-cont    { color: #7A7A7A; }
.t-dim     { color: #7A7A7A; font-style: italic; }
.t-key     { color: #9BBFE0; }
.t-str     { color: #C8A882; }
.t-num     { color: #BD93F9; }
.t-comment { color: #6FAA42; }

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 0.9em;
  background: var(--circuit);
  vertical-align: bottom;
  animation: blink 1.1s step-end infinite;
  margin-left: 1px;
  flex-shrink: 0;
}

@keyframes blink { 50% { opacity: 0; } }

/* === SECTIONS ============================================================= */

.section {
  padding: 112px 0;
  border-top: 1px solid var(--fog);
}

.section__label {
  display: block;
  font-size: 0.656rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 24px;
}

.section__heading {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.8vw, 3.2rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.0;
  margin-bottom: 20px;
}

.section__body {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.8;
}

/* === SPLIT LAYOUT ========================================================= */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.split--flip {
  direction: rtl;
}

.split--flip > * {
  direction: ltr;
}

/* === FEATURE LIST ========================================================= */

.feature-list {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
}

.feature-item {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-top: 1px solid var(--fog-light);
  align-items: start;
}

.feature-item__icon {
  color: var(--slate);
  font-size: 1.1rem;
  margin-top: 2px;
}

.feature-item__title {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 3px;
  display: block;
}

.feature-item__desc {
  font-size: 0.78rem;
  color: var(--graphite);
  line-height: 1.7;
}

/* === FORMAT TAGS ========================================================== */

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 32px;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.06em;
  color: var(--graphite);
  border: 1px solid var(--fog);
  padding: 4px 10px;
  background: rgba(255,255,255,0.5);
}

/* === INTEGRATIONS ========================================================= */

.integrations-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.int-card {
  border: 1px solid var(--fog);
  padding: 36px 28px;
  background: rgba(255,255,255,0.35);
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  cursor: default;
}

.int-card:hover {
  border-color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.int-card__icon {
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 16px;
  display: block;
}

.int-card__name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.int-card__desc {
  font-size: 0.75rem;
  color: var(--graphite);
  line-height: 1.7;
  margin-bottom: 20px;
}

.int-card__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tool-chip {
  font-family: var(--font-mono);
  font-size: 0.594rem;
  letter-spacing: 0.04em;
  color: var(--graphite);
  border: 1px solid var(--fog-deep);
  padding: 2px 8px;
}

/* === MARQUEE STRIP ======================================================== */

.marquee-strip {
  border-top: 1px solid var(--fog);
  border-bottom: 1px solid var(--fog);
  padding: 16px 0;
  overflow: hidden;
  background: rgba(255,255,255,0.3);
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 28s linear infinite;
  white-space: nowrap;
}

.marquee-track span {
  font-family: var(--font-mono);
  font-size: 0.656rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  padding: 0 36px;
  text-transform: uppercase;
}

.marquee-track span::before {
  content: '·';
  margin-right: 36px;
  color: var(--fog-deep);
}

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* === CTA BAND ============================================================= */

.cta-band {
  border-top: 1px solid var(--fog);
  padding: 96px 0;
  text-align: center;
}

.cta-band__heading {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  margin-bottom: 20px;
  line-height: 1.0;
}

.cta-band__sub {
  font-size: 0.875rem;
  color: var(--graphite);
  max-width: 460px;
  margin: 0 auto 40px;
  line-height: 1.75;
}

.cta-band__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}

/* === FOOTER =============================================================== */

.footer {
  border-top: 1px solid var(--fog);
  padding: 56px 0 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr;
  gap: 56px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--fog-light);
  margin-bottom: 28px;
}

.footer__logo {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.1rem;
  letter-spacing: -0.05em;
  color: var(--ink);
  display: block;
  margin-bottom: 14px;
  text-decoration: none;
}

.footer__tagline {
  font-size: 0.75rem;
  color: var(--graphite);
  line-height: 1.75;
  max-width: 270px;
  margin-bottom: 0;
}

.footer__col-label {
  display: block;
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 16px;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer__links a {
  font-size: 0.8rem;
  color: var(--graphite);
  text-decoration: none;
  transition: color 0.15s;
}

.footer__links a:hover { color: var(--ink); opacity: 1; }

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.footer__copy,
.footer__credit {
  font-size: 0.656rem;
  color: var(--slate);
}

.footer__credit a {
  color: var(--slate);
  text-underline-offset: 2px;
}

/* === ANIMATIONS =========================================================== */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible { opacity: 1; transform: none; }

.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
.reveal-d4 { transition-delay: 0.32s; }

/* === DOCS ================================================================= */

.docs-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - var(--nav-h));
  margin-top: var(--nav-h);
}

.docs-sidebar {
  position: sticky;
  top: var(--nav-h);
  height: calc(100vh - var(--nav-h));
  overflow-y: auto;
  border-right: 1px solid var(--fog);
  padding: 36px 0;
  flex-shrink: 0;
}

.docs-sidebar__group {
  padding: 0 20px;
  margin-bottom: 28px;
}

.docs-sidebar__group-label {
  font-size: 0.594rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  display: block;
  margin-bottom: 8px;
  padding: 0 8px;
}

.docs-sidebar__links {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.docs-sidebar__links a {
  font-size: 0.75rem;
  color: var(--graphite);
  text-decoration: none;
  padding: 5px 8px;
  border-left: 2px solid transparent;
  display: block;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
  line-height: 1.4;
}

.docs-sidebar__links a:hover,
.docs-sidebar__links a.active {
  color: var(--ink);
  border-left-color: var(--ink);
  background: rgba(0,0,0,0.04);
  opacity: 1;
}

.docs-main {
  padding: 56px 72px;
  max-width: 800px;
}

.docs-main h1 {
  font-size: 2.4rem;
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.docs-main .docs-subtitle {
  font-size: 0.875rem;
  color: var(--graphite);
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--fog);
  display: block;
}

.docs-main h2 {
  font-size: 1.4rem;
  letter-spacing: -0.03em;
  margin: 64px 0 16px;
  padding-top: 48px;
  border-top: 1px solid var(--fog);
}

.docs-main h2:first-of-type { margin-top: 0; padding-top: 0; border-top: none; }

.docs-main h3 {
  font-size: 0.938rem;
  margin: 32px 0 12px;
  letter-spacing: -0.01em;
}

.docs-main p {
  font-size: 0.875rem;
  color: var(--graphite);
  margin-bottom: 16px;
  line-height: 1.8;
}

.docs-main pre {
  background: var(--terminal-bg);
  color: var(--terminal-fg);
  padding: 22px 24px;
  overflow-x: auto;
  margin: 20px 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  line-height: 1.65;
  border-radius: 4px;
}

.docs-main code {
  font-size: 0.82em;
  background: var(--fog-light);
  padding: 0.1em 0.4em;
}

.docs-main pre code {
  background: none;
  padding: 0;
  font-size: inherit;
}

.endpoint-block {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--fog-light);
  padding: 10px 16px;
  margin: 16px 0;
  border-left: 3px solid var(--ink);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.method {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  padding: 2px 8px;
}

.method--post { background: rgba(94, 140, 210, 0.18); color: #2856A8; }
.method--get  { background: rgba(94, 197, 157, 0.18); color: #1E8C5E; }
.method--put  { background: rgba(220, 168, 60, 0.18); color: #8A6010; }

.param-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
  margin: 16px 0;
}

.param-table th {
  text-align: left;
  font-family: var(--font-mono);
  font-size: 0.594rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  border-bottom: 1px solid var(--fog);
  padding: 8px 12px;
}

.param-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--fog-light);
  vertical-align: top;
  color: var(--graphite);
  line-height: 1.6;
}

.param-table td:first-child code { color: var(--ink); }

.param-required {
  font-size: 0.594rem;
  color: #A04040;
  border: 1px solid rgba(160,64,64,0.3);
  padding: 1px 6px;
  letter-spacing: 0.04em;
}

.info-block {
  border: 1px solid var(--fog);
  border-left: 3px solid var(--slate);
  background: rgba(255,255,255,0.4);
  padding: 14px 18px;
  margin: 20px 0;
  font-size: 0.8rem;
  color: var(--graphite);
  line-height: 1.7;
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0;
}

.tool-entry {
  border: 1px solid var(--fog);
  padding: 14px 16px;
  background: rgba(255,255,255,0.3);
}

.tool-entry__name {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink);
  display: block;
  margin-bottom: 4px;
}

.tool-entry__desc {
  font-size: 0.7rem;
  color: var(--graphite);
}

/* === CONTACT ============================================================== */

.contact-wrap {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 96px;
  min-height: 100vh;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 80px;
  align-items: start;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.625rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--graphite);
}

.form-control {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--fog);
  padding: 10px 14px;
  width: 100%;
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
  transition: border-color 0.15s;
}

.form-control:focus { border-color: var(--ink); }

textarea.form-control {
  height: 160px;
  resize: vertical;
  line-height: 1.7;
}

/* === PROSE (Legal/Privacy) ================================================ */

.prose-wrap {
  padding-top: calc(var(--nav-h) + 80px);
  padding-bottom: 96px;
  min-height: 100vh;
}

.prose-head {
  margin-bottom: 56px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--fog);
}

.prose-head h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -0.04em;
  margin-bottom: 8px;
}

.prose-date {
  font-size: 0.72rem;
  color: var(--slate);
}

.prose-body h2 {
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin: 44px 0 12px;
}

.prose-body p {
  font-size: 0.875rem;
  color: var(--graphite);
  margin-bottom: 14px;
  line-height: 1.8;
}

.prose-body ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 16px;
}

.prose-body li {
  font-size: 0.875rem;
  color: var(--graphite);
  line-height: 1.75;
  margin-bottom: 6px;
}

/* === RESPONSIVE =========================================================== */

@media (max-width: 1020px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .hero__terminal-wrap { display: none; }
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split--flip { direction: ltr; }
  .integrations-grid { grid-template-columns: 1fr 1fr; }
  .docs-wrap { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; height: auto; border-right: none; border-bottom: 1px solid var(--fog); }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 640px) {
  .wrap, .wrap--narrow { padding: 0 20px; }
  .hero__heading { font-size: 3rem; }
  .nav__links, .nav__cta { display: none; }
  .integrations-grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .section { padding: 72px 0; }
  .docs-main { padding: 32px 20px; }
  .tools-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .t-cursor { animation: none; }
  .marquee-track { animation: none; }
}
