:root {
  color-scheme: dark;
  --graphite-950: #0c0f12;
  --graphite-900: #151a1f;
  --graphite-850: #1b2127;
  --graphite-800: #202830;
  --steel-500: #5c6670;
  --steel-400: #84909b;
  --line: rgba(198, 255, 58, 0.16);
  --line-strong: rgba(198, 255, 58, 0.34);
  --accent: #c6ff3a;
  --accent-soft: rgba(198, 255, 58, 0.12);
  --ink: #f1f5ee;
  --ink-soft: rgba(241, 245, 238, 0.76);
  --ink-muted: rgba(241, 245, 238, 0.56);
  --container: 1220px;
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(198, 255, 58, 0.14), transparent 22%),
    radial-gradient(circle at 80% 6%, rgba(132, 144, 155, 0.12), transparent 18%),
    linear-gradient(180deg, #0a0d10 0%, #0d1014 42%, #10151a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.24));
}

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

a {
  color: inherit;
}

/* ── Shell ── */

.site-shell {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 22px 22px 80px;
}

/* ── Panel cut ── */

.panel-cut {
  position: relative;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(21, 26, 31, 0.94), rgba(13, 17, 21, 0.98));
  box-shadow: var(--shadow);
}

.panel-cut::before,
.panel-cut::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 24px;
  pointer-events: none;
}

.panel-cut::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--line-strong);
  border-left: 2px solid var(--line-strong);
}

.panel-cut::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--line-strong);
  border-bottom: 2px solid var(--line-strong);
}

.panel-subtle {
  background: linear-gradient(180deg, rgba(27, 33, 39, 0.94), rgba(18, 22, 27, 0.98));
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px;
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-lockup,
.footer-lockup {
  width: 178px;
  height: auto;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle svg {
  pointer-events: none;
}

.nav-wrap {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 1;
}

.site-nav {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.site-nav a,
.footer-links a {
  padding: 11px 14px;
  text-decoration: none;
  font-family: "IBM Plex Sans Condensed", "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.site-nav a.active,
.site-nav a:hover,
.site-nav a:focus-visible,
.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--ink);
  background: var(--accent-soft);
  outline: none;
}

.nav-action {
  margin-left: auto;
}

/* ── Typography ── */

.eyebrow,
.metric-label,
.card-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-family: "IBM Plex Sans Condensed", "Segoe UI", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0 0 12px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "IBM Plex Sans Condensed", "Segoe UI", sans-serif;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.hero-copy h1 {
  font-size: clamp(3.1rem, 7vw, 5.9rem);
  line-height: 0.9;
  max-width: 16ch;
}

.section-heading h2,
.founder-card h2,
.contact-panel h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  line-height: 0.98;
}

.lead,
.section-heading p,
.feature-card p,
.faq-card p,
.workflow-step p,
.founder-body p,
.site-footer p,
.signal-card p,
.contact-panel p {
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.66;
}

.lead {
  max-width: 64ch;
  margin-top: 20px;
  font-size: 1.08rem;
}

/* ── Buttons ── */

.hero-actions,
.section-actions,
.contact-actions,
.profile-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions,
.profile-links {
  margin-top: 28px;
}

.section-actions {
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 18px;
  border: 1px solid transparent;
  font-family: "IBM Plex Sans Condensed", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease;
  clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 14px 100%, 0 calc(100% - 14px));
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.button-primary {
  background: var(--accent);
  color: var(--graphite-950);
}

.button-secondary,
.button-outline {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--ink);
}

.button-secondary:hover,
.button-outline:hover,
.button-secondary:focus-visible,
.button-outline:focus-visible {
  border-color: var(--line-strong);
  background: rgba(198, 255, 58, 0.08);
}

/* ── Hero ── */

.hero {
  padding: 50px 30px;
}

.hero-copy {
  max-width: 780px;
}

/* ── Metric strip ── */

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.metric-card {
  padding: 22px;
}

.metric-card strong {
  display: block;
  margin-top: 10px;
  font-size: 1.1rem;
}

/* ── Sections ── */

.section {
  padding: 28px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 24px;
}

.section-band,
.closing-band {
  padding: 30px;
}

/* ── Card grids ── */

.card-grid {
  display: grid;
  gap: 18px;
}

.card-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-card,
.faq-card,
.workflow-step,
.signal-card {
  padding: 22px;
}

.feature-card h3,
.faq-card h3,
.workflow-step h3,
.signal-card strong {
  display: block;
  margin-top: 10px;
}

.card-index {
  color: var(--steel-400);
}

/* ── Step list (product workflow) ── */

.step-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
}

.step-grid .workflow-step {
  grid-column: span 2;
}

.step-grid .workflow-step:nth-child(4) {
  grid-column: 2 / span 2;
}

.step-grid .workflow-step:nth-child(5) {
  grid-column: 4 / span 2;
}

/* ── FAQ grid ── */

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

/* ── How it works (home brief) ── */

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.how-step {
  padding: 22px;
}

.how-step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 2px solid var(--accent);
  color: var(--accent);
  font-family: "IBM Plex Sans Condensed", "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
}

.how-step h3 {
  margin-top: 14px;
  font-size: 1.2rem;
}

.how-step p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 8px 0 0;
}

.feature-card p,
.faq-card p,
.workflow-step p,
.founder-body p,
.contact-panel > p {
  margin: 8px 0 0;
}

/* ── About page ── */

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 18px;
  align-items: start;
}

.founder-card {
  padding: 28px;
}

.founder-body {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}

.profile-links a {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  text-decoration: none;
  font-family: "IBM Plex Sans Condensed", "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-panel {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.status-list {
  display: grid;
  gap: 14px;
}

.status-card {
  padding: 18px;
}

.status-card strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.status-card p {
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 6px 0 0;
}

/* ── Footer ── */

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 34px;
  padding: 24px;
}

.site-footer p {
  margin: 12px 0 0;
  max-width: 52ch;
}

.footer-links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-copy {
  width: 100%;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-muted);
  font-size: 0.82rem;
}

/* ── Fade-in (IntersectionObserver) ── */

.fade-in {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Responsive ── */

@media (max-width: 1120px) {
  .card-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .step-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .step-grid .workflow-step:nth-child(4) {
    grid-column: span 2;
  }

  .step-grid .workflow-step:nth-child(5) {
    grid-column: 2 / span 2;
  }

  .about-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 920px) {
  .site-shell {
    padding: 14px 14px 64px;
  }

  .site-header {
    top: 12px;
  }

  .hero,
  .section-band,
  .closing-band {
    padding: 22px;
  }

  .metric-strip,
  .how-steps {
    grid-template-columns: 1fr;
  }

  .faq-grid {
    grid-template-columns: 1fr;
  }

  .step-grid {
    grid-template-columns: 1fr;
  }

  .step-grid .workflow-step,
  .step-grid .workflow-step:nth-child(4),
  .step-grid .workflow-step:nth-child(5) {
    grid-column: span 1;
  }
}

@media (max-width: 640px) {
  .menu-toggle {
    display: flex;
  }

  .site-header {
    flex-wrap: wrap;
  }

  .nav-wrap {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-wrap.open {
    display: flex;
  }

  .site-nav {
    width: 100%;
    flex-direction: column;
    align-items: stretch;
  }

  .nav-action {
    margin-left: 0;
    width: 100%;
    text-align: center;
    margin-top: 8px;
  }

  .hero-copy h1 {
    max-width: none;
    font-size: 2.95rem;
  }

  .card-grid-three {
    grid-template-columns: 1fr;
  }

  .footer-links {
    width: 100%;
    justify-content: flex-start;
  }

  .brand-lockup,
  .footer-lockup {
    width: 150px;
  }
}
