:root {
  --pink: #d91461;
  --pink-light: #ff2d78;
  --dark: #201c28;
  --gray-text: #686471;
  --gray-bg: #f7f5f8;
  --card-radius: 28px;
  --section-padding: 80px 24px;
}

html { scroll-padding-top: 90px; }
::selection { background: #ffd3e3; color: var(--dark); }
a:focus-visible, button:focus-visible { outline: 3px solid var(--pink); outline-offset: 5px; }
nav { background: rgba(255, 255, 255, 0.9); }
.nav-inner { height: 76px; }
.nav-logo img { height: 32px !important; }
.nav-links a { opacity: 1; }
.nav-cta { padding: 12px 24px; }

.hero {
  min-height: 760px;
  min-height: min(880px, 100svh);
  padding: 150px 24px 90px;
  background: radial-gradient(ellipse at 15% 25%, #fce2ee 0, transparent 48%),
              radial-gradient(ellipse at 90% 70%, #ede5ff 0, transparent 45%), #fffafc;
}
.hero::before {
  width: 520px;
  height: 520px;
  border: 1px solid #eacddd;
  background: none;
  top: 18%;
  right: -310px;
  box-shadow: 0 0 0 55px #edcee526, 0 0 0 110px #edcee51a;
}
.hero::after {
  width: 190px;
  height: 190px;
  bottom: 10%;
  left: -120px;
  background: none;
  border: 36px solid #f4d9e8;
}
.hero > * { position: relative; z-index: 1; }
.hero-badge { background: white; border: 1px solid #f0d6e2; box-shadow: 0 4px 24px #7d284b08; }
.hero h1 { font-weight: 700; letter-spacing: -0.055em; font-size: clamp(52px, 7.5vw, 96px); }
.hero h1 .gradient-text { background-image: linear-gradient(110deg, #b9207c, #f22670 70%, #f56b63); }
.hero p { font-size: clamp(17px, 2vw, 20px); max-width: 620px; }
.btn-primary, .btn-secondary { font-size: 15px; padding: 17px 28px; }
.btn-primary { box-shadow: 0 8px 24px #d9146126; }
.btn-secondary { background: #ffffffa6; border-color: #dfced7; color: var(--dark); }
.hero-caption { margin-top: 28px; color: var(--gray-text); font-size: 12px; letter-spacing: 0.04em; }
.intro { border-top: 1px solid #eee6ed; }
.stats-row { margin-top: 36px; }
.stat-number { background-image: linear-gradient(120deg, #bc296e, #e83e7a); font-size: clamp(34px, 4vw, 46px); }

.demos { background: var(--gray-bg); padding-top: 90px; }
.demos-header { margin-bottom: 44px; }
.section-title { font-weight: 700; letter-spacing: -0.045em; }
.motion-control {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  padding: 10px 16px;
  border: 1px solid #ddd5df;
  border-radius: 100px;
  background: white;
  color: #59515e;
  font: 500 12px 'Inter', sans-serif;
  cursor: pointer;
}
.motion-control::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--pink); }
.motion-control[aria-pressed="true"]::before { background: #777; }
.motion-control:disabled { cursor: default; }
.demos-grid, .demos-row-top, .demos-row-mid { gap: 28px; }
.demo-card {
  padding: 0;
  min-height: 0;
  justify-content: flex-start;
  border: 1px solid #e7e0e8;
  overflow: hidden;
  background: white;
  box-shadow: 0 4px 12px #23102f03;
}
.demo-card:hover, .demo-card:focus-visible {
  transform: translateY(-5px);
  box-shadow: 0 20px 48px #49214415;
  border-color: #e6b5cc;
}
.demo-card .siri-clip { display: none; }
.demo-card .card-visual {
  position: relative;
  inset: auto;
  width: 100%;
  height: 260px;
  flex-shrink: 0;
  border-radius: 0;
  isolation: isolate;
  background: radial-gradient(ellipse at 65% 10%, #544374 0, transparent 65%), #241e34;
}
.demo-card .card-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#ffffff05 1px, transparent 1px), linear-gradient(90deg, #ffffff05 1px, transparent 1px);
  background-size: 28px 28px;
  z-index: -1;
}
.card-doc2data .card-visual { background: radial-gradient(ellipse at 80% 0, #305e76, transparent 70%), #182c3d; }
.card-city .card-visual { background: radial-gradient(ellipse at 80% 0, #206760, transparent 70%), #152f36; }
.card-bangkok .card-visual { background: radial-gradient(ellipse at 80% 0, #56624c, transparent 70%), #253a40; }
.card-ai4bi .card-visual, .card-analytics .card-visual { background: radial-gradient(ellipse at 80% 0, #70428a, transparent 70%), #2d2242; }
.card-multiverse .card-visual { background: radial-gradient(ellipse at 80% 0, #435389, transparent 70%), #22263f; }
.card-dashboard .card-visual { background: radial-gradient(ellipse at 80% 0, #485477, transparent 70%), #222b3f; }
.card-supply .card-visual { background: radial-gradient(ellipse at 80% 0, #8b563f, transparent 70%), #382b32; }
.demo-card .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 30px 26px;
  background: white;
  color: var(--dark);
  border-radius: 0;
}
.card-number { color: #9a3761; opacity: 1; font-size: 10px; letter-spacing: 0.12em; margin-bottom: 10px; }
.card-title { font-size: clamp(23px, 2.2vw, 28px); font-weight: 700; }
.card-desc { color: var(--gray-text); opacity: 1; font-size: 14px; max-width: none; margin-bottom: 22px; }
.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 18px; border-top: 1px solid #f0eaf0; font-size: 11px; }
.card-category { color: #77707e; }
.card-launch { font-weight: 600; color: var(--pink); white-space: nowrap; }
.card-launch::after { content: ' \2197'; display: inline-block; margin-left: 5px; transition: transform 0.2s; }
.demo-card:hover .card-launch::after { transform: translate(2px, -2px); }
.card-arrow { top: 16px; right: 16px; width: 32px; height: 32px; background: #ffffff14; border: 1px solid #ffffff26; }
.demo-card.has-preview .card-icon-grid, .demo-card.has-preview .visual-shape { display: none; }
.preview-label { position: absolute; top: 22px; left: 24px; font-size: 9px; font-weight: 600; letter-spacing: 0.14em; color: #e0d9ef; text-transform: uppercase; }
.preview-scene { width: 100%; max-width: 440px; height: 215px; margin-top: 30px; overflow: visible; }
.preview-scene text { font-family: 'Inter', sans-serif; }
.asset-float { animation: asset-float 5s ease-in-out infinite; }
.asset-float-delayed { animation: asset-float 5s -2.5s ease-in-out infinite; }
.asset-scan { animation: asset-scan 4s ease-in-out infinite; }
.asset-chart { transform-box: fill-box; transform-origin: center bottom; animation: asset-chart 4s ease-in-out infinite; }
.asset-route { stroke-dasharray: 9 10; animation: asset-route 4s linear infinite; }
.asset-signal { animation: asset-signal 3s ease-in-out infinite; }
@keyframes asset-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes asset-scan { 0%, 100% { transform: translateY(0); opacity: 0.3; } 50% { transform: translateY(65px); opacity: 1; } }
@keyframes asset-chart { 0%, 100% { transform: scaleY(0.75); } 50% { transform: scaleY(1); } }
@keyframes asset-route { to { stroke-dashoffset: -76; } }
@keyframes asset-signal { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
.demo-card:not(.in-view) .preview-scene * { animation-play-state: paused; }
.feature-section { background: #251f30; }
.feature-section .section-subtitle { color: #c3bbcd; }
.feature-section .section-label { color: #ff8bb5; }
.pill::before, .pill::after { display: none; }
.pill { background: #ffffff08; }
.pill:hover { border-color: #ff8bb5; }
footer { background: #251f30; color: #beb6c9; }
.fade-up { opacity: 1; transform: none; }
.fade-up.reveal-ready:not(.visible) { opacity: 0; transform: translateY(24px); }
body.motion-paused *, body.motion-paused *::before, body.motion-paused *::after { animation-play-state: paused !important; }
body.motion-paused .fade-up { opacity: 1; transform: none; transition: none; }
body.motion-paused .demo-card:hover, body.motion-paused .btn-primary:hover, body.motion-paused .btn-secondary:hover { transform: none; }
body.motion-paused { scroll-behavior: auto; }
html:has(body.motion-paused) { scroll-behavior: auto; }

@media (max-width: 900px) {
  .nav-inner { height: 68px; }
  .nav-links { display: flex; gap: 16px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { min-height: 680px; padding-top: 130px; }
  .demos-grid { max-width: 620px; }
  .demo-card { min-height: 0; }
}
@media (max-width: 480px) {
  .nav-inner { padding: 0 20px; }
  .nav-logo img { height: 26px !important; }
  .nav-cta { padding: 10px 16px; font-size: 12px; }
  .hero { min-height: 660px; padding: 120px 22px 64px; }
  .hero h1 { font-size: 54px; }
  .hero p { margin-bottom: 30px; }
  .hero-actions { gap: 10px; }
  .btn-primary, .btn-secondary { padding: 15px 21px; font-size: 14px; }
  .hero-caption { font-size: 10px; }
  .stats-row { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
  .demos { padding: 64px 16px; }
  .demo-card .card-content { padding: 24px; }
  .demo-card .card-visual { height: 230px; }
  .preview-scene { height: 190px; }
  .footer-inner { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .fade-up.reveal-ready:not(.visible) { opacity: 1; transform: none; }
  .demo-card:hover, .demo-card:focus-visible, .btn-primary:hover, .btn-secondary:hover, .nav-cta:hover { transform: none; }
}
