:root {
  --white: #fff;
  --gray-50: #f5f5f7;
  --gray-100: #e8e8ed;
  --gray-300: #d2d2d7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --dark-muted: #a1a1a6;
  --black: #000;
  --charcoal: #1d1d1f;
  --charcoal-card: #2c2c2e;
  --blue: #0071e3;
  --blue-dark: #2997ff;
  --green: #34c759;
  --card-radius: 32px;
  --inner-radius: 28px;
  --ease: cubic-bezier(.28,.11,.32,1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Helvetica Neue", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; }
body { margin: 0; background: var(--white); color: var(--ink); font-family: var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip-link { position: fixed; z-index: 100; left: 12px; top: -60px; padding: 10px 16px; border-radius: 999px; background: var(--ink); color: #fff; transition: top .2s ease; }
.skip-link:focus { top: 12px; }

.site-header { position: sticky; z-index: 30; top: 0; height: 48px; border-bottom: 1px solid var(--gray-100); background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px); }
.nav-wrap, .footer-wrap { width: min(1040px, calc(100% - 40px)); height: 100%; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.brand { min-height: 44px; display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; letter-spacing: 0; }
.brand-mark { width: 20px; height: 20px; color: var(--ink); }
.site-header nav { display: flex; align-items: center; gap: 28px; height: 100%; }
.site-header nav a { min-height: 44px; display: inline-flex; align-items: center; color: var(--ink); font-size: 12px; }
.site-header nav a:hover { color: var(--blue); }
.site-header nav .nav-primary { color: var(--blue); }

.hero { min-height: 438px; padding: 56px 20px 46px; text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.hero-kicker { margin: 0 0 16px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.hero h1 { margin: 0; font-size: clamp(42px, 6vw, 76px); line-height: 1.08; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.hero h1 span { display: block; }
.gradient-text { color: transparent; background: linear-gradient(90deg, #0071e3, #7b61ff); background-clip: text; -webkit-background-clip: text; }
.hero-copy { max-width: 610px; margin: 24px auto 0; color: var(--ink); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; font-weight: 400; text-wrap: balance; }
.hero-actions { margin-top: 28px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.button { min-height: 44px; padding: 0 22px; border-radius: 999px; background: var(--blue); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 500; }
.button:hover { background: #0077ed; }
.text-link { min-height: 44px; display: inline-flex; align-items: center; gap: 3px; color: var(--blue); font-size: 15px; font-weight: 400; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.text-link span { font-size: 23px; line-height: 1; margin-top: -1px; }

.projects { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding-bottom: 108px; }
.carousel { position: relative; }
.carousel-track { position: relative; min-height: 560px; overflow: hidden; border-radius: var(--card-radius); }
.slide { position: absolute; inset: 0; min-height: 560px; padding: 52px clamp(28px, 6vw, 72px) 0; border-radius: var(--card-radius); overflow: hidden; text-align: center; opacity: 0; visibility: visible; transform: translateX(8%); transition: transform .8s var(--ease), opacity .8s var(--ease); }
.slide.is-active { opacity: 1; transform: translateX(0); z-index: 2; }
.slide.is-before { transform: translateX(-8%); }
.slide.is-hidden { visibility: hidden; }
.slide-dark { background: var(--black); color: #fff; }
.slide-light { background: var(--gray-50); color: var(--ink); }
.slide-charcoal { background: var(--charcoal); color: #fff; }
.slide-content { position: relative; z-index: 3; }
.slide-content.compact { margin-bottom: 35px; }
.eyebrow { display: block; margin-bottom: 7px; color: var(--dark-muted); font-size: 15px; font-weight: 500; }
.slide h2 { margin: 0; font-size: clamp(31px, 3.5vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -.015em; text-wrap: balance; }
.slide-content > p { margin: 14px auto 7px; max-width: 580px; color: var(--dark-muted); font-size: clamp(17px, 1.7vw, 19px); line-height: 1.5; text-wrap: balance; }
.slide-light .slide-content > p { color: var(--muted); }
.dark-link { color: var(--blue-dark); }

.phone-mockup { position: absolute; z-index: 2; width: 270px; height: 360px; left: 50%; top: 322px; transform: translateX(-50%); border: 7px solid #55555a; border-bottom: 0; border-radius: 40px 40px 0 0; background: #fff; color: var(--ink); padding: 35px 18px 18px; text-align: left; box-shadow: 0 -8px 24px rgba(255,255,255,.08); }
.phone-speaker { position: absolute; top: 15px; left: 50%; transform: translateX(-50%); width: 55px; height: 6px; border-radius: 999px; background: #dedee3; }
.phone-mockup h3 { margin: 0; font-size: 23px; letter-spacing: -.015em; }
.phone-mockup > p { margin: 3px 0 16px; color: var(--muted); font-size: 12px; }
.phone-mockup ul { list-style: none; padding: 0; margin: 0; overflow: hidden; border-radius: 16px; background: var(--gray-50); }
.phone-mockup li { min-height: 53px; padding: 0 15px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #dedee3; font-size: 15px; }
.phone-mockup li:last-child { border: 0; }
.phone-mockup svg { width: 22px; height: 22px; fill: var(--green); stroke: #fff; stroke-width: 2.3; }
.phone-mockup svg.pending { fill: transparent; stroke: #a1a1a6; stroke-width: 1.3; }

.ai-network { width: min(480px, 78%); margin: 55px auto 0; }
.ai-network svg { width: 100%; overflow: visible; }
.ai-network path { fill: none; stroke: #b8b8bd; stroke-width: 4; stroke-linecap: round; }
.ai-network circle { fill: #fff; stroke: #b8b8bd; stroke-width: 4; }
.ai-network .network-main { fill: var(--blue); stroke: var(--blue); }
.ai-network .network-check { stroke: #fff; stroke-width: 7; }

.coming-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 850px; margin: 0 auto; text-align: left; }
.coming-card { min-height: 275px; padding: 30px; border-radius: var(--inner-radius); background: var(--charcoal-card); }
.coming-card svg { width: 48px; height: 48px; margin-bottom: 33px; fill: none; stroke: var(--blue-dark); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.coming-card h3 { margin: 0 0 11px; font-size: 28px; letter-spacing: -.015em; }
.coming-card p { min-height: 86px; margin: 0 0 22px; color: var(--dark-muted); font-size: 17px; line-height: 1.5; text-wrap: balance; }
.coming-card > span { color: var(--dark-muted); font-size: 14px; }

.carousel-controls { position: absolute; z-index: 10; left: 50%; bottom: -60px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; }
.dots { height: 44px; padding: 0 8px; display: flex; align-items: center; border-radius: 999px; background: var(--gray-100); }
.dot-button { width: 44px; height: 44px; padding: 0; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; }
.dot-button span { display: block; width: 8px; height: 8px; border-radius: 999px; background: #8e8e93; transition: width .35s var(--ease), background .35s var(--ease); }
.dot-button.is-active span { width: 28px; background: var(--ink); }
.play-button { min-width: 44px; height: 44px; padding: 0 15px; border: 0; border-radius: 999px; background: var(--gray-100); display: inline-flex; align-items: center; gap: 7px; cursor: pointer; }
.play-button svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.play-button .play-icon { display: none; fill: currentColor; stroke: none; }
.play-button[aria-pressed="true"] .pause-icon { display: none; }
.play-button[aria-pressed="true"] .play-icon { display: block; }

.site-footer { border-top: 1px solid var(--gray-300); }
.footer-wrap { min-height: 108px; gap: 24px; }
.site-footer p, .site-footer a { margin: 0; color: var(--muted); font-size: 12px; }
.site-footer nav { display: flex; align-items: center; gap: 28px; }
.site-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.site-footer a:hover { color: var(--blue); }

/* Shared subpage language */
.subpage { background: var(--gray-50); }
.subpage-header { position: sticky; z-index: 30; top: 0; min-height: 48px; border-bottom: 1px solid var(--gray-100); background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(20px); }
.subpage-header .nav-wrap { min-height: 48px; height: auto; }
.back-link { min-height: 44px; display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 13px; }
.back-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.subpage-main { width: min(1040px, calc(100% - 40px)); margin: 0 auto; padding: 76px 0 96px; }
.subpage-hero { max-width: 760px; margin: 0 auto 58px; text-align: center; }
.subpage-hero .hero-kicker { font-size: 17px; color: var(--muted); }
.subpage-hero h1 { margin: 0; font-size: clamp(42px, 5vw, 64px); line-height: 1.08; letter-spacing: -.015em; text-wrap: balance; }
.subpage-hero p { margin: 21px auto 0; color: var(--muted); font-size: 21px; line-height: 1.5; text-wrap: balance; }
.ai-groups { display: grid; gap: 28px; }
.ai-panel { padding: 38px; border-radius: var(--card-radius); background: #fff; }
.ai-panel.dark { background: var(--charcoal); color: #fff; }
.ai-panel-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; }
.ai-panel h2 { margin: 0; font-size: clamp(28px, 3vw, 40px); letter-spacing: -.015em; }
.ai-panel-head p { margin: 0; color: var(--muted); font-size: 15px; }
.dark .ai-panel-head p { color: var(--dark-muted); }
.ai-cards { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.ai-cards.four { grid-template-columns: repeat(4, minmax(0,1fr)); }
.ai-card { min-height: 260px; padding: 26px; border: 1px solid var(--gray-100); border-radius: var(--inner-radius); background: var(--gray-50); display: flex; flex-direction: column; }
.dark .ai-card { border-color: #424245; background: var(--charcoal-card); }
.ai-card-icon { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #fff; color: var(--blue); }
.ai-card-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ai-card h3 { margin: 25px 0 8px; font-size: 24px; letter-spacing: -.015em; }
.ai-card p { margin: 0 0 20px; color: var(--muted); font-size: 15px; line-height: 1.5; text-wrap: balance; }
.dark .ai-card p { color: var(--dark-muted); }
.ai-card .text-link { margin-top: auto; align-self: flex-start; }

@media (max-width: 760px) {
  .site-header { height: auto; }
  .nav-wrap { width: min(100% - 28px, 1040px); min-height: 48px; flex-wrap: wrap; }
  .site-header nav { gap: 18px; }
  .hero { min-height: 452px; padding: 58px 18px 46px; }
  .hero-kicker { font-size: 21px; }
  .hero-copy { font-size: 18px; }
  .hero-actions { flex-wrap: wrap; margin-top: 24px; }
  .projects { width: calc(100% - 24px); padding-bottom: 104px; }
  .carousel-track, .slide { min-height: 520px; }
  .slide { padding: 46px 22px 0; }
  .phone-mockup { width: 264px; top: 330px; }
  .coming-grid { grid-template-columns: 1fr; gap: 14px; }
  .coming-card { min-height: 0; padding: 25px; }
  .coming-card svg { margin-bottom: 18px; }
  .coming-card p { min-height: 0; }
  .ai-network { margin-top: 58px; width: 100%; }
  .play-button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .play-button { padding: 0; justify-content: center; }
  .footer-wrap { min-height: 132px; padding: 20px 0; align-items: flex-start; flex-direction: column; justify-content: center; gap: 4px; }
  .site-footer nav { width: 100%; justify-content: space-between; gap: 12px; }
  .subpage-main { width: calc(100% - 24px); padding: 64px 0 80px; }
  .subpage-hero { margin-bottom: 38px; }
  .subpage-hero p { font-size: 18px; }
  .ai-panel { padding: 24px 18px; }
  .ai-panel-head { display: block; }
  .ai-panel-head p { margin-top: 8px; }
  .ai-cards, .ai-cards.four { grid-template-columns: 1fr; }
  .ai-card { min-height: 220px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .001ms !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; }
}
