/* =========================================================================
   PALTA DUO — CSS CONSOLIDADO (Vanilla)
   Todos los módulos CSS del proyecto React reunidos en un solo archivo.
   ========================================================================= */

/* ==================== RESET ==================== */
* { box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  margin:0;
  overflow-x:hidden;
  text-rendering:optimizeLegibility;
}
a { color:inherit; text-decoration:none; }
button,input,textarea { font:inherit; }
svg { display:block; max-width:100%; }
:focus-visible { outline:3px solid rgba(200,216,79,.78); outline-offset:4px; }
h1,h2,h3,p { margin-top:0; }


/* ==================== TOKENS ==================== */
:root {
  --mineral: #F4F2EA;
  --cream: #FFFDF6;
  --stone: #E5E2D8;
  --charcoal: #25282D;
  --muted: #697078;

  --avocado-light: #C8D84F;
  --avocado-mid: #6F8E2F;
  --avocado-dark: #314722;
  --sage: #DDE8B4;
  --mist: #EEF3DC;

  --seed-amber: #D99A32;
  --seed-copper: #B87324;

  --container: 1480px;

  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  --display: Georgia, "Times New Roman", ui-serif, serif;

  --shadow: 0 26px 72px rgba(37,40,45,.095);
  --shadow-soft: 0 18px 42px rgba(37,40,45,.07);
}


/* ==================== THEMES ==================== */
:root {
  --bg: var(--mineral);
  --bg-deep: #EBEBE3;
  --surface: rgba(255,253,246,.76);
  --surface-solid: #FFFDF6;
  --surface-elevated: rgba(255,253,246,.94);

  --text: var(--charcoal);
  --text-soft: #3f444b;

  --line: rgba(37,40,45,.12);
  --line-green: rgba(111,142,47,.28);
}

body[data-theme="dark"] {
  --bg: #111518;
  --bg-deep: #171C1F;
  --surface: #1D2426;
  --surface-solid: #1D2426;
  --surface-elevated: #263035;

  --text: #F4F2EA;
  --text-soft: #ECEDE6;
  --muted: #C7CCC3;

  --line: #384246;
  --line-green: rgba(200,216,79,.28);
  --avocado-mid: #8FAE3E;

  --shadow: 0 30px 90px rgba(0,0,0,.34);
  --shadow-soft: 0 0 40px rgba(200,216,79,0.05);
}

body {
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(111,142,47,.12), transparent 28%),
    radial-gradient(circle at 88% 8%, rgba(200,216,79,.24), transparent 30%),
    linear-gradient(180deg, var(--bg), var(--bg-deep));
}

body[data-theme="dark"] {
  background:
    radial-gradient(circle at 22% 12%, rgba(200,216,79,.055), transparent 28%),
    radial-gradient(circle at 78% 18%, rgba(143,174,62,.04), transparent 26%),
    linear-gradient(180deg, #111518 0%, #171C1F 54%, #101315 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(49,71,34,.24) 0.65px, transparent 1.2px);
  background-size: 26px 26px;
  opacity: .14;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 82%, transparent);
}

body[data-theme="dark"]::before {
  background-image: radial-gradient(circle, rgba(200,216,79,.20) 0.65px, transparent 1.2px);
  opacity: .06;
}


/* ==================== LAYOUT ==================== */
.container {
  width: min(var(--container), calc(100% - 112px));
  margin-inline: auto;
}

.section {
  padding: 92px 0;
  position: relative;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(290px, .9fr) minmax(290px, 1fr);
  gap: 38px;
  align-items: end;
  margin-bottom: 36px;
}

.section-head .eyebrow {
  margin-bottom: 16px;
}

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

.split {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 26px;
  align-items: stretch;
}

.faq-contact {
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  gap: 28px;
  align-items: start;
}


/* ==================== COMPONENTS ==================== */
h1 {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(4.2rem, 5.1vw, 6rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 0;
  text-wrap: balance;
  max-width: 670px;
}
h1 span { color: var(--avocado-mid); }
body[data-theme="dark"] h1 span { color: var(--avocado-light); text-shadow: 0 0 32px rgba(200,216,79,.18); }

h2 { font-size: clamp(2.35rem, 3.6vw, 4rem); line-height: 1.03; letter-spacing: -.06em; margin: 0; font-weight: 780; text-wrap: balance; }
h3 { font-size: 1.24rem; line-height: 1.15; letter-spacing: -.035em; margin: 0 0 10px; font-weight: 800; }

.lead, .sub { color: var(--muted); line-height: 1.72; font-size: clamp(1rem, 1.1vw, 1.14rem); margin-bottom: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--avocado-mid);
  font-size: .78rem; font-weight: 900; text-transform: uppercase; letter-spacing: .19em;
  margin-bottom: 21px;
}
body[data-theme="dark"] .eyebrow { color: var(--avocado-light); }
.eyebrow::before { content:"✦"; color: var(--avocado-light); font-size: 1rem; line-height: 1; text-shadow: 0 0 18px rgba(200,216,79,.36); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 13px 24px; border-radius: 17px;
  border: 1px solid var(--line); font-weight: 830; cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease, background .22s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(135deg, var(--avocado-mid), #5c7827);
  color: #FFFDF6; border-color: rgba(111,142,47,.15);
  box-shadow: 0 16px 36px rgba(111,142,47,.20);
}
body[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #C8D84F, #8FAE3E);
  color: #111518; border-color: rgba(200,216,79,.32);
  box-shadow: 0 18px 48px rgba(200,216,79,.18);
}
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line-green); backdrop-filter: blur(16px); }

.icon { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 15px; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(255,253,246,.68); color: var(--text-soft); font-weight: 700; font-size: .92rem;
  backdrop-filter: blur(14px);
}
body[data-theme="dark"] .chip { background: rgba(29,36,38,.62); color: var(--muted); }
.chip::before { content:""; width: 9px; height: 9px; border-radius: 999px; background: var(--avocado-light); box-shadow: 0 0 0 7px rgba(200,216,79,.13); }

.card {
  position: relative; padding: 28px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); backdrop-filter: blur(16px); box-shadow: var(--shadow-soft); overflow: hidden;
  transition: transform .24s ease, border-color .24s ease, box-shadow .24s ease;
}
.card:hover, .card.live { transform: translateY(-4px); border-color: var(--line-green); box-shadow: 0 24px 58px rgba(37,40,45,.11),0 0 0 4px rgba(200,216,79,.06); }
body[data-theme="dark"] .card:hover, body[data-theme="dark"] .card.live { box-shadow: 0 24px 60px rgba(0,0,0,.26),0 0 36px rgba(200,216,79,.06); }
.card::after { content:""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 0 42%, rgba(200,216,79,.14) 50%, transparent 61%); transform: translateX(-130%); opacity: 0; pointer-events: none; }
.card:hover::after { opacity: 1; animation: scan 1.2s ease forwards; }
.card p { color: var(--muted); line-height: 1.64; margin-bottom: 0; }

.ic-lg { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 19px; background: rgba(200,216,79,.14); color: var(--avocado-mid); margin-bottom: 20px; }
body[data-theme="dark"] .ic-lg { background: rgba(200,216,79,.08); color: var(--avocado-light); }
.result { display: block; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); color: var(--avocado-mid); font-weight: 830; font-size: .92rem; }
body[data-theme="dark"] .result { color: var(--avocado-light); }

.metric { min-width: 64px; min-height: 48px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 16px; color: var(--text); font-weight: 800; background: rgba(255,253,246,.42); }
body[data-theme="dark"] .metric { background: rgba(244,242,234,.06); }

/* Form Elements */
form { display: grid; gap: 14px; margin-top: 18px; }
.field { display: grid; gap: 7px; }
label { font-weight: 830; }
input, textarea { width: 100%; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,246,.66); color: var(--text); padding: 14px 15px; outline: 0; transition: .2s ease; }
body[data-theme="dark"] input, body[data-theme="dark"] textarea { background: rgba(244,242,234,.055); }
input:focus, textarea:focus { border-color: var(--line-green); box-shadow: 0 0 0 5px rgba(200,216,79,.12); }
textarea { min-height: 122px; resize: vertical; }


/* ==================== SECTIONS ==================== */
/* Header */
.site-header { position: sticky; top: 0; z-index: 50; padding: 20px 0 12px; pointer-events: none; background: transparent; border-bottom: none; }
.nav-shell {
  pointer-events: auto; width: min(1480px, calc(100% - 112px)); margin-inline: auto; min-height: 78px; padding: 0 18px 0 24px;
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  border: 1px solid var(--line); border-radius: 28px; background: rgba(255,253,246,.72); backdrop-filter: blur(22px); box-shadow: 0 14px 44px rgba(37,40,45,.07);
}
body[data-theme="dark"] .nav-shell { background: rgba(17,21,24,.78); box-shadow: 0 18px 50px rgba(0,0,0,.32); border-color: rgba(244,242,234,.10); }

.brand { display: flex; align-items: center; gap: 13px; min-width: 245px; }
.brand-mark { width: 52px; height: 52px; filter: drop-shadow(0 10px 20px rgba(49,71,34,.16)); }
body[data-theme="dark"] .brand-mark { filter: drop-shadow(0 0 18px rgba(200,216,79,.17)); }

.brand strong { display: block; font-size: 1.35rem; letter-spacing: -.04em; line-height: 1; }
.brand strong span { color: var(--avocado-mid); }
body[data-theme="dark"] .brand strong span { color: var(--avocado-light); }
.brand small { display: block; margin-top: 5px; color: var(--muted); font-size: .74rem; letter-spacing: .02em; }

.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.1vw, 42px); }
.nav-links a:not(.nav-cta) { font-size: .96rem; color: var(--text-soft); font-weight: 700; text-transform: none; letter-spacing: normal; transition: color .2s ease; }
.nav-links a:not(.nav-cta):hover { color: var(--avocado-mid); }
body[data-theme="dark"] .nav-links a:not(.nav-cta):hover { color: var(--avocado-light); }

.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-cta { min-height: 47px; border-radius: 999px; padding: 12px 24px; white-space: nowrap; font-size: 1rem; }

.toolbtn {
  width: 46px; height: 46px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text); cursor: pointer; font-weight: 900;
}
.menu-btn { display: none; }

/* Hero Section */
.hero { position: relative; min-height: calc(100vh - 110px); display: flex; align-items: center; padding: 72px 0 86px; overflow: hidden; background: transparent; }
.hero::before {
  display: block;
  content: ""; position: absolute; inset: -180px -12% auto -12%; height: 780px; z-index: -1; pointer-events: none;
  background: radial-gradient(circle at 18% 28%, rgba(200,216,79,.18), transparent 30%), radial-gradient(circle at 52% 12%, rgba(221,232,180,.34), transparent 32%), radial-gradient(circle at 86% 42%, rgba(111,142,47,.085), transparent 30%);
  filter: blur(14px);
}
body[data-theme="dark"] .hero::before { background: radial-gradient(circle at 58% 42%, rgba(200,216,79,.08), transparent 32%), radial-gradient(circle at 82% 50%, rgba(217,154,50,.035), transparent 22%); filter: blur(18px); }
.hero-shell { width: min(1480px, calc(100% - 112px)); margin-inline: auto; display: grid; grid-template-columns: minmax(460px,.88fr) minmax(540px,1fr); gap: clamp(56px, 6vw, 96px); align-items: center; }
.hero-copy { max-width: 645px; justify-self: start; }
.hero-copy .lead { max-width: 610px; margin-top: 26px; font-size: clamp(1.06rem, 1.28vw, 1.24rem); }
.actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 32px; }
.chips { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }

/* Hero Visual */
.hero-visual { position: relative; width: 100%; max-width: 720px; min-height: 580px; justify-self: end; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; inset: 2% -2% 0 -2%; border-radius: 38px; background: radial-gradient(circle at 50% 50%, rgba(200,216,79,.13), transparent 32%); filter: blur(10px); z-index: -1; }
.orbital { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.orbital .ring { fill: none; stroke: rgba(111,142,47,.16); stroke-width: 1; }
.orbital .dash { fill: none; stroke: rgba(111,142,47,.24); stroke-width: 1.15; stroke-dasharray: 6 9; animation: dash 20s linear infinite; }
.orbital .line { stroke: rgba(111,142,47,.34); stroke-width: 1.2; }
.orbital .dot { fill: var(--avocado-light); filter: drop-shadow(0 0 12px rgba(200,216,79,.48)); animation: pulse 4s ease-in-out infinite; }
.orbital .amber { fill: var(--seed-amber); filter: drop-shadow(0 0 14px rgba(217,154,50,.54)); }
.orbital .packet { fill: var(--avocado-light); filter: drop-shadow(0 0 12px rgba(200,216,79,.6)); }
body[data-theme="dark"] .orbital .ring { stroke: rgba(244,242,234,.10); }
body[data-theme="dark"] .orbital .dash { stroke: rgba(200,216,79,.20); }
body[data-theme="dark"] .orbital .line { stroke: rgba(200,216,79,.32); }

.center-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 280px; min-height: 220px; border-radius: 32px; display: grid; place-items: center; text-align: center; padding: 28px; border: 1px solid rgba(111,142,47,.36); background: rgba(255,253,246,.74); backdrop-filter: blur(18px); box-shadow: 0 28px 70px rgba(37,40,45,.10), inset 0 1px 0 rgba(255,255,255,.64); z-index: 2; animation: floatCard 6s ease-in-out infinite; }
body[data-theme="dark"] .center-card { background: linear-gradient(145deg, #1D2426, #263035); border-color: rgba(200,216,79,.28); box-shadow: 0 0 42px rgba(200,216,79,.10), 0 28px 80px rgba(0,0,0,.32); }
.center-card .brand-mark { width: 96px; height: 96px; margin-inline: auto; margin-bottom: 16px; }
.center-card strong { display: block; font-weight: 800; font-size: 1.45rem; letter-spacing: -.04em; }
.center-card span { display: block; margin-top: 8px; color: var(--muted); font-size: .88rem; font-weight: 700; }

.node { position: absolute; z-index: 3; width: 165px; min-height: 135px; padding: 20px 16px; display: grid; place-items: center; text-align: center; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,253,246,.72); backdrop-filter: blur(16px); box-shadow: 0 16px 38px rgba(37,40,45,.07); transition: transform .4s cubic-bezier(0.4, 0, 0.2, 1), border-color .4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow .4s cubic-bezier(0.4, 0, 0.2, 1); }
body[data-theme="dark"] .node { background: rgba(29,36,38,.82); border-color: rgba(244,242,234,.11); box-shadow: 0 16px 44px rgba(0,0,0,.24); }

.node:hover, .node.is-active { transform: translateY(-4px) scale(1.02); border-color: var(--line-green); box-shadow: 0 24px 60px rgba(143,174,62,.2); z-index: 4; }
.node .mini-ic { width: 36px; height: 36px; margin-bottom: 12px; color: var(--avocado-mid); transition: color .3s; }
body[data-theme="dark"] .node .mini-ic { color: var(--avocado-light); }
body[data-theme="dark"] .node:hover, body[data-theme="dark"] .node.is-active { border-color: var(--line-green); box-shadow: 0 24px 60px rgba(200,216,79,.12); }
.node.is-active .mini-ic { color: var(--avocado-dark); filter: drop-shadow(0 0 4px rgba(200,216,79,.6)); }
body[data-theme="dark"] .node.is-active .mini-ic { color: #fff; filter: drop-shadow(0 0 6px rgba(200,216,79,.8)); }
.node b { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.node small { color: var(--muted); line-height: 1.4; font-size: .85rem; }
.node-a { left: 16px; top: 16px; animation: drift 5s ease-in-out infinite; }
.node-b { right: 12px; top: 16px; animation: drift 5.5s ease-in-out infinite reverse; }
.node-c { left: 16px; bottom: 24px; animation: drift 6s ease-in-out infinite -.5s; }
.node-d { right: 12px; bottom: 24px; animation: drift 5s ease-in-out infinite -1s reverse; }

/* Services Section */
.services { display: grid; grid-template-columns: .36fr .64fr; gap: 26px; align-items: start; }
.tabs { display: grid; gap: 11px; position: sticky; top: 112px; }
.tab { width: 100%; text-align: left; padding: 18px; border: 1px solid var(--line); border-radius: 19px; background: var(--surface); color: var(--text); font-weight: 850; cursor: pointer; transition: .22s ease; }
.tab span { display: block; color: var(--muted); font-weight: 600; font-size: .86rem; margin-top: 5px; line-height: 1.36; }
.tab:hover, .tab.active { transform: translateY(-2px); border-color: var(--line-green); background: linear-gradient(135deg, rgba(221,232,180,.38), rgba(255,253,246,.72)); }
body[data-theme="dark"] .tab:hover, body[data-theme="dark"] .tab.active { background: linear-gradient(135deg, rgba(200,216,79,.07), rgba(38,48,53,.72)); }
.tab.active::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--seed-amber); box-shadow: 0 0 14px rgba(217,154,50,.46); margin-right: 8px; }
.detail { min-height: 462px; padding: 36px; border: 1px solid var(--line); border-radius: 34px; background: radial-gradient(circle at 90% 10%, rgba(200,216,79,.12), transparent 28%), var(--surface); box-shadow: var(--shadow); display: grid; gap: 20px; position: relative; overflow: hidden; }
.detail.change { animation: svc .34s ease; }
.detail-head { display: grid; grid-template-columns: 76px 1fr; gap: 20px; align-items: start; }
.detail .ic-lg { width: 76px; height: 76px; border-radius: 24px; margin: 0; }
.detail h3 { font-size: clamp(1.9rem, 2.8vw, 3rem); line-height: 1.02; letter-spacing: -.06em; }
.mini-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mini { padding: 16px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,253,246,.45); }
body[data-theme="dark"] .mini { background: rgba(244,242,234,.045); }
.mini b { display: block; margin-bottom: 6px; }
.mini span { color: var(--muted); line-height: 1.42; font-size: .91rem; }

/* Process Section */
.method { position: relative; padding: 38px; border: 1px solid var(--line); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.steps { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: rgba(255,253,246,.70); backdrop-filter: blur(14px); transition: .25s ease; opacity: 0.65; }
body[data-theme="dark"] .step { background: rgba(38,48,53,.88); }
.step.live { transform: translateY(-4px); border-color: var(--line-green); box-shadow: 0 0 34px rgba(200,216,79,.08); opacity: 1; }
.num { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--avocado-dark); color: #FFFDF6; font-weight: 900; margin-bottom: 16px; position: relative; transition: background .5s ease, color .5s ease, box-shadow .5s ease; }
body[data-theme="dark"] .num { background: var(--avocado-light); color: #111518; }
.step.live .num { background: var(--seed-amber); color: #111518; box-shadow: 0 0 20px rgba(217,154,50,0.4); }
.step.live .num::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--seed-amber); position: absolute; right: -3px; top: -3px; box-shadow: 0 0 14px rgba(217,154,50,.48); }
.step p { color: var(--muted); line-height: 1.58; margin: 0; }

/* Process dots */
.process-dot { width: 8px; height: 8px; border-radius: 4px; background: rgba(111,142,47,0.2); cursor: pointer; transition: width .4s ease, background .4s ease, box-shadow .4s ease; }
.process-dot.active { width: 32px; background: var(--seed-amber); box-shadow: 0 0 12px rgba(217,154,50,0.4); }

/* Training Section */
.lab { min-height: 430px; border: 1px solid var(--line); border-radius: 34px; background: radial-gradient(circle at 50% 42%, rgba(200,216,79,.18), transparent 34%), linear-gradient(145deg, rgba(255,253,246,.72), rgba(244,242,234,.34)); box-shadow: var(--shadow); display: grid; place-items: center; overflow: hidden; }
body[data-theme="dark"] .lab { background: rgba(29,36,38,.82); border-color: rgba(244,242,234,.11); }
.labbox { position: relative; width: min(330px, 76%); min-height: 220px; border-radius: 38px; background: linear-gradient(135deg, var(--avocado-mid), #5c7827); display: grid; place-items: center; color: #FFFDF6; text-align: center; padding: 30px; box-shadow: 0 32px 78px rgba(111,142,47,.20); animation: labFloat 6s ease-in-out infinite; }
.labbox::before, .labbox::after { content: ""; position: absolute; border: 1px solid rgba(200,216,79,.25); border-radius: 999px; animation: lab 5.2s ease-in-out infinite; }
.labbox::before { inset: -48px; } .labbox::after { inset: -88px; animation-delay: 1.2s; }
.labbox small { display: block; color: rgba(255,253,246,.68); font-weight: 900; text-transform: uppercase; letter-spacing: .22em; margin-bottom: 18px; }
.labbox strong { font-size: 2rem; line-height: 1; letter-spacing: -.06em; }

.pill { padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9rem; font-weight: 750; box-shadow: 0 4px 12px rgba(37,40,45,0.03); transition: all 0.5s ease; }
.pill:hover { transform: translateY(-2px); border-color: var(--line-green); }
.pill.active { border-color: var(--line-green); background: rgba(200,216,79,.12); color: var(--text); transform: translateY(-3px); box-shadow: 0 8px 16px rgba(200,216,79,0.1); }
body[data-theme="dark"] .pill { background: rgba(29,36,38,0.82); border-color: rgba(244,242,234,.11); }
body[data-theme="dark"] .pill.active { background: rgba(200,216,79,.12); }

.mini-step { padding: 11px 18px; border-radius: 14px; font-size: .88rem; font-weight: 750; border: 1px solid var(--line); color: var(--muted); transition: all 0.5s ease; background: var(--surface); }
body[data-theme="dark"] .mini-step { background: rgba(38,48,53,0.88); border-color: rgba(244,242,234,0.11); }
.mini-step.active { border-color: var(--line-green); color: var(--text); background: rgba(200,216,79,.16); transform: translateY(-4px); box-shadow: 0 8px 24px rgba(200,216,79,.12); }
body[data-theme="dark"] .mini-step.active { border-color: var(--line-green); color: var(--text); background: rgba(200,216,79,.12); box-shadow: 0 8px 24px rgba(200,216,79,.08); }

/* FAQ + Contact Section */
.faq-list { display: grid; gap: 14px; }
.faq-item {
  border: 1px solid var(--line);
  border-radius: 21px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: box-shadow .35s ease, border-color .35s ease, transform .35s ease, background .35s ease;
}
.faq-item:hover {
  border-color: rgba(111,142,47,.25);
  box-shadow: 0 12px 32px rgba(37,40,45,.06);
  transform: translateY(-2px);
}
body[data-theme="dark"] .faq-item:hover {
  border-color: rgba(200,216,79,.20);
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.faq-item.open {
  border-color: var(--line-green);
  background: rgba(200,216,79,.02);
}
body[data-theme="dark"] .faq-item.open {
  background: rgba(200,216,79,.04);
}
.faq-q { width: 100%; display: flex; justify-content: space-between; gap: 18px; padding: 22px 24px; border: 0; background: transparent; color: var(--text); font-weight: 700; font-size: 1.05rem; text-align: left; cursor: pointer; transition: color .25s ease; }
.faq-item.open .faq-q { color: var(--avocado-dark); }
body[data-theme="dark"] .faq-item.open .faq-q { color: var(--avocado-light); }
.faq-q span:last-child {
  color: var(--avocado-mid);
  font-size: 1.5rem;
  line-height: 1;
  transition: transform .35s cubic-bezier(0.4, 0, 0.2, 1), color .25s ease;
}
body[data-theme="dark"] .faq-q span:last-child { color: var(--avocado-light); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .4s cubic-bezier(0.4, 0, 0.2, 1); }
.faq-a p { margin: 0; padding: 0 24px 24px; color: var(--muted); line-height: 1.65; font-size: 0.95rem; }
.faq-item.open .faq-a { max-height: 500px; }
.faq-item.open .faq-q span:last-child { transform: rotate(45deg); color: var(--text); }
.contact-card { padding: 32px; border: 1px solid var(--line); border-radius: 34px; background: var(--surface); box-shadow: var(--shadow); }
.contact-card .sub { margin-bottom: 18px; }

.note, .status { color: var(--muted); font-size: .9rem; line-height: 1.45; margin: 0; }
.status { min-height: 20px; color: var(--avocado-mid); font-weight: 800; }
body[data-theme="dark"] .status { color: var(--avocado-light); }

/* Footer */
footer { padding: 30px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 1rem; font-family: var(--font); letter-spacing: normal; text-transform: none; background: transparent; min-height: auto; display: block; }
.footer { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; align-items: center; text-align: center; width: auto; margin: 0 auto; padding: 0; }
.footlinks { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; justify-content: center; }
.footlinks a { color: var(--text); font-weight: 800; transition: none; }
.footlinks a:hover { color: var(--text); }


/* ==================== ANIMATIONS ==================== */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .65s ease, transform .65s ease;
}

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

@keyframes dash {
  to { stroke-dashoffset: -240; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: .72; }
  50% { transform: scale(1.32); opacity: 1; }
}

@keyframes scan {
  to { transform: translateX(130%); }
}

@keyframes svc {
  0% { opacity: .72; transform: translateY(0); }
  45% { opacity: .56; transform: translateY(5px); }
  100% { opacity: 1; transform: translateY(0); }
}

@keyframes track {
  0% { width: 0; opacity: .25; }
  20% { width: 22%; opacity: 1; }
  42% { width: 45%; opacity: 1; }
  64% { width: 68%; opacity: 1; }
  84%, 100% { width: 84%; opacity: .7; }
}

@keyframes lab {
  0%, 100% { transform: scale(.92); opacity: .18; }
  50% { transform: scale(1.07); opacity: .55; }
}

@keyframes iconpulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); box-shadow: 0 0 0 10px rgba(200,216,79,.12); }
}

@keyframes signal {
  0%, 100% { transform: translateX(-60%); opacity: .25; }
  50% { transform: translateX(60%); opacity: 1; }
}

@keyframes floatCard {
  0% { transform: translate(-50%, -50%) translateY(0); }
  50% { transform: translate(-50%, -50%) translateY(-10px); }
  100% { transform: translate(-50%, -50%) translateY(0); }
}

@keyframes drift {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -6px; }
}

@keyframes labFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes pulseDot {
  0%, 100% { opacity: 0.2; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

.pulse-dot {
  animation: pulseDot 2.8s ease-in-out infinite;
}


/* ==================== DARK MODE OVERRIDES ==================== */
body[data-theme="dark"] .site-header,
body[data-theme="dark"] .nav,
body[data-theme="dark"] .header,
body[data-theme="dark"] .nav-shell {
  background: rgba(17,21,24,.82) !important;
  border-color: rgba(244,242,234,.10) !important;
  box-shadow: 0 18px 50px rgba(0,0,0,.34) !important;
}

body[data-theme="dark"] .hero {
  background: transparent !important;
}

body[data-theme="dark"] .hero::before {
  background:
    radial-gradient(circle at 58% 42%, rgba(200,216,79,.07), transparent 30%),
    radial-gradient(circle at 82% 50%, rgba(217,154,50,.035), transparent 22%) !important;
  filter: blur(18px) !important;
}

body[data-theme="dark"] .card,
body[data-theme="dark"] .tab,
body[data-theme="dark"] .detail,
body[data-theme="dark"] .method,
body[data-theme="dark"] .lab,
body[data-theme="dark"] .faq-item,
body[data-theme="dark"] .contact-card,
body[data-theme="dark"] .hero-visual,
body[data-theme="dark"] .mini {
  background: rgba(29,36,38,.86) !important;
  border-color: rgba(244,242,234,.11) !important;
  box-shadow: 0 24px 60px rgba(0,0,0,.30) !important;
}

body[data-theme="dark"] .surface-elevated,
body[data-theme="dark"] .detail,
body[data-theme="dark"] .center-card,
body[data-theme="dark"] .node,
body[data-theme="dark"] .step,
body[data-theme="dark"] .labbox {
  background: linear-gradient(145deg, #1D2426, #263035) !important;
  border-color: rgba(200,216,79,.22) !important;
}

body[data-theme="dark"] h1,
body[data-theme="dark"] h2,
body[data-theme="dark"] h3 {
  color: #F4F2EA !important;
}

body[data-theme="dark"] p,
body[data-theme="dark"] .lead,
body[data-theme="dark"] .sub,
body[data-theme="dark"] .muted {
  color: #C7CCC3 !important;
}

body[data-theme="dark"] h1 span,
body[data-theme="dark"] .accent,
body[data-theme="dark"] .eyebrow,
body[data-theme="dark"] .kicker {
  color: #C8D84F !important;
}

body[data-theme="dark"] .btn-primary {
  background: linear-gradient(135deg, #C8D84F, #8FAE3E) !important;
  color: #111518 !important;
  box-shadow: 0 18px 48px rgba(200,216,79,.18) !important;
  border-color: rgba(200,216,79,.30) !important;
}

body[data-theme="dark"] .orbital .ring,
body[data-theme="dark"] .orbital .dash,
body[data-theme="dark"] .orbital .line {
  stroke: rgba(200,216,79,.24) !important;
}

body[data-theme="dark"] .node .mini-ic {
  fill: #C8D84F !important;
  color: #C8D84F !important;
  filter: drop-shadow(0 0 14px rgba(200,216,79,.32)) !important;
}

body[data-theme="dark"] .seed,
body[data-theme="dark"] .amber-dot,
body[data-theme="dark"] .step.live .num::after {
  fill: #D99A32 !important;
  background: #D99A32 !important;
  box-shadow: 0 0 14px rgba(217,154,50,.45) !important;
}


/* ==================== CIRCUIT POINTER ==================== */
.hero-circuit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.circuit-pointer {
  fill: var(--seed-amber);
  animation: twinkle-pointer 1.4s ease-in-out infinite alternate;
}

body[data-theme="dark"] .circuit-pointer {
  fill: var(--seed-amber);
  animation: twinkle-pointer-dark 1.4s ease-in-out infinite alternate;
}

@keyframes twinkle-pointer {
  0% {
    opacity: 1;
    filter:
      drop-shadow(0 0 10px rgba(217,154,50,.9))
      drop-shadow(0 0 24px rgba(217,154,50,.6));
  }
  100% {
    opacity: 0.65;
    filter:
      drop-shadow(0 0 3px rgba(217,154,50,.4))
      drop-shadow(0 0 10px rgba(217,154,50,.2));
  }
}

@keyframes twinkle-pointer-dark {
  0% {
    opacity: 1;
    filter:
      drop-shadow(0 0 12px rgba(217,154,50,1))
      drop-shadow(0 0 30px rgba(217,154,50,.7));
  }
  100% {
    opacity: 0.7;
    filter:
      drop-shadow(0 0 4px rgba(217,154,50,.5))
      drop-shadow(0 0 12px rgba(217,154,50,.3));
  }
}

.diagram-node {
  transition:
    border-color .45s ease,
    box-shadow .45s ease,
    transform .45s ease,
    background .45s ease,
    color .45s ease,
    filter .45s ease;
}

.node.diagram-node.is-lit {
  border-color: rgba(200,216,79,.60);
  box-shadow:
    0 18px 46px rgba(37,40,45,.10),
    0 0 0 1px rgba(200,216,79,.25),
    0 0 30px rgba(200,216,79,.18);
  transform: translateY(-2px);
  z-index: 5;
}

body[data-theme="dark"] .node.diagram-node.is-lit {
  border-color: rgba(200,216,79,.58) !important;
  box-shadow:
    0 22px 54px rgba(0,0,0,.38),
    0 0 0 1px rgba(200,216,79,.24),
    0 0 36px rgba(200,216,79,.20) !important;
}

.diagram-node.is-lit svg.mini-ic,
.diagram-node.is-lit .icon {
  color: #C8D84F !important;
  filter: drop-shadow(0 0 10px rgba(200,216,79,.38)) !important;
}

.node-center {
  transition: border-color .45s ease, box-shadow .45s ease;
}

.node-center.is-lit {
  border-color: rgba(200,216,79,.65);
  box-shadow:
    0 28px 70px rgba(49,71,34,.18),
    0 0 0 1px rgba(200,216,79,.30),
    0 0 46px rgba(200,216,79,.20);
}

body[data-theme="dark"] .node-center.is-lit {
  box-shadow:
    0 28px 70px rgba(0,0,0,.42),
    0 0 0 1px rgba(200,216,79,.30),
    0 0 52px rgba(200,216,79,.22) !important;
}


/* ==================== RESPONSIVE ==================== */
@media (max-width: 1240px) {
  .container,.nav-shell,.hero-shell,.hero-cards { width:min(100% - 72px, var(--container)); }
  .hero-shell { grid-template-columns:minmax(390px,.88fr) minmax(440px,1fr); gap:48px; }
  h1 { font-size:clamp(3.6rem,4.7vw,5.1rem); }
  .hero-visual { max-width:570px; min-height:500px; }
  .node { width:130px; }
}

@media (max-width: 1080px) {
  .menu-btn { display:grid; }
  .linkedin-mini { display:none; }
  .nav-shell { grid-template-columns:auto auto; }
  .nav-links {
    position:absolute; top:108px; left:36px; right:36px; display:none; flex-direction:column; align-items:stretch; gap:8px;
    padding:18px; border:1px solid var(--line); border-radius:24px; background:var(--surface-solid); box-shadow:var(--shadow);
  }
  body[data-theme="dark"] .nav-links { background:var(--surface-solid); }
  .nav-links.open { display:flex; }
  .nav-links a:not(.nav-cta) { padding:9px 4px; font-size:1rem; }
  .nav-cta { width:100%; }
  .hero { min-height:auto; padding:58px 0 70px; }
  .hero-shell,.services,.split,.faq-contact,.section-head { grid-template-columns:1fr; }
  .hero-copy { max-width:780px; }
  .hero-visual { justify-self:stretch; max-width:none; min-height:510px; }
  .hero-cards,.grid-3 { grid-template-columns:1fr; }
  .tabs { position:relative; top:auto; grid-template-columns:repeat(2,1fr); }
  .steps { grid-template-columns:repeat(2,1fr); }
  .mini-grid { grid-template-columns:1fr; }
}

@media (max-width: 720px) {
  .container,.nav-shell,.hero-shell,.hero-cards { width:calc(100% - 28px); }
  .site-header { padding:10px 0 8px; }
  .nav-shell { min-height:66px; border-radius:22px; padding:0 12px; gap:12px; }
  .brand { min-width:0; } .brand small { display:none; } .brand strong { font-size:1.05rem; } .brand-mark { width:42px; height:42px; }
  .nav-actions .nav-cta { display:none; }
  h1 { font-size:clamp(2.65rem,13vw,4rem); letter-spacing:-.055em; }
  h2 { font-size:clamp(2rem,9vw,3.1rem); }
  .hero { padding:42px 0 56px; }
  .hero-shell { gap:34px; }
  .actions { gap:10px; } .btn { min-height:48px; padding:12px 18px; }
  .hero-visual { min-height:480px; } .center-card { width:220px; min-height:165px; } .center-card .brand-mark { width:70px; height:70px; }
  .node { width:122px; min-height:104px; padding:12px 9px; } .node small { font-size:.72rem; } .node .mini-ic { width:26px; height:26px; }
  .node-a { left:4px; top:34px; } .node-b { right:4px; top:72px; } .node-c { left:4px; bottom:72px; } .node-d { right:4px; bottom:34px; }
  .section { padding:66px 0; } .tabs,.steps,.modules { grid-template-columns:1fr; } .detail,.method,.contact-card { padding:24px; } .detail-head { grid-template-columns:1fr; } .footer { align-items:center; justify-content:center; text-align:center; flex-direction:column; gap:12px; }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
  .reveal { opacity:1; transform:none; }
  .circuit-pointer { display: none; }
  .diagram-node { transition: none !important; }
  .node-center { border-color: rgba(200,216,79,.35); }
}
