/* palette: bg=#0D1117 fg=#E6EDF3 accent=#3FB950 */
/* fonts: display="JetBrains Mono" body="IBM Plex Mono" mono="JetBrains Mono" */

:root {
  --bg: #0D1117;          /* fundo dominante — terminal escuro */
  --bg-alt: #010409;      /* faixa invertida, mais escura */
  --panel: #161B22;       /* cartão / janela de terminal */
  --panel-2: #0F141A;     /* painel interno */
  --fg: #E6EDF3;          /* texto principal */
  --fg-soft: #C9D1D9;     /* texto um pouco mais suave */
  --muted: #8B949E;       /* texto secundário */
  --accent: #3FB950;      /* verde fósforo */
  --accent-bright: #56D364;
  --accent-deep: #2EA043; /* verde para hover */
  --amber: #E3B341;       /* destaque secundário */
  --cyan: #39C5CF;        /* dado secundário */
  --border: rgba(240, 246, 252, 0.10);
  --border-soft: rgba(240, 246, 252, 0.06);
  --border-accent: rgba(63, 185, 80, 0.35);
  --display: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --body: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.75;
  color: var(--fg-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
::selection { background: rgba(63, 185, 80, 0.28); color: #fff; }

/* subtle terminal grid on body */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(240, 246, 252, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(240, 246, 252, 0.022) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 120% 80% at 50% 0%, #000 40%, transparent 100%);
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
@media (min-width: 768px) { .container { padding: 0 32px; } }

/* ---------- typography helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
h1, h2, h3, h4 { font-family: var(--display); color: var(--fg); font-weight: 400; letter-spacing: -0.02em; }
p { margin: 0 0 1.1em; }
em { font-style: normal; color: var(--accent); }
.text-muted { color: var(--muted); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  padding: 13px 26px;
  border-radius: 6px;
  transition: transform 0.4s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--accent);
  color: #06210E;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(63, 185, 80, 0.4), 0 8px 30px -10px rgba(63, 185, 80, 0.6);
}
.btn--primary:hover { background: var(--accent-bright); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(86, 211, 100, 0.6), 0 14px 40px -10px rgba(63, 185, 80, 0.7); }
.btn--ghost {
  background: transparent;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn--ghost:hover { border-color: var(--border-accent); color: var(--accent-bright); transform: translateY(-2px); }
.btn--block { width: 100%; }

.link-arrow {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: gap 0.3s var(--ease), color 0.3s var(--ease);
}
.link-arrow:hover { gap: 12px; color: var(--accent-bright); }
.link-ghost { font-family: var(--mono); font-size: 14px; color: var(--muted); transition: color 0.25s var(--ease); }
.link-ghost:hover { color: var(--fg); }

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 17, 23, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.header[data-scrolled="true"] {
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(0,0,0,0.4), 0 10px 30px -20px rgba(0,0,0,0.9);
}
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 700; font-size: 18px; color: var(--fg); letter-spacing: -0.01em; }
.brand__mark { color: var(--accent); font-size: 13px; transform: translateY(-1px); }
.brand__name { letter-spacing: -0.02em; }
.brand__cursor { color: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 0%, 50% { opacity: 1; } 50.01%, 100% { opacity: 0; } }

.nav { display: none; gap: 30px; }
@media (min-width: 900px) { .nav { display: flex; } }
.nav a {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--muted);
  position: relative;
  transition: color 0.25s var(--ease);
  padding: 4px 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--fg); }
.nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 100%; height: 1px;
  background: var(--accent);
}
.header__actions { display: none; align-items: center; gap: 18px; }
@media (min-width: 900px) { .header__actions { display: flex; } }

.menu-toggle { display: inline-flex; flex-direction: column; gap: 5px; width: 40px; height: 40px; align-items: center; justify-content: center; }
@media (min-width: 900px) { .menu-toggle { display: none; } }
.menu-toggle span { width: 22px; height: 1.5px; background: var(--fg); transition: transform 0.3s var(--ease), opacity 0.3s var(--ease); }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 68px 0 0 0;
  z-index: 99;
  background: rgba(1, 4, 9, 0.97);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  padding: 32px 24px;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease);
}
.mobile-menu[data-open="true"] { transform: translateX(0); }
.mobile-menu nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-menu nav a { font-family: var(--display); font-size: 26px; color: var(--fg); padding: 14px 0; border-bottom: 1px solid var(--border-soft); }
.mobile-menu nav a.btn { border: 0; margin-top: 20px; font-family: var(--mono); font-size: 15px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 120px 0 80px; min-height: 100vh; display: flex; align-items: center; overflow: hidden; }
@media (min-width: 768px) { .hero { padding: 150px 0 90px; } }
.hero__glow {
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 900px;
  background: radial-gradient(circle at 50% 40%, rgba(63, 185, 80, 0.16), rgba(57, 197, 207, 0.07) 38%, transparent 66%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 0;
}
.hero__inner { text-align: center; position: relative; z-index: 1; max-width: 940px; margin: 0 auto; }
.hero__title {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 300;
  margin: 0 0 26px;
}
.hero__lead {
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.7;
  color: var(--muted);
  max-width: 660px;
  margin: 0 auto 36px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-bottom: 64px; }

/* ---------- terminal window ---------- */
.terminal {
  margin: 0 auto;
  max-width: 880px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(63, 185, 80, 0.06);
  text-align: left;
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 13px 16px; background: var(--panel-2); border-bottom: 1px solid var(--border); }
.terminal__dot { width: 11px; height: 11px; border-radius: 50%; }
.terminal__dot--r { background: #E36049; }
.terminal__dot--y { background: var(--amber); }
.terminal__dot--g { background: var(--accent); }
.terminal__title { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.terminal__body { padding: 22px 22px 26px; font-family: var(--mono); font-size: 13.5px; line-height: 1.9; }
@media (min-width: 768px) { .terminal__body { padding: 28px 30px 32px; font-size: 14px; } }
.terminal__line { white-space: pre-wrap; }
.t-prompt { color: var(--accent); }
.t-flag { color: var(--cyan); }
.t-ok { color: var(--accent-bright); }
.t-dim { color: var(--muted); }
.t-amber { color: var(--amber); }
.terminal__cursor { display: inline-block; width: 8px; height: 15px; background: var(--accent); vertical-align: -2px; animation: blink 1.1s steps(1) infinite; }

/* ---------- sections ---------- */
.section { padding: clamp(80px, 12vw, 150px) 0; position: relative; }
.section--alt { background: var(--bg-alt); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.section__head { max-width: 720px; margin: 0 auto 60px; text-align: center; }
.section__head--left { text-align: left; margin-left: 0; }
.section h2 { font-size: clamp(2rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 20px; font-weight: 300; letter-spacing: -0.03em; }
.section__lead { color: var(--muted); font-size: 1.05rem; margin: 0; }

/* how it works — split card + glow */
.how { position: relative; overflow: hidden; }
.how__glow {
  position: absolute;
  right: -8%; top: 20%;
  width: 620px; height: 620px;
  background: radial-gradient(circle at 60% 40%, rgba(57, 197, 207, 0.14), rgba(227, 179, 65, 0.08) 40%, rgba(63, 185, 80, 0.06) 60%, transparent 72%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
}
.how__inner { position: relative; z-index: 1; }
.data-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 40px 100px -50px rgba(0,0,0,0.9);
  max-width: 720px;
}
.data-card__head { padding: 26px 28px 22px; border-bottom: 1px solid var(--border); }
.data-card__head h3 { font-size: 1.4rem; margin: 0 0 10px; font-weight: 400; letter-spacing: -0.02em; }
.data-card__head p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.data-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 13px; }
.data-table th, .data-table td { text-align: left; padding: 13px 28px; border-bottom: 1px solid var(--border-soft); }
.data-table th { color: var(--muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; font-size: 11px; }
.data-table td { color: var(--fg-soft); }
.data-table tr:last-child td { border-bottom: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; padding: 3px 9px; border-radius: 4px; font-weight: 500; }
.badge--ok { background: rgba(63,185,80,0.14); color: var(--accent-bright); }
.badge--warn { background: rgba(227,179,65,0.14); color: var(--amber); }
.badge--info { background: rgba(57,197,207,0.14); color: var(--cyan); }
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.how__grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 900px) { .how__grid { grid-template-columns: 1fr 1.05fr; gap: 56px; } }
.how__copy h2 { text-align: left; }

/* ---------- services grid ---------- */
.grid { display: grid; gap: 18px; }
.grid--3 { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid--3 { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .grid--3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 26px 30px;
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), background 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute; left: 0; top: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--cyan));
  transition: width 0.5s var(--ease);
}
.card:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: 0 20px 50px -24px rgba(0,0,0,0.85); }
.card:hover::before { width: 100%; }
.card__num { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.06em; }
.card h3 { font-size: 1.22rem; margin: 16px 0 12px; font-weight: 400; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 0.96rem; margin: 0 0 18px; line-height: 1.7; }
.card__meta { font-family: var(--mono); font-size: 12px; color: var(--fg-soft); border-top: 1px solid var(--border-soft); padding-top: 14px; }

/* ---------- manifesto (dark inverted band) ---------- */
.manifesto {
  background: var(--accent);
  color: #06210E;
  padding: clamp(90px, 13vw, 170px) 0;
  position: relative;
  overflow: hidden;
}
.manifesto::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(6,33,14,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6,33,14,0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.7;
}
.manifesto__inner { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; text-align: center; }
.manifesto__label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(6,33,14,0.65); margin: 0 0 26px; }
.manifesto blockquote {
  margin: 0;
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 4.4vw, 3.2rem);
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #06210E;
}
.manifesto cite { display: block; margin-top: 30px; font-family: var(--mono); font-size: 13px; font-style: normal; letter-spacing: 0.04em; color: rgba(6,33,14,0.7); }

/* ---------- stats ---------- */
.stats { display: grid; gap: 2px; grid-template-columns: 1fr 1fr; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; }
@media (min-width: 860px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--bg); padding: 40px 26px; text-align: center; }
.section--alt .stat { background: var(--bg-alt); }
.stat__num { font-family: var(--display); font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 300; color: var(--accent); letter-spacing: -0.03em; line-height: 1; }
.stat__label { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; letter-spacing: 0.03em; }

/* ---------- case studies ---------- */
.cases { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cases { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .cases { grid-template-columns: repeat(3, 1fr); } }
.case {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
  transition: transform 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.case:hover { transform: translateY(-4px); border-color: var(--border-accent); box-shadow: 0 24px 60px -30px rgba(0,0,0,0.9); }
.case__media { aspect-ratio: 16 / 10; overflow: hidden; position: relative; background: var(--panel-2); }
.case__media img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.35) contrast(1.05) brightness(0.82); transition: transform 0.7s var(--ease), filter 0.5s var(--ease); }
.case:hover .case__media img { transform: scale(1.05); filter: grayscale(0) contrast(1.05) brightness(0.92); }
.case__tag { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: rgba(1,4,9,0.75); color: var(--accent); padding: 5px 10px; border-radius: 4px; border: 1px solid var(--border-accent); }
.case__body { padding: 22px 22px 26px; }
.case__body h3 { font-size: 1.16rem; margin: 0 0 10px; font-weight: 400; letter-spacing: -0.02em; }
.case__body p { color: var(--muted); font-size: 0.93rem; margin: 0 0 16px; line-height: 1.65; }

/* ---------- logos / trust strip ---------- */
.trust { padding: 46px 0; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.trust__label { text-align: center; font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin: 0 0 28px; }
.trust__row { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: center; align-items: center; }
.trust__item { font-family: var(--mono); font-size: 14px; color: var(--fg-soft); opacity: 0.7; letter-spacing: 0.02em; transition: opacity 0.3s var(--ease), color 0.3s var(--ease); }
.trust__item:hover { opacity: 1; color: var(--accent); }
.trust__item span { color: var(--accent); }

/* ---------- process / steps list ---------- */
.steps { display: grid; gap: 2px; background: var(--border-soft); border: 1px solid var(--border-soft); border-radius: 14px; overflow: hidden; }
.step { background: var(--bg); padding: 32px 30px; display: grid; gap: 8px 28px; grid-template-columns: auto 1fr; align-items: start; }
.section--alt .step { background: var(--bg-alt); }
.step__num { font-family: var(--display); font-size: 1.4rem; color: var(--accent); font-weight: 300; grid-row: span 2; }
.step h3 { font-size: 1.2rem; margin: 0; font-weight: 400; letter-spacing: -0.02em; }
.step p { margin: 0; color: var(--muted); font-size: 0.96rem; grid-column: 2; }

/* ---------- team / principles (mono avatars) ---------- */
.team { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .team { grid-template-columns: 1fr 1fr; } }
@media (min-width: 980px) { .team { grid-template-columns: repeat(3, 1fr); } }
.member { border: 1px solid var(--border); border-radius: 12px; padding: 26px; background: var(--panel); transition: border-color 0.4s var(--ease); }
.member:hover { border-color: var(--border-accent); }
.avatar { width: 52px; height: 52px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 18px; color: #06210E; letter-spacing: -0.02em; margin-bottom: 20px; }
.avatar--a { background: var(--accent); }
.avatar--b { background: var(--cyan); }
.avatar--c { background: var(--amber); }
.member h3 { font-size: 1.1rem; margin: 0 0 4px; font-weight: 500; letter-spacing: -0.01em; }
.member__role { font-family: var(--mono); font-size: 12px; color: var(--accent); letter-spacing: 0.04em; margin: 0 0 14px; }
.member p { color: var(--muted); font-size: 0.92rem; margin: 0; line-height: 1.65; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq__item { border-bottom: 1px solid var(--border); }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; text-align: left; font-family: var(--display); font-size: 1.12rem; color: var(--fg); font-weight: 400; letter-spacing: -0.01em; transition: color 0.25s var(--ease); }
.faq__q:hover { color: var(--accent-bright); }
.faq__icon { flex-shrink: 0; width: 20px; height: 20px; position: relative; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; background: var(--accent); transition: transform 0.3s var(--ease); }
.faq__icon::before { top: 9px; left: 0; width: 20px; height: 2px; }
.faq__icon::after { top: 0; left: 9px; width: 2px; height: 20px; }
.faq__item[data-open="true"] .faq__icon::after { transform: scaleY(0); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease); }
.faq__a p { color: var(--muted); font-size: 0.98rem; padding: 0 0 26px; margin: 0; line-height: 1.75; max-width: 92%; }

/* ---------- CTA band ---------- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta__glow { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(63,185,80,0.14), transparent 68%); filter: blur(20px); pointer-events: none; }
.cta__inner { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; }
.cta h2 { font-size: clamp(2rem, 5.2vw, 3.6rem); font-weight: 300; letter-spacing: -0.03em; margin: 0 0 22px; line-height: 1.08; }
.cta p { color: var(--muted); margin: 0 0 34px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- contact / form ---------- */
.contact__grid { display: grid; gap: 44px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .contact__grid { grid-template-columns: 1fr 1.1fr; gap: 64px; } }
.info-block { margin-bottom: 30px; }
.info-block h3 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; font-weight: 500; }
.info-block p, .info-block a { margin: 0; color: var(--fg-soft); font-size: 1rem; }
.info-block a:hover { color: var(--accent); }

.form { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 30px 26px; }
@media (min-width: 768px) { .form { padding: 38px 36px; } }
.field { margin-bottom: 20px; }
.field label { display: block; font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.field input, .field textarea, .field select {
  width: 100%;
  font-family: var(--body);
  font-size: 15px;
  color: var(--fg);
  background: var(--panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 13px 15px;
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgba(139,148,158,0.6); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(63,185,80,0.15); }
.field textarea { resize: vertical; min-height: 130px; }
.form__note { font-family: var(--mono); font-size: 12px; color: var(--muted); margin: 16px 0 0; line-height: 1.6; }
.form__note a { color: var(--accent); }

/* ---------- generic prose (legal pages) ---------- */
.page-hero { padding: 130px 0 40px; }
.page-hero .eyebrow { justify-content: flex-start; }
.page-hero h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 300; letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 18px; }
.page-hero p { color: var(--muted); max-width: 620px; margin: 0; }
.prose { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.prose h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 400; letter-spacing: -0.02em; margin: 48px 0 16px; color: var(--fg); }
.prose h3 { font-size: 1.15rem; font-weight: 500; margin: 30px 0 12px; color: var(--fg); font-family: var(--display); }
.prose p, .prose li { color: var(--fg-soft); font-size: 1rem; line-height: 1.8; }
.prose ul { padding-left: 20px; margin: 0 0 1.2em; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--fg); }
.prose__meta { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-bottom: 40px; padding-bottom: 24px; border-bottom: 1px solid var(--border); }

/* ---------- thank you ---------- */
.thanks { min-height: 74vh; display: flex; align-items: center; text-align: center; }
.thanks__inner { max-width: 640px; margin: 0 auto; }
.thanks__mark { font-family: var(--display); font-size: 3rem; color: var(--accent); margin-bottom: 20px; }
.thanks h1 { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 300; letter-spacing: -0.03em; margin: 0 0 18px; }
.thanks p { color: var(--muted); margin: 0 0 30px; }

/* ---------- footer ---------- */
.footer { background: var(--bg-alt); border-top: 1px solid var(--border); padding: 70px 0 34px; }
.footer__top { display: grid; gap: 40px; grid-template-columns: 1fr; margin-bottom: 50px; }
@media (min-width: 720px) { .footer__top { grid-template-columns: 1.6fr 1fr 1fr; } }
@media (min-width: 980px) { .footer__top { grid-template-columns: 2fr 1fr 1fr 1.2fr; } }
.footer__brand .brand { font-size: 20px; margin-bottom: 16px; }
.footer__tagline { color: var(--muted); font-size: 0.95rem; max-width: 320px; line-height: 1.7; }
.footer__col h4 { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 18px; font-weight: 500; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.footer__col a { font-size: 0.95rem; color: var(--fg-soft); transition: color 0.25s var(--ease); }
.footer__col a:hover { color: var(--accent); }
.footer__col p { font-size: 0.92rem; color: var(--muted); margin: 0 0 10px; line-height: 1.6; }
.footer__bottom { display: flex; flex-direction: column; gap: 14px; padding-top: 28px; border-top: 1px solid var(--border); font-family: var(--mono); font-size: 12px; color: var(--muted); }
@media (min-width: 720px) { .footer__bottom { flex-direction: row; justify-content: space-between; align-items: center; } }
.footer__legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer__legal a:hover { color: var(--accent); }

/* ---------- cookie popup ---------- */
.cookie-popup { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-end; justify-content: flex-end; padding: 24px; background: rgba(1,4,9,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease); }
.cookie-popup[data-open="true"] { opacity: 1; pointer-events: all; }
.cookie-popup__card { background: var(--panel); border: 1px solid var(--border); padding: 30px 32px; max-width: 460px; border-radius: 12px; box-shadow: 0 40px 100px -30px rgba(0,0,0,0.9); }
.cookie-popup__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.cookie-popup__card h3 { font-size: 1.2rem; margin: 0 0 12px; font-weight: 500; letter-spacing: -0.01em; }
.cookie-popup__card p { font-size: 0.9rem; color: var(--muted); margin: 0; line-height: 1.65; }
.cookie-popup__card p a { color: var(--accent); }
.cookie-popup__actions { display: flex; gap: 12px; margin-top: 22px; }
.cookie-popup__actions button { padding: 11px 22px; border: 1px solid var(--border); border-radius: 7px; font-family: var(--mono); font-size: 13px; color: var(--fg); transition: border-color 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease); }
.cookie-popup__actions button:first-child:hover { border-color: var(--muted); }
.cookie-popup__actions button:last-child { background: var(--accent); color: #06210E; border-color: var(--accent); font-weight: 600; }
.cookie-popup__actions button:last-child:hover { background: var(--accent-bright); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.65s var(--ease), transform 0.65s var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* utility */
.center { text-align: center; }
.mt-s { margin-top: 40px; }
.mt-m { margin-top: 60px; }
.divider-note { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.04em; }
