/* ══════════════════════════════════════
   HOME — Hero, bento, platform, use-cases, FAQ, CTA
══════════════════════════════════════ */

/* ── SHARED SECTION LAYOUT ── */
.section { position: relative; z-index: 1; border-top: 1px solid var(--section-alt-border); }
.section-alt { position: relative; z-index: 1; background: var(--section-alt); border-top: 1px solid var(--section-alt-border); border-bottom: 1px solid var(--section-alt-border); }
.section-alt::before { content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: min(280px, 40%); height: 1px; background: linear-gradient(90deg, transparent, var(--amber), transparent); animation: lineGlow 4s ease-in-out infinite; }
@keyframes lineGlow { 0%,100% { opacity: 0.5; } 50% { opacity: 1; } }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 40px; }
.overline {
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 500;
  color: var(--amber);
  letter-spacing: 0.14em; text-transform: uppercase;
  margin-bottom: 16px; display: block;
  transition: color 0.4s;
}
.sec-h2 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 700; letter-spacing: -0.035em; line-height: 1.1;
  color: var(--text); margin-bottom: 16px;
  transition: color 0.4s;
}
.sec-h2 .italic-serif {
  color: var(--amber);
  font-style: normal;
  font-weight: 700;
}
.sec-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 15px; font-weight: 300;
  color: var(--text2); line-height: 1.75;
  letter-spacing: 0; max-width: 460px;
  transition: color 0.4s;
}

/* card base — glass morphism */
.card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  backdrop-filter: blur(20px) saturate(120%);
  -webkit-backdrop-filter: blur(20px) saturate(120%);
  position: relative; overflow: hidden;
  transition: all 0.5s var(--ease-smooth);
}
.card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(160deg, var(--glass-shine), transparent 50%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.card:hover { transform: translateY(-6px) scale(1.01); border-color: var(--glass-hover); box-shadow: var(--card-shadow); }
.card:hover::before { opacity: 1; }

.sec-divider { height: 0; margin: 0; border: none; }

/* SF-STYLE SVG ICON */
.sf-icon {
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
  transition: background 0.3s, border-color 0.3s;
}
.sf-icon svg { width: 20px; height: 20px; }
.card:hover .sf-icon { background: rgba(212,136,74,0.16); border-color: rgba(212,136,74,0.35); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 120px 24px 80px;
  overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; inset: -20%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 45% at 15% 30%, rgba(212,136,74,0.30) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 85% 18%, rgba(90,154,181,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 55% 85%, rgba(99,102,180,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 28% 60%, rgba(212,136,74,0.14) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 70% 55%, rgba(90,154,181,0.10) 0%, transparent 65%);
  animation: heroPulse 18s ease-in-out infinite alternate;
}
@keyframes heroPulse {
  0%   { transform: scale(1) translate(0, 0); opacity: 1; }
  50%  { transform: scale(1.08) translate(20px, -15px); opacity: 0.8; }
  100% { transform: scale(0.95) translate(-15px, 18px); opacity: 1; }
}
#hero::after {
  content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 85% 75% at 50% 40%, black 20%, transparent 75%);
}
[data-theme="light"] #hero::before {
  background:
    radial-gradient(ellipse 55% 45% at 15% 30%, rgba(181,105,46,0.20) 0%, transparent 65%),
    radial-gradient(ellipse 50% 55% at 85% 18%, rgba(61,122,149,0.16) 0%, transparent 65%),
    radial-gradient(ellipse 45% 40% at 55% 85%, rgba(99,102,180,0.10) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 28% 60%, rgba(181,105,46,0.08) 0%, transparent 65%),
    radial-gradient(ellipse 30% 30% at 70% 55%, rgba(61,122,149,0.06) 0%, transparent 65%);
}
[data-theme="light"] #hero::after {
  background:
    linear-gradient(rgba(0,0,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,0,0,0.05) 1px, transparent 1px);
  background-size: 72px 72px;
}
.hero-scan {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.hero-scan::before {
  content: ''; position: absolute; left: 0; right: 0; height: 200px;
  background: linear-gradient(180deg, transparent, rgba(212,136,74,0.09), transparent);
  animation: scanSweep 6s linear infinite;
}
@keyframes scanSweep { 0% { top: -200px; } 100% { top: 100%; } }
[data-theme="light"] .hero-scan::before {
  background: linear-gradient(180deg, transparent, rgba(181,105,46,0.07), transparent);
}
#hero > *:not(.hero-scan):not(.scroll-cue) { position: relative; z-index: 1; }
.scroll-cue { z-index: 1; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif;
  font-size: 12px; font-weight: 400;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber-border);
  border-radius: 100px;
  padding: 6px 16px;
  letter-spacing: 0.04em;
  margin-bottom: 28px;
  opacity: 0; animation: fadeUp 0.9s var(--ease-out) 0.1s forwards;
}
.badge-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--amber);
  animation: blink 2.2s ease-in-out infinite;
}
@keyframes blink { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

.hero-h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(44px, 7vw, 82px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  max-width: 820px;
  color: var(--text);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 0.25s forwards;
  transition: color 0.4s;
}
.hero-h1 .italic-serif {
  color: var(--amber);
  font-style: normal;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.hero-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: clamp(15px, 1.8vw, 17px);
  font-weight: 300;
  color: var(--text2);
  max-width: 540px;
  line-height: 1.75;
  letter-spacing: 0;
  margin-bottom: 40px;
  text-wrap: balance;
  opacity: 0; animation: fadeUp 1s var(--ease-out) 0.4s forwards;
  transition: color 0.4s;
}

.hero-ctas {
  display: flex; gap: 10px; flex-wrap: wrap; justify-content: center;
  margin-bottom: 64px;
  opacity: 0; animation: fadeUp 1s ease 0.55s forwards;
}
.btn-primary {
  font-family: 'Outfit', sans-serif;
  font-size: 14px; font-weight: 500;
  color: #fff; background: linear-gradient(135deg, var(--amber), #D4A96A);
  border: none; border-radius: 12px;
  padding: 14px 30px;
  text-decoration: none; cursor: pointer;
  transition: all 0.4s var(--ease-smooth);
  letter-spacing: 0;
  box-shadow: 0 4px 16px var(--amber-glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px var(--amber-glow); }

/* scroll indicator */
.scroll-cue { position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; opacity: 0; animation: fadeIn 1s ease 2s forwards; }
.scroll-cue span { font-family: 'DM Sans', sans-serif; font-size: 11px; font-weight: 400; letter-spacing: 0.18em; text-transform: uppercase; color: var(--amber); }
.scroll-line { width: 1px; height: 48px; position: relative; overflow: hidden; background: var(--border); }
.scroll-line::after { content: ''; position: absolute; top: -100%; left: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--amber), transparent); animation: scrollPulse 2s var(--ease-smooth) infinite; }
@keyframes scrollPulse { 0% { top: -100%; } 100% { top: 200%; } }

/* ── TRUSTED ── */
.trusted-wrap { position: relative; z-index: 1; padding: 64px 36px; text-align: center; }
.t-label { font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 36px; display: block; transition: color 0.4s; }
.logos-row { display: flex; justify-content: center; align-items: center; gap: 48px; flex-wrap: wrap; }
.logo-t { font-size: 15px; font-weight: 700; color: var(--text3); letter-spacing: -0.02em; cursor: default; transition: color 0.2s; }
.logo-t:hover { color: var(--text2); }

/* ── PROBLEM — BENTO GRID ── */
#problem { padding: 100px 0; }
.problem-header { text-align: center; margin-bottom: 48px; }
.problem-header .sec-sub { margin-left: auto; margin-right: auto; }
.prob-bento {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 48px;
}
.prob-bento .prob-tile:nth-child(1) { grid-column: 1 / 3; }
.prob-bento .prob-tile:nth-child(5) { grid-column: 2 / 4; }
.prob-tile {
  padding: 32px 30px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--border);
  display: flex; gap: 18px; align-items: flex-start;
  position: relative; overflow: hidden;
  transition: all 0.5s var(--ease-smooth);
}
.prob-tile::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px;
  background: linear-gradient(160deg, rgba(255,255,255,0.04), transparent 50%);
  opacity: 0; transition: opacity 0.5s; pointer-events: none;
}
.prob-tile::after {
  content: ''; position: absolute; width: 120px; height: 120px; border-radius: 50%;
  filter: blur(45px); opacity: 0; top: -15px; left: -15px;
  transition: opacity 0.5s, transform 0.5s; pointer-events: none;
}
.prob-tile:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: rgba(212,136,74,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.prob-tile:hover::before { opacity: 1; }
.prob-tile:hover::after { opacity: 0.35; transform: scale(1.2); }
.prob-tile:nth-child(1)::after { background: rgba(212,136,74,0.45); }
.prob-tile:nth-child(2)::after { background: rgba(130,170,230,0.4); }
.prob-tile:nth-child(3)::after { background: rgba(170,130,210,0.4); }
.prob-tile:nth-child(4)::after { background: rgba(90,154,181,0.4); }
.prob-tile:nth-child(5)::after { background: rgba(210,130,130,0.4); }

.prob-icon {
  width: 48px; height: 48px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 2;
}
.prob-icon svg { width: 100%; height: 100%; filter: drop-shadow(0 2px 12px rgba(0,0,0,0.2)); }
.prob-body { position: relative; z-index: 2; min-width: 0; }
.prob-num {
  font-family: 'Outfit', sans-serif; font-size: 11px; font-weight: 600;
  color: var(--text3); letter-spacing: 0.08em; margin-bottom: 8px;
  transition: color 0.3s;
}
.prob-tile:hover .prob-num { color: var(--amber); }
.prob-h4 { font-family: 'Outfit', sans-serif; font-size: 16px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 8px; line-height: 1.3; }
.prob-p  { font-size: 14px; font-weight: 400; color: var(--text); opacity: 0.65; line-height: 1.7; }

/* ── PLATFORM — INGEST/THINK/ACT ── */
#platform { padding: 100px 0; }
.platform-hd { text-align: center; margin-bottom: 56px; }
.platform-hd .sec-sub { margin: 0 auto; text-align: center; }
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 3px; }
.step-card {
  background: var(--glass-bg); border: 1px solid var(--glass-border);
  padding: 44px 34px 38px;
  backdrop-filter: blur(20px);
  position: relative; overflow: hidden;
  transition: all 0.5s var(--ease-smooth);
  display: flex; flex-direction: column;
}
.step-card:first-child { border-radius: 20px 0 0 18px; }
.step-card:last-child  { border-radius: 0 18px 18px 0; }
.step-card::before { content:''; position:absolute; top:0; left:0; right:0; height:2px; background:linear-gradient(90deg, transparent, var(--amber), transparent); transform:scaleX(0); transition:transform 0.5s var(--ease-smooth); }
.step-card:hover::before { transform:scaleX(1); }
.step-card:hover { background: var(--surface-hov); border-color: var(--glass-hover); }
.step-card:hover .sf-icon { background: rgba(212,136,74,0.16); border-color: rgba(212,136,74,0.35); }
.step-num { font-family: 'DM Sans', sans-serif; font-size: 10px; font-weight: 500; color: var(--amber); letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 26px; transition: color 0.4s; }
.step-h3 { font-family: 'Outfit', sans-serif; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 12px; transition: color 0.4s; }
.step-p  { font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 400; color: var(--text); opacity: 0.65; line-height: 1.75; margin-bottom: 24px; letter-spacing: 0; transition: color 0.4s; flex: 1; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.tag { font-size: 10.5px; font-weight: 600; color: var(--text2); border: 1px solid var(--amber-border); border-radius: 100px; padding: 4px 12px; letter-spacing: -0.01em; transition: color 0.4s, border-color 0.4s, background 0.4s; background: var(--amber-dim); }

/* ── USE CASES ── */
#usecases { padding: 100px 0; }
.uc-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 56px; }
.uc-card { padding: 30px 26px; position: relative; overflow: hidden; }
.uc-card::after { content:''; position:absolute; bottom:0; left:0; right:0; height:2px; background:linear-gradient(90deg, transparent, var(--amber), transparent); transform:scaleX(0); transition:transform 0.5s; }
.uc-card:hover::after { transform:scaleX(1); }
.uc-num { font-size: 10px; font-weight: 700; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 16px; transition: color 0.4s; }
.uc-h3 { font-family: 'Outfit', sans-serif; font-size: 17px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); margin-bottom: 10px; line-height: 1.25; transition: color 0.4s; }
.uc-p  { font-size: 14px; font-weight: 400; color: var(--text); opacity: 0.65; line-height: 1.7; margin-bottom: 18px; letter-spacing: -0.005em; transition: color 0.4s; }
.uc-stat { font-size: 12px; font-weight: 500; font-style: italic; color: var(--teal); background: var(--teal-dim); border: 1px solid var(--teal-border); border-radius: 7px; padding: 6px 12px; display: inline-block; letter-spacing: -0.01em; transition: all 0.4s var(--ease-smooth); margin-top: 8px; }
.uc-card:hover .uc-stat {
  background: var(--teal); color: #fff; border-color: var(--teal);
  transform: translateY(-1px); box-shadow: 0 4px 12px rgba(90,154,181,0.25);
}

/* ── FAQ ── */
#faq { padding: 100px 0; }
.faq-layout { display: grid; grid-template-columns: 360px 1fr; gap: 80px; align-items: start; }
.faq-list { display: flex; flex-direction: column; }
.faq-item { border-bottom: 1px solid var(--border); transition: border-color 0.4s; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; font-size: 14.5px; font-weight: 500; color: var(--text2); cursor: pointer; transition: color 0.2s; gap: 18px; letter-spacing: -0.012em; line-height: 1.4; }
.faq-q:hover, .faq-q.open { color: var(--text); }
.faq-ico { width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; color: var(--text3); transition: transform 0.35s, border-color 0.2s, color 0.2s, background 0.2s; line-height: 1; }
.faq-q.open .faq-ico { transform: rotate(45deg); background: var(--amber-dim); border-color: var(--amber-border); color: var(--amber); }
.faq-a { max-height: 0; overflow: hidden; font-size: 14.5px; font-weight: 400; color: var(--text); opacity: 0.65; line-height: 1.75; letter-spacing: -0.005em; transition: max-height 0.45s ease, padding 0.3s, color 0.4s; }
.faq-a.open { max-height: 180px; padding-bottom: 20px; }

/* ── FINAL CTA ── */
#final-cta { padding: 140px 24px; text-align: center; position: relative; z-index: 1; overflow: hidden; }
.cta-orb { position: absolute; top: -140px; left: 50%; transform: translateX(-50%); width: 800px; height: 550px; background: radial-gradient(ellipse, var(--amber-glow) 0%, transparent 65%); pointer-events: none; transition: background 0.4s; }
.cta-h2 { font-family: 'Outfit', sans-serif; font-size: clamp(34px, 6vw, 64px); font-weight: 700; letter-spacing: -0.04em; line-height: 1.05; max-width: 640px; margin: 0 auto 22px; position: relative; color: var(--text); transition: color 0.4s; }
.cta-h2 .italic-serif { color: var(--amber); font-style: normal; font-weight: 700; }
.cta-sub { font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 300; color: var(--text2); max-width: 420px; margin: 0 auto 44px; line-height: 1.75; letter-spacing: 0; position: relative; transition: color 0.4s; }
.email-form { display: flex; justify-content: center; gap: 8px; position: relative; flex-wrap: wrap; }
.cta-note { font-size: 11.5px; font-weight: 400; color: var(--text3); margin-top: 14px; position: relative; transition: color 0.4s; }

/* ── 3D TILT CARDS ── */
.tilt-card { transform-style: preserve-3d; will-change: transform; }
.tilt-shine {
  position: absolute; inset: 0; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.07) 0%, transparent 55%);
  opacity: 0; transition: opacity 0.4s; pointer-events: none; z-index: 3;
}
.tilt-card:hover .tilt-shine { opacity: 1; }

/* ── SCROLL-DRIVEN PLATFORM CARDS ── */
.step-card .data-pulse {
  position: absolute; top: 0; left: 0; right: 0; height: 2px; overflow: hidden;
}
.step-card .data-pulse::after {
  content: ''; position: absolute; top: 0; height: 2px; width: 60px;
  background: linear-gradient(90deg, transparent, var(--amber), transparent);
  animation: dataPulse 3s ease-in-out infinite; opacity: 0;
}
.step-card.step-in .data-pulse::after { opacity: 1; }
.step-card:nth-child(1) .data-pulse::after { animation-delay: 0s; }
.step-card:nth-child(2) .data-pulse::after { animation-delay: 1s; }
.step-card:nth-child(3) .data-pulse::after { animation-delay: 2s; }
@keyframes dataPulse { 0% { left: -60px; } 100% { left: 100%; } }
.step-card {
  opacity: 0; transform: translateY(30px) scale(0.97);
}
.step-card.step-in {
  opacity: 1; transform: translateY(0) scale(1);
  transition: all 0.7s var(--ease-smooth);
}
.step-card:nth-child(2).step-in { transition-delay: 0.15s; }
.step-card:nth-child(3).step-in { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .wrap { padding: 0 20px; }
  .prob-bento, .steps-grid, .uc-grid { grid-template-columns: 1fr; }
  .prob-bento .prob-tile:nth-child(1), .prob-bento .prob-tile:nth-child(5) { grid-column: 1; }
  .step-card:first-child { border-radius: 20px 18px 0 0; }
  .step-card:last-child  { border-radius: 0 0 18px 18px; }
  .faq-layout { grid-template-columns: 1fr; gap: 40px; }
  .email-form { flex-direction: column; align-items: center; }
}
@media (max-width: 600px) {
  .uc-grid { gap: 8px; }
  .cta-h2 { font-size: clamp(28px, 7vw, 42px); }
}
