/* Eddy Digital — design tokens. Dark is the default look; light follows the toggle or the system. */
:root, :root[data-theme="dark"] {
  --bg: #0a0a0b;
  --bg-2: #111113;
  --card: #141416;
  --card-2: #1b1b1e;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f2f2f4;
  --muted: #a0a0a8;
  --faint: #6e6e76;
  --accent: #0a84ff;
  --logo: #0a84ff;
  --accent-soft: rgba(10, 132, 255, .14);
  --on-accent: #ffffff;
  --glow: rgba(10, 132, 255, .18);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .7);
  --stage: linear-gradient(160deg, #17171b, #0e0e11);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --card: #f5f5f7;
  --card-2: #ffffff;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .14);
  --text: #1d1d1f;
  --muted: #6e6e73;
  --faint: #86868b;
  --accent: #0071e3;
  --logo: #0a84ff;
  --accent-soft: rgba(0, 113, 227, .1);
  --on-accent: #ffffff;
  --glow: rgba(0, 113, 227, .12);
  --shadow: 0 30px 80px -30px rgba(0, 0, 0, .22);
  --stage: linear-gradient(160deg, #eef0f4, #e4e7ee);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Geist, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}
a { color: inherit; text-decoration: none; }
img { display: block; }
.mono, code { font-family: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

/* Nav */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 78%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); border-bottom: 1px solid var(--line); }
.nav { height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.01em; }
.logo { width: 28px; height: 28px; }
.brand span { font-weight: 600; letter-spacing: -.025em; }
.links { display: flex; gap: 28px; font-size: 14px; color: var(--muted); }
.links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 10px; }
.theme { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; color: var(--text); display: grid; place-items: center; cursor: pointer; transition: background .2s, transform .25s cubic-bezier(.34,1.56,.64,1); }
.theme:hover { background: var(--card); }
.theme:active { transform: scale(.92); }
.theme svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.theme .i-moon { fill: currentColor; stroke: none; }
:root[data-theme="dark"] .i-moon, :root[data-theme="light"] .i-sun { display: none; }

/* Buttons */
.pill { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: 15px; background: var(--card); color: var(--text); border: 1px solid var(--line); transition: transform .2s cubic-bezier(.22,1,.36,1), background .2s; cursor: pointer; }
.pill:hover { transform: translateY(-1px); background: var(--card-2); }
.pill.primary { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.pill.primary:hover { filter: brightness(1.08); background: var(--accent); }
.pill svg { width: 16px; height: 16px; fill: currentColor; }
.pill.small { height: 40px; padding: 0 18px; font-size: 14px; }

/* Hero */
.hero { position: relative; text-align: center; padding: 104px 24px 72px; }
.hero::before { content: ""; position: absolute; inset: -80px 0 auto; height: 420px; background: radial-gradient(600px 260px at 50% 30%, var(--glow), transparent 70%); pointer-events: none; z-index: -1; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); font-size: 13px; color: var(--muted); }
.badge:hover { color: var(--text); }
.badge .new { background: var(--accent); color: #fff; font-weight: 600; padding: 2px 9px; border-radius: 999px; font-size: 12px; }
h1 { font-size: clamp(42px, 7.2vw, 76px); line-height: 1.02; letter-spacing: -.04em; font-weight: 700; margin: 26px auto 0; }
h1 .soft { color: var(--faint); }
.lead { font-size: clamp(17px, 2vw, 20px); color: var(--muted); max-width: 620px; margin: 22px auto 0; }
.icon-row { display: flex; justify-content: center; gap: 10px; margin: 30px 0 0; }
.icon-row img, .icon-row .ico { width: 40px; height: 40px; border-radius: 10px; }
.icon-row .ico { display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--muted); }
.icon-row .ico svg { width: 22px; height: 22px; }
.icon-row .ico.sq { background: none; border: 0; }
.icon-row .ico.sq svg { width: 40px; height: 40px; }
.icon-row > * { animation: float 4s cubic-bezier(.45,0,.55,1) infinite; }
.icon-row > *:nth-child(2n) { animation-delay: -2s; }
@keyframes float { 50% { transform: translateY(-4px); } }
.cta { display: flex; justify-content: center; gap: 12px; margin-top: 30px; flex-wrap: wrap; }

/* Section heads */
section { padding: 56px 0; }
section + section { padding-top: 24px; }
.row-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
h2 { font-size: 22px; letter-spacing: -.02em; margin: 0; font-weight: 600; }
.eyebrow { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 10px; }

/* Featured cards */
.feat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.feat { position: relative; border-radius: 22px; border: 1px solid var(--line); background: var(--card); overflow: hidden; transition: transform .25s cubic-bezier(.22,1,.36,1), border-color .25s; }
.feat:hover { transform: translateY(-2px); border-color: var(--line-2); }
.feat-link { position: absolute; inset: 0; z-index: 3; border-radius: 22px; }
.stage { height: 300px; background: var(--stage); display: grid; place-items: center; padding: 28px; border-bottom: 1px solid var(--line); overflow: hidden; }
.feat-body { display: flex; gap: 14px; padding: 18px 20px 22px; align-items: flex-start; }
.app-ico { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.app-ico.svg svg { width: 44px; height: 44px; }
.feat h3 { margin: 0; font-size: 17px; letter-spacing: -.01em; display: flex; align-items: center; gap: 6px; }
.feat p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #ffcc00; display: inline-block; }
.note { font-size: 12px; color: var(--faint); margin: 14px 0 0; }
#company { padding-top: 56px; }

/* SmartMate TV preview (always dark: it is a TV screen) */
.tv { width: 100%; max-width: 440px; aspect-ratio: 16 / 10; border-radius: 12px; background: #050507; border: 1px solid rgba(255,255,255,.1); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.tv-bar { display: flex; align-items: center; gap: 6px; }
.tv-logo { width: 14px; height: 14px; border-radius: 4px; background: linear-gradient(135deg, #8b5cf6, #ec4899); margin-right: 4px; }
.tab { font-size: 9px; color: rgba(255,255,255,.55); padding: 3px 8px; border-radius: 999px; font-family: Geist, sans-serif; }
.tab.on { background: #fff; color: #000; font-weight: 600; }
.tv-hero { flex: 1; border-radius: 8px; background: linear-gradient(120deg, #3a2a6b, #1a1030 55%, #0a0a12); position: relative; overflow: hidden; }
.tv-hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(160px 90px at 78% 40%, rgba(236,72,153,.35), transparent 70%); animation: drift 6s cubic-bezier(.45,0,.55,1) infinite alternate; }
@keyframes drift { to { transform: translateX(-30px); } }
.tv-hero-text { position: absolute; left: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 5px; z-index: 1; }
.tv-hero-text i { display: block; width: 110px; height: 7px; border-radius: 4px; background: rgba(255,255,255,.85); }
.tv-hero-text i.short { width: 70px; background: rgba(255,255,255,.4); }
.tv-play { margin-top: 3px; font-size: 8px; font-weight: 700; background: #fff; color: #000; border-radius: 999px; padding: 3px 9px; width: max-content; font-family: Geist, sans-serif; }
.tv-row { display: flex; gap: 6px; animation: slide 9s cubic-bezier(.45,0,.55,1) infinite; }
@keyframes slide { 0%, 20% { transform: none; } 50%, 70% { transform: translateX(-46px); } 100% { transform: none; } }
.poster { width: 44px; height: 62px; flex: none; border-radius: 6px; }
.p1 { background: linear-gradient(160deg, #f59e0b, #b45309); } .p2 { background: linear-gradient(160deg, #22d3ee, #0e7490); }
.p3 { background: linear-gradient(160deg, #a78bfa, #5b21b6); } .p4 { background: linear-gradient(160deg, #f472b6, #9d174d); }
.p5 { background: linear-gradient(160deg, #4ade80, #166534); } .p6 { background: linear-gradient(160deg, #fb7185, #9f1239); }
.p2 { outline: 2px solid #fff; outline-offset: 1px; transform: scale(1.05); }
.tv-row.small { animation: none; }
.chan { font-size: 8px; color: rgba(255,255,255,.75); background: rgba(255,255,255,.08); border-radius: 6px; padding: 5px 8px; font-family: Geist, sans-serif; }

/* Squeaky window preview */
.win { width: 100%; max-width: 420px; border-radius: 12px; background: var(--card-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); overflow: hidden; }
.win-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; border-bottom: 1px solid var(--line); }
.tl { width: 10px; height: 10px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.win-title { margin-left: 8px; font-size: 11px; color: var(--muted); font-weight: 600; }
.win-body { display: flex; gap: 18px; padding: 18px; align-items: center; }
.ring { position: relative; width: 116px; height: 116px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--line-2); }
.ring .prog { stroke: url(#sqg); stroke: #0a84ff; stroke-linecap: round; stroke-dasharray: 314; stroke-dashoffset: 314; }
.ring-num { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-num b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ring-num small { font-size: 10px; color: var(--muted); }
.scan { list-style: none; margin: 0; padding: 0; flex: 1; display: grid; gap: 7px; font-size: 11.5px; }
.scan li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 9px; border-radius: 8px; background: var(--card); opacity: .35; transition: opacity .4s; }
.scan li em { font-style: normal; color: var(--muted); font-variant-numeric: tabular-nums; }
.scan li.on { opacity: 1; }
.sq-stage.run .prog { animation: ringfill 6s cubic-bezier(.22,1,.36,1) infinite; }
@keyframes ringfill { 0% { stroke-dashoffset: 314; } 60%, 92% { stroke-dashoffset: 40; } 100% { stroke-dashoffset: 314; } }

/* Two columns: list + sidebar */
.two-col { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.chip { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 13px; cursor: pointer; transition: background .2s, color .2s; }
.chip:hover { color: var(--text); }
.chip.on { background: var(--text); color: var(--bg); border-color: transparent; }
.list { display: grid; gap: 10px; }
.item { display: grid; grid-template-columns: 48px 1fr auto; gap: 14px; align-items: center; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: border-color .2s, transform .2s cubic-bezier(.22,1,.36,1); }
.item:hover { border-color: var(--line-2); transform: translateY(-1px); }
.item img, .svg48 svg { width: 48px; height: 48px; border-radius: 12px; }
.item strong { display: flex; align-items: center; gap: 6px; font-size: 15px; }
.item .desc { display: block; color: var(--muted); font-size: 14px; margin-top: 2px; }
.item .meta { display: block; color: var(--faint); font-size: 12px; margin-top: 6px; }
.item .go { color: var(--faint); font-size: 22px; padding: 0 6px; }
.empty { color: var(--muted); padding: 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: 16px; }
.side { display: grid; gap: 14px; position: sticky; top: 80px; }
.panel { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 18px; }
.side-h { margin: 0 0 12px; font-size: 14px; color: var(--muted); font-weight: 500; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0; }
.facts div { background: var(--bg-2); border-radius: 12px; padding: 12px; }
.facts dt { font-size: 12px; color: var(--faint); }
.facts dd { margin: 4px 0 0; font-size: 24px; font-weight: 500; letter-spacing: -.02em; }
.promise { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; font-size: 14px; color: var(--muted); }
.promise li { display: flex; gap: 10px; align-items: flex-start; }
.promise b { color: var(--text); font-weight: 600; }
.promise svg { width: 18px; height: 18px; flex: none; margin-top: 2px; fill: none; stroke: var(--accent); stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

/* Platforms */
.plat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.plat { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); font-size: 14px; }
.plat em { margin-left: auto; font-style: normal; color: var(--faint); font-size: 12px; }
.pi { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: #fff; flex: none; }
.pi svg { width: 17px; height: 17px; }
.pi.blue { background: #0a84ff; } .pi.gray { background: #636366; } .pi.indigo { background: #5e5ce6; } .pi.green { background: #30a14e; }
.pi.orange { background: #e8590c; } .pi.purple { background: #8e44ad; } .pi.teal { background: #0d9488; } .pi.pink { background: #d6336c; }

/* Company */
.company { display: grid; grid-template-columns: 1.2fr 1fr; gap: 28px; padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: var(--card); }
.company h2 { font-size: 28px; }
.company p { margin: 12px 0 0; }
.contacts { margin: 0; display: grid; gap: 14px; align-content: center; }
.contacts div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); padding-bottom: 12px; font-size: 14px; }
.contacts div:last-child { border: 0; padding: 0; }
.contacts dt { color: var(--faint); }
.contacts dd { margin: 0; }
.contacts a { color: var(--accent); }

/* Footer */
.foot { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 40px; overflow: hidden; }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px; }
.foot h4 { margin: 0 0 10px; font-size: 13px; font-weight: 600; }
.foot-grid a:not(.brand) { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot-grid a:hover { color: var(--text); }
.small-t { font-size: 14px; margin: 10px 0 0; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 36px; font-size: 12px; color: var(--faint); }
.wordmark { font-weight: 700; letter-spacing: -.06em; font-size: clamp(64px, 17vw, 220px); line-height: .8; text-align: center; margin-top: 28px; color: transparent; background: linear-gradient(180deg, var(--line-2), transparent 85%); -webkit-background-clip: text; background-clip: text; user-select: none; white-space: nowrap; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .45s cubic-bezier(.22,1,.36,1), transform .45s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .ring .prog { stroke-dashoffset: 40; }
  .scan li { opacity: 1; }
}

@media (max-width: 900px) {
  .two-col { grid-template-columns: 1fr; }
  .side { position: static; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .links { display: none; }
  .feat-grid, .company { grid-template-columns: 1fr; }
  .hero { padding: 72px 16px 48px; }
  .wrap { padding: 0 16px; }
  .stage { height: 240px; padding: 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
  .company { padding: 24px; }
}
@media (max-width: 420px) {
  .win-body { flex-direction: column; }
  .plat-grid { grid-template-columns: 1fr; }
}
