:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --surface: rgba(255, 255, 255, .76);
  --surface-solid: #fff;
  --surface-soft: #ececf0;
  --text: #1d1d1f;
  --secondary: #6e6e73;
  --line: rgba(29, 29, 31, .1);
  --blue: #0071e3;
  --blue-soft: rgba(0, 113, 227, .1);
  --shadow: 0 18px 55px rgba(0, 0, 0, .08);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 16px;
  font: 100%/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
}

:root[data-theme="cool"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --surface: rgba(22, 22, 22, .78);
  --surface-solid: #161616;
  --surface-soft: #1f1f1f;
  --text: #f5f5f5;
  --secondary: #a0a0a0;
  --line: #2a2a2a;
  --blue: #ff6b35;
  --blue-soft: rgba(255, 107, 53, .13);
  --shadow: 0 20px 60px rgba(0, 0, 0, .42);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body { margin: 0; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(180%) blur(22px);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
}
.site-header::after { content: ""; position: absolute; inset: auto 0 -10px; height: 10px; background: linear-gradient(var(--bg), transparent); opacity: .28; pointer-events: none; }
.site-nav { width: min(100% - 32px, 1216px); height: 56px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { font-size: 1rem; font-weight: 650; letter-spacing: -.01em; text-decoration: none; }
.theme-toggle { width: auto; min-width: 76px; padding-inline: 12px; gap: 7px; border-radius: 999px; }
.theme-toggle-label { font-size: .75rem; font-weight: 650; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a, .mobile-menu a { color: var(--secondary); text-decoration: none; font-size: .875rem; font-weight: 520; padding: 7px 12px; border-radius: 10px; }
.nav-links a[aria-current="page"], .mobile-menu a[aria-current="page"] { color: var(--text); background: var(--surface-soft); }
.nav-actions { display: flex; gap: 8px; }
.icon-button { width: 34px; height: 34px; border: 0; border-radius: 50%; color: var(--text); background: var(--surface-soft); cursor: pointer; display: grid; place-items: center; transition: transform 120ms ease-out, background-color 160ms ease; }
.icon-button:active, .filter-button:active, .card-link:active { transform: scale(.97); transition-duration: 80ms; }
.menu-toggle { display: none; font-size: 1.15rem; }
.mobile-menu { width: min(100% - 32px, 1216px); margin: 0 auto; padding: 8px 0 16px; flex-direction: column; }

.hero { width: min(100% - 40px, 1216px); min-height: 660px; margin: auto; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 7vw, 96px); padding: 72px 0 92px; }
.eyebrow { margin: 0 0 18px; color: var(--blue); font-size: .75rem; line-height: 1.2; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(3rem, 5.5vw, 5.35rem); line-height: .98; letter-spacing: -.052em; font-weight: 720; }
.hero-intro { max-width: 610px; margin: 28px 0 0; color: var(--secondary); font-size: clamp(1.05rem, 1.8vw, 1.35rem); line-height: 1.62; letter-spacing: -.018em; }
.hero-demo { perspective: 1200px; }
.demo-window { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); box-shadow: var(--shadow); transform: rotateY(-5deg) rotateX(2deg); backdrop-filter: blur(28px) saturate(160%); }
.window-bar { height: 48px; padding: 0 18px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--line); color: var(--secondary); font-size: .72rem; }
.window-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.window-bar span { margin-left: auto; margin-right: auto; transform: translateX(-24px); }
.demo-stage { position: relative; min-height: 360px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at 50% 47%, var(--blue-soft), transparent 54%); }
.demo-orbit { position: absolute; width: 275px; height: 275px; border: 1px solid color-mix(in srgb, var(--blue) 28%, transparent); border-radius: 50%; }
.demo-orbit::after { content: ""; position: absolute; top: 18px; left: 52px; width: 12px; height: 12px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 24px var(--blue); }
.orbit-one { animation: orbit 12s linear infinite; }
.orbit-two { width: 190px; height: 190px; animation: orbit 9s linear infinite reverse; opacity: .55; }
.demo-core { width: 130px; height: 130px; display: grid; place-content: center; text-align: center; border-radius: 36px; background: var(--surface-solid); box-shadow: 0 12px 36px rgba(0, 0, 0, .12); z-index: 2; }
.demo-core span { font-size: 3rem; font-weight: 720; line-height: 1; letter-spacing: -.05em; }
.demo-core small { margin-top: 8px; color: var(--secondary); font-size: .62rem; font-weight: 700; letter-spacing: .14em; }
.demo-tabs { margin: 0 18px 18px; padding: 5px; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 14px; background: var(--surface-soft); color: var(--secondary); font-size: .76rem; text-align: center; }
.demo-tabs span { padding: 8px; border-radius: 10px; }
.demo-tabs .active { color: var(--text); background: var(--surface-solid); box-shadow: 0 1px 5px rgba(0, 0, 0, .08); }
@keyframes orbit { to { transform: rotate(360deg); } }

.project-browser { padding: 96px max(20px, calc((100vw - 1216px) / 2)) 112px; background: var(--surface-solid); border-radius: 44px 44px 0 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.5rem); line-height: 1; letter-spacing: -.05em; }
.filter-group { display: flex; gap: 5px; padding: 5px; border-radius: 14px; background: var(--surface-soft); }
.filter-button { border: 0; padding: 9px 14px; border-radius: 10px; color: var(--secondary); background: transparent; font-size: .82rem; font-weight: 600; cursor: pointer; transition: color 160ms ease, background-color 160ms ease, transform 100ms ease; }
.filter-button.is-active { color: var(--text); background: var(--surface-solid); box-shadow: 0 1px 6px rgba(0, 0, 0, .08); }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.project-card { min-width: 0; }
.project-card--wide { grid-column: 1 / -1; }
.card-link { height: 100%; display: grid; grid-template-rows: 310px 1fr; overflow: hidden; color: inherit; text-decoration: none; border-radius: var(--radius-lg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); transition: transform 220ms cubic-bezier(.2,.8,.2,1), box-shadow 220ms ease; }
.project-card--wide .card-link { grid-template-columns: 1.15fr .85fr; grid-template-rows: 430px; }
.project-visual { position: relative; overflow: hidden; min-height: 0; background: var(--surface-soft); }
.card-body { min-width: 0; padding: 27px 28px 25px; display: flex; flex-direction: column; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--secondary); font-size: .72rem; font-weight: 680; letter-spacing: .07em; text-transform: uppercase; }
.ai-badge, .status-badge { padding: 5px 8px; color: var(--blue); background: var(--blue-soft); border-radius: 999px; letter-spacing: 0; text-transform: none; white-space: nowrap; }
.status-badge { color: var(--secondary); background: var(--surface-soft); }
.card-body h3 { margin: 20px 0 12px; font-size: clamp(1.45rem, 2.5vw, 2rem); line-height: 1.15; letter-spacing: -.035em; }
.card-body p { margin: 0; color: var(--secondary); font-size: .96rem; line-height: 1.65; }
.card-footer { margin-top: auto; padding-top: 28px; display: flex; align-items: center; justify-content: space-between; color: var(--blue); font-size: .88rem; font-weight: 620; }
.arrow { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--blue-soft); font-size: 1rem; transition: transform 180ms ease; }
.availability-note { max-width: 720px; margin: 32px auto 0; color: var(--secondary); font-size: .82rem; line-height: 1.6; text-align: center; }

.visual-inference { background: radial-gradient(circle at 68% 40%, rgba(59, 130, 246, .3), transparent 38%), #101521; }
.memory-stack { position: absolute; left: 12%; top: 20%; width: 48%; height: 62%; transform: rotate(-8deg); }
.memory-stack i { position: absolute; inset: calc(var(--i, 0) * 16px) calc(var(--i, 0) * -10px) auto calc(var(--i, 0) * 10px); height: 44%; border: 1px solid rgba(129, 184, 255, .45); border-radius: 16px; background: rgba(60, 113, 190, .13); backdrop-filter: blur(8px); }
.memory-stack i:nth-child(1){--i:0}.memory-stack i:nth-child(2){--i:1}.memory-stack i:nth-child(3){--i:2}.memory-stack i:nth-child(4){--i:3}
.speed-readout { position: absolute; right: 10%; bottom: 18%; color: #fff; text-align: right; }
.speed-readout strong { display: block; font-size: clamp(3rem, 6vw, 5.8rem); line-height: .9; letter-spacing: -.06em; }.speed-readout span { color: #8fa8c8; font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; }
.visual-circuit { background: linear-gradient(145deg, #e7f2ff, #d9e7ff); }.visual-circuit svg { position: absolute; inset: 12% 4%; width: 92%; height: 76%; overflow: visible; }.visual-circuit path { fill: none; stroke: #066cd7; stroke-width: 5; stroke-linecap: round; }.visual-circuit .soft { stroke: rgba(6,108,215,.24); stroke-width: 3; }.node { position:absolute; width:18px; height:18px; border:4px solid #fff; border-radius:50%; background:#0673e8; box-shadow:0 5px 14px rgba(6,108,215,.35) }.node-a{left:28%;top:20%}.node-b{right:18%;bottom:24%}
.visual-photo { display:grid; place-items:center; background: linear-gradient(145deg,#fde8d8,#e6d8cb); }.photo-frame { position:absolute; width:48%; aspect-ratio:4/5; border-radius:18px; box-shadow:0 18px 35px rgba(85,45,24,.18); }.photo-back { transform:translate(-16%,-2%) rotate(-9deg); background:linear-gradient(165deg,#7ba7c7 0 42%,#f6a269 43% 62%,#4c7180 63%); }.photo-front { transform:translate(18%,5%) rotate(5deg); display:grid; place-items:end; padding:14px; background:linear-gradient(160deg,#e8bf97 0 38%,#567989 39% 70%,#233f54 71%); }.photo-front span { width:48px;height:48px;display:grid;place-items:center;border-radius:50%;color:#fff;background:rgba(0,0,0,.44);font-weight:700; }
.visual-code { padding:56px 10%; background:#171a22; }.code-line { height:9px; width:58%; margin:15px 0; border-radius:99px; background:#5b6578; }.code-line.long{width:84%;background:#6e7d97}.code-line.mid{width:70%}.review-note{margin:28px 0 22px 12%;padding:18px;border:1px solid rgba(84,160,255,.4);border-radius:14px;color:#acd2ff;background:rgba(38,102,184,.14);font-size:.82rem}
.visual-writing { display:grid;place-items:center;background:linear-gradient(145deg,#ece7fb,#dcd5f1) }.paper{width:56%;height:72%;padding:22px;border-radius:10px;background:#fff;box-shadow:0 18px 45px rgba(60,45,100,.2);transform:rotate(-3deg)}.paper span{display:block;height:7px;margin:13px 0;border-radius:9px;background:#d6d1df}.paper span:first-child{width:58%;height:13px;background:#3d3947}.paper span:nth-child(3){width:75%}.paper b{display:block;width:100%;height:34%;margin-top:22px;border-radius:8px;background:linear-gradient(135deg,#7c73ca,#c7b7eb)}
.visual-dashboard { background:linear-gradient(145deg,#f1f7f5,#dceee8) }.chart-bars{position:absolute;left:10%;bottom:15%;width:54%;height:58%;display:flex;align-items:end;gap:7%}.chart-bars i{flex:1;border-radius:9px 9px 2px 2px;background:#24a37b}.chart-bars i:nth-child(1){height:38%}.chart-bars i:nth-child(2){height:58%}.chart-bars i:nth-child(3){height:48%}.chart-bars i:nth-child(4){height:82%}.chart-bars i:nth-child(5){height:68%}.chart-line{position:absolute;left:8%;bottom:14%;width:60%;height:1px;background:rgba(20,90,70,.18)}.query-chip{position:absolute;right:7%;top:18%;padding:13px 16px;border-radius:14px;color:#194d3e;background:rgba(255,255,255,.75);box-shadow:0 10px 30px rgba(28,90,73,.12);font-size:.76rem}

footer { padding: 36px 20px; color: var(--secondary); background: var(--surface-solid); border-top: 1px solid var(--line); text-align: center; font-size: .78rem; }

@media (hover:hover) and (pointer:fine) {
  .nav-links a:hover, .mobile-menu a:hover { color: var(--text); background: var(--surface-soft); }
  .icon-button:hover { background: color-mix(in srgb, var(--surface-soft) 75%, var(--blue) 10%); }
  .card-link:hover { transform: translateY(-5px); box-shadow: 0 18px 46px rgba(0,0,0,.11); }
  .card-link:hover .arrow { transform: rotate(8deg) translate(1px,-1px); }
}
@media (max-width: 820px) {
  .nav-links { display:none }.menu-toggle{display:grid}.mobile-menu:not([hidden]){display:flex}
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 72px 0; }.hero h1{font-size:clamp(3rem,12vw,4.7rem)}.demo-window{transform:none}.demo-stage{min-height:300px}
  .project-browser{padding-top:72px;border-radius:30px 30px 0 0}.section-heading{align-items:flex-start;flex-direction:column}.project-grid{grid-template-columns:1fr}.project-card--wide{grid-column:auto}.project-card--wide .card-link,.card-link{grid-template-columns:1fr;grid-template-rows:280px 1fr}
}
@media (max-width: 480px) {
  .hero { width:min(100% - 32px,1216px);padding-top:54px}.hero h1 br{display:none}.hero-intro{font-size:1rem}.demo-stage{min-height:245px}.demo-orbit{width:210px;height:210px}.orbit-two{width:145px;height:145px}.demo-core{width:104px;height:104px;border-radius:29px}.demo-core span{font-size:2.35rem}.project-browser{padding-inline:16px}.filter-group{width:100%;overflow:auto}.filter-button{flex:1;white-space:nowrap}.project-card--wide .card-link,.card-link{grid-template-rows:230px 1fr}.card-body{padding:22px}.card-meta{align-items:flex-start}.ai-badge{font-size:.65rem}.card-body h3{font-size:1.45rem}
}
@media (prefers-reduced-motion: reduce) {
  html{scroll-behavior:auto}.demo-orbit{animation:none}.card-link,.arrow,.icon-button,.filter-button{transition:opacity 160ms ease,background-color 160ms ease!important}.card-link:hover{transform:none!important}
}
@media (prefers-reduced-transparency: reduce) {
  .site-header,.demo-window{background:var(--surface-solid);backdrop-filter:none;-webkit-backdrop-filter:none}.memory-stack i{backdrop-filter:none}
}
@media (prefers-contrast: more) {
  .site-header,.demo-window,.card-link{border:1px solid currentColor}.nav-links a[aria-current="page"],.filter-button.is-active{outline:2px solid currentColor}
}
