:root {
  --bg-0: #07101a;
  --bg-1: #0a1723;
  --bg-2: #0d1c29;
  --text: #f5f8fb;
  --muted: #9dafbf;
  --line: rgba(104, 177, 230, .30);
  --line-strong: rgba(93, 180, 247, .62);
  --blue: #35a8ff;
  --blue-2: #1c87e9;
  --green: #3be39f;
  --purple: #a36cff;
  --card: rgba(11, 28, 42, .82);
  --card-soft: rgba(10, 25, 38, .66);
  --cycle: 32s;
}

* { box-sizing: border-box; }
html { background: var(--bg-0); }
body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg-0);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }

.teaser {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(112deg, var(--bg-0) 0%, #081521 48%, var(--bg-1) 100%);
}

.ambient {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(circle at 73% 43%, rgba(43, 129, 194, .075), transparent 31%),
    linear-gradient(90deg, rgba(255,255,255,.012), transparent 18%, transparent 82%, rgba(255,255,255,.012));
}

.topbar {
  width: min(1500px, calc(100% - 72px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding-top: max(18px, env(safe-area-inset-top));
}

.brand { color: inherit; text-decoration: none; display: inline-flex; flex-direction: column; gap: 6px; }
.brand-word { font-size: clamp(28px, 2.7vw, 45px); line-height: 1; font-weight: 780; letter-spacing: -2.3px; }
.brand-word strong { color: var(--blue); font-weight: 780; }
.brand-kicker { color: #c0ccd6; font-size: 8px; line-height: 1.35; letter-spacing: .28em; font-weight: 700; }

.inventa-signature { display: flex; align-items: center; gap: 22px; color: #ced8df; }
.inventa-signature span { font-size: 8px; letter-spacing: .5em; white-space: nowrap; }
.inventa-signature img { width: 143px; height: auto; opacity: .88; filter: brightness(1.8); }

.hero {
  width: min(1500px, calc(100% - 72px));
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: minmax(520px, .9fr) minmax(650px, 1.1fr);
  gap: clamp(38px, 5vw, 88px);
  align-items: center;
}

.hero-copy { position: relative; z-index: 8; max-width: 650px; }
h1 { margin: 0; font-size: clamp(42px, 4vw, 60px); line-height: .98; letter-spacing: -3px; font-weight: 760; max-width: 650px; }
h1 strong { display: block; margin-top: 10px; color: var(--blue); font-weight: 780; }
.hero-intro { max-width: 565px; margin: 24px 0 20px; color: #d5dde4; font-size: clamp(17px, 1.2vw, 20px); line-height: 1.55; }

.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; max-width: 575px; }
.feature-card {
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 24, 37, .68);
  backdrop-filter: blur(6px);
  opacity: .8;
  transform: translateY(0);
  transition: border-color .25s ease, background .25s ease;
}
.feature-card { animation: featureSequence 12.8s ease-in-out infinite; }
.feature-card:nth-child(1) { animation-delay: 0s; }
.feature-card:nth-child(2) { animation-delay: 1.6s; }
.feature-card:nth-child(3) { animation-delay: 3.2s; }
.feature-card:nth-child(4) { animation-delay: 4.8s; }
.feature-card:nth-child(5) { animation-delay: 6.4s; }
.feature-card:nth-child(6) { animation-delay: 8s; }
.feature-card:nth-child(7) { animation-delay: 9.6s; }
.feature-card:nth-child(8) { animation-delay: 11.2s; }
.feature-icon { width: 34px; flex: 0 0 34px; color: var(--blue); font-size: 26px; text-align: center; line-height: 1; }
.feature-card-ai .feature-icon { color: var(--purple); }
.feature-card h2 { margin: 0 0 4px; font-size: 13px; line-height: 1.16; font-weight: 720; }
.feature-card p { margin: 0; color: var(--muted); font-size: 10.5px; line-height: 1.35; }

.hero-stage { position: relative; min-height: 620px; perspective: 1200px; z-index: 4; }
.demo, .ai-scene, .closing-scene { position: absolute; inset: 0; }
.demo { transform-style: preserve-3d; pointer-events: none; }

.lead-stream { position: absolute; inset: 0; pointer-events: none; }
.ghost-lead {
  position: absolute;
  right: 3%;
  width: 330px;
  height: 96px;
  border: 1px solid rgba(92, 168, 223, .15);
  border-radius: 14px;
  background: rgba(10, 26, 39, .40);
  color: rgba(234, 241, 246, .28);
  display: grid;
  grid-template-columns: 58px 1fr auto;
  align-items: center;
  gap: 13px;
  padding: 18px;
  filter: blur(1.2px);
  transform: perspective(800px) rotateY(-8deg);
}
.ghost-lead span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; background: rgba(53,168,255,.12); }
.ghost-lead b { font-size: 15px; font-weight: 650; }
.ghost-lead em { color: rgba(53,168,255,.36); font-style: normal; font-size: 11px; }
.ghost-one { top: 28px; animation: ghostDriftA var(--cycle) linear infinite; }
.ghost-two { bottom: 80px; right: 13%; animation: ghostDriftB var(--cycle) linear infinite; }

.lead-card {
  position: absolute;
  top: 120px;
  left: 24%;
  width: min(390px, 49%);
  min-height: 230px;
  padding: 28px 30px;
  border: 1px solid rgba(95, 176, 236, .64);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(13, 38, 56, .96), rgba(8, 27, 42, .92));
  box-shadow: 0 24px 60px rgba(0,0,0,.20);
  transform: perspective(1000px) rotateY(-4deg) rotateX(1deg);
  overflow: hidden;
}
.lead-card::after { content: ""; position: absolute; inset: auto -35% -70% 16%; height: 180px; background: radial-gradient(circle, rgba(46, 159, 236, .16), transparent 65%); pointer-events: none; }
.lead-topline { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.avatar { width: 88px; height: 88px; display: grid; place-items: center; border-radius: 50%; background: #dfe8ef; color: #173149; font-size: 26px; font-weight: 800; }
.avatar-meta { background: #d9d6e8; color: #2c2444; }
.status-pill { display: inline-flex; align-items: center; gap: 8px; border-radius: 999px; padding: 8px 12px; background: rgba(17, 93, 67, .42); border: 1px solid rgba(59,227,159,.23); color: var(--green); font-size: 12px; white-space: nowrap; }
.status-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 12px currentColor; }
.status-working { color: #c9b7ff; background: rgba(85,65,130,.38); border-color: rgba(163,108,255,.28); }
.lead-card h2 { margin: 18px 0 6px; font-size: clamp(27px, 2.2vw, 38px); letter-spacing: -1.2px; }
.lead-card p { margin: 0; color: #edf4f8; font-size: clamp(20px, 1.65vw, 29px); letter-spacing: -.6px; }
.wa-mark { color: var(--green); font-size: .9em; margin-right: 8px; }

.detail-card {
  position: absolute;
  width: 210px;
  min-height: 78px;
  border-radius: 13px;
  border: 1px solid rgba(80, 169, 232, .56);
  background: rgba(8, 27, 42, .90);
  padding: 15px 17px;
  box-shadow: 0 18px 40px rgba(0,0,0,.12);
  transform: perspective(900px) rotateY(-5deg);
}
.detail-card small { display: block; color: #8fbde0; font-size: 11px; margin-bottom: 9px; }
.detail-card strong { display: block; font-size: 15px; line-height: 1.25; font-weight: 650; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot-google { background: #58bf62; box-shadow: 0 0 0 3px rgba(53,168,255,.12); }
.dot-meta { background: #8d72ff; box-shadow: 0 0 0 3px rgba(163,108,255,.12); }
.detail-origin { top: 74px; left: 3%; }
.detail-campaign { top: 212px; left: 0; }
.detail-keyword { top: 356px; left: 7%; }
.detail-page { top: 184px; right: 0; }
.detail-time { top: 314px; right: 2%; }

.demo-google { animation: googleScene var(--cycle) ease-in-out infinite both; }
.demo-google .detail-card, .demo-google .lead-card { animation: cardFloatGoogle var(--cycle) ease-in-out infinite both; }
.demo-google .detail-campaign { animation-delay: .25s; }
.demo-google .detail-keyword { animation-delay: .45s; }
.demo-google .detail-page { animation-delay: .65s; }
.demo-google .detail-time { animation-delay: .8s; }

.demo-meta { opacity: 0; animation: metaScene var(--cycle) ease-in-out infinite both; }
.demo-meta .lead-card { top: 126px; left: 24%; }
.meta-origin { top: 74px; left: 4%; }
.meta-campaign { top: 205px; left: 0; }
.meta-adset { top: 337px; left: 5%; }
.meta-ad { top: 185px; right: 1%; }
.meta-page { top: 320px; right: 4%; }
.demo-meta .detail-card, .demo-meta .lead-card { animation: cardFloatMeta var(--cycle) ease-in-out infinite both; }

.ai-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  opacity: 0;
  animation: aiScene var(--cycle) ease-in-out infinite both;
}
.orb-wrap { position: relative; width: 210px; height: 210px; flex: 0 0 210px; display: grid; place-items: center; }
.orb { width: 125px; height: 125px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(104,177,230,.60); background: radial-gradient(circle at 36% 30%, rgba(109,177,230,.35), rgba(21, 76, 116, .45) 42%, rgba(8, 28, 44, .92) 72%); box-shadow: inset 0 0 28px rgba(70,166,235,.12); animation: orbPulse 3.4s ease-in-out infinite; }
.orb span { color: #b8dfff; font-size: 40px; }
.orb-ring { position: absolute; inset: 22px; border: 1px solid rgba(90, 173, 235, .36); border-radius: 50%; transform: rotateX(68deg) rotateZ(18deg); animation: orbit 8s linear infinite; }
.ring-b { inset: 9px 28px; opacity: .45; transform: rotateY(68deg) rotateZ(-14deg); animation-direction: reverse; animation-duration: 10s; }
.ai-copy { width: min(390px, 49%); }
.ai-label { display: inline-block; margin-bottom: 15px; color: #d6e5f0; font-weight: 700; font-size: 16px; }
.chat { width: fit-content; max-width: 100%; border: 1px solid rgba(95,176,236,.42); border-radius: 12px; padding: 12px 15px; background: rgba(10, 29, 45, .88); color: #eff6fb; font-size: 14px; line-height: 1.45; }
.user-chat { margin: 0 0 10px auto; }
.ai-chat { border-color: rgba(163,108,255,.45); }
.ai-chat span { color: var(--purple); margin-right: 8px; }
.ai-copy p { margin: 15px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; max-width: 315px; }

.closing-scene { display: grid; place-content: center; text-align: center; opacity: 0; animation: closingScene var(--cycle) ease-in-out infinite both; }
.closing-brand { font-size: clamp(52px, 5vw, 82px); font-weight: 780; line-height: .95; letter-spacing: -4px; }
.closing-brand strong { color: var(--blue); }
.closing-scene p { max-width: 560px; margin: 20px auto; color: #d4dee6; font-size: clamp(16px, 1.4vw, 21px); line-height: 1.4; letter-spacing: .06em; }
.coming-soon { justify-self: center; margin-top: 6px; border: 1px solid rgba(53,168,255,.62); border-radius: 999px; padding: 11px 32px; font-size: 10px; letter-spacing: .48em; color: #e6f4ff; }

.footer-note {
  width: min(1500px, calc(100% - 72px));
  margin: 8px auto 0;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 20px;
  color: #bdc9d3;
}
.footer-note span { width: 54px; height: 1px; background: rgba(108,181,235,.65); }
.footer-note p { margin: 0; font-size: 8px; line-height: 1.55; letter-spacing: .38em; }

@keyframes featureSequence {
  0%, 100% { opacity: .42; transform: translateY(4px); border-color: rgba(104,177,230,.22); }
  8%, 22% { opacity: .96; transform: translateY(-3px); border-color: rgba(104,177,230,.46); }
  32% { opacity: .55; transform: translateY(0); border-color: rgba(104,177,230,.28); }
}
@keyframes ghostDriftA {
  0%,100% { transform: translateY(40px) perspective(800px) rotateY(-8deg); opacity: .05; }
  25% { opacity: .18; }
  55% { transform: translateY(-20px) perspective(800px) rotateY(-8deg); opacity: .13; }
  80% { transform: translateY(-60px) perspective(800px) rotateY(-8deg); opacity: .04; }
}
@keyframes ghostDriftB {
  0%,100% { transform: translateY(90px) perspective(800px) rotateY(-8deg); opacity: .03; }
  25% { transform: translateY(25px) perspective(800px) rotateY(-8deg); opacity: .12; }
  55% { transform: translateY(-20px) perspective(800px) rotateY(-8deg); opacity: .17; }
  80% { transform: translateY(-80px) perspective(800px) rotateY(-8deg); opacity: .04; }
}
@keyframes googleScene {
  0%, 7% { opacity: 0; transform: translateY(34px); }
  11%, 42% { opacity: 1; transform: translateY(0); }
  48%, 100% { opacity: 0; transform: translateY(-56px); }
}
@keyframes metaScene {
  0%, 43% { opacity: 0; transform: translateY(42px); }
  50%, 66% { opacity: 1; transform: translateY(0); }
  71%, 100% { opacity: 0; transform: translateY(-50px); }
}
@keyframes cardFloatGoogle {
  0%, 7% { opacity: 0; transform: translateY(30px) perspective(900px) rotateY(-5deg); }
  12%, 38% { opacity: 1; transform: translateY(0) perspective(900px) rotateY(-5deg); }
  42% { opacity: 1; transform: translateY(-8px) perspective(900px) rotateY(-5deg); }
  48%,100% { opacity: 0; transform: translateY(-54px) perspective(900px) rotateY(-5deg); }
}
@keyframes cardFloatMeta {
  0%, 43% { opacity: 0; transform: translateY(34px) perspective(900px) rotateY(-5deg); }
  50%, 63% { opacity: 1; transform: translateY(0) perspective(900px) rotateY(-5deg); }
  67% { opacity: 1; transform: translateY(-6px) perspective(900px) rotateY(-5deg); }
  72%,100% { opacity: 0; transform: translateY(-46px) perspective(900px) rotateY(-5deg); }
}
@keyframes aiScene {
  0%, 67% { opacity: 0; transform: translateY(24px) scale(.98); }
  72%, 86% { opacity: 1; transform: translateY(0) scale(1); }
  90%,100% { opacity: 0; transform: translateY(-18px) scale(.99); }
}
@keyframes closingScene {
  0%, 86% { opacity: 0; transform: translateY(20px); }
  91%, 97% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(-8px); }
}
@keyframes orbPulse {
  0%,100% { transform: scale(.96); box-shadow: inset 0 0 28px rgba(70,166,235,.10), 0 0 0 rgba(53,168,255,0); }
  50% { transform: scale(1.02); box-shadow: inset 0 0 32px rgba(70,166,235,.15), 0 0 28px rgba(53,168,255,.08); }
}
@keyframes orbit { to { transform: rotateX(68deg) rotateZ(378deg); } }

body.static-og .demo-google { animation: none !important; opacity: 1 !important; transform: none !important; }
body.static-og .demo-meta,
body.static-og .ai-scene,
body.static-og .closing-scene,
body.static-og .ghost-lead { display: none !important; }
body.static-og .demo-google .detail-card,
body.static-og .demo-google .lead-card,
body.static-og .feature-card { animation: none !important; opacity: 1 !important; }

@media (max-width: 1180px) {
  .topbar, .hero, .footer-note { width: min(100% - 44px, 1100px); }
  .hero { grid-template-columns: minmax(360px, .9fr) minmax(520px, 1.1fr); gap: 30px; }
  .hero-stage { min-height: 620px; transform: scale(.92); transform-origin: center left; width: 108%; }
  h1 { font-size: clamp(42px, 5vw, 62px); }
  .feature-card { min-height: 86px; }
}

@media (max-width: 900px) {
  .teaser { min-height: auto; }
  .topbar { min-height: 96px; }
  .inventa-signature span { display: none; }
  .inventa-signature img { width: 112px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; margin-top: 18px; }
  .hero-copy { max-width: none; }
  h1 { max-width: 760px; font-size: clamp(44px, 8vw, 68px); }
  .hero-intro { max-width: 690px; }
  .hero-stage { order: 2; min-height: 640px; width: 100%; transform: none; margin-top: 10px; }
  .feature-grid { order: 3; max-width: none; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 24px; }
  .hero-copy { display: contents; }
  .hero-copy h1, .hero-copy .hero-intro { order: 1; }
  .feature-card { padding: 14px; min-height: 108px; flex-direction: column; align-items: flex-start; gap: 10px; }
  .feature-icon { width: auto; flex-basis: auto; font-size: 24px; }
  .footer-note { margin-top: 14px; padding-bottom: 22px; }
}

@media (max-width: 650px) {
  .topbar, .hero, .footer-note { width: min(100% - 32px, 620px); }
  .topbar { min-height: 82px; }
  .brand-word { font-size: 31px; }
  .brand-kicker { font-size: 6px; letter-spacing: .21em; }
  .inventa-signature img { width: 88px; }
  .hero { margin-top: 8px; gap: 0; }
  h1 { font-size: clamp(39px, 11.3vw, 55px); line-height: 1.01; letter-spacing: -2.1px; }
  .desktop-break { display: none; }
  h1 strong { margin-top: 8px; }
  .hero-intro { margin: 24px 0 10px; font-size: 16px; line-height: 1.5; }
  .hero-stage { min-height: 590px; margin-top: 6px; overflow: hidden; }
  .lead-card { top: 126px; left: 11%; width: 78%; min-height: 205px; padding: 24px; transform: perspective(900px) rotateY(-2deg); }
  .avatar { width: 68px; height: 68px; font-size: 21px; }
  .lead-card h2 { font-size: 28px; }
  .lead-card p { font-size: 19px; }
  .status-pill { font-size: 10px; padding: 7px 9px; }
  .detail-card { width: 160px; min-height: 58px; padding: 12px 13px; border-radius: 11px; }
  .detail-card small { font-size: 9px; margin-bottom: 6px; }
  .detail-card strong { font-size: 12px; }
  .detail-origin, .meta-origin { left: 1%; top: 38px; }
  .detail-campaign, .meta-campaign { left: auto; right: 1%; top: 66px; }
  .detail-keyword, .meta-adset { left: 2%; top: 358px; }
  .detail-page, .meta-ad { right: 1%; top: 354px; }
  .detail-time, .meta-page { display: none; }
  .demo-meta .lead-card { left: 11%; top: 126px; }
  .ghost-lead { width: 250px; height: 74px; right: 5%; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 18px; }
  .feature-card { min-height: 105px; padding: 14px; }
  .feature-card p { font-size: 10px; }
  .ai-scene { flex-direction: column; gap: 6px; justify-content: center; padding-top: 24px; }
  .orb-wrap { width: 168px; height: 168px; flex-basis: 168px; }
  .orb { width: 100px; height: 100px; }
  .ai-copy { width: 84%; }
  .ai-label { font-size: 14px; }
  .chat { font-size: 12px; }
  .closing-brand { font-size: 58px; }
  .closing-scene p { max-width: 330px; font-size: 15px; letter-spacing: .02em; }
  .footer-note { min-height: 86px; }
  .footer-note p { font-size: 7px; letter-spacing: .25em; }
}

@media (max-width: 420px) {
  .topbar, .hero, .footer-note { width: calc(100% - 24px); }
  .inventa-signature img { width: 78px; }
  .hero-stage { min-height: 540px; }
  .lead-card { left: 8%; width: 84%; }
  .detail-card { width: 145px; }
  .feature-card { min-height: 112px; }
  .feature-card h2 { font-size: 13px; }
  .feature-card p { font-size: 9.5px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .demo-google { opacity: 1 !important; transform: none !important; }
  .demo-meta, .ai-scene, .closing-scene { opacity: 0 !important; }
}
.feature-card,
.ghost-lead,
.demo-google,
.demo-google .detail-card,
.demo-google .lead-card,
.demo-meta,
.demo-meta .detail-card,
.demo-meta .lead-card,
.ai-scene,
.orb,
.orb-ring,
.closing-scene {
  animation-play-state: var(--motion-state, running);
}
