:root{
  color-scheme: dark;
  --bg: #0b0a10;
  --text: rgba(255,255,255,0.92);
  --muted: rgba(255,255,255,0.72);
  --muted2: rgba(255,255,255,0.58);

  --card: rgba(255,255,255,0.06);
  --card2: rgba(255,255,255,0.08);
  --border: rgba(255,255,255,0.12);

  --accent: #a78bfa;  /* violet-400 */
  --accent2: #7c3aed; /* violet-600 */

  --shadow: 0 20px 60px rgba(0,0,0,0.45);
  --radius: 18px;
  --radius2: 26px;
  --max: 1120px;
}

:root[data-design-theme="light"]{
  color-scheme: light;
  --bg: #f8fafc;
  --text: rgba(15,23,42,0.94);
  --muted: rgba(51,65,85,0.78);
  --muted2: rgba(71,85,105,0.66);
  --card: rgba(255,255,255,0.82);
  --card2: rgba(255,255,255,0.94);
  --border: rgba(15,23,42,0.14);
  --accent: #6d28d9;
  --accent2: #4f46e5;
  --shadow: 0 18px 46px rgba(15,23,42,0.13);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  color:var(--text);
  background:
    radial-gradient(900px 520px at 20% -10%, rgba(167,139,250,0.22), transparent 60%),
    radial-gradient(760px 420px at 85% 10%, rgba(124,58,237,0.18), transparent 55%),
    radial-gradient(900px 520px at 60% 110%, rgba(56,189,248,0.10), transparent 60%),
    var(--bg);
}
:root[data-design-theme="light"] body{
  background:
    radial-gradient(900px 520px at 14% -12%, rgba(124,58,237,0.13), transparent 58%),
    radial-gradient(760px 420px at 84% 7%, rgba(14,165,233,0.12), transparent 56%),
    radial-gradient(920px 560px at 62% 112%, rgba(34,197,94,0.09), transparent 62%),
    var(--bg);
}
a{color:inherit}

/* Layout */
.container{max-width:var(--max); margin:0 auto; padding:0 20px}
.section{padding:78px 0}
.section-graphic{
  --graphic-hue: 265;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0 0 14px;
}
.section-graphic-core{
  width:38px;
  height:38px;
  border-radius:12px;
  display:grid;
  place-items:center;
  color:#fff;
  background:
    radial-gradient(circle at 20% 20%, hsla(var(--graphic-hue), 92%, 72%, 0.55), transparent 55%),
    linear-gradient(135deg, hsla(var(--graphic-hue), 90%, 65%, 0.9), hsla(calc(var(--graphic-hue) + 40), 90%, 56%, 0.85));
  border:1px solid hsla(var(--graphic-hue), 80%, 72%, 0.35);
  box-shadow: 0 16px 36px hsla(var(--graphic-hue), 90%, 45%, 0.35);
}
.section-graphic-line{
  height:2px;
  width:64px;
  border-radius:999px;
  background: linear-gradient(90deg, hsla(var(--graphic-hue), 85%, 70%, 0.6), transparent);
}
.section-graphic-dot{
  width:8px;
  height:8px;
  border-radius:999px;
  background: hsla(var(--graphic-hue), 90%, 70%, 0.6);
  box-shadow: 0 0 12px hsla(var(--graphic-hue), 90%, 70%, 0.5);
}

/* Type */
h2{margin:0 0 10px; font-size:28px; letter-spacing:-0.4px}
@media (min-width: 720px){ h2{font-size:32px} }
.lead{margin:0; color:var(--muted); line-height:1.7}
.subhead{margin:26px 0 8px; font-size:14px; color:rgba(235,228,255,0.86); letter-spacing:0.08em; text-transform:uppercase}

.m0{margin:0}
.mt12{margin-top:12px}
.mt18{margin-top:18px}
.mt24{margin-top:24px}
.muted{color:var(--muted)}
.small{font-size:12.5px; color:var(--muted2)}

/* Header */
.header{
  position:sticky;
  top:0;
  z-index:50;
  backdrop-filter: blur(10px);
  background: linear-gradient(to bottom, rgba(11,10,16,0.92), rgba(11,10,16,0.60));
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.header-inner{
  height:66px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

.brand{display:flex; align-items:center; gap:12px; text-decoration:none}
.logo-img{
  width:38px;
  height:38px;
  border-radius:12px;
  object-fit:cover;
  background: rgba(0,0,0,0.35);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: 0 16px 30px rgba(124,58,237,0.18);
}
.brand-title{display:flex; flex-direction:column; line-height:1.05}
.brand-title strong{font-size:16px}
.brand-title span{font-size:12px; color:var(--muted2)}

.nav{display:none; align-items:center; gap:10px; flex-wrap:wrap}
.nav a{
  font-size:13px;
  text-decoration:none;
  color:var(--muted);
  padding:8px 10px;
  border-radius:10px;
}
.nav a:hover{background:rgba(255,255,255,0.06); color:var(--text)}

.header-controls{
  display:flex;
  align-items:center;
  gap:12px;
}

.lang-switcher select,
.design-switcher select{
  appearance:none;
  border-radius:10px;
  border:1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  font-family: inherit;
  font-variant-emoji: emoji;
  font-size:12.5px;
  padding:6px 28px 6px 10px;
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(255,255,255,0.7) 50%),
    linear-gradient(135deg, rgba(255,255,255,0.7) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 55%,
    calc(100% - 10px) 55%;
  background-size:6px 6px, 6px 6px;
  background-repeat:no-repeat;
}
.design-switcher select{
  min-width:88px;
}
.lang-switcher select:focus,
.design-switcher select:focus{
  outline:none;
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 0 0 2px rgba(167,139,250,0.18);
}
.lang-switcher select option,
.design-switcher select option{
  font-family: inherit;
  font-variant-emoji: emoji;
}

.header-cta{display:flex; gap:10px; align-items:center}

@media (min-width: 980px){
  .nav{display:flex}
}

/* Shared top account banner (tutorials + AI dashboard) */
.app-top-banner-wrap{
  padding:20px 0 0;
}
.header-auth-popover{
  position:relative;
  width:100%;
  z-index:40;
  padding:12px 0 0;
}
.header-auth-popover[hidden]{
  display:none !important;
}
.header-auth-card{
  box-shadow:0 24px 60px rgba(2,6,23,0.56);
}
.header-auth-trigger{
  min-width:88px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.app-top-banner{
  padding:18px;
  border-radius:16px;
  border:1px solid rgba(96,165,250,0.25);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(96,165,250,0.14), transparent 52%),
    linear-gradient(155deg, rgba(19,26,42,0.94), rgba(8,12,30,0.97));
}
.app-top-banner-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:14px;
  flex-wrap:wrap;
  border-bottom:1px solid rgba(96,165,250,0.22);
  padding-bottom:12px;
  margin-bottom:12px;
}
.app-top-kicker{
  letter-spacing:0.08em;
  text-transform:uppercase;
  color:#93c5fd;
  font-size:0.72rem;
  margin:0 0 6px;
}
.app-top-title{
  font-size:1.25rem;
  line-height:1.25;
}
.app-top-nav{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.app-top-nav a{
  font-size:12.5px;
  text-decoration:none;
  color:var(--muted);
  border:1px solid rgba(255,255,255,0.14);
  background:rgba(255,255,255,0.06);
  border-radius:999px;
  padding:8px 12px;
}
.app-top-nav a[aria-current="page"]{
  border-color:rgba(96,165,250,0.45);
  background:rgba(96,165,250,0.18);
  color:var(--text);
}
.app-top-nav a:hover{
  color:var(--text);
  background:rgba(255,255,255,0.12);
}
.app-top-auth{
  display:grid;
  gap:10px;
}
.top-auth-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:10px;
}
.top-auth-field{
  display:grid;
  gap:6px;
}
.top-auth-field span{
  font-size:0.78rem;
  letter-spacing:0.04em;
  color:#bfdbfe;
}
.top-auth-field input{
  min-height:44px;
  border-radius:10px;
  border:1px solid #334155;
  background:#0b122b;
  color:#e2e8f0;
  padding:10px;
}
.top-auth-field input:focus{
  outline:none;
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(96,165,250,0.2);
}
.top-auth-actions{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
}
.top-auth-actions .btn,
.top-auth-helper-actions .btn{
  min-height:42px;
}
.top-auth-helper-actions{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
}

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:12px;
  border:1px solid var(--border);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  text-decoration:none;
  font-weight:650;
  font-size:13px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}
.btn:hover{background: rgba(255,255,255,0.10)}
.btn.primary{
  border: 1px solid rgba(167,139,250,0.35);
  background: linear-gradient(135deg, rgba(167,139,250,0.95), rgba(124,58,237,0.90));
  color:#120c1f;
}
.btn.primary:hover{filter: brightness(1.05)}
.btn:disabled{
  cursor:not-allowed;
  opacity:.54;
  filter:saturate(.6);
}
.btn.primary:disabled:hover{
  filter:saturate(.6);
  background: linear-gradient(135deg, rgba(167,139,250,0.95), rgba(124,58,237,0.90));
}
.btn.small{padding:8px 10px; border-radius:10px; font-weight:600}
.btn-logo{
  width:18px;
  height:18px;
  display:inline-block;
  border-radius:4px;
  background:#fff;
  padding:2px;
}
.btn.google-play{
  border-color: rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.08);
}
.btn.google-play:hover{background: rgba(255,255,255,0.12)}

/* Hero */
.hero{
  position:relative;
  overflow:hidden;
  padding:60px 0 10px;
}
.hero .container{
  position:relative;
  z-index:1;
}
.hero-canvas{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  opacity:0.46;
  pointer-events:none;
  mix-blend-mode:screen;
}
.hero-grid{display:grid; gap:24px; align-items:start}
@media (min-width: 1200px){ .hero-grid{grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap:30px; align-items:center;} }

.badges{display:flex; flex-wrap:wrap; gap:10px; margin:0 0 18px}
.badge{
  display:inline-flex;
  gap:8px;
  align-items:center;
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size:12px;
}

.hero-title{font-size:clamp(32px, 7.8vw, 52px); line-height:1.08; margin:0 0 12px; letter-spacing:-0.8px}
.hero-sub{color:var(--muted); font-size:16px; line-height:1.65; margin:0 0 22px}
.play-quick-links{display:flex; flex-wrap:wrap; gap:12px; margin-bottom:14px}
.hero-actions{display:flex; flex-wrap:wrap; gap:10px; align-items:center}

.html5-snapshot{
  margin-top:18px;
  display:grid;
  gap:12px;
  padding:14px;
  border-radius:20px;
  border:1px solid rgba(56,189,248,0.22);
  background:
    linear-gradient(135deg, rgba(15,23,42,0.82), rgba(17,24,39,0.52)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 18px);
  box-shadow:0 18px 44px rgba(2,6,23,0.28);
}
@media (min-width: 680px){
  .html5-snapshot{
    grid-template-columns:minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items:center;
  }
  .html5-details{
    grid-column:1 / -1;
  }
}
.html5-snapshot-figure{
  margin:0;
  display:grid;
  gap:8px;
}
.html5-snapshot-figure figcaption{
  color:rgba(226,232,240,0.82);
  font-size:12.5px;
  font-weight:650;
}
.html5-wireframe{
  position:relative;
  min-height:88px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,0.20);
  background:
    linear-gradient(135deg, rgba(14,165,233,0.12), transparent 42%),
    linear-gradient(180deg, rgba(15,23,42,0.90), rgba(2,6,23,0.78));
  overflow:hidden;
}
.html5-wireframe::before{
  content:"";
  position:absolute;
  inset:12px;
  border:1px dashed rgba(226,232,240,0.16);
  border-radius:12px;
}
.wireframe-node,
.wireframe-line,
.wireframe-code{
  position:absolute;
  display:block;
}
.wireframe-node{
  width:12px;
  height:12px;
  border-radius:4px;
  background:#34d399;
  box-shadow:0 0 18px rgba(52,211,153,0.35);
}
.node-a{left:18%; top:26%}
.node-b{left:54%; top:48%; background:#38bdf8; box-shadow:0 0 18px rgba(56,189,248,0.35)}
.node-c{right:18%; bottom:24%; background:#fbbf24; box-shadow:0 0 18px rgba(251,191,36,0.30)}
.wireframe-line{
  height:2px;
  transform-origin:left center;
  background:linear-gradient(90deg, rgba(52,211,153,0.75), rgba(56,189,248,0.28));
}
.line-a{left:20%; top:33%; width:34%; transform:rotate(20deg)}
.line-b{left:55%; top:55%; width:25%; transform:rotate(12deg)}
.line-c{left:20%; bottom:24%; width:58%; background:linear-gradient(90deg, rgba(251,191,36,0.28), rgba(56,189,248,0.38))}
.wireframe-code{
  right:14px;
  top:12px;
  padding:5px 8px;
  border-radius:8px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(2,6,23,0.72);
  color:#e0f2fe;
  font-family:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:11px;
}
.html5-snapshot-metrics{
  display:grid;
  gap:10px;
}
.html5-snapshot-metrics label{
  display:grid;
  gap:6px;
}
.html5-snapshot-metrics label span{
  font-size:12px;
  color:var(--muted2);
}
.html5-snapshot meter,
.html5-snapshot progress{
  width:100%;
  height:12px;
  accent-color:#34d399;
}
.html5-output{
  min-height:34px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background:rgba(2,6,23,0.62);
  color:#e0f2fe;
  font-size:12.5px;
  font-weight:700;
}
.html5-details{
  border-top:1px solid rgba(255,255,255,0.08);
  padding-top:10px;
}
.html5-details summary{
  cursor:pointer;
  color:#bae6fd;
  font-size:12.5px;
  font-weight:700;
}
.html5-details p{
  margin:8px 0 0;
  color:var(--muted2);
  font-size:12.5px;
  line-height:1.6;
}

.kpi{display:grid; grid-template-columns: repeat(3, 1fr); gap:10px; margin-top:18px}
.kpi-card{
  padding:12px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
}
.kpi-card strong{display:block; font-size:13.5px}
.kpi-card span{display:block; margin-top:4px; font-size:12px; color:var(--muted2)}

/* Device preview */
.device{padding:12px; border-radius: var(--radius2); background: rgba(255,255,255,0.05); border:1px solid rgba(255,255,255,0.10); max-width: 760px; width:100%; margin:0 auto}
.device-top{display:flex; align-items:center; gap:8px; padding:10px 10px 12px}
.device-dot{width:10px; height:10px; border-radius:999px; background: rgba(255,255,255,0.18)}
.device img{display:block; width:100%; height:auto; max-height:min(62vh, 560px); object-fit:contain; border-radius: 18px; border:1px solid rgba(255,255,255,0.10)}

/* Cards */
.card{
  border-radius: var(--radius2);
  background: var(--card);
  border:1px solid rgba(255,255,255,0.10);
  box-shadow: var(--shadow);
}
.icon{
  width:40px;
  height:40px;
  border-radius:14px;
  background: linear-gradient(135deg, rgba(167,139,250,0.25), rgba(124,58,237,0.12));
  border:1px solid rgba(167,139,250,0.22);
  display:flex;
  align-items:center;
  justify-content:center;
}
.icon svg{width:20px; height:20px; opacity:0.92}

/* Features */
.feature-grid{display:grid; gap:16px; margin-top:22px}
@media (min-width: 760px){ .feature-grid{grid-template-columns: repeat(2, minmax(0, 1fr));} }
.feature-grid .card{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
  min-height:180px;
}
.feature-grid .card h3{
  margin:0;
  font-size:16px;
  line-height:1.3;
}
.feature-grid .card p{margin:0; color:var(--muted); line-height:1.7}
.lang-tags{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:12px;
}
.lang-tag{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(255,255,255,0.06);
  font-size:12px;
  color:var(--muted2);
}
.lang-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  background: rgba(124,58,237,0.2);
  border:1px solid rgba(124,58,237,0.35);
  color:rgba(235,228,255,0.95);
}
.lang-icon svg{width:12px; height:12px}

.callout{
  margin-top:22px;
  padding:18px;
  border-radius: var(--radius2);
  border:1px solid rgba(167,139,250,0.20);
  background: radial-gradient(800px 300px at 20% 30%, rgba(167,139,250,0.14), transparent 60%), rgba(255,255,255,0.05);
}

/* SEO docs and focused landing pages */
.seo-hero{
  padding:64px 0 52px;
}
.seo-hero-grid{
  display:grid;
  gap:28px;
  align-items:center;
}
@media (min-width: 900px){
  .seo-hero-grid{grid-template-columns:minmax(0,1.08fr) minmax(280px,.72fr);}
}
.seo-kicker{
  margin:0 0 12px;
  color:#93c5fd;
  font-size:12px;
  font-weight:750;
  letter-spacing:0.08em;
  text-transform:uppercase;
}
.seo-hero h1{
  margin:0;
  max-width:900px;
  font-size:clamp(34px,5vw,58px);
  line-height:1.02;
}
.seo-actions{
  margin-top:24px;
}
.seo-hero-shot{
  display:block;
  overflow:hidden;
  border-radius:24px;
  border:1px solid rgba(255,255,255,0.14);
  background:linear-gradient(180deg,rgba(15,23,42,.9),rgba(2,6,23,.96));
  box-shadow:0 22px 58px rgba(2,6,23,.34);
}
.seo-hero-shot img{
  display:block;
  width:100%;
  height:auto;
  max-height:480px;
  object-fit:cover;
}
.seo-content-section{
  padding-top:24px;
}
.seo-article{
  max-width:880px;
  color:var(--text);
  line-height:1.76;
}
.seo-article h2{
  margin:34px 0 10px;
  font-size:clamp(24px,3vw,34px);
}
.seo-article h3{
  margin:24px 0 8px;
  font-size:20px;
}
.seo-article p,
.seo-article li{
  color:var(--muted);
}
.seo-article a{
  color:#bfdbfe;
  text-underline-offset:3px;
}
.seo-article code{
  padding:2px 6px;
  border-radius:6px;
  background:rgba(255,255,255,.08);
  color:#e0e7ff;
}
.seo-intro{
  margin:0 0 26px;
  padding:18px 20px;
  border-left:4px solid rgba(147,197,253,.75);
  background:rgba(96,165,250,.10);
  border-radius:14px;
}
.seo-card-grid{
  display:grid;
  gap:14px;
  margin:18px 0 8px;
}
@media (min-width: 780px){
  .seo-card-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
.seo-card{
  padding:16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(255,255,255,.06);
}
.seo-card h3{
  margin:0 0 8px;
  font-size:17px;
}
.seo-card p{
  margin:0;
}

/* Homepage action screenshots */
.action-shot-grid{
  display:grid;
  gap:14px;
  margin:18px 0 8px;
  grid-template-columns:repeat(auto-fit,minmax(280px,1fr));
}
.action-shot-card{
  min-height:216px;
  padding:13px 16px 12px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  overflow:hidden;
}
.action-shot-card img{
  display:block;
  width:min(220px, 100%);
  height:158px;
  object-fit:cover;
  object-position:top center;
  margin:0 auto 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(255,255,255,.04);
}
.action-shot-card h3{
  margin:0;
  color:#fff;
  text-align:center;
  font-size:14px;
  font-weight:800;
  line-height:1.25;
}
@media (min-width:780px){
  .action-shot-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
}
@media (max-width:520px){
  .action-shot-grid{grid-template-columns:1fr;}
  .action-shot-card{min-height:190px;}
  .action-shot-card img{width:min(210px, 100%);height:142px;}
}

.seo-link-list{
  display:grid;
  gap:8px;
  padding-left:20px;
}
.seo-faq{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.seo-faq details{
  border:1px solid rgba(255,255,255,.12);
  border-radius:14px;
  background:rgba(255,255,255,.05);
  padding:14px 16px;
}
.seo-faq summary{
  cursor:pointer;
  font-weight:750;
}
.seo-faq p{
  margin:10px 0 0;
}
.seo-footer{
  padding:46px 0;
}
.seo-footer-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  align-items:flex-start;
  justify-content:flex-start;
}

/* Tutorial snippets */
.tutorial-grid{
  display:grid;
  gap:16px;
  margin-top:22px;
}
@media (min-width: 980px){
  .tutorial-grid{grid-template-columns: repeat(3, minmax(0, 1fr));}
}
.tutorial-card{
  padding:18px;
  display:flex;
  flex-direction:column;
  gap:12px;
}
.tutorial-card h3{
  margin:0;
  font-size:17px;
  line-height:1.3;
}
.code-block{
  margin:0;
  padding:14px;
  border-radius:14px;
  border:1px solid rgba(167,139,250,0.32);
  background: rgba(8,12,26,0.85);
  overflow:auto;
}
.code-block code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:13px;
  line-height:1.55;
  color:#eef2ff;
  white-space:pre;
}

/* Steps */
.steps{
  display:grid;
  gap:16px;
  margin:24px auto 0;
  max-width:980px;
}
.step{
  padding:18px;
  border-radius: 28px;
  border:1px solid rgba(255,255,255,0.10);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(124,58,237,0.14), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.08), rgba(255,255,255,0.04));
  box-shadow: 0 18px 48px rgba(4,8,28,0.22);
  display:grid;
  gap:16px;
  align-items:start;
}
@media (min-width: 860px){
  .step{
    grid-template-columns: minmax(0, 1fr) 236px;
    gap:20px;
    padding:20px 22px;
  }
}
.step-copy{
  display:grid;
  gap:10px;
  align-content:start;
  max-width:52ch;
  padding-top:4px;
}
.step h4{margin:0; font-size:clamp(20px, 2vw, 24px); line-height:1.2; letter-spacing:-0.02em}
.step p{margin:0; color:var(--muted); line-height:1.7}
.step-shot{
  display:block;
  width:min(100%, 208px);
  justify-self:center;
  padding:8px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,0.12);
  background: linear-gradient(180deg, rgba(15,23,42,0.92), rgba(7,12,24,0.88));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 12px 30px rgba(2,6,23,0.28);
  cursor: zoom-in;
}
.step-shot picture{display:block; border-radius:15px; overflow:hidden; background: rgba(255,255,255,0.04)}
.step-shot img{
  display:block;
  width:100%;
  height:auto;
  transition: transform 220ms ease;
}
.step-shot:hover img{transform: scale(1.02)}
@media (min-width: 860px){
  .step-shot{
    width:236px;
    justify-self:end;
  }
}
.inline-icon{
  width:18px;
  height:18px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:6px;
  border:1px solid rgba(255,255,255,0.16);
  background: rgba(255,255,255,0.08);
  margin-right:8px;
  vertical-align:middle;
}
.inline-icon svg{width:12px; height:12px}
.num{
  width:34px;
  height:34px;
  border-radius: 12px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(167,139,250,0.18);
  border:1px solid rgba(167,139,250,0.22);
  color: rgba(235,228,255,0.95);
  font-weight:800;
  margin-bottom:10px;
}

/* Media: promo posters + screenshots */
.video-wrap{
  width:100%;
  max-width:960px;
  margin:18px auto 0;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  box-shadow: var(--shadow);
}
.video-wrap iframe{
  display:block;
  width:100%;
  aspect-ratio: 16 / 9;
  border:0;
}

.poster-row{
  display:grid;
  gap:14px;
  margin-top:18px;
  /* Small thumbnails with max width so they don't dominate the page */
  grid-template-columns: repeat(auto-fit, minmax(140px, 200px));
  justify-content: center;
}
.poster{
  display:block;
  width:100%;
  max-width:200px;
  justify-self:center;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  cursor: zoom-in;
  aspect-ratio: 9 / 16;
}
.poster img{
  width:100%;
  height:100%;
  object-fit: contain;
  display:block;
  transition: transform 220ms ease;
}
.poster:hover img{transform: scale(1.03)}

.shots{
  display:grid;
  gap:14px;
  margin-top:18px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
@media (min-width: 700px){ .shots{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (min-width: 1060px){ .shots{grid-template-columns: repeat(5, minmax(0, 1fr));} }

.shot{
  width:100%;
  max-width:280px;
  justify-self:center;
  border-radius: var(--radius);
  overflow:hidden;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  cursor: zoom-in;
}
.shot img{display:block; width:100%; height:auto; transition: transform 220ms ease}
.shot:hover img{transform: scale(1.03)}

/* Roadmap layout */
.roadmap{display:grid; gap:16px; margin-top:18px}
@media (min-width: 980px){ .roadmap{grid-template-columns: repeat(2, minmax(0, 1fr));} }
@media (min-width: 1200px){ .roadmap{grid-template-columns: repeat(3, minmax(0, 1fr));} }
.roadmap .card{padding:18px}

/* Issue filters */
.filters{display:flex; flex-wrap:wrap; gap:8px; margin:14px 0}
.filter-btn{
  padding:8px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: var(--muted);
  font-size:12px;
  cursor:pointer;
}
.filter-btn:hover{background: rgba(255,255,255,0.10); color:var(--text)}
.filter-btn.active{color:var(--text); border-color: rgba(167,139,250,0.28); background: rgba(167,139,250,0.12)}

/* Issues list */
.issue-list{list-style:none; margin:0; padding:0; display:grid; gap:10px}
.issue{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  padding:14px;
  border-radius: 18px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.18);
}
.issue-title{margin:0; font-weight:700; line-height:1.35}
.issue-meta{margin:6px 0 0; color:var(--muted2); font-size:12px}
.issue.empty{justify-content:flex-start}
.issue.empty .issue-title{font-weight:600; color:var(--muted)}
.feature-commit{align-items:center; gap:18px}
.feature-commit .issue-title{font-size:15px}
.feature-commit .issue-meta{font-size:12px}
.feature-commit .issue-title a{color:inherit; text-decoration:none}
.feature-commit .issue-title a:hover{color:var(--text); text-decoration:underline}

.pills{display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end}
.tag{
  font-size:12px;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.06);
  color: rgba(235,228,255,0.92);
  white-space:nowrap;
}
.tag.bug{border-color: rgba(251,113,133,0.30); background: rgba(251,113,133,0.14)}
.tag.enhancement{border-color: rgba(167,139,250,0.30); background: rgba(167,139,250,0.14)}
.tag.help{border-color: rgba(56,189,248,0.28); background: rgba(56,189,248,0.12)}
.tag.good-first{border-color: rgba(52,211,153,0.28); background: rgba(52,211,153,0.12)}
.tag.docs{border-color: rgba(251,191,36,0.28); background: rgba(251,191,36,0.12)}
.tag.working{border-color: rgba(255,255,255,0.20); background: rgba(255,255,255,0.08)}

/* Beta section */
.beta{display:grid; gap:16px; margin-top:18px}
@media (min-width: 980px){ .beta{grid-template-columns: 1fr 1fr;} }
.beta.beta-single{grid-template-columns: minmax(0, 1fr);}
.beta .card{padding:18px}

.play-guard{
  position:fixed;
  inset:0;
  z-index:60;
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(12px, 3vw, 22px);
  background:rgba(0,0,0,.72);
}
.play-guard[aria-hidden="false"]{display:flex}
body.play-guard-open{overflow:hidden}
.play-guard-panel{
  width:min(620px, 100%);
  max-height:calc(100vh - 24px);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.14);
  background:rgba(11,10,16,.96);
  box-shadow:var(--shadow);
}
.play-guard-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:14px 16px;
  border-bottom:1px solid rgba(255,255,255,.08);
}
.play-guard-top button{
  appearance:none;
  border:1px solid rgba(255,255,255,.14);
  border-radius:10px;
  background:rgba(255,255,255,.06);
  color:var(--text);
  padding:7px 10px;
  cursor:pointer;
}
.play-guard-body{
  display:grid;
  gap:14px;
  overflow:auto;
  padding:16px;
}
.play-guard-list{line-height:1.6}
.play-guard-check{
  display:flex;
  gap:10px;
  align-items:flex-start;
  padding:12px;
  border:1px solid rgba(52,211,153,.24);
  border-radius:14px;
  background:rgba(52,211,153,.09);
  color:rgba(235,228,255,.94);
  font-size:13px;
  line-height:1.55;
}
.play-guard-check input{margin-top:3px}
.play-guard-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

/* Lists */
.bullets{margin:0; padding-left:18px; color:var(--muted); line-height:1.8}
.bullets li{margin:6px 0}

/* Code box */
.codebox{
  margin-top:12px;
  padding:14px;
  border-radius: 16px;
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(0,0,0,0.25);
}
.codebox code{
  display:block;
  white-space:pre-wrap;
  color: rgba(235,228,255,0.92);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size:12.5px;
  line-height:1.65;
}

/* Forms */


.billing-plan-grid{
  display:grid;
  gap:12px;
}
@media (min-width: 760px){
  .billing-plan-grid{grid-template-columns: repeat(2, minmax(0, 1fr));}
}
.billing-plan{
  border:1px solid rgba(255,255,255,0.12);
  border-radius:16px;
  padding:14px;
  background: rgba(0,0,0,0.22);
}
.billing-plan--pro{border-color: rgba(148,163,184,0.35);}
.billing-plan--agentic{border-color: rgba(139,92,246,0.45); box-shadow: inset 0 0 0 1px rgba(139,92,246,0.2);}
.billing-plan__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}
.billing-plan__title-wrap{
  display:grid;
  gap:6px;
}
.billing-plan__price{
  display:flex;
  align-items:baseline;
  gap:6px;
  font-size:28px;
  line-height:1;
  font-weight:800;
  color:#ffffff;
  text-shadow: 0 6px 20px rgba(59,130,246,0.35);
}
.billing-plan__price span:last-child{
  font-size:11px;
  font-weight:600;
  color:var(--muted2);
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.billing-pill{
  display:inline-flex;
  align-items:center;
  border:1px solid rgba(148,163,184,0.45);
  border-radius:999px;
  padding:4px 10px;
  font-size:11px;
  letter-spacing:0.04em;
  text-transform:uppercase;
  color:#cbd5e1;
}
.billing-pill--ai{
  border-color: rgba(167,139,250,0.65);
  color:#c4b5fd;
  background: rgba(139,92,246,0.16);
}
.billing-feature-list{
  margin:0;
  padding-left:18px;
  color:var(--muted);
  display:grid;
  gap:6px;
  font-size:12.5px;
}
.pricing-showcase{
  position:relative;
  overflow:hidden;
}
.pricing-showcase::before{
  content:"";
  position:absolute;
  inset:-80px -120px auto auto;
  width:220px;
  height:220px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(59,130,246,0.30), rgba(59,130,246,0));
  pointer-events:none;
}
.pricing-showcase::after{
  content:"";
  position:absolute;
  inset:auto auto -90px -110px;
  width:240px;
  height:240px;
  border-radius:999px;
  background: radial-gradient(circle, rgba(139,92,246,0.24), rgba(139,92,246,0));
  pointer-events:none;
}
.pricing-showcase__header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  position:relative;
  z-index:1;
}
.pricing-cards{
  display:grid;
  gap:10px;
  position:relative;
  z-index:1;
}
@media (min-width: 560px){
  .pricing-cards{grid-template-columns: repeat(2, minmax(0,1fr));}
}
.pricing-card{
  border:1px solid rgba(255,255,255,0.16);
  border-radius:14px;
  padding:14px;
  background: linear-gradient(160deg, rgba(255,255,255,0.10), rgba(255,255,255,0.03));
  box-shadow: 0 10px 26px rgba(15,23,42,0.26), inset 0 1px 0 rgba(255,255,255,0.12);
}
.pricing-card--pro{
  border-color: rgba(96,165,250,0.45);
}
.pricing-card--ai{
  border-color: rgba(167,139,250,0.58);
  background: linear-gradient(160deg, rgba(139,92,246,0.20), rgba(30,41,59,0.25));
}
.pricing-card__label{
  margin:0;
  font-size:12px;
  letter-spacing:0.06em;
  text-transform:uppercase;
  color:var(--muted2);
}
.pricing-card__amount{
  margin:8px 0 6px;
  font-size:30px;
  line-height:1;
  font-weight:800;
  color:#ffffff;
  text-shadow: 0 6px 20px rgba(59,130,246,0.35);
}
.pricing-card__amount span{
  font-size:12px;
  font-weight:600;
  color:var(--muted2);
  margin-left:6px;
  text-transform:uppercase;
  letter-spacing:0.05em;
}
.form-grid{
  display:grid;
  gap:14px;
  margin:0;
}
@media (min-width: 720px){
  .form-grid{grid-template-columns: repeat(2, 1fr);}
}
.form-field{display:flex; flex-direction:column; gap:6px}
.form-field label{font-size:12.5px; color:var(--muted2)}
.form-field input,
.form-field textarea{
  border-radius:12px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(0,0,0,0.25);
  color: var(--text);
  padding:10px 12px;
  font-size:13px;
  outline:none;
}
.form-field input:focus,
.form-field textarea:focus{
  border-color: rgba(167,139,250,0.5);
  box-shadow: 0 0 0 2px rgba(167,139,250,0.18);
}
.form-field-full{grid-column: 1 / -1;}
.form-actions{display:flex; flex-wrap:wrap; gap:10px; align-items:center}
.form-note{display:block}

/* Footer / contact */
.footer-grid{display:grid; gap:16px}
@media (min-width: 980px){ .footer-grid{grid-template-columns: 1.2fr 0.8fr;} }
.footer-grid .card{padding:18px}

.footer{
  display:flex;
  justify-content:space-between;
  gap:14px;
  padding:22px 0 10px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top:22px;
}


.footer-social{display:flex; align-items:center; gap:10px; justify-content:center;}
.social-link{
  display:inline-flex;
  width:32px;
  height:32px;
  border-radius:999px;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(255,255,255,0.15);
  background:rgba(255,255,255,0.04);
  color:var(--text);
  transition:transform .18s ease, background .18s ease, border-color .18s ease;
}
.social-link:hover{
  transform:translateY(-1px);
  background:rgba(167,139,250,0.16);
  border-color:rgba(167,139,250,0.45);
}
.social-link svg{width:16px;height:16px;fill:currentColor;}
@media (max-width: 760px){
  .footer{flex-direction:column; align-items:flex-start;}
  .footer-social{justify-content:flex-start;}
}

/* Lightbox */
.lightbox{
  position:fixed;
  inset:0;
  background: rgba(0,0,0,0.72);
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(12px, 3vw, 20px);
}
.lightbox[aria-hidden="false"]{display:flex}
.lightbox-inner{
  width:min(820px, 100%);
  max-height:calc(100vh - 24px);
  display:flex;
  flex-direction:column;
  border-radius: 20px;
  border:1px solid rgba(255,255,255,0.12);
  background: rgba(11,10,16,0.92);
  box-shadow: var(--shadow);
  overflow:hidden;
}
.lightbox-top{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:12px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.lightbox-top button{
  appearance:none;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.06);
  color: var(--text);
  border-radius: 12px;
  padding:8px 12px;
  cursor:pointer;
}
.lightbox-top button:hover{background: rgba(255,255,255,0.10)}
.lightbox-body{padding:12px; overflow:auto; display:grid; place-items:center;}
.lightbox-body img{
  display:block;
  width:min(100%, 520px);
  max-width:100%;
  max-height:calc(100vh - 220px);
  height:auto;
  margin:0 auto;
  border-radius:12px;
}

.sr-only{
  position:absolute;
  width:1px;
  height:1px;
  padding:0;
  margin:-1px;
  overflow:hidden;
  clip:rect(0, 0, 0, 0);
  border:0;
}

/* Small screens tweaks */
@media (max-width: 420px){
  .kpi{grid-template-columns: 1fr;}
  .header-cta .btn.small{display:none}
  .header-cta .btn.small.header-auth-trigger{display:inline-flex}
}

@media (max-width: 1199px){
  .hero-grid > .device{
    justify-self:center;
  }
}

@media (max-width: 760px){
  .hero{padding-top:48px}
  .hero-actions .btn{width:100%; justify-content:center;}
  .device{padding:10px}
  .device-top{padding:8px 8px 10px}
  .lightbox-inner{border-radius:14px}
  .lightbox-body{padding:10px}
  .lightbox-body img{width:min(100%, 300px); max-height:65vh}
  .app-top-banner{
    padding:14px;
  }
  .header-auth-popover{padding-top:8px;}
  .app-top-title{
    font-size:1.08rem;
  }
}


/* Responsive images (WebP sources + fallbacks) */
.shot picture,.poster picture,.device picture{display:block;width:100%;height:100%;}
picture>img{display:block;width:100%;height:auto;}

.tutorial-login-card,.tutorial-playground{margin-top:16px}
.tutorial-auth-card{margin-top:16px;padding:20px 20px 18px;background:linear-gradient(145deg,rgba(19,26,42,.94),rgba(8,12,30,.96));border:1px solid rgba(129,140,248,.28)}
.tutorial-auth-header{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;flex-wrap:wrap;margin-bottom:14px;padding-bottom:10px;border-bottom:1px solid rgba(129,140,248,.22)}
.tutorial-auth-kicker{letter-spacing:.08em;text-transform:uppercase;color:#a5b4fc;font-size:.72rem;margin:0 0 6px}
.tutorial-auth-grid input{background:#0b122b;color:#e2e8f0;border:1px solid #334155;border-radius:10px;padding:10px}
.tutorial-auth-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px}
.tutorial-playground{padding:18px}
.tutorial-selectors{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;margin-bottom:14px}
.tutorial-select-group{margin:0;border:1px solid #334155;border-radius:12px;padding:10px 12px;background:#0b122b}
.tutorial-select-group legend{padding:0 6px;color:#c7d2fe;font-size:.78rem;text-transform:uppercase;letter-spacing:.08em}
.tutorial-select-group select{width:100%;background:#020617;color:#e2e8f0;border:1px solid #475569;border-radius:10px;padding:10px}
.tutorial-lesson-shell,.tutorial-code-shell{background:#020617;border:1px solid #334155;border-radius:12px;padding:12px;margin-bottom:12px}
.tutorial-lesson-header,.tutorial-code-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:8px}
.tutorial-language-chip{font-size:.8rem;padding:4px 9px;border-radius:999px;background:rgba(99,102,241,.2);border:1px solid rgba(129,140,248,.4)}
.tutorial-lesson{background:#0f172a;color:#cbd5e1;padding:12px;border-radius:10px;max-height:240px;overflow:auto}
.tutorial-lesson h1,.tutorial-lesson h2,.tutorial-lesson h3,.tutorial-lesson h4{margin:0 0 10px}
.tutorial-lesson p{margin:0 0 10px;line-height:1.6}
.tutorial-code-preview{margin:0 0 10px;max-height:300px;overflow:auto;border-radius:10px;border:1px solid #1e293b}
.tutorial-code-preview code{display:block;padding:14px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92rem;line-height:1.6}
.tutorial-code-editor{width:100%;min-height:180px;font-family:ui-monospace,SFMono-Regular,Menlo,monospace;border-radius:10px;padding:12px;border:1px solid #334155;background:#020617;color:#e2e8f0;margin-bottom:0}
.tutorial-run-gate{margin:0 0 10px;color:#fde68a;font-size:.95rem;line-height:1.5}
.tutorial-run-gate.is-ready{color:#86efac}
.tutorial-output{min-height:120px}
.tutorial-auth-grid .btn{min-height:44px}
.tutorial-google-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;background:linear-gradient(180deg,#fff,#f6f7fb)!important;color:#0f172a!important;border:1px solid #d0d7e2!important;font-weight:700;width:100%}
.tutorial-google-btn:hover{transform:translateY(-1px);box-shadow:0 8px 22px rgba(2,6,23,.24)}
.google-icon{width:18px;height:18px;display:block;flex:0 0 18px}

.tutorial-ad-slot{display:none}


/* Tutorials UI refresh */
.tutorial-auth-card{box-shadow:0 18px 36px rgba(15,23,42,.35);border-radius:16px}
.tutorial-auth-header h3{margin:0 0 4px;font-size:1.2rem;color:#eef2ff}
.tutorial-auth-grid input{min-height:44px;transition:border-color .2s,box-shadow .2s}
.tutorial-auth-grid input:focus{outline:none;border-color:#818cf8;box-shadow:0 0 0 3px rgba(129,140,248,.2)}
.tutorial-auth-field{display:grid;gap:6px}
.tutorial-auth-field span{font-size:.78rem;letter-spacing:.04em;color:#c7d2fe}
.tutorial-auth-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:12px}
.tutorial-auth-actions .btn{width:100%;min-height:44px}
.tutorial-auth-helper-actions{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px;margin-top:10px}
.tutorial-auth-helper-actions .btn{min-height:40px}
.tutorial-auth-divider{position:relative;display:flex;justify-content:center;align-items:center;margin:12px 0}
.tutorial-auth-divider::before{content:"";position:absolute;left:0;right:0;top:50%;height:1px;background:rgba(129,140,248,.24)}
.tutorial-auth-divider span{position:relative;padding:0 10px;background:linear-gradient(145deg,rgba(19,26,42,.95),rgba(8,12,30,.96));color:#94a3b8;font-size:.8rem}
.btn.ghost{background:rgba(148,163,184,.1);border-color:rgba(148,163,184,.34);color:#dbe5f5}
.btn.ghost:hover{background:rgba(148,163,184,.18)}
.tutorial-lesson-shell{background:linear-gradient(180deg,rgba(15,23,42,.92),rgba(2,6,23,.96));border-color:#475569;border-radius:14px}
.tutorial-lesson{border:1px solid rgba(129,140,248,.22);box-shadow:inset 0 0 0 1px rgba(15,23,42,.6)}
.tutorial-lesson p:last-child{margin-bottom:0}
.tutorial-output{margin-top:10px;border:1px solid rgba(129,140,248,.3);border-radius:12px;background:#020617;padding:12px;min-height:96px}

/* AI dashboard auth helper */
#dashboardModeNotice{color:#34d399}
.agent-auth-shell{
  margin-top:12px;
  padding:16px;
  border-radius:14px;
  background: linear-gradient(145deg, rgba(19,26,42,.92), rgba(8,12,30,.96));
  border:1px solid rgba(96,165,250,.28);
}
.agent-auth-header{
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:12px;
  padding-bottom:10px;
  border-bottom:1px solid rgba(96,165,250,.24);
}
.agent-auth-kicker{
  letter-spacing:.08em;
  text-transform:uppercase;
  color:#93c5fd;
  font-size:.72rem;
  margin:0 0 6px;
}
.agent-auth-login-card{margin-top:8px}
.agent-auth-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(220px,1fr));
  gap:12px;
}
.agent-auth-field{display:grid;gap:6px}
.agent-auth-field span{font-size:.78rem;letter-spacing:.04em;color:#bfdbfe}
.agent-auth-grid input{
  min-height:44px;
  background:#0b122b;
  color:#e2e8f0;
  border:1px solid #334155;
  border-radius:10px;
  padding:10px;
  transition:border-color .2s,box-shadow .2s;
}
.agent-auth-grid input:focus{
  outline:none;
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(96,165,250,.2);
}
.agent-auth-actions{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  margin-top:12px;
}
.agent-auth-actions .btn{width:100%;min-height:44px}
.agent-auth-helper-actions{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(180px,1fr));
  gap:10px;
  margin-top:10px;
}
.agent-auth-helper-actions .btn{min-height:40px}
.agent-auth-divider{
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  margin:12px 0;
}
.agent-auth-divider::before{
  content:"";
  position:absolute;
  left:0;
  right:0;
  top:50%;
  height:1px;
  background:rgba(96,165,250,.24);
}
.agent-auth-divider span{
  position:relative;
  padding:0 10px;
  background:linear-gradient(145deg,rgba(19,26,42,.95),rgba(8,12,30,.96));
  color:#94a3b8;
  font-size:.8rem;
}
.agent-guidance-list{
  margin:0;
  padding-left:18px;
  color:var(--muted2);
  display:grid;
  gap:6px;
  font-size:12.5px;
}

/* Light design choice */
:root[data-design-theme="light"] .header{
  background:linear-gradient(to bottom, rgba(248,250,252,0.94), rgba(248,250,252,0.76));
  border-bottom-color:rgba(15,23,42,0.10);
}
:root[data-design-theme="light"] .logo-img{
  background:rgba(255,255,255,0.88);
  border-color:rgba(15,23,42,0.12);
  box-shadow:0 14px 30px rgba(79,70,229,0.14);
}
:root[data-design-theme="light"] .nav a:hover{
  background:rgba(15,23,42,0.06);
}
:root[data-design-theme="light"] .lang-switcher select,
:root[data-design-theme="light"] .design-switcher select{
  border-color:rgba(15,23,42,0.16);
  background-color:rgba(255,255,255,0.86);
  color:var(--text);
  background-image:
    linear-gradient(45deg, transparent 50%, rgba(51,65,85,0.72) 50%),
    linear-gradient(135deg, rgba(51,65,85,0.72) 50%, transparent 50%);
  box-shadow:0 8px 18px rgba(15,23,42,0.06);
}
:root[data-design-theme="light"] .btn{
  border-color:rgba(15,23,42,0.14);
  background:rgba(255,255,255,0.78);
  color:var(--text);
  box-shadow:0 10px 24px rgba(15,23,42,0.10);
}
:root[data-design-theme="light"] .btn:hover{
  background:rgba(255,255,255,0.96);
}
:root[data-design-theme="light"] .btn.primary{
  border-color:rgba(79,70,229,0.22);
  background:linear-gradient(135deg, #7c3aed, #2563eb);
  color:#ffffff;
}
:root[data-design-theme="light"] .btn.ghost{
  background:rgba(241,245,249,0.88);
  border-color:rgba(100,116,139,0.30);
  color:#1e293b;
}
:root[data-design-theme="light"] .btn.google-play{
  border-color:rgba(15,23,42,0.14);
  background:rgba(255,255,255,0.84);
}
:root[data-design-theme="light"] .hero-canvas{
  opacity:0.28;
  mix-blend-mode:multiply;
}
:root[data-design-theme="light"] .badge,
:root[data-design-theme="light"] .kpi-card,
:root[data-design-theme="light"] .lang-tag,
:root[data-design-theme="light"] .filter-btn,
:root[data-design-theme="light"] .tag,
:root[data-design-theme="light"] .inline-icon,
:root[data-design-theme="light"] .social-link{
  border-color:rgba(15,23,42,0.12);
  background:rgba(255,255,255,0.72);
  color:var(--muted);
}
:root[data-design-theme="light"] .card,
:root[data-design-theme="light"] .device,
:root[data-design-theme="light"] .video-wrap,
:root[data-design-theme="light"] .poster,
:root[data-design-theme="light"] .shot,
:root[data-design-theme="light"] .step-shot{
  border-color:var(--border);
  background:var(--card);
  box-shadow:var(--shadow);
}
:root[data-design-theme="light"] .device-dot{
  background:rgba(15,23,42,0.18);
}
:root[data-design-theme="light"] .icon{
  background:linear-gradient(135deg, rgba(124,58,237,0.15), rgba(37,99,235,0.10));
  border-color:rgba(124,58,237,0.18);
}
:root[data-design-theme="light"] .callout{
  background:radial-gradient(800px 300px at 20% 30%, rgba(124,58,237,0.10), transparent 60%), rgba(255,255,255,0.72);
  border-color:rgba(124,58,237,0.16);
}
:root[data-design-theme="light"] .step{
  border-color:rgba(15,23,42,0.10);
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(124,58,237,0.09), transparent 52%),
    linear-gradient(180deg, rgba(255,255,255,0.88), rgba(241,245,249,0.72));
  box-shadow:0 18px 42px rgba(15,23,42,0.10);
}
:root[data-design-theme="light"] .num,
:root[data-design-theme="light"] .lang-icon{
  color:#4c1d95;
  background:rgba(124,58,237,0.12);
  border-color:rgba(124,58,237,0.20);
}
:root[data-design-theme="light"] .issue{
  border-color:rgba(15,23,42,0.10);
  background:rgba(255,255,255,0.68);
}
:root[data-design-theme="light"] .form-field input,
:root[data-design-theme="light"] .form-field textarea,
:root[data-design-theme="light"] .top-auth-field input,
:root[data-design-theme="light"] .tutorial-auth-grid input,
:root[data-design-theme="light"] .agent-auth-grid input,
:root[data-design-theme="light"] .tutorial-select-group select,
:root[data-design-theme="light"] .tutorial-code-editor{
  border-color:rgba(15,23,42,0.16);
  background:rgba(255,255,255,0.92);
  color:var(--text);
}
:root[data-design-theme="light"] .app-top-banner,
:root[data-design-theme="light"] .tutorial-auth-card,
:root[data-design-theme="light"] .agent-auth-shell{
  border-color:rgba(59,130,246,0.20);
  background:
    radial-gradient(120% 130% at 0% 0%, rgba(59,130,246,0.10), transparent 52%),
    linear-gradient(155deg, rgba(255,255,255,0.94), rgba(241,245,249,0.92));
}
:root[data-design-theme="light"] .header-auth-card{
  box-shadow:0 24px 54px rgba(15,23,42,0.16);
}
:root[data-design-theme="light"] .app-top-banner-row,
:root[data-design-theme="light"] .tutorial-auth-header,
:root[data-design-theme="light"] .agent-auth-header{
  border-bottom-color:rgba(59,130,246,0.16);
}
:root[data-design-theme="light"] .app-top-kicker,
:root[data-design-theme="light"] .agent-auth-kicker{
  color:#2563eb;
}
:root[data-design-theme="light"] .top-auth-field span,
:root[data-design-theme="light"] .tutorial-auth-field span,
:root[data-design-theme="light"] .agent-auth-field span,
:root[data-design-theme="light"] .tutorial-select-group legend{
  color:#475569;
}
:root[data-design-theme="light"] .tutorial-auth-header h3{
  color:#0f172a;
}
:root[data-design-theme="light"] .tutorial-auth-divider::before,
:root[data-design-theme="light"] .agent-auth-divider::before{
  background:rgba(59,130,246,0.18);
}
:root[data-design-theme="light"] .tutorial-auth-divider span,
:root[data-design-theme="light"] .agent-auth-divider span{
  background:linear-gradient(145deg, rgba(255,255,255,0.94), rgba(241,245,249,0.92));
  color:#64748b;
}
:root[data-design-theme="light"] .tutorial-select-group,
:root[data-design-theme="light"] .tutorial-lesson-shell,
:root[data-design-theme="light"] .tutorial-code-shell{
  border-color:rgba(15,23,42,0.14);
  background:rgba(255,255,255,0.78);
}
:root[data-design-theme="light"] .tutorial-lesson{
  border-color:rgba(79,70,229,0.16);
  background:#ffffff;
  color:#334155;
  box-shadow:inset 0 0 0 1px rgba(226,232,240,0.70);
}
:root[data-design-theme="light"] .tutorial-language-chip{
  color:#3730a3;
  background:rgba(99,102,241,0.12);
  border-color:rgba(99,102,241,0.26);
}
:root[data-design-theme="light"] .tutorial-run-gate{
  color:#a16207;
}
:root[data-design-theme="light"] .tutorial-run-gate.is-ready{
  color:#15803d;
}
:root[data-design-theme="light"] .tutorial-output{
  border-color:rgba(79,70,229,0.18);
  background:#0f172a;
  color:#e2e8f0;
}
:root[data-design-theme="light"] .billing-plan{
  border-color:rgba(15,23,42,0.12);
  background:rgba(255,255,255,0.72);
}
:root[data-design-theme="light"] .billing-plan--agentic{
  border-color:rgba(124,58,237,0.28);
  box-shadow:inset 0 0 0 1px rgba(124,58,237,0.10);
}
:root[data-design-theme="light"] .billing-plan__price,
:root[data-design-theme="light"] .pricing-card__amount{
  color:#0f172a;
  text-shadow:none;
}
:root[data-design-theme="light"] .billing-pill{
  border-color:rgba(100,116,139,0.30);
  color:#475569;
  background:rgba(248,250,252,0.70);
}
:root[data-design-theme="light"] .billing-pill--ai{
  border-color:rgba(124,58,237,0.35);
  color:#5b21b6;
  background:rgba(124,58,237,0.10);
}
:root[data-design-theme="light"] .pricing-card{
  border-color:rgba(15,23,42,0.12);
  background:linear-gradient(160deg, rgba(255,255,255,0.92), rgba(241,245,249,0.78));
  box-shadow:0 10px 24px rgba(15,23,42,0.08), inset 0 1px 0 rgba(255,255,255,0.80);
}
:root[data-design-theme="light"] .pricing-card--ai{
  border-color:rgba(124,58,237,0.26);
  background:linear-gradient(160deg, rgba(245,243,255,0.94), rgba(239,246,255,0.82));
}
:root[data-design-theme="light"] .html5-snapshot{
  border-color:rgba(14,165,233,0.20);
  background:
    linear-gradient(135deg, rgba(255,255,255,0.86), rgba(241,245,249,0.68)),
    repeating-linear-gradient(90deg, rgba(15,23,42,0.045) 0 1px, transparent 1px 18px);
  box-shadow:0 18px 36px rgba(15,23,42,0.10);
}
:root[data-design-theme="light"] .html5-snapshot-figure figcaption{
  color:#475569;
}
:root[data-design-theme="light"] .html5-wireframe{
  border-color:rgba(15,23,42,0.12);
  background:
    linear-gradient(135deg, rgba(14,165,233,0.11), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,0.90), rgba(226,232,240,0.72));
}
:root[data-design-theme="light"] .html5-wireframe::before{
  border-color:rgba(15,23,42,0.13);
}
:root[data-design-theme="light"] .html5-output{
  border-color:rgba(15,23,42,0.12);
  background:rgba(255,255,255,0.82);
  color:#0f172a;
}
:root[data-design-theme="light"] .html5-details{
  border-top-color:rgba(15,23,42,0.10);
}
:root[data-design-theme="light"] .html5-details summary{
  color:#0369a1;
}
:root[data-design-theme="light"] .lightbox-inner{
  border-color:rgba(15,23,42,0.14);
  background:rgba(255,255,255,0.96);
}
:root[data-design-theme="light"] .lightbox-top{
  border-bottom-color:rgba(15,23,42,0.10);
}
:root[data-design-theme="light"] .lightbox-top button{
  border-color:rgba(15,23,42,0.14);
  background:rgba(241,245,249,0.88);
  color:var(--text);
}

@media (max-width: 720px){
  .header-cta .btn.small{
    display:none;
  }
  .header-cta .btn.small.header-auth-trigger{
    display:inline-flex;
  }
}

@media (max-width: 520px){
  .header-controls{
    gap:8px;
  }
  .brand-title span{
    display:none;
  }
  .design-switcher select{
    min-width:72px;
    width:72px;
    padding-left:8px;
    padding-right:22px;
  }
  .header-auth-trigger{
    min-width:78px;
  }
}

/* Cookie preferences modal (lightweight, no build step) */
.modal-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:18px;
  background:rgba(3,7,18,.80);
  z-index:9999;
}
.modal{
  width:min(720px, 100%);
  background:#111018;
  color:var(--text, #e5e7eb);
  border:1px solid rgba(255,255,255,.14);
  border-radius:18px;
  padding:20px;
  box-shadow:0 24px 72px rgba(0,0,0,.72);
}
.modal-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
}

.cookie-consent-modal{
  backdrop-filter: blur(3px);
}
.cookie-consent-panel{
  width:min(680px, 100%);
  max-height:min(90vh, 720px);
  overflow:auto;
  background:
    radial-gradient(115% 90% at 12% 0%, rgba(124,58,237,.20), transparent 42%),
    linear-gradient(180deg, #171420 0%, #111018 100%);
}
.cookie-consent-panel .eyebrow{
  margin:0 0 6px;
  color:rgba(216,204,255,.92);
  font-size:12px;
  font-weight:750;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.cookie-consent-panel h3{
  font-size:20px;
  line-height:1.25;
}
.cookie-consent-panel .lead{
  margin-top:8px;
  color:rgba(238,242,255,.82);
  line-height:1.65;
}
.cookie-consent-panel [data-cookie-close]{
  flex:0 0 auto;
  background:rgba(255,255,255,.08);
}
.cookie-consent-options{
  display:grid;
  gap:10px;
  margin-top:20px;
}
.cookie-consent-option{
  display:flex;
  gap:14px;
  align-items:flex-start;
  cursor:pointer;
  padding:16px;
  border:1px solid rgba(167,139,250,0.24);
  border-radius:15px;
  background:rgba(15,23,42,.82);
  transition:background .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cookie-consent-option:hover,
.cookie-consent-option:focus-within{
  border-color:rgba(196,181,253,0.70);
  background:rgba(31,24,48,.94);
  box-shadow:0 12px 28px rgba(2,6,23,.26);
}
.cookie-consent-option:has(input:checked){
  border-color:rgba(196,181,253,0.95);
  background:linear-gradient(135deg, rgba(76,29,149,.58), rgba(30,27,75,.88));
  box-shadow:0 0 0 1px rgba(196,181,253,.18), 0 16px 36px rgba(76,29,149,.28);
}
.cookie-consent-option input{
  flex:0 0 auto;
  width:18px;
  height:18px;
  margin-top:2px;
  accent-color:#a78bfa;
}
.cookie-consent-option strong,
.cookie-consent-option span span{
  display:block;
}
.cookie-consent-option strong{
  color:#ffffff;
  font-size:15.5px;
  line-height:1.35;
}
.cookie-consent-option .muted{
  margin-top:3px;
  color:rgba(226,232,240,.82);
  line-height:1.45;
}
.cookie-consent-actions{
  justify-content:flex-end;
  gap:10px;
  margin-top:18px;
  padding-top:16px;
  border-top:1px solid rgba(255,255,255,.10);
}
.cookie-consent-actions .btn{
  min-height:42px;
  white-space:nowrap;
}
.cookie-consent-actions [data-cookie-choice="essential"]{
  margin-right:auto;
}
@media (max-width: 640px){
  .modal-overlay{
    align-items:flex-end;
    padding:10px;
  }
  .modal{
    padding:16px;
    border-radius:18px 18px 14px 14px;
  }
  .modal-header{
    align-items:flex-start;
  }
  .cookie-consent-actions .btn,
  .cookie-consent-actions [data-cookie-choice="essential"]{
    width:100%;
    margin-right:0;
  }
}

/* News / announcements */
.news-hero{padding-bottom:56px}
.news-feature-card{padding:22px; align-self:center}
.news-list{display:grid; gap:16px; margin-top:22px}
.news-card{padding:20px}
.news-card h3{margin:0 0 10px; font-size:22px; line-height:1.3}
.news-card h3 a{color:var(--text); text-decoration:none}
.news-card h3 a:hover{text-decoration:underline}
.eyebrow{margin:0 0 10px; color:var(--accent2); font-size:12px; font-weight:800; letter-spacing:.12em; text-transform:uppercase}
.narrow{max-width:880px}
.article-page h1{font-size:clamp(34px, 5vw, 58px); line-height:1.02; margin:0 0 18px}
.article-card{padding:24px; margin-top:24px}
.article-card h2{font-size:24px; margin-top:28px}
.article-card h2:first-child{margin-top:0}
.article-card p{color:var(--muted); line-height:1.75}
