/* Sigphase — dark product site */
:root {
  --bg: #06070a;
  --bg-2: #0b0d12;
  --panel: rgba(255, 255, 255, 0.035);
  --panel-2: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --text: #eef0f5;
  --muted: #9aa1b2;
  --dim: #6b7182;
  --a1: #7c8cff;   /* indigo */
  --a2: #2ee6c5;   /* teal */
  --a3: #c38bff;   /* violet */
  --warn: #ffb547;
  --radius: 18px;
  --wrap: 1180px;
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", "Cascadia Code", ui-monospace, SFMono-Regular, Consolas, monospace;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p a, .notices a, td a { color: var(--a2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(46,230,197,.4); }
h1, h2, h3, h4 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; font-weight: 650; }
h1 { font-size: clamp(2.5rem, 6.4vw, 5rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.9rem, 4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--a2); outline-offset: 3px; border-radius: 6px; }

/* background */
.bg-grid {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(1000px 600px at 85% -10%, rgba(124,140,255,.16), transparent 60%),
    radial-gradient(800px 500px at -10% 20%, rgba(46,230,197,.08), transparent 60%),
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 56px 56px,
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px) 0 0 / 56px 56px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.6) 50%, rgba(0,0,0,.35) 100%);
}

/* topbar */
.topbar { position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); background: rgba(6,7,10,.62); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand img { width: 132px; height: auto; }
.nav { display: flex; align-items: center; gap: 28px; font-size: .94rem; color: var(--muted); }
.nav a:not(.btn):hover { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; width: 40px; height: 40px; padding: 10px 8px; cursor: pointer; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.nav-toggle span + span { margin-top: 7px; }
.nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* buttons & pills */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: 999px; font-weight: 600; font-size: .96rem; border: 1px solid transparent; transition: transform .2s, background .2s, border-color .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn--primary { background: linear-gradient(135deg, #fff, #dfe4ff); color: #0a0b10; box-shadow: 0 8px 30px -8px rgba(124,140,255,.6); }
.btn--ghost { border-color: var(--line-2); color: var(--text); background: rgba(255,255,255,.03); }
.btn--ghost:hover { border-color: rgba(255,255,255,.32); background: rgba(255,255,255,.06); }
.btn--sm { height: 36px; padding: 0 16px; font-size: .88rem; }
.pill { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--muted); background: rgba(255,255,255,.03); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.pill--dev::before { background: var(--a2); box-shadow: 0 0 10px var(--a2); animation: pulse 2.4s infinite; }
.pill--lab::before { background: var(--a3); }
.pill--done::before { background: var(--a2); }
.pill--next::before { background: var(--warn); }
@keyframes pulse { 50% { opacity: .35; } }
.eyebrow { display: inline-block; font: 600 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--a2); margin-bottom: 18px; }
.grad { background: linear-gradient(100deg, #fff 10%, #c9d0ff 45%, var(--a2) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.render-chip { position: absolute; right: 12px; bottom: 10px; font: 500 .7rem/1 var(--mono); letter-spacing: .08em; color: rgba(255,255,255,.55); background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.12); padding: 4px 8px; border-radius: 6px; }

/* sections */
.section { padding: clamp(72px, 10vw, 130px) 0; position: relative; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.center { text-align: center; margin-inline: auto; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); color: var(--muted); max-width: 680px; }
.hr { height: 1px; background: linear-gradient(90deg, transparent, var(--line-2), transparent); border: 0; margin: 0; }

/* home hero */
.hero { padding: clamp(64px, 10vw, 120px) 0 40px; text-align: center; position: relative; }
.hero h1 { max-width: 920px; margin: 18px auto 22px; }
.hero .lead { margin: 0 auto 34px; }
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-stage { position: relative; margin: 56px auto 0; max-width: 1000px; }
.hero-stage::before { content: ""; position: absolute; left: 10%; right: 10%; bottom: 6%; height: 40%; background: radial-gradient(closest-side, rgba(124,140,255,.45), rgba(46,230,197,.15) 60%, transparent); filter: blur(40px); z-index: -1; }
.hero-stage img { width: 100%; filter: drop-shadow(0 40px 60px rgba(0,0,0,.6)); animation: float 7s ease-in-out infinite; }
.hero-stage .render-chip { bottom: 6%; right: 8%; }
@keyframes float { 50% { transform: translateY(-10px); } }

/* product cards */
.pgrid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 20px; }
.pcard { position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 24px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); overflow: hidden; transition: border-color .3s, transform .3s, box-shadow .3s; }
a.pcard:hover { border-color: rgba(124,140,255,.5); transform: translateY(-3px); box-shadow: 0 30px 80px -30px rgba(124,140,255,.45); }
.pcard-media { position: relative; aspect-ratio: 16 / 10; display: grid; place-items: center; background: radial-gradient(60% 70% at 50% 60%, rgba(124,140,255,.22), transparent 70%); }
.pcard-media img { width: 86%; filter: drop-shadow(0 24px 40px rgba(0,0,0,.6)); transition: transform .5s; }
a.pcard:hover .pcard-media img { transform: scale(1.03) translateY(-4px); }
.pcard-media--empty { background: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 12px, transparent 12px 24px); }
.pcard-glyph { width: 88px; height: 88px; border-radius: 22px; border: 1px dashed var(--line-2); position: relative; }
.pcard-glyph::after { content: "+"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--dim); }
.pcard-body { padding: 26px 28px 30px; }
.pcard-body h3 { font-size: 1.6rem; margin: 14px 0 8px; }
.pcard-body p { color: var(--muted); margin: 0 0 16px; }
.pcard-link { color: var(--a2); font-weight: 600; }
.pcard--soon .pcard-body h3 { color: var(--muted); }

/* about / values */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 28px; }
.card h3 { margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 18px; background: linear-gradient(135deg, rgba(124,140,255,.25), rgba(46,230,197,.18)); border: 1px solid var(--line-2); }
.icon svg { width: 22px; height: 22px; stroke: #fff; fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* product hero */
.phero { padding: clamp(56px, 8vw, 96px) 0 24px; }
.phero-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center; }
.phero h1 { margin: 16px 0 18px; }
.phero h1 small { display: block; font-size: .32em; font-weight: 500; letter-spacing: 0; color: var(--muted); margin-top: 12px; }
.phero .lead { margin-bottom: 28px; }
.status { display: flex; align-items: center; gap: 10px; margin-top: 26px; font-size: .9rem; color: var(--muted); }
.phero-stage { position: relative; }
.phero-stage::before { content: ""; position: absolute; inset: 15% 5% 0; background: radial-gradient(closest-side, rgba(124,140,255,.45), rgba(46,230,197,.12) 65%, transparent); filter: blur(46px); z-index: -1; }
.phero-stage img { filter: drop-shadow(0 40px 60px rgba(0,0,0,.65)); }

/* key stats */
.stats { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); margin-top: 56px; }
.stat { padding: 22px 22px; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 1.35rem; font-weight: 650; letter-spacing: -0.02em; }
.stat span { font-size: .84rem; color: var(--muted); }

/* sub nav */
.subnav { position: sticky; top: 64px; z-index: 40; background: rgba(6,7,10,.75); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.subnav .wrap { display: flex; gap: 26px; overflow-x: auto; scrollbar-width: none; height: 48px; align-items: center; font-size: .88rem; color: var(--muted); white-space: nowrap; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a:hover, .subnav a.active { color: var(--text); }

/* features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.feature + .feature { margin-top: clamp(80px, 10vw, 130px); }
.feature--flip > :first-child { order: 2; }
.feature h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.feature p { color: var(--muted); font-size: 1.05rem; }
.feature-media { position: relative; border-radius: 24px; border: 1px solid var(--line); background: radial-gradient(70% 60% at 50% 55%, rgba(124,140,255,.16), transparent 70%), var(--bg-2); padding: 18px; overflow: hidden; }
.feature-media--photo { padding: 0; }
.feature-media--photo img { border-radius: 23px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); }
.ticks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2px solid var(--a2); border-bottom: 2px solid var(--a2); transform: rotate(-45deg); }
.ticks li span { color: var(--muted); }
.note { font-size: .86rem; color: var(--dim); margin-top: 14px; }
.tag { font: 500 .72rem/1 var(--mono); letter-spacing: .06em; padding: 4px 8px; border-radius: 6px; border: 1px solid var(--line-2); color: var(--muted); vertical-align: middle; margin-left: 6px; white-space: nowrap; }
.tag--exp { color: var(--a3); border-color: rgba(195,139,255,.4); }

/* port tour */
.tour { border: 1px solid var(--line); border-radius: 28px; background: var(--bg-2); overflow: hidden; }
.tour-tabs { display: flex; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tour-tabs::-webkit-scrollbar { display: none; }
.tour-tabs button { flex: 1; min-width: 150px; background: none; border: 0; color: var(--muted); font: 600 .92rem var(--font); padding: 18px 16px; cursor: pointer; border-bottom: 2px solid transparent; transition: color .2s, border-color .2s, background .2s; }
.tour-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--a2); background: rgba(255,255,255,.03); }
.tour-panel { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; padding: 28px clamp(20px, 4vw, 44px) 36px; }
.tour-panel[hidden] { display: none; }
.tour-img { position: relative; background: radial-gradient(60% 60% at 50% 55%, rgba(124,140,255,.18), transparent 70%); border-radius: 18px; }
.tour-panel ol { margin: 0; padding: 0; list-style: none; counter-reset: p; display: grid; gap: 12px; }
.tour-panel ol li { counter-increment: p; display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.tour-panel ol li::before { content: counter(p); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font: 600 .78rem var(--mono); color: var(--a2); background: rgba(46,230,197,.08); border: 1px solid rgba(46,230,197,.25); }
.tour-panel ol li span { color: var(--muted); display: block; font-size: .9rem; }

/* bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento .card { grid-column: span 2; }
.bento .card.wide { grid-column: span 3; }
.bento .card .k { font: 600 .74rem/1 var(--mono); color: var(--a2); letter-spacing: .1em; text-transform: uppercase; display: block; margin-bottom: 14px; }

/* run table */
.runs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.run { border: 1px solid var(--line); border-radius: 16px; padding: 22px; background: var(--panel); }
.run h4 { font-size: 1rem; margin: 0 0 8px; }
.run p { font-size: .92rem; margin: 0; color: var(--muted); }
.run--box { border-color: rgba(46,230,197,.35); background: linear-gradient(180deg, rgba(46,230,197,.07), transparent); }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery figure { margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; background: var(--bg-2); }
.gallery figure img { aspect-ratio: 16 / 9; object-fit: cover; width: 100%; transition: transform .6s; }
.gallery figure:hover img { transform: scale(1.03); }
.gallery figcaption { padding: 16px 20px 20px; font-size: .92rem; color: var(--muted); }
.gallery figcaption b { color: var(--text); display: block; margin-bottom: 4px; font-size: 1rem; }

/* specs */
.specs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.spec-group { padding: 24px 0; border-top: 1px solid var(--line); }
.spec-group h3 { font-size: .8rem; font-family: var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--a2); margin-bottom: 14px; }
.spec-group dl { margin: 0; display: grid; grid-template-columns: 150px 1fr; gap: 10px 18px; font-size: .94rem; }
.spec-group dt { color: var(--muted); }
.spec-group dd { margin: 0; }

/* not list */
.notlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.notlist div { border: 1px dashed var(--line-2); border-radius: 14px; padding: 18px; color: var(--muted); font-size: .93rem; }
.notlist b { display: block; color: var(--text); margin-bottom: 4px; }

/* timeline */
.timeline { position: relative; display: grid; gap: 0; max-width: 860px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--a2), var(--a1) 40%, var(--line) 60%); }
.tl { position: relative; padding: 0 0 34px 48px; }
.tl::before { content: ""; position: absolute; left: 4px; top: 6px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); }
.tl--done::before { background: var(--a2); border-color: var(--a2); box-shadow: 0 0 14px rgba(46,230,197,.6); }
.tl--now::before { border-color: var(--a1); box-shadow: 0 0 0 5px rgba(124,140,255,.18); background: var(--a1); animation: pulse 2.4s infinite; }
.tl .when { font: 600 .78rem/1 var(--mono); letter-spacing: .08em; color: var(--dim); text-transform: uppercase; }
.tl h3 { margin: 8px 0 6px; font-size: 1.12rem; }
.tl p { color: var(--muted); margin: 0; font-size: .96rem; }

/* CTA */
.cta { position: relative; border: 1px solid var(--line-2); border-radius: 32px; padding: clamp(40px, 7vw, 80px) clamp(24px, 6vw, 72px); text-align: center; overflow: hidden; background: radial-gradient(80% 120% at 50% 0%, rgba(124,140,255,.25), transparent 60%), radial-gradient(60% 80% at 100% 100%, rgba(46,230,197,.12), transparent 60%), var(--bg-2); }
.cta h2 { margin-bottom: 14px; }
.cta p { color: var(--muted); max-width: 640px; margin: 0 auto 28px; }
.cta .hero-cta { margin-top: 8px; }
.small { font-size: .86rem; color: var(--dim); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 56px 0 40px; margin-top: 40px; background: rgba(0,0,0,.25); }
.footer-top { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.footer-top p { max-width: 360px; margin-top: 14px; font-size: .92rem; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; color: var(--muted); font-size: .94rem; }
.footer-links a:hover { color: var(--text); }
.notices { border-top: 1px solid var(--line); padding-top: 24px; display: grid; gap: 10px; font-size: .9rem; color: #c4c9d6; max-width: 980px; }
.notices p { margin: 0; }
.copyright { margin-top: 26px; font-size: .84rem; color: var(--dim); }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* 404 */
.nf { min-height: 60vh; display: grid; place-items: center; text-align: center; }

/* responsive */
@media (max-width: 960px) {
  .phero-grid, .feature, .tour-panel { grid-template-columns: 1fr; }
  .feature--flip > :first-child { order: 0; }
  .phero-stage { order: -1; }
  .pgrid, .values, .runs, .specs, .gallery { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento .card, .bento .card.wide { grid-column: span 1; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; border-top: 1px solid var(--line); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .stat:nth-child(even) { border-left: 1px solid var(--line); }
  .stat:last-child { grid-column: span 2; border-left: 0; }
}
@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 16px 18px; background: rgba(6,7,10,.97); border-bottom: 1px solid var(--line); display: none; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .nav .btn { margin-top: 12px; justify-content: center; border-bottom: 1px solid var(--line-2); }
  .bento { grid-template-columns: 1fr; }
  .spec-group dl { grid-template-columns: 1fr; gap: 2px; }
  .spec-group dd { margin-bottom: 10px; }
  .btn { height: 44px; padding: 0 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
