/* =========================================================
   GR DIGITAL STUDIO — Redesign
   Dirección: Terminal / Matrix — phosphor green on deep black
   ========================================================= */

:root {
  --bg: #060504;
  --bg-2: #0B0907;
  --panel: #120E0A;
  --panel-2: #18130E;
  --line: #241C14;
  --line-bright: #3A2D1E;
  --text: #F2E8DD;
  --text-dim: #B8A48E;
  --text-mute: #6F5E4C;
  --phos: #F57C2B;       /* GR brand orange */
  --phos-dim: #D96518;
  --phos-glow: rgba(245, 124, 43, 0.28);
  --phos-soft: rgba(245, 124, 43, 0.08);
  --amber: #FFB648;
  --red: #FF5C4A;

  --mono: 'Geist Mono', 'JetBrains Mono', 'SF Mono', Menlo, monospace;
  --sans: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', sans-serif;
  --serif: 'Instrument Serif', 'Times New Roman', serif;

  --max: 1280px;
  --gutter: clamp(20px, 4vw, 48px);

  --radius-sm: 4px;
  --radius: 6px;
  --radius-lg: 10px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body { overflow-x: hidden; }
a { color: var(--phos); text-decoration: none; }
a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

/* Selection */
::selection { background: var(--phos); color: #000; }

/* Scanlines overlay (subtle) */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0px,
    transparent 2px,
    rgba(245, 124, 43, 0.012) 3px,
    transparent 4px
  );
  z-index: 9998;
  opacity: var(--scanlines-opacity, 1);
}

/* Grain / crt curvature hint */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at center, transparent 60%, rgba(0,0,0,0.4) 100%);
  z-index: 9997;
  opacity: var(--vignette-opacity, 1);
}

/* ---------- Container ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }

section { position: relative; padding: clamp(64px, 10vw, 140px) 0; }
.section-head { display: flex; gap: 24px; align-items: baseline; margin-bottom: 48px; }
.section-num { font-family: var(--mono); font-size: 12px; color: var(--phos); letter-spacing: 0.08em; white-space: nowrap; }
.section-num::before { content: "■ "; margin-right: 6px; }
.section-title { font-family: var(--sans); font-weight: 500; font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.02em; margin: 0; line-height: 1; color: var(--text); text-wrap: balance; }
.section-title em { color: var(--phos); font-style: normal; }
.section-sub { color: var(--text-dim); font-size: 17px; max-width: 640px; margin: 16px 0 0; text-wrap: pretty; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 13px; font-weight: 500; letter-spacing: 0.02em; padding: 14px 20px; border-radius: var(--radius); border: 1px solid transparent; transition: all 0.15s ease; cursor: pointer; text-decoration: none !important; }
.btn::before { content: ">"; color: inherit; opacity: 0.6; }
.btn-primary { background: var(--phos); color: #000; border-color: var(--phos); box-shadow: 0 0 0 0 var(--phos-glow); }
.btn-primary:hover { box-shadow: 0 0 24px 2px var(--phos-glow); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-bright); }
.btn-ghost:hover { border-color: var(--phos); color: var(--phos); }
.btn-sm { padding: 10px 14px; font-size: 12px; }
.btn-lg { padding: 18px 26px; font-size: 14px; }

/* ---------- Terminal block ---------- */
.term { background: var(--bg-2); border: 1px solid var(--line-bright); border-radius: var(--radius-lg); font-family: var(--mono); font-size: 13px; color: var(--text); overflow: hidden; box-shadow: 0 0 0 1px var(--phos-soft), 0 40px 80px -20px rgba(0,0,0,0.6); }
.term-bar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-size: 11px; color: var(--text-mute); }
.term-dots { display: flex; gap: 6px; }
.term-dots span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-bright); }
.term-dots span:nth-child(1) { background: #FF5F57; }
.term-dots span:nth-child(2) { background: #FEBC2E; }
.term-dots span:nth-child(3) { background: #28C840; }
.term-title { flex: 1; text-align: center; font-family: var(--mono); }
.term-body { padding: 20px; line-height: 1.7; }
.term-body .prompt { color: var(--phos); }
.term-body .muted { color: var(--text-mute); }
.term-body .ok { color: var(--phos); }
.term-body .warn { color: var(--amber); }
.term-body .err { color: var(--red); }
.term-body .cursor { display: inline-block; width: 8px; height: 15px; background: var(--phos); vertical-align: text-bottom; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Top Nav ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(5, 7, 6, 0.75); backdrop-filter: blur(20px) saturate(1.2); -webkit-backdrop-filter: blur(20px) saturate(1.2); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: -0.01em; color: var(--text); }
.logo-mark { width: 28px; height: 28px; border: 1px solid var(--phos); border-radius: 5px; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700; color: var(--phos); background: var(--phos-soft); box-shadow: 0 0 16px var(--phos-glow); }
.logo-mark::after { content: ""; position: absolute; }
.logo-img {
  height: 40px;
  width: auto;
  display: block;
  mix-blend-mode: screen;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 8px var(--phos-glow));
}
.logo-img-lg {
  height: 48px;
  mix-blend-mode: screen;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: drop-shadow(0 0 10px var(--phos-glow));
}
.nav-links { display: flex; gap: 28px; }
.nav-links a { font-family: var(--mono); font-size: 12px; color: var(--text-dim); letter-spacing: 0.02em; }
.nav-links a:hover { color: var(--phos); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.status-dot { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; color: var(--text-mute); }
.status-dot::before { content: ""; width: 8px; height: 8px; background: var(--phos); border-radius: 50%; box-shadow: 0 0 8px var(--phos); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

/* ---- Hamburger button ---- */
.nav-burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  padding: 6px;
  cursor: pointer;
  z-index: 60;
}
.nav-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}
.nav-burger--open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger--open span:nth-child(2) { opacity: 0; }
.nav-burger--open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .nav-burger  { display: flex; }
  .status-dot  { display: none; }

  /* Desktop CTA button hidden — the one inside the drawer takes over */
  .nav-cta > .btn { display: none; }

  .nav-links {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: rgba(6, 5, 4, 0.97);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    padding: 16px var(--gutter) 24px;
    gap: 0;
    z-index: 49;
  }
  .nav-links--open { display: flex; }
  .nav-links a {
    font-size: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
    color: var(--text-dim);
  }
  .nav-links a:last-child { border-bottom: none; }
  .nav-links-cta {
    margin-top: 16px;
    justify-content: center;
    border-bottom: none !important;
  }
}

/* ---------- Hero ---------- */
.hero { padding-top: clamp(60px, 8vw, 100px); padding-bottom: clamp(60px, 8vw, 120px); position: relative; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
.hero-eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--phos); padding: 6px 12px; border: 1px solid var(--line-bright); border-radius: 20px; margin-bottom: 28px; background: var(--phos-soft); }
.hero-eyebrow::before { content: "●"; animation: pulse-dot 2s infinite; }
.hero h1 { font-family: var(--sans); font-weight: 500; font-size: clamp(40px, 6.5vw, 84px); line-height: 0.98; letter-spacing: -0.03em; margin: 0 0 28px; text-wrap: balance; }
.hero h1 em { color: var(--phos); font-style: normal; position: relative; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--phos); opacity: 0.3; }
.hero-sub { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-dim); max-width: 560px; line-height: 1.55; margin: 0 0 32px; text-wrap: pretty; }
.hero-ctas { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 28px; }
.hero-trust { font-family: var(--mono); font-size: 12px; color: var(--text-mute); letter-spacing: 0.02em; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-trust .check { color: var(--phos); }

/* Hero background grid */
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--phos-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--phos-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center top, black 10%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center top, black 10%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute;
  top: -200px; left: 50%; transform: translateX(-50%);
  width: 800px; height: 400px;
  background: radial-gradient(ellipse, var(--phos-glow) 0%, transparent 60%);
  pointer-events: none; z-index: -1;
}

@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

/* ---------- Chatbot Demo ---------- */
.chatbot { background: var(--panel); border: 1px solid var(--line-bright); border-radius: var(--radius-lg); overflow: hidden; box-shadow: 0 0 0 1px var(--phos-soft), 0 40px 80px -20px rgba(0,0,0,0.7); height: 520px; display: flex; flex-direction: column; }
.chatbot-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--panel-2); border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 12px; }
.chatbot-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--phos); color: #000; display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 12px var(--phos-glow); }
.chatbot-name { color: var(--text); font-weight: 500; }
.chatbot-status { color: var(--text-mute); font-size: 11px; margin-top: 1px; }
.chatbot-status::before { content: "● "; color: var(--phos); }
.chatbot-body { flex: 1; padding: 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, var(--panel) 0%, var(--bg-2) 100%); }
.chat-msg { max-width: 82%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.5; }
.chat-msg.bot { background: var(--panel-2); border: 1px solid var(--line); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.chat-msg.user { background: var(--phos); color: #000; align-self: flex-end; border-bottom-right-radius: 4px; font-weight: 500; }
.chat-msg.typing { background: var(--panel-2); border: 1px solid var(--line); display: flex; gap: 5px; padding: 14px 16px; align-items: center; }
.chat-msg.typing span { width: 6px; height: 6px; background: var(--text-mute); border-radius: 50%; animation: typing 1.2s infinite; }
.chat-msg.typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-msg.typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
.chatbot-input { display: flex; padding: 14px; gap: 10px; border-top: 1px solid var(--line); background: var(--panel-2); }
.chatbot-input input { flex: 1; background: var(--bg); border: 1px solid var(--line); color: var(--text); padding: 10px 14px; border-radius: var(--radius); font-family: var(--sans); font-size: 14px; outline: none; }
.chatbot-input input:focus { border-color: var(--phos); }
.chatbot-input button { background: var(--phos); color: #000; border: none; padding: 10px 16px; border-radius: var(--radius); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.chatbot-caption { font-family: var(--mono); font-size: 11px; color: var(--text-mute); text-align: center; padding: 10px; border-top: 1px solid var(--line); background: var(--panel-2); letter-spacing: 0.04em; }

/* ---------- Logos strip (social proof light) ---------- */
.logos-strip { padding: 40px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-2); }
.logos-head { font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.1em; text-transform: uppercase; text-align: center; margin-bottom: 24px; }
.logos-row { display: flex; gap: 48px; justify-content: center; flex-wrap: wrap; align-items: center; }
.logos-row .logo-item { font-family: var(--mono); font-size: 16px; color: var(--text-dim); letter-spacing: -0.01em; opacity: 0.7; display: flex; align-items: center; gap: 8px; }
.logos-row .logo-item:hover { opacity: 1; color: var(--phos); }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.service-card { background: var(--bg); padding: 40px 32px; min-height: 360px; display: flex; flex-direction: column; justify-content: space-between; transition: background 0.2s; position: relative; }
.service-card:hover { background: var(--panel); }
.service-card:hover .service-arrow { color: var(--phos); transform: translate(4px, -4px); }
.service-num { font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; margin-bottom: 20px; }
.service-title { font-family: var(--sans); font-weight: 500; font-size: 28px; letter-spacing: -0.02em; margin: 0 0 14px; line-height: 1.05; }
.service-desc { color: var(--text-dim); font-size: 15px; line-height: 1.55; margin: 0 0 20px; }
.service-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.service-tag { font-family: var(--mono); font-size: 10px; color: var(--text-mute); border: 1px solid var(--line); padding: 4px 8px; border-radius: 3px; letter-spacing: 0.04em; }
.service-arrow { align-self: flex-end; font-family: var(--mono); font-size: 20px; color: var(--text-mute); transition: all 0.2s; }

@media (max-width: 900px) {
  .services-grid { grid-template-columns: 1fr; }
}

/* ---------- Process ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.process-step { position: relative; padding: 28px 24px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); }
.process-step::before {
  content: "";
  position: absolute; top: 50%; right: -16px;
  width: 16px; height: 1px; background: var(--line-bright);
}
.process-step:last-child::before { display: none; }
.process-day { font-family: var(--mono); font-size: 11px; color: var(--phos); margin-bottom: 14px; letter-spacing: 0.08em; }
.process-title { font-size: 19px; font-weight: 600; margin: 0 0 10px; letter-spacing: -0.01em; }
.process-desc { font-size: 14px; color: var(--text-dim); margin: 0; line-height: 1.5; }

@media (max-width: 900px) {
  .process { grid-template-columns: 1fr 1fr; }
  .process-step::before { display: none; }
}
@media (max-width: 560px) {
  .process { grid-template-columns: 1fr; }
}

/* ---------- Compare before/after ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.compare-col { background: var(--bg); padding: 40px 32px; }
.compare-col.before { background: var(--bg-2); }
.compare-col.after { background: linear-gradient(180deg, var(--phos-soft) 0%, transparent 100%); }
.compare-tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 10px; border-radius: 4px; display: inline-block; margin-bottom: 16px; }
.compare-col.before .compare-tag { background: rgba(255,92,74,0.1); color: var(--red); border: 1px solid rgba(255,92,74,0.25); }
.compare-col.after .compare-tag { background: var(--phos-soft); color: var(--phos); border: 1px solid var(--phos-glow); }
.compare-col h3 { font-family: var(--sans); font-size: 24px; font-weight: 500; letter-spacing: -0.01em; margin: 0 0 20px; }
.compare-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.compare-item:last-child { border-bottom: none; }
.compare-item .ico { font-family: var(--mono); flex-shrink: 0; }
.compare-col.before .ico { color: var(--red); }
.compare-col.after .ico { color: var(--phos); }
.compare-item .txt { font-size: 14px; color: var(--text-dim); line-height: 1.5; }
.compare-col.after .txt { color: var(--text); }

@media (max-width: 760px) {
  .compare-grid { grid-template-columns: 1fr; }
}

/* ---------- ROI Calc ---------- */
.roi-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: stretch; }
.roi-inputs { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; }
.roi-inputs h3 { margin: 0 0 20px; font-family: var(--mono); font-size: 13px; color: var(--phos); letter-spacing: 0.08em; text-transform: uppercase; }
.roi-field { margin-bottom: 22px; }
.roi-field label { display: block; font-size: 13px; color: var(--text-dim); margin-bottom: 10px; font-family: var(--mono); letter-spacing: 0.02em; }
.roi-field .slider-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.roi-field input[type="range"] { width: 100%; accent-color: var(--phos); }
.roi-field .val { font-family: var(--mono); font-size: 18px; color: var(--phos); font-weight: 500; min-width: 80px; text-align: right; }
.roi-results { background: linear-gradient(160deg, #0F1511 0%, #0A0D0B 100%); border: 1px solid var(--phos); border-radius: var(--radius-lg); padding: 32px; position: relative; overflow: hidden; box-shadow: 0 0 40px var(--phos-glow); }
.roi-results::before { content: ""; position: absolute; top: -50%; right: -20%; width: 400px; height: 400px; background: radial-gradient(circle, var(--phos-glow), transparent 60%); pointer-events: none; }
.roi-results h3 { margin: 0 0 10px; font-family: var(--mono); font-size: 13px; color: var(--phos); letter-spacing: 0.08em; text-transform: uppercase; position: relative; }
.roi-results .tag { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-bottom: 20px; position: relative; }
.roi-big { font-family: var(--sans); font-weight: 500; font-size: clamp(52px, 7vw, 88px); line-height: 1; color: var(--phos); letter-spacing: -0.03em; margin: 20px 0 6px; position: relative; text-shadow: 0 0 40px var(--phos-glow); }
.roi-big .unit { font-size: 0.4em; color: var(--text); opacity: 0.7; margin-left: 6px; letter-spacing: 0; }
.roi-sub { color: var(--text-dim); font-size: 14px; position: relative; margin-bottom: 28px; }
.roi-breakdown { font-family: var(--mono); font-size: 12px; color: var(--text-dim); line-height: 1.8; border-top: 1px dashed var(--line-bright); padding-top: 20px; position: relative; }
.roi-breakdown strong { color: var(--text); }

@media (max-width: 900px) { .roi-wrap { grid-template-columns: 1fr; } }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.testi-stars { color: var(--phos); font-family: var(--mono); font-size: 14px; letter-spacing: 2px; }
.testi-quote { font-family: var(--serif); font-size: 22px; line-height: 1.35; font-style: italic; margin: 0; color: var(--text); text-wrap: pretty; flex: 1; }
.testi-author { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid var(--line); }
.testi-author .avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--phos-soft); border: 1px solid var(--line-bright); display: grid; place-items: center; font-family: var(--mono); font-weight: 600; color: var(--phos); font-size: 14px; }
.testi-author .who { font-size: 14px; font-weight: 500; margin: 0; }
.testi-author .where { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin: 0; }

@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* ---------- Stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 64px 0; }
.stat { padding: 32px; border-right: 1px solid var(--line); text-align: left; }
.stat:last-child { border-right: none; }
.stat .big { font-family: var(--sans); font-weight: 500; font-size: clamp(40px, 5vw, 56px); line-height: 1; color: var(--phos); letter-spacing: -0.02em; }
.stat .lbl { font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.06em; text-transform: uppercase; margin-top: 10px; }

@media (max-width: 760px) { .stats-strip { grid-template-columns: 1fr 1fr; } .stat { border-bottom: 1px solid var(--line); } .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; } .stat:nth-child(2n) { border-right: none; } }

/* ---------- Lead magnet ---------- */
.leadmagnet { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; background: var(--panel); border: 1px solid var(--line-bright); border-radius: var(--radius-lg); padding: 48px; position: relative; overflow: hidden; }
.leadmagnet::before { content: ""; position: absolute; top: -50%; right: -10%; width: 500px; height: 500px; background: radial-gradient(circle, var(--phos-glow), transparent 60%); pointer-events: none; }
.leadmagnet-badge { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--phos); background: var(--phos-soft); padding: 4px 10px; border: 1px solid var(--phos-glow); border-radius: 4px; letter-spacing: 0.06em; margin-bottom: 20px; }
.leadmagnet h3 { font-family: var(--sans); font-size: clamp(28px, 3.5vw, 42px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.05; margin: 0 0 16px; text-wrap: balance; }
.leadmagnet p { color: var(--text-dim); max-width: 520px; margin: 0 0 24px; }
.leadmagnet-form { display: flex; gap: 10px; max-width: 480px; }
.leadmagnet-form input { flex: 1; background: var(--bg); border: 1px solid var(--line-bright); color: var(--text); padding: 14px 16px; border-radius: var(--radius); font-family: var(--sans); font-size: 14px; outline: none; }
.leadmagnet-form input:focus { border-color: var(--phos); }
.leadmagnet-micro { font-family: var(--mono); font-size: 11px; color: var(--text-mute); margin-top: 12px; letter-spacing: 0.02em; }
.leadmagnet-file { background: var(--bg-2); border: 1px solid var(--line-bright); border-radius: var(--radius); padding: 24px; position: relative; z-index: 1; }
.leadmagnet-file-head { display: flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12px; color: var(--text-mute); margin-bottom: 14px; }
.leadmagnet-file-head .ext { background: var(--phos); color: #000; padding: 2px 6px; border-radius: 3px; font-weight: 600; letter-spacing: 0.04em; }
.leadmagnet-file pre { font-family: var(--mono); font-size: 11px; color: var(--text-dim); line-height: 1.6; margin: 0; white-space: pre-wrap; }
.leadmagnet-file .k { color: var(--phos); }
.leadmagnet-file .s { color: var(--amber); }

@media (max-width: 900px) { .leadmagnet { grid-template-columns: 1fr; padding: 32px; gap: 28px; } .leadmagnet-form { flex-direction: column; } }

/* ---------- About (founder-less) ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-mark { width: 100%; aspect-ratio: 16/10; background: var(--panel); border: 1px solid var(--line-bright); border-radius: var(--radius-lg); display: grid; place-items: center; position: relative; overflow: hidden; }
.about-mark::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--phos-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--phos-soft) 1px, transparent 1px);
  background-size: 24px 24px;
  opacity: 0.6;
}
.about-logo { position: relative; z-index: 2; width: 60%; max-width: 360px; height: auto; filter: drop-shadow(0 0 40px var(--phos-glow)); }
.about-mono { font-family: var(--sans); font-size: clamp(120px, 18vw, 220px); font-weight: 300; color: var(--phos); letter-spacing: -0.08em; line-height: 1; position: relative; text-shadow: 0 0 60px var(--phos-glow); }
.about-mono span { color: var(--text); }
.about-text h3 { font-family: var(--sans); font-size: clamp(28px, 3vw, 38px); font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; margin: 0 0 20px; }
.about-text p { color: var(--text-dim); font-size: 16px; line-height: 1.6; margin: 0 0 16px; max-width: 520px; }
.about-list { list-style: none; padding: 0; margin: 24px 0 0; }
.about-list li { padding: 12px 0; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 13px; color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.about-list li:last-child { border-bottom: 1px solid var(--line); }
.about-list .lbl { color: var(--text-mute); }
.about-list .val { color: var(--phos); }

@media (max-width: 760px) { .about { grid-template-columns: 1fr; } }

/* ---------- Final CTA ---------- */
.final-cta { background: var(--panel); border: 1px solid var(--line-bright); border-radius: var(--radius-lg); padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.final-cta::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--phos-soft) 1px, transparent 1px),
    linear-gradient(to bottom, var(--phos-soft) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 20%, transparent 75%);
  pointer-events: none;
}
.final-cta h2 { position: relative; font-family: var(--sans); font-size: clamp(36px, 5vw, 60px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin: 0 0 20px; text-wrap: balance; }
.final-cta h2 em { color: var(--phos); font-style: normal; }
.final-cta p { position: relative; color: var(--text-dim); font-size: 18px; max-width: 520px; margin: 0 auto 32px; }
.final-form { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 560px; margin: 0 auto 16px; }
.final-form input, .final-form textarea { background: var(--bg); border: 1px solid var(--line-bright); color: var(--text); padding: 14px 16px; border-radius: var(--radius); font-family: var(--sans); font-size: 14px; outline: none; width: 100%; }
.final-form textarea { grid-column: 1 / -1; resize: vertical; min-height: 80px; font-family: var(--sans); }
.final-form input:focus, .final-form textarea:focus { border-color: var(--phos); }
.final-form button { grid-column: 1 / -1; }
.final-micro { position: relative; font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.04em; }

@media (max-width: 560px) { .final-form { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 80px; }
.footer-inner { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { color: var(--text-dim); font-size: 13px; max-width: 280px; margin: 16px 0 0; line-height: 1.55; }
.footer-col h4 { font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 16px; }
.footer-col a { display: block; color: var(--text-dim); font-size: 14px; padding: 6px 0; }
.footer-col a:hover { color: var(--phos); text-decoration: none; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 11px; color: var(--text-mute); letter-spacing: 0.04em; }
@media (max-width: 760px) { .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; } .footer-bottom { flex-direction: column; gap: 12px; } }

/* ---- Error message inside the CTA form grid ---- */
.final-form-error {
  grid-column: 1 / -1;
  color: var(--red);
  font-family: var(--mono);
  font-size: 13px;
  text-align: left;
}

/* ---- Chatbot height on mobile ---- */
@media (max-width: 960px) { .chatbot { height: 400px; } }
@media (max-width: 560px) { .chatbot { height: 340px; } }

/* ---- Footer single column on very small screens ---- */
@media (max-width: 480px) {
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
}

/* ---- Section head stack on small screens ---- */
@media (max-width: 480px) {
  .section-head { flex-direction: column; gap: 6px; }
}

/* Reveal animation on scroll */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
