/* ============================================================
   therevenue.ai — V4·P1 Foundation + Animation System
   Cream paper + ink + burnt sienna · Space Grotesk + Space Mono
   ============================================================ */

:root {
  /* === COLOR · P9 — Ascending Spark (Navy + Teal) === */
  --paper:    #E8ECEE;
  --paper-2:  #F2F5F6;
  --paper-3:  #F8FAFA;
  --ink:      #0F1F3D;
  --ink-2:    #1B2D52;
  --line-d:   #1B2D52;
  --line-l:   #C7CCD0;
  --line-l-2: #B6BCC0;
  --accent:   #22D3B8;
  --accent-d: #16997E;
  --accent-rgb: 34, 211, 184;
  --acid:     #FFD23F;

  /* === TYPE === */
  --font-sans: 'Space Grotesk', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* === LAYOUT === */
  --max:      1400px;
  --gutter:   40px;
  --nav-h:    72px;

  /* === MOTION === */
  --ease:     cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in:  cubic-bezier(0.7, 0, 0.84, 0);
}

/* === RESET ================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; color: inherit; }
::selection { background: var(--accent); color: var(--paper); }

.mono { font-family: var(--font-mono); }

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

/* === NAV =================================================== */
.nav {
  padding: 22px 0; border-bottom: 1px solid var(--line-l);
  background: rgba(232, 236, 238, 0.85);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  position: sticky; top: 0; z-index: 50;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; }

.logo { display: flex; align-items: center; }
.logo img { height: 56px; width: auto; display: block; }
.logo-dot { display: none; }

.nav-links { display: flex; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--ink);
  position: relative; padding: 4px 0; transition: color 0.2s; }
.nav-links a::after { content: ''; position: absolute; left: 0; right: 0;
  bottom: 0; height: 1.5px; background: var(--accent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }

.nav-cta { display: inline-flex; align-items: center; gap: 10px;
  background: var(--ink); color: var(--paper); padding: 12px 22px;
  font-size: 14px; font-weight: 600; letter-spacing: -0.01em;
  border: 1.5px solid var(--ink); transition: all 0.25s var(--ease); }
.nav-cta:hover { background: var(--accent); border-color: var(--accent); transform: translateY(-1px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.nav-burger span { display: block; width: 22px; height: 1.5px; background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.3s; }
.nav-burger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-mobile { display: none; position: fixed; inset: 0; z-index: 49;
  background: var(--paper); padding: calc(var(--nav-h) + 48px) 40px 48px;
  flex-direction: column; gap: 4px; }
.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 36px; font-weight: 700; letter-spacing: -0.025em;
  padding: 16px 0; border-bottom: 1px solid var(--line-l); }
.nav-mobile a:last-child { border-bottom: none; margin-top: 24px; align-self: flex-start; }

/* === ANNOUNCEMENT ========================================== */
.announce { background: var(--ink); color: var(--paper); padding: 9px 0;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: -0.01em;
  overflow: hidden; }
.announce-inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; }
.announce-tag { background: var(--accent); color: var(--paper); padding: 2px 8px;
  font-size: 10px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.announce a { color: var(--accent); font-weight: 700; display: inline-flex; gap: 4px; align-items: center;
  transition: gap 0.2s; }
.announce a:hover { gap: 8px; }

/* === BUTTONS =============================================== */
.btn { display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  transition: all 0.25s var(--ease); cursor: pointer; }
.btn-primary { background: var(--ink); color: var(--paper); padding: 16px 28px; }
.btn-primary:hover { background: var(--accent); transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(var(--accent-rgb), 0.35); }
.btn-outline { border: 1.5px solid var(--ink); padding: 14.5px 26px; color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); transform: translateY(-2px); }
.btn-accent { background: var(--accent); color: var(--paper); padding: 16px 28px; }
.btn-accent:hover { background: var(--ink); transform: translateY(-2px); }
.btn .arrow { transition: transform 0.25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* === HERO ================================================== */
.hero { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 720px;
  border-bottom: 1px solid var(--line-l); }
.hero-l { background: var(--paper); padding: 96px 56px 80px 64px;
  display: flex; flex-direction: column; justify-content: space-between;
  position: relative; overflow: hidden; }
.hero-l::before { content: '01'; position: absolute; top: 32px; right: 48px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink);
  opacity: 0.4; letter-spacing: 0.1em; }

.hero-tag { display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 12px; background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; align-self: flex-start; margin-bottom: 48px;
  text-transform: uppercase; }
.hero-tag::before { content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%;
  animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.4; transform: scale(0.85); } }

.hero h1 { font-weight: 700; font-size: 92px; line-height: 0.96;
  letter-spacing: -0.045em; margin-bottom: 32px; }
.hero h1 .ink { color: var(--ink); }
.hero h1 .accent { color: var(--accent); }
.hero h1 .strike { position: relative; display: inline-block; color: var(--ink); opacity: 0.55; }
.hero h1 .strike::after { content: ''; position: absolute; left: -4px; right: -4px;
  top: 50%; height: 8px; background: var(--accent);
  transform: translateY(-50%) rotate(-3deg) scaleX(0);
  transform-origin: left; transition: transform 0.7s 0.6s var(--ease); }
.hero h1 .strike.in::after { transform: translateY(-50%) rotate(-3deg) scaleX(1); }

.hero-lead { font-size: 18px; line-height: 1.55; color: var(--ink);
  max-width: 540px; margin-bottom: 36px; opacity: 0.85; }
.hero-lead strong { font-weight: 600; opacity: 1; }
.hero-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

/* HERO RIGHT — dark doctrine panel */
.hero-r { background: var(--ink); color: var(--paper); padding: 48px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden; }
.hero-r::before { content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px; pointer-events: none;
  mask-image: radial-gradient(ellipse 100% 80% at 80% 50%, black 30%, transparent 90%); }
.hero-r > * { position: relative; z-index: 1; }

.doctrine-label { font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase;
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.doctrine-label::before { content: '§'; font-size: 14px; }
.doctrine-title { font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.15; margin-bottom: 24px; }
.doctrine-title em { font-style: italic; color: var(--accent); }

.principle { display: grid; grid-template-columns: auto 1fr; gap: 20px;
  padding: 18px 0; border-top: 1px solid var(--line-d);
  align-items: start; }
.principle:last-of-type { border-bottom: 1px solid var(--line-d); }
.principle-num { font-family: var(--font-mono); font-size: 13px;
  color: var(--accent); font-weight: 700; min-width: 36px; }
.principle h5 { font-size: 15px; font-weight: 600; margin-bottom: 4px;
  letter-spacing: -0.01em; font-family: var(--font-sans); text-transform: none; }
.principle p { font-size: 13px; line-height: 1.55; color: rgba(232, 236, 238,0.65); }
.principle p strong { color: var(--paper); font-weight: 500; }

.doctrine-foot { margin-top: auto; padding-top: 20px;
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--font-mono); font-size: 11px;
  color: rgba(232, 236, 238,0.5); letter-spacing: 0.08em; text-transform: uppercase; }
.doctrine-foot a { color: var(--accent); display: inline-flex; gap: 6px; align-items: center;
  transition: gap 0.2s; }
.doctrine-foot a:hover { gap: 10px; }

/* === MARQUEE =============================================== */
.marquee { padding: 22px 0; border-bottom: 1px solid var(--line-l);
  overflow: hidden; background: var(--paper-2); }
.marquee-track { display: flex; gap: 64px; white-space: nowrap;
  animation: marquee 60s linear infinite;
  font-size: 26px; font-weight: 600; letter-spacing: -0.025em; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item { display: inline-flex; align-items: center; gap: 64px; }
.marquee-item::after { content: '✦'; color: var(--accent); font-size: 16px; }

/* === SECTION =============================================== */
.section { padding: 110px 0; border-bottom: 1px solid var(--line-l); position: relative; }

.section-head { display: grid; grid-template-columns: 1fr 1fr; gap: 80px;
  margin-bottom: 64px; align-items: end; }
.section-num { font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; margin-bottom: 16px; }
.section-title { font-size: 60px; line-height: 1.0; letter-spacing: -0.035em;
  font-weight: 700; }
.section-title em { font-style: italic; color: var(--accent); font-weight: 500; }
.section-lead { font-size: 17px; line-height: 1.6; color: var(--ink); opacity: 0.75; }
.section-lead strong { font-weight: 600; opacity: 1; }

/* === CAPABILITY CARDS (Agentforce modules) ================ */
.cap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-l); border: 1px solid var(--line-l); }
.cap { background: var(--paper); padding: 36px 28px;
  display: flex; flex-direction: column; gap: 14px;
  transition: background 0.3s var(--ease), transform 0.3s var(--ease);
  cursor: pointer; position: relative; overflow: hidden; }
.cap::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 2px; background: var(--accent); transform: scaleX(0);
  transform-origin: left; transition: transform 0.4s var(--ease); }
.cap:hover { background: var(--paper-2); }
.cap:hover::after { transform: scaleX(1); }
.cap:hover .cap-arrow { transform: translate(4px, -4px); }

.cap-head { display: flex; align-items: center; justify-content: space-between; }
.cap-num { font-family: var(--font-mono); font-size: 12px;
  color: var(--accent); font-weight: 700; }
.cap-arrow { font-family: var(--font-mono); font-size: 16px; color: var(--ink); opacity: 0.5;
  transition: transform 0.3s var(--ease); }
.cap h3 { font-size: 26px; font-weight: 700; line-height: 1.05;
  letter-spacing: -0.025em; margin-top: 4px; }
.cap h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
.cap p { font-size: 14px; line-height: 1.6; color: var(--ink); opacity: 0.7; flex: 1; }
.cap-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.cap-tag { font-family: var(--font-mono); font-size: 10.5px;
  padding: 3px 8px; border: 1px solid var(--line-l-2); color: var(--ink); opacity: 0.7;
  letter-spacing: 0.02em; }

/* === AGENT WORKFLOW VISUAL =============================== */
.workflow {
  background: var(--ink); color: var(--paper); padding: 80px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
  position: relative; overflow: hidden;
}
.workflow::before { content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 32px 32px; mask-image: radial-gradient(ellipse 70% 70% at 50% 50%, black 30%, transparent 90%);
}
.workflow > * { position: relative; z-index: 1; }
.workflow h2 { font-size: 56px; line-height: 1; letter-spacing: -0.035em; font-weight: 700; margin-bottom: 24px; }
.workflow h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.workflow p { font-size: 17px; line-height: 1.6; opacity: 0.7; max-width: 460px; margin-bottom: 28px; }

.flow-board { display: flex; flex-direction: column; gap: 10px; }
.flow-step { background: rgba(255,255,255,0.04); border: 1px solid var(--line-d);
  padding: 14px 18px; display: grid; grid-template-columns: auto 1fr auto;
  gap: 14px; align-items: center; transition: all 0.4s var(--ease); }
.flow-step.active { border-color: var(--accent); background: rgba(var(--accent-rgb), 0.08);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.12); }
.flow-step .ico { width: 28px; height: 28px; border-radius: 6px;
  background: rgba(255,255,255,0.05); border: 1px solid var(--line-d);
  display: grid; place-items: center; font-family: var(--font-mono);
  font-size: 11px; font-weight: 700; color: rgba(232, 236, 238,0.6); transition: all 0.4s var(--ease); }
.flow-step.active .ico { background: var(--accent); color: var(--paper);
  border-color: var(--accent); }
.flow-step .lbl { font-size: 14px; font-weight: 500; }
.flow-step .lbl small { display: block; font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 400; color: rgba(232, 236, 238,0.5); margin-top: 3px; letter-spacing: 0.04em; text-transform: uppercase; }
.flow-step .agent { font-family: var(--font-mono); font-size: 10.5px;
  padding: 3px 8px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--line-d); color: rgba(232, 236, 238,0.7); letter-spacing: 0.04em; }
.flow-step.active .agent { background: rgba(var(--accent-rgb), 0.15); color: var(--accent);
  border-color: rgba(var(--accent-rgb), 0.4); }

/* === INDUSTRIES ============================================ */
.industries { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-l); border: 1px solid var(--line-l); margin-top: 56px; }
.industry { background: var(--paper); padding: 32px 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: background 0.3s var(--ease); cursor: pointer; }
.industry:hover { background: var(--paper-2); }
.industry-num { font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); font-weight: 700; letter-spacing: 0.08em; }
.industry h4 { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.industry p { font-size: 13.5px; line-height: 1.6; color: var(--ink); opacity: 0.65; }

/* === STATS BAR ============================================= */
.stats { display: grid; grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line-l); border-bottom: 1px solid var(--line-l);
  background: var(--paper-2); }
.stat { padding: 56px 32px; text-align: center; position: relative; }
.stat + .stat::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%;
  width: 1px; background: var(--line-l); }
.stat-num { font-size: 88px; font-weight: 700; letter-spacing: -0.045em; line-height: 0.95;
  color: var(--ink); margin-bottom: 12px; }
.stat-num em { font-style: italic; color: var(--accent); font-weight: 500; }
.stat-label { font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); opacity: 0.7; }

/* === COMPARISON TABLE ====================================== */
.compare { border: 1px solid var(--line-l); overflow: hidden; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--paper); }
.compare-table th, .compare-table td { padding: 18px 22px; text-align: left;
  font-size: 14.5px; border-bottom: 1px solid var(--line-l); vertical-align: top; }
.compare-table thead th { background: var(--ink); color: var(--paper);
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; border-bottom: none; }
.compare-table thead th.win { background: var(--accent); color: var(--paper); }
.compare-table tbody td:first-child { font-weight: 600; }
.compare-table tbody td.win { background: rgba(var(--accent-rgb), 0.06); }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* === FAQ =================================================== */
.faq-list { border-top: 1px solid var(--line-l); }
.faq-item { border-bottom: 1px solid var(--line-l); }
.faq-q { width: 100%; padding: 24px 0; display: flex; align-items: center;
  justify-content: space-between; gap: 20px; text-align: left;
  font-size: 19px; font-weight: 600; letter-spacing: -0.015em;
  color: var(--ink); transition: color 0.2s; }
.faq-q:hover { color: var(--accent); }
.faq-toggle { width: 28px; height: 28px; border-radius: 50%;
  border: 1.5px solid var(--ink); display: grid; place-items: center;
  flex-shrink: 0; transition: all 0.3s var(--ease); position: relative; }
.faq-toggle::before, .faq-toggle::after { content: ''; position: absolute;
  background: var(--ink); transition: all 0.3s var(--ease); }
.faq-toggle::before { width: 10px; height: 1.5px; }
.faq-toggle::after { width: 1.5px; height: 10px; }
.faq-item.open .faq-toggle { background: var(--accent); border-color: var(--accent); transform: rotate(45deg); }
.faq-item.open .faq-toggle::before,
.faq-item.open .faq-toggle::after { background: var(--paper); }
.faq-a { max-height: 0; overflow: hidden;
  transition: max-height 0.5s var(--ease), padding 0.3s var(--ease); }
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 24px; }
.faq-a p { font-size: 15.5px; line-height: 1.7; color: var(--ink); opacity: 0.75;
  max-width: 760px; }
.faq-a p + p { margin-top: 12px; }

/* === CTA =================================================== */
.cta { padding: 96px 0; background: var(--ink); color: var(--paper);
  position: relative; overflow: hidden; }
.cta::before { content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px; }
.cta-blob { position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.5), transparent 60%);
  filter: blur(80px); top: -200px; right: -100px;
  animation: blob-float 18s ease-in-out infinite; pointer-events: none; }
@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 80px) scale(1.1); }
}
.cta-inner { position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: end; }
.cta h2 { font-size: 64px; font-weight: 700; line-height: 0.96;
  letter-spacing: -0.035em; margin-bottom: 24px; }
.cta h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.cta-lead { font-size: 16px; line-height: 1.55; opacity: 0.75; max-width: 460px; }
.cta-aside { display: flex; flex-direction: column; gap: 12px;
  padding: 24px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-d); }
.cta-aside .item { display: flex; justify-content: space-between;
  font-family: var(--font-mono); font-size: 12px; padding: 7px 0;
  border-bottom: 1px solid var(--line-d); }
.cta-aside .item:last-of-type { border-bottom: none; }
.cta-aside .item .k { opacity: 0.6; }
.cta-aside .item .v { font-weight: 700; }
.cta-aside .item .v.accent { color: var(--accent); }
.cta-aside-btn { background: var(--accent); color: var(--paper); padding: 12px;
  text-align: center; font-weight: 700; font-size: 13px; letter-spacing: -0.01em;
  margin-top: 10px; transition: all 0.25s var(--ease);
  display: flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; }
.cta-aside-btn:hover { background: var(--paper); color: var(--ink); }

/* === FOOTER ================================================ */
.footer { padding: 80px 0 40px; background: var(--paper); border-top: 1px solid var(--line-l); }
.footer-inner { display: grid; grid-template-columns: 2.2fr 1fr 1fr 1fr;
  gap: 64px; margin-bottom: 56px; }
.footer-brand p { font-size: 14px; color: var(--ink); opacity: 0.7;
  margin-top: 16px; max-width: 280px; line-height: 1.7; }
.footer-col h5 { font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink); opacity: 0.5; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { font-size: 14px; color: var(--ink); opacity: 0.85;
  transition: color 0.2s, opacity 0.2s; }
.footer-col a:hover { color: var(--accent); opacity: 1; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px; border-top: 1px solid var(--line-l); font-size: 13px;
  color: var(--ink); opacity: 0.6; font-family: var(--font-mono); }
.footer-bottom .badge { display: flex; align-items: center; gap: 8px; }
.footer-bottom .badge::before { content: ''; width: 6px; height: 6px;
  background: var(--accent); border-radius: 50%; }

/* === FORM ================================================= */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-full { grid-column: 1 / -1; }
.form-group label { font-family: var(--font-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink); }
.form-group input, .form-group textarea, .form-group select {
  background: var(--paper-2); border: 1.5px solid var(--line-l-2);
  padding: 14px 16px; font-family: var(--font-sans); font-size: 15px;
  color: var(--ink); transition: border-color 0.2s, background 0.2s; outline: none; width: 100%; }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent); background: var(--paper-3); }
.form-group textarea { resize: vertical; min-height: 140px; line-height: 1.6; }

/* === ANIMATION UTILITIES ================================== */

/* Scroll reveal: fade + translateY */
.reveal { opacity: 0; transform: translateY(32px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.reveal.in { opacity: 1; transform: translateY(0); }

/* Stagger children */
/* Same-element class change — descendant cascade with parent.in toggle
   was unreliable across some iframe preview environments. */
.stagger > * { opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out); }
.stagger > *.in { opacity: 1; transform: none; }

/* Word-by-word reveal — each .word gets its own .in for reliability */
.word-reveal .word { display: inline-block; opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out); }
.word-reveal .word.in { opacity: 1; transform: translateY(0); }

/* Slide-in from left/right */
.slide-l { opacity: 0; transform: translateX(-40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.slide-l.in { opacity: 1; transform: translateX(0); }
.slide-r { opacity: 0; transform: translateX(40px);
  transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.slide-r.in { opacity: 1; transform: translateX(0); }

/* === SCROLL PROGRESS ====================================== */
.scroll-bar {
  position: fixed; top: 0; left: 0;
  height: 2px; width: 0%;
  background: linear-gradient(90deg, var(--accent), var(--accent-d));
  z-index: 200;
  box-shadow: 0 0 8px rgba(var(--accent-rgb), 0.5);
}

/* === CURSOR SPOTLIGHT (on dark panels) ==================== */
.spotlight-host { position: relative; overflow: hidden; }
.spotlight-host::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(
    circle 460px at var(--mx, 50%) var(--my, 50%),
    rgba(var(--accent-rgb), 0.18), transparent 60%);
  opacity: 0; transition: opacity 0.4s var(--ease);
  z-index: 0;
}
.spotlight-host:hover::after { opacity: 1; }
/* Stack normal children above the spotlight, but DON'T touch decorative
   absolutely-positioned siblings (.cta-blob, .hero-grid, etc.) — forcing
   position:relative on them collapses them into the flow and creates
   blank gaps above the actual content. */
.spotlight-host > *:not(.cta-blob):not(.mesh) { position: relative; z-index: 1; }

/* === SUBTLE 3D TILT ON CAPABILITY CARDS =================== */
.cap { transform-style: preserve-3d; will-change: transform; }
.cap > * { transform: translateZ(0); }
.cap .cap-head, .cap h3 { transform: translateZ(8px); }

/* === ANIMATED MESH / NEURON DOTS ========================== */
/* Drifting dot grid over dark sections — subtle "thinking" feel */
.mesh {
  position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(var(--accent-rgb), 0.18) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 70% at 30% 50%, black 20%, transparent 80%);
  opacity: 0.5;
  animation: mesh-drift 28s linear infinite;
}
@keyframes mesh-drift {
  from { background-position: 0 0; }
  to   { background-position: 28px 28px; }
}

/* === REVEAL ON HOVER (capability cards lift accent) ======= */
.cap { transition: background 0.3s var(--ease), transform 0.4s var(--ease), box-shadow 0.4s var(--ease); }
.cap:hover { box-shadow: 0 20px 50px -20px rgba(var(--accent-rgb), 0.25); }

/* === FAQ icon spin smoothing ============================== */
.faq-toggle, .faq-toggle::before, .faq-toggle::after {
  transition: all 0.45s var(--ease) !important;
}

/* === REDUCED MOTION ========================================
   In environments with prefers-reduced-motion: reduce (including
   some iframe preview contexts), transitions can be suspended
   entirely — opacity stays stuck at the starting value even
   after .in is added. Snap instantly instead. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .stagger > *, .slide-l, .slide-r, .word-reveal .word,
  .reveal.in, .stagger > *.in, .slide-l.in, .slide-r.in, .word-reveal .word.in,
  .hero h1 .strike::after,
  .cap, .mesh, .marquee-track, .cta-blob, .logo-dot, .hero-tag::before {
    transition: none !important;
    animation: none !important;
  }
}

/* === BLOG ================================================== */
.blog-hero { padding: 80px 0 64px; border-bottom: 1px solid var(--line-l); position: relative; overflow: hidden; }
.blog-hero h1 { font-size: 80px; font-weight: 700; letter-spacing: -0.04em; line-height: 0.98; max-width: 920px; margin-top: 18px; }
.blog-hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.blog-hero p { font-size: 19px; line-height: 1.55; opacity: 0.78; max-width: 580px; margin-top: 24px; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line-l); border: 1px solid var(--line-l); margin-top: 56px; }
.post-card { background: var(--paper); padding: 32px;
  display: flex; flex-direction: column; gap: 14px; transition: background 0.3s var(--ease); }
.post-card:hover { background: var(--paper-2); }
.post-card .meta { font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); display: flex; gap: 12px; align-items: center; }
.post-card .meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink); opacity: 0.4; }
.post-card .meta .read { color: var(--ink); opacity: 0.5; }
.post-card h3 { font-size: 24px; font-weight: 700; letter-spacing: -0.025em; line-height: 1.15; }
.post-card h3 em { font-style: italic; color: var(--accent); font-weight: 500; }
.post-card p { font-size: 14.5px; line-height: 1.65; color: var(--ink); opacity: 0.7; }
.post-card .more { font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  color: var(--accent); letter-spacing: 0.04em; margin-top: auto; padding-top: 14px;
  display: inline-flex; gap: 6px; align-items: center; transition: gap 0.2s; }
.post-card:hover .more { gap: 12px; }

.post-card.featured { grid-column: 1 / -1; padding: 56px; background: var(--ink); color: var(--paper);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; }
.post-card.featured:hover { background: var(--ink-2); }
.post-card.featured h3 { font-size: 56px; line-height: 1.02; }
.post-card.featured h3 em { color: var(--accent); }
.post-card.featured p { font-size: 17px; opacity: 0.7; color: var(--paper); }
.post-card.featured .meta { color: var(--accent); }
.post-card.featured .meta .dot { background: var(--paper); opacity: 0.4; }
.post-card.featured .meta .read { color: var(--paper); opacity: 0.5; }

/* === ARTICLE =============================================== */
.article { padding: 64px 0 96px; }
.article-grid { display: grid; grid-template-columns: 1fr 2.4fr 1fr; gap: 48px; align-items: start; }
.article-toc { position: sticky; top: 96px; font-family: var(--font-mono); }
.article-toc h5 { font-family: var(--font-mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.article-toc ul { display: flex; flex-direction: column; gap: 10px; }
.article-toc a { font-size: 13px; line-height: 1.5; color: var(--ink); opacity: 0.65;
  border-left: 2px solid var(--line-l); padding-left: 12px; transition: all 0.2s; }
.article-toc a:hover, .article-toc a.active {
  opacity: 1; color: var(--accent); border-left-color: var(--accent); }

.article-body { font-size: 18px; line-height: 1.7; }
.article-body p { margin-bottom: 24px; opacity: 0.88; }
.article-body h2 { font-size: 36px; font-weight: 700; letter-spacing: -0.025em;
  margin: 64px 0 24px; line-height: 1.1; scroll-margin-top: 96px; }
.article-body h2 em { font-style: italic; color: var(--accent); font-weight: 500; }
.article-body h3 { font-size: 24px; font-weight: 600; letter-spacing: -0.02em;
  margin: 40px 0 14px; scroll-margin-top: 96px; }
.article-body ul, .article-body ol { margin: 16px 0 28px 24px;
  display: flex; flex-direction: column; gap: 10px; }
.article-body ul li { list-style: disc; padding-left: 6px; }
.article-body ol li { list-style: decimal; padding-left: 6px; }
.article-body strong { color: var(--ink); font-weight: 600; opacity: 1; }
.article-body em { color: var(--accent); font-style: italic; }
.article-body a { color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-thickness: 1px; }
.article-body a:hover { color: var(--accent-d); }
.article-body blockquote { border-left: 3px solid var(--accent);
  padding: 8px 0 8px 24px; margin: 32px 0; font-style: italic;
  font-size: 22px; line-height: 1.5; color: var(--ink); }
.article-body code { font-family: var(--font-mono); font-size: 0.9em;
  background: var(--paper-2); padding: 2px 6px; border-radius: 3px; }

.article-meta { font-family: var(--font-mono); font-size: 12px;
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center;
  letter-spacing: 0.04em; color: var(--ink); opacity: 0.6;
  padding-top: 18px; border-top: 1px solid var(--line-l); margin-top: 24px; }
.article-meta .author { color: var(--accent); font-weight: 700; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink); opacity: 0.5; }
.article-meta .tag { padding: 3px 10px; border: 1px solid var(--line-l-2); }

.article-aside { font-family: var(--font-mono); display: flex; flex-direction: column; gap: 20px;
  position: sticky; top: 96px; }
.article-aside .share-label { font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); font-weight: 700; }
.article-aside a { font-size: 13px; color: var(--ink); opacity: 0.7;
  transition: opacity 0.2s, color 0.2s; }
.article-aside a:hover { opacity: 1; color: var(--accent); }

.article-cta { margin: 64px 0 0; padding: 40px; background: var(--paper-2);
  border-left: 3px solid var(--accent); display: flex; flex-direction: column; gap: 14px; }
.article-cta .l { font-family: var(--font-mono); font-size: 11px;
  color: var(--accent); letter-spacing: 0.12em; text-transform: uppercase; font-weight: 700; }
.article-cta h4 { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; }
.article-cta h4 em { font-style: italic; color: var(--accent); font-weight: 500; }
.article-cta p { font-size: 15px; line-height: 1.6; opacity: 0.78; }

@media (max-width: 1024px) {
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-card.featured { grid-template-columns: 1fr; gap: 24px; padding: 40px; }
  .post-card.featured h3 { font-size: 40px; }
  .article-grid { grid-template-columns: 1fr; gap: 32px; }
  .article-toc, .article-aside { position: static; }
  .article-toc { display: none; }
  .blog-hero h1 { font-size: 56px; }
}
@media (max-width: 768px) {
  .post-grid { grid-template-columns: 1fr; }
  .blog-hero h1 { font-size: 44px; }
  .article-body { font-size: 16px; }
  .article-body h2 { font-size: 28px; }
}

/* === RESPONSIVE =========================================== */
@media (max-width: 1080px) {
  .cap-grid { grid-template-columns: repeat(2, 1fr); }
  .industries { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
  .footer-brand { grid-column: 1 / -1; }
  .section-title { font-size: 48px; }
  .hero h1 { font-size: 72px; }
  .cta h2 { font-size: 72px; }
  .workflow { grid-template-columns: 1fr; gap: 48px; padding: 64px 48px; }
}
@media (max-width: 768px) {
  :root { --gutter: 24px; }
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-l { padding: 64px 32px; }
  .hero-r { padding: 48px 32px; }
  .hero h1 { font-size: 52px; }
  .section { padding: 72px 0; }
  .section-head { grid-template-columns: 1fr; gap: 24px; }
  .section-title { font-size: 38px; }
  .cap-grid, .industries { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .stat + .stat::before { display: none; }
  .stat + .stat { border-top: 1px solid var(--line-l); }
  .compare-table { font-size: 13px; }
  .compare-table th, .compare-table td { padding: 14px; }
  .cta { padding: 64px 0; }
  .cta h2 { font-size: 40px; }
  .cta-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .workflow h2 { font-size: 36px; }
  .stat-num { font-size: 60px; }
}
