/* OnDevice LLM — home page (2026-10 redesign). Other pages keep styles.css. */

:root {
  --bg: #050608;
  --bg-2: #0b0d12;
  --card: rgba(255, 255, 255, 0.035);
  --card-solid: #101319;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #f2f4f8;
  --muted: #9aa3b2;
  --dim: #6a7280;
  --blue: #3d8bff;
  --violet: #8b5cf6;
  --mint: #34d399;
  --amber: #fbbf24;
  --radius: 22px;
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 6, 8, 0.72);
  backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 20px; height: 62px; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; font-size: 15px; letter-spacing: -0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 8px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { background: var(--text); color: #000 !important; padding: 8px 16px; border-radius: 999px; font-weight: 600 !important; }
@media (max-width: 760px) { .nav-links a:not(.nav-cta) { display: none; } }

/* ---------- hero ---------- */
.hero { position: relative; padding: 84px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 900px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 22% 30%, rgba(61, 139, 255, 0.22), transparent 70%),
    radial-gradient(35% 45% at 78% 22%, rgba(139, 92, 246, 0.20), transparent 70%),
    radial-gradient(30% 40% at 60% 70%, rgba(52, 211, 153, 0.10), transparent 70%);
  filter: blur(10px);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 60% at 50% 30%, #000 0%, transparent 75%);
}
.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-in { grid-template-columns: 1fr; gap: 56px; } .hero { padding-top: 56px; } }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 6px; border-radius: 999px; font-size: 13.5px; color: var(--muted);
  background: var(--card); border: 1px solid var(--line-2);
}
.pill b { background: linear-gradient(135deg, var(--blue), var(--violet)); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.pill:hover { color: var(--text); }

h1 {
  font-size: clamp(42px, 6.4vw, 76px); line-height: 1.02; letter-spacing: -0.045em; font-weight: 750;
  margin: 22px 0 22px;
}
.grad { background: linear-gradient(100deg, #9cc4ff 0%, #c4b0ff 55%, #8ff0c9 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); max-width: 33em; margin: 0 0 32px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--text); color: #000; font-weight: 650; font-size: 16px;
  padding: 14px 24px; border-radius: 14px; transition: transform .15s, box-shadow .15s;
  box-shadow: 0 10px 40px rgba(61, 139, 255, 0.25);
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 14px 50px rgba(61, 139, 255, 0.35); }
.btn svg { width: 18px; height: 18px; }
.btn-ghost { background: var(--card); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }
.btn-ghost:hover { box-shadow: none; border-color: rgba(255,255,255,.28); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 30px; color: var(--muted); font-size: 14px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust i { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }

/* ---------- phone mock ---------- */
.stage { position: relative; display: flex; justify-content: center; }
.stage::before {
  content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; top: 12%;
  background: radial-gradient(circle, rgba(139, 92, 246, .35), transparent 65%); filter: blur(30px);
}
.phone {
  position: relative; width: 300px; height: 620px; border-radius: 50px; padding: 11px;
  background: linear-gradient(145deg, #2a2d35, #0d0f13); box-shadow: 0 40px 100px rgba(0,0,0,.6), inset 0 0 0 1.5px rgba(255,255,255,.12);
}
.screen { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #000; display: flex; flex-direction: column; font-size: 13px; }
.sb { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font-weight: 600; font-size: 13px; }
.island { width: 92px; height: 26px; border-radius: 20px; background: #000; position: absolute; left: 50%; top: 10px; transform: translateX(-50%); box-shadow: 0 0 0 1px #111; }
.sb .plane { color: var(--amber); font-size: 13px; }
.topbar { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px 8px; font-weight: 650; font-size: 14.5px; border-bottom: 1px solid #1c1f26; }
.topbar .tag { font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--mint); background: rgba(52,211,153,.12); padding: 2px 6px; border-radius: 6px; }
.msgs { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.b { max-width: 84%; padding: 9px 12px; border-radius: 18px; line-height: 1.42; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .35s; }
.b.on { opacity: 1; transform: none; }
.b.me { align-self: flex-end; background: #0a84ff; color: #fff; border-bottom-right-radius: 6px; }
.b.ai { align-self: flex-start; background: #1c1e24; border-bottom-left-radius: 6px; }
.b.photo { padding: 5px; background: #0a84ff; }
.receipt {
  width: 150px; background: #f6f2e9; color: #2b2b2b; border-radius: 12px; padding: 10px 11px;
  font: 600 8.6px/1.5 ui-monospace, "SF Mono", Menlo, monospace; transform: rotate(-1.5deg);
}
.receipt .h { text-align: center; font-weight: 800; font-size: 9.5px; }
.receipt .r { display: flex; justify-content: space-between; }
.receipt hr { border: 0; border-top: 1px dashed #999; margin: 4px 0; }
.caret { display: inline-block; width: 2px; height: 13px; background: currentColor; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer { margin: 0 10px 8px; padding: 10px 14px; border-radius: 22px; background: #15171c; color: #666; font-size: 13px; }
.tabs { display: flex; justify-content: space-around; padding: 8px 8px 18px; border-top: 1px solid #1c1f26; color: #8b8f98; font-size: 9.5px; }
.tabs span { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.tabs span.on { color: #0a84ff; }
.tabs svg { width: 20px; height: 20px; }
.float {
  position: absolute; z-index: 2; padding: 10px 14px; border-radius: 14px; font-size: 13px; font-weight: 600;
  background: rgba(16, 19, 25, .85); border: 1px solid var(--line-2); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 8px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
}
.float i { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 10px var(--mint); }
.f1 { left: -6px; top: 18%; }
.f2 { right: -10px; bottom: 20%; }
@media (max-width: 520px) { .f1 { left: 0; } .f2 { right: 0; } }

/* ---------- sections ---------- */
section { padding: 104px 0; border-top: 1px solid var(--line); }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin: 0 0 14px; }
h2 { font-size: clamp(32px, 4.4vw, 52px); line-height: 1.06; letter-spacing: -0.035em; font-weight: 720; margin: 0 0 18px; max-width: 18em; }
.lead { font-size: 18.5px; color: var(--muted); max-width: 40em; margin: 0 0 48px; }
.center { text-align: center; }
.center h2, .center .lead { margin-left: auto; margin-right: auto; }

/* spotlight */
.spot { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 880px) { .spot { grid-template-columns: 1fr; } }
.qa { display: grid; gap: 12px; }
.qa div { display: flex; justify-content: space-between; gap: 16px; padding: 16px 20px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); font-size: 15.5px; }
.qa div span { color: var(--muted); }
.qa div b { color: var(--text); font-weight: 650; text-align: right; }
.spot ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; color: var(--muted); }
.spot li { display: flex; gap: 12px; }
.spot li::before { content: "✓"; color: var(--mint); font-weight: 800; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.tile {
  position: relative; overflow: hidden; grid-column: span 2; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); transition: border-color .2s, transform .2s;
}
.tile:hover { border-color: var(--line-2); transform: translateY(-2px); }
.tile.w3 { grid-column: span 3; }
.tile.w4 { grid-column: span 4; }
.tile h3 { font-size: 20px; letter-spacing: -0.02em; margin: 18px 0 8px; font-weight: 680; }
.tile p { color: var(--muted); margin: 0; font-size: 15.5px; }
.tile a { color: #9cc4ff; }
.ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: rgba(255,255,255,.06); border: 1px solid var(--line); }
.tile.glow::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(61,139,255,.28), transparent 70%); }
.tile.glow.v::after { background: radial-gradient(circle, rgba(139,92,246,.3), transparent 70%); }
@media (max-width: 900px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile, .tile.w3, .tile.w4 { grid-column: span 2; } }
@media (min-width: 600px) and (max-width: 900px) { .tile:not(.w3):not(.w4) { grid-column: span 1; } }

/* models */
.makers { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.maker { padding: 20px 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.maker small { display: block; color: var(--dim); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.maker b { display: block; font-size: 17px; margin: 4px 0 4px; letter-spacing: -0.01em; }
.maker span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 520px) { .makers { grid-template-columns: 1fr 1fr; gap: 10px; } .maker { padding: 16px; } .maker b { font-size: 15.5px; } .maker span { font-size: 13.5px; } }
.maker .new { display: inline-block; margin-left: 6px; font-size: 10.5px; font-weight: 700; color: #000; background: var(--mint); padding: 1px 7px; border-radius: 6px; vertical-align: 2px; }
.fine { color: var(--dim); font-size: 14.5px; margin: 26px 0 0; max-width: 46em; }
.fine a { color: #9cc4ff; }

/* compare */
.compare { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 15.5px; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { color: var(--muted); font-weight: 600; font-size: 13.5px; background: rgba(255,255,255,.02); }
.compare thead th.us { color: var(--text); }
.compare td.us { background: rgba(61,139,255,.07); color: var(--text); font-weight: 600; }
.compare td:not(.us):not(:first-child) { color: var(--muted); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll .compare { min-width: 520px; }
@media (max-width: 560px) { .table-scroll .compare { min-width: 0; font-size: 14px; } .compare th, .compare td { padding: 12px 10px; } }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; counter-reset: s; }
.steps li { list-style: none; padding: 28px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); counter-increment: s; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-weight: 750; background: linear-gradient(135deg, var(--blue), var(--violet)); margin-bottom: 18px; }
.steps h3 { margin: 0 0 6px; font-size: 18.5px; letter-spacing: -0.015em; }
.steps p { margin: 0; color: var(--muted); font-size: 15.5px; }
.steps { padding: 0; margin: 0; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* faq */
.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 40px 22px 0; font-size: 18px; font-weight: 620; letter-spacing: -0.01em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 18px; font-size: 24px; color: var(--muted); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--muted); font-size: 16px; max-width: 44em; }

/* band */
.band {
  position: relative; overflow: hidden; text-align: center; padding: 72px 28px; border-radius: 30px;
  background: linear-gradient(135deg, rgba(61,139,255,.18), rgba(139,92,246,.18)); border: 1px solid var(--line-2);
}
.band h2 { margin: 0 auto 14px; }
.band .lead { margin: 0 auto 32px; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 56px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 26px; align-items: center; font-size: 14px; color: var(--muted); }
.foot a:hover { color: var(--text); }
.foot .copy { margin-left: auto; color: var(--dim); }

/* reveal */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } .caret { animation: none; } }

@media (max-width: 520px) {
  .wrap, .nav-in { padding-left: 16px; padding-right: 16px; }
  section { padding: 76px 0; }
  .tile, .steps li { padding: 22px; }
  .phone { width: 272px; height: 566px; }
}
