:root {
  color-scheme: dark;
  --bg: #0a0c0f;
  --surface: #111419;
  --surface-2: #151920;
  --border: #252b34;
  --text: #f4f6f8;
  --muted: #a1a9b4;
  --quiet: #737d89;
  --brand: #d6dbe2;
  --blue: #6ea8fe;
  --violet: #a78bfa;
  --amber: #f4b86a;
  --max: 1120px;
  --radius: 22px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 16% -10%, rgba(110,168,254,.10), transparent 30rem),
    radial-gradient(circle at 88% 0%, rgba(167,139,250,.07), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; border-radius: 8px; }

.site-header {
  width: min(calc(100% - 32px), var(--max));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.wordmark {
  text-decoration: none;
  font-weight: 750;
  letter-spacing: -.025em;
  font-size: 1.05rem;
}

.wordmark sup { font-size: .55em; margin-left: 2px; color: var(--muted); }

.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a {
  color: var(--muted);
  font-size: .9rem;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }

.shell { width: min(calc(100% - 32px), var(--max)); margin: 0 auto; }

.hero {
  min-height: 58vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 72px 0 88px;
  max-width: 860px;
}

.eyebrow, .status-label, .maker-line {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(4.5rem, 13vw, 9.5rem);
  line-height: .88;
  letter-spacing: -.072em;
  font-weight: 820;
}
.hero h1 sup { font-size: .16em; vertical-align: top; color: var(--muted); margin-left: .08em; }

.lede {
  max-width: 720px;
  margin: 34px 0 0;
  color: #cbd1d8;
  font-size: clamp(1.25rem, 2.2vw, 1.75rem);
  line-height: 1.45;
  letter-spacing: -.02em;
}

.section { padding: 82px 0; border-top: 1px solid var(--border); }
.section-heading { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 40px; align-items: start; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(1.8rem, 4vw, 2.65rem); letter-spacing: -.045em; }
.section-heading p { margin: 5px 0 0; max-width: 620px; color: var(--muted); font-size: 1.03rem; }

.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.project-card {
  --accent: var(--blue);
  position: relative;
  min-height: 340px;
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 6%, var(--surface)) 0%, var(--surface) 42%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.project-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent 72%);
  opacity: .8;
}
.project-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 42%, var(--border)); }
.project-card[data-accent="ram"] { --accent: var(--violet); }
.project-card[data-accent="memory"] { --accent: var(--amber); }

.project-card h3 { margin: 0 0 10px; font-size: 1.65rem; letter-spacing: -.035em; }
.project-card p { margin: 0; color: var(--muted); }
.project-card .status { color: var(--accent); font-size: .78rem; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
.project-card .card-action { color: #e8ecf1; font-size: .93rem; font-weight: 650; }
.project-card .card-action span { color: var(--accent); }

.about-copy { max-width: 760px; font-size: 1.1rem; color: #c8ced6; }
.about-copy p { margin: 0 0 18px; }
.about-copy strong { color: var(--text); }

.page-hero { padding: 84px 0 76px; max-width: 890px; }
.breadcrumb { display: inline-flex; gap: 8px; align-items: center; color: var(--muted); font-size: .86rem; text-decoration: none; margin-bottom: 40px; }
.breadcrumb:hover { color: var(--text); }
.page-hero h1 { margin: 0; font-size: clamp(3.4rem, 9vw, 7.4rem); line-height: .94; letter-spacing: -.065em; }
.page-hero .product-summary { margin: 26px 0 0; max-width: 760px; color: #cbd1d8; font-size: clamp(1.18rem, 2vw, 1.5rem); }
.page-hero .maker-line { margin-top: 24px; margin-bottom: 0; color: var(--quiet); }

.status-banner {
  --accent: var(--blue);
  margin: 0 0 68px;
  padding: 20px 22px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  border-radius: 16px;
  background: color-mix(in srgb, var(--accent) 5%, var(--surface));
}
.status-banner.ram { --accent: var(--violet); }
.status-banner.memory { --accent: var(--amber); }
.status-banner strong { color: var(--accent); }
.status-banner p { margin: 0; color: var(--muted); }

.content-grid { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 56px; }
.content-grid + .content-grid { margin-top: 72px; }
.content-grid h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.04em; }
.content-grid > div > p:first-child { margin-top: 0; }
.content-grid p { color: var(--muted); }

.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.feature-list li { padding: 16px 18px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: #cbd1d8; }
.feature-list strong { color: var(--text); }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 16px 18px 16px 58px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; color: #cbd1d8; }
.steps li::before { content: counter(step); position: absolute; left: 18px; top: 15px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 999px; background: #202630; color: var(--text); font-size: .78rem; font-weight: 750; }
.note { padding: 18px 20px; background: #0e1115; border-left: 2px solid var(--blue); color: var(--muted); }

.footer {
  width: min(calc(100% - 32px), var(--max));
  margin: 64px auto 0;
  padding: 30px 0 46px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: var(--quiet);
  font-size: .8rem;
}
.footer p { margin: 0; max-width: 760px; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

@media (max-width: 820px) {
  .site-header { padding: 18px 0; }
  .site-nav { gap: 14px; }
  .site-nav .nav-about { display: none; }
  .hero { min-height: auto; padding: 90px 0 72px; }
  .section { padding: 64px 0; }
  .section-heading, .content-grid { grid-template-columns: 1fr; gap: 18px; }
  .project-grid { grid-template-columns: 1fr; }
  .project-card { min-height: 260px; }
  .page-hero { padding: 64px 0 54px; }
  .status-banner { flex-direction: column; gap: 8px; }
  .footer { flex-direction: column; }
}

@media (max-width: 480px) {
  .site-nav { font-size: .82rem; }
  .hero h1 { font-size: clamp(4rem, 22vw, 6rem); }
  .project-card { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
