@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:opsz,wght@9..40,400;9..40,500;9..40,600;9..40,700&family=Instrument+Serif:ital@0;1&display=swap');

/* ---------- tokens ---------- */
:root {
  --ink: #12261f;
  --cream: #f7f3eb;
  --lime: #d8fa6b;
  --lime-soft: #eafcb8;
  --muted: #60716a;
  --line: #ccd3cb;

  --bg: #0a0e0c;
  --bg-alt: #101613;
  --bg-deep: #060907;
  --paper: #eef2ea;
  --paper-muted: #9db2a8;
  --glass: rgba(255, 255, 255, 0.045);
  --glass-line: rgba(255, 255, 255, 0.1);
  --accent-dim: #2f6b49;

  --serif: "Instrument Serif", Georgia, serif;
  --sans: "DM Sans", Arial, sans-serif;
  --mono: "DM Mono", "SFMono-Regular", monospace;

  --ease: cubic-bezier(.16, 1, .3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--paper);
  background: var(--bg);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body.nav-open { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--lime);
  color: var(--ink);
  padding: 12px 18px;
  font-weight: 600;
  z-index: 200;
}
.skip-link:focus { left: 12px; top: 12px; }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.section { padding: 112px max(5vw, 32px); }
h1, h2, h3, p { margin-top: 0; }
h1, h2 { letter-spacing: -0.04em; font-weight: 500; }
h1 em, h2 em { font-family: var(--serif); font-weight: 400; font-style: italic; }

.eyebrow, .number { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; }
.eyebrow { color: var(--lime); }

/* ---------- scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(5vw, 32px);
  background: rgba(10, 14, 12, 0.6);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--glass-line); background: rgba(10, 14, 12, 0.86); }

.brand { display: flex; align-items: center; gap: 10px; letter-spacing: .07em; font-size: 14px; color: var(--paper); font-weight: 600; text-decoration: none; }
.brand span { color: var(--lime); }
.brand-mark { width: 20px; height: 20px; border-radius: 6px; background: linear-gradient(135deg, var(--lime), #7fbf87); box-shadow: 0 0 18px rgba(216, 250, 107, 0.35); }

.site-header nav { display: flex; gap: 30px; }
nav a, .text-link { color: var(--paper-muted); text-decoration: none; font-size: 14px; transition: color .2s; }
nav a:hover, .text-link:hover { color: var(--paper); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  padding: 14px 22px;
  background: var(--lime);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 0 0 rgba(216, 250, 107, 0);
}
.button:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(216, 250, 107, 0.25); }
.button.small { padding: 10px 18px; }
.button.light { color: var(--ink); background: var(--lime); }

.nav-toggle { display: none; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; background: none; border: 1px solid var(--glass-line); border-radius: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 18px; height: 1.5px; margin: 0 auto; background: var(--paper); transition: transform .25s var(--ease), opacity .25s var(--ease); }
body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
  position: fixed;
  inset: 76px 0 0 0;
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 36px max(5vw, 32px);
  background: var(--bg-deep);
  transform: translateY(-12px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.mobile-nav a { text-decoration: none; color: var(--paper); font-size: 22px; }
.mobile-nav .button { align-self: flex-start; margin-top: 10px; }
body.nav-open .mobile-nav { opacity: 1; transform: none; pointer-events: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 40px;
  background: var(--bg);
}
.hero-glow {
  --glow-x: 78%;
  --glow-y: 18%;
  position: absolute;
  inset: 0;
  background:
    radial-gradient(560px circle at var(--glow-x) var(--glow-y), rgba(216, 250, 107, 0.16), transparent 60%),
    radial-gradient(900px circle at 12% 90%, rgba(127, 191, 135, 0.12), transparent 60%);
  transition: background .4s ease-out;
  pointer-events: none;
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black, transparent 75%);
  pointer-events: none;
}
.hero-inner { position: relative; padding-top: 96px; padding-bottom: 64px; }
.hero-layout { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(330px, .85fr); align-items: center; gap: clamp(42px, 7vw, 112px); min-height: 590px; }
.hero-copy-block { min-width: 0; }
.hero-copy { max-width: 600px; color: var(--paper-muted); font-size: 19px; line-height: 1.55; }
h1 { max-width: 980px; margin: 22px 0 26px; font-size: clamp(46px, 7.2vw, 104px); line-height: .96; color: var(--paper); }
.actions { display: flex; gap: 30px; align-items: center; margin-top: 40px; flex-wrap: wrap; }

/* ---------- capability carousel ---------- */
.capability-carousel { width: 100%; max-width: 470px; justify-self: end; padding: 22px; background: rgba(18, 38, 31, .72); border: 1px solid var(--glass-line); border-radius: 22px; box-shadow: 0 28px 80px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255,255,255,.06); backdrop-filter: blur(14px); }
.capability-carousel-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 18px; border-bottom: 1px solid var(--glass-line); }
.capability-carousel-header .eyebrow { margin: 0; }
.capability-carousel-header > span { color: var(--paper-muted); font: 12px var(--mono); letter-spacing: .08em; }
.capability-viewport { position: relative; min-height: 290px; overflow: hidden; }
.capability-card { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; transform: translateX(24px); pointer-events: none; transition: opacity .45s var(--ease), transform .45s var(--ease); }
.capability-card.is-active { opacity: 1; transform: none; pointer-events: auto; }
.capability-index { color: var(--lime); font: 13px var(--mono); letter-spacing: .12em; }
.capability-card h2 { margin: 18px 0 14px; max-width: 380px; color: var(--paper); font-size: clamp(42px, 4vw, 62px); }
.capability-card p { max-width: 390px; margin: 0; color: var(--paper-muted); font-size: 16px; line-height: 1.55; }
.capability-controls { display: flex; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--glass-line); }
.carousel-button { width: 38px; height: 38px; padding: 0; border: 1px solid var(--glass-line); border-radius: 50%; color: var(--paper); background: transparent; cursor: pointer; font-size: 18px; transition: background .2s, color .2s, border-color .2s; }
.carousel-button:hover { color: var(--ink); background: var(--lime); border-color: var(--lime); }
.carousel-dots { display: flex; flex: 1; gap: 6px; align-items: center; justify-content: center; }
.carousel-dot { width: 7px; height: 7px; padding: 0; border: 0; border-radius: 50%; background: rgba(255,255,255,.22); cursor: pointer; transition: width .2s, background .2s; }
.carousel-dot[aria-selected="true"] { width: 22px; border-radius: 999px; background: var(--lime); }

.marquee {
  position: relative;
  border-top: 1px solid var(--glass-line);
  overflow: hidden;
  padding: 22px 0;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}
.marquee-track { display: flex; gap: 14px; width: max-content; animation: scroll-left 32s linear infinite; }
.marquee-track span { padding: 9px 16px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 999px; font-size: 13px; color: var(--paper-muted); white-space: nowrap; }
.marquee-track span[aria-hidden] { background: none; border: none; padding: 9px 2px; color: var(--lime); }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes scroll-left { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- statement ---------- */
.statement { padding-top: 104px; padding-bottom: 104px; background: var(--lime); color: var(--ink); }
.statement .eyebrow { color: var(--accent-dim); }
.large-copy { margin: 18px 0 0; max-width: 980px; font-size: clamp(27px, 3.4vw, 49px); line-height: 1.14; letter-spacing: -0.035em; }

/* ---------- light sections (workflows / faq) ---------- */
#workflows, .faq { background: var(--cream); color: var(--ink); }
#workflows .eyebrow, .faq .eyebrow { color: var(--accent-dim); }
.section-intro { max-width: 660px; }
h2 { margin: 16px 0 0; font-size: clamp(38px, 5vw, 66px); line-height: .98; }

.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 56px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.card { min-height: 260px; padding: 30px; background: var(--cream); transition: background .25s var(--ease), transform .25s var(--ease); }
.card:hover { background: #fffdf7; transform: translateY(-3px); }
.card .number { color: var(--accent-dim); opacity: .55; font-size: 34px; margin: 0 0 40px; }
.card h3 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 12px; }
.card p:last-child { color: var(--muted); line-height: 1.55; }
.bento-note { margin: 28px 0 0; max-width: 760px; font-family: var(--serif); font-style: italic; font-size: 22px; color: var(--ink); border-left: 2px solid var(--accent-dim); padding-left: 20px; }

/* ---------- process ---------- */
.process { background: var(--bg-alt); }
.process .eyebrow { color: var(--lime); }
.process h2 { color: var(--paper); }
.process ol { list-style: none; padding: 0; margin: 64px 0 0; max-width: 950px; position: relative; }
.process ol::before { content: ""; position: absolute; left: 59px; top: 0; bottom: 0; width: 1px; background: var(--glass-line); }
.process li { position: relative; display: grid; grid-template-columns: 120px 1fr; padding: 28px 0; }
.process li > span { position: relative; font-family: var(--mono); color: var(--lime); }
.process li > span::before { content: ""; position: absolute; left: 47px; top: 4px; width: 9px; height: 9px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 5px var(--bg-alt), 0 0 14px rgba(216, 250, 107, 0.5); }
.process h3 { font-size: 24px; font-weight: 500; letter-spacing: -.025em; margin: 0 0 10px; color: var(--paper); }
.process li p { color: var(--paper-muted); line-height: 1.55; margin: 0; }

/* ---------- security ---------- */
.security { display: grid; grid-template-columns: .9fr 1.1fr; gap: 80px; color: var(--paper); background: var(--bg-deep); position: relative; }
.security::before {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 100% at 0% 50%, black, transparent 80%);
  pointer-events: none;
}
.security > * { position: relative; }
.security .eyebrow { color: var(--lime); }
.security ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.security li { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--glass); border: 1px solid var(--glass-line); border-radius: 16px; transition: border-color .25s, background .25s; }
.security li:hover { border-color: rgba(216, 250, 107, 0.35); background: rgba(216, 250, 107, 0.04); }
.security li svg { flex: none; width: 26px; height: 26px; color: var(--lime); margin-top: 2px; }
.security li strong { display: block; margin-bottom: 4px; font-size: 16px; font-weight: 600; }
.security li span { color: var(--paper-muted); line-height: 1.5; font-size: 14.5px; }
.security-disclaimer { grid-column: 1 / -1; margin-top: 8px; padding-top: 28px; border-top: 1px solid var(--glass-line); color: var(--paper-muted); font-size: 14px; max-width: 760px; }

/* ---------- faq ---------- */
.faq-list { margin-top: 48px; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.faq-list details { background: var(--cream); padding: 6px 26px; }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 20px 0; font-size: 17px; font-weight: 500; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span { font-family: var(--mono); color: var(--accent-dim); font-size: 20px; transition: transform .25s var(--ease); }
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { margin: 0 0 22px; color: var(--muted); line-height: 1.6; max-width: 640px; }

/* ---------- consultation CTA ---------- */
.assessment { position: relative; overflow: hidden; text-align: center; background: var(--ink); color: var(--paper); }
.assessment-glow {
  position: absolute; inset: 0;
  background: radial-gradient(560px circle at 50% 0%, rgba(216, 250, 107, 0.22), transparent 65%);
  pointer-events: none;
}
.assessment > * { position: relative; }
.assessment .eyebrow { color: var(--lime); }
.assessment h2 { font-size: clamp(46px, 6vw, 78px); color: var(--paper); }
.assessment > p { margin: 28px auto 35px; max-width: 580px; line-height: 1.55; color: var(--paper-muted); }
.consultation-form { max-width: 720px; margin: 36px auto 0; padding: 28px; text-align: left; background: rgba(255, 255, 255, .04); border: 1px solid var(--glass-line); border-radius: 18px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.consultation-form label { display: grid; gap: 8px; color: var(--paper); font-size: 14px; font-weight: 600; }
.consultation-form input { width: 100%; padding: 13px 14px; color: var(--paper); background: rgba(255, 255, 255, .06); border: 1px solid var(--glass-line); border-radius: 10px; font: inherit; font-size: 16px; font-weight: 400; }
.consultation-form input:focus { outline: 2px solid var(--lime); outline-offset: 2px; border-color: transparent; }
.consultation-form > label { margin-bottom: 20px; }
.consultation-form .button { margin-top: 4px; }
.consultation-form .button:disabled { cursor: wait; opacity: .72; transform: none; }
.form-honeypot { display: none !important; }
.form-status { margin: 18px 0 0; padding: 13px 16px; border-radius: 10px; line-height: 1.45; }
.form-status.is-success { color: var(--lime-soft); background: rgba(216, 250, 107, .12); }
.form-status.is-error { color: #ffd6d6; background: rgba(204, 70, 70, .16); }

/* ---------- contact / footer ---------- */
.contact { text-align: center; background: var(--bg); }
.contact h2 { max-width: 850px; margin: 14px auto 24px; color: var(--paper); }
.contact p { color: var(--paper-muted); }
.contact a { text-decoration: none; border-bottom: 1px solid var(--glass-line); }
.contact a:hover { border-color: var(--lime); color: var(--lime); }

footer { display: flex; justify-content: space-between; align-items: center; padding: 30px max(5vw, 32px); border-top: 1px solid var(--glass-line); background: var(--bg-deep); }
footer .brand { pointer-events: none; }
footer p { margin: 0; color: var(--paper-muted); font-size: 13px; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .security { grid-template-columns: 1fr; gap: 44px; }
  .hero-layout { grid-template-columns: 1fr; min-height: 0; }
  .capability-carousel { max-width: 560px; justify-self: start; }
}
@media (max-width: 760px) {
  .site-header nav, .header-actions .button.small { display: none; }
  .nav-toggle { display: flex; }
  .site-header { min-height: 68px; }
  .section { padding: 78px 24px; }
  .hero-inner { padding-top: 70px; }
  .hero-layout { gap: 48px; }
  .actions { margin-top: 34px; }
  .capability-carousel { padding: 18px; }
  .capability-viewport { min-height: 255px; }
  .bento { grid-template-columns: 1fr; }
  .card { min-height: auto; }
  .form-grid { grid-template-columns: 1fr; }
  .consultation-form { padding: 20px; }
  .process li { grid-template-columns: 44px 1fr; }
  .process ol::before { left: 21px; }
  .process li > span::before { left: 12px; }
  footer { flex-direction: column; gap: 12px; text-align: center; }
}
