/* Landing page. Black, steel grey and one signal blue; panels are frosted
   glass over deep cobalt light. One family, Saira, used at three widths:
   expanded for headlines (like a nameplate on a server), normal for
   reading, condensed for spec labels. */

@font-face {
  font-family: "Saira";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url("fonts/saira-latin-ext-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
                 U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0,
                 U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Saira";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 50% 125%;
  src: url("fonts/saira-latin-standard-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
                 U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215,
                 U+FEFF, U+FFFD;
}

.landing {
  --void: #020306;
  --graphite: #151a22;
  --slate: #2a3240;
  --steel: #8b98ab;
  --frost: #e4ebf4;
  --signal: #4a82ff;
  --signal-hi: #7aa4ff;
  --cobalt: #10307c;

  --glass-fill: linear-gradient(180deg, rgba(190, 210, 240, 0.12), rgba(120, 140, 175, 0.045));
  --glass-edge: rgba(200, 220, 255, 0.15);
  --glass-hi: rgba(255, 255, 255, 0.14);

  --face: "Saira", ui-sans-serif, system-ui, "Segoe UI", Roboto, sans-serif;
  --max: 1180px;
  --gutter: clamp(20px, 4vw, 48px);
}

* { box-sizing: border-box; }

html { background: var(--void); scroll-behavior: smooth; }

body.landing {
  margin: 0;
  min-height: 100vh;
  color: var(--frost);
  font-family: var(--face);
  font-size: 17px;
  line-height: 1.6;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  /* Light for the glass to catch: cobalt from the top right, cold steel
     from the left, a deeper blue underneath. Fixed, so every panel has
     something behind it wherever it scrolls to. */
  background:
    radial-gradient(1000px 720px at 82% 2%, rgba(46, 98, 235, 0.55), transparent 68%),
    radial-gradient(820px 640px at 2% 48%, rgba(96, 114, 146, 0.32), transparent 70%),
    radial-gradient(1100px 760px at 62% 112%, rgba(22, 64, 170, 0.55), transparent 70%),
    var(--void);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

a { color: var(--signal-hi); }
:focus-visible { outline: 2px solid var(--signal-hi); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 {
  font-stretch: 125%;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin: 0;
}
h1 { font-size: clamp(2.3rem, 5.2vw, 4.4rem); font-weight: 640; max-width: 14ch; }
h2 { font-size: clamp(1.6rem, 3vw, 2.35rem); font-weight: 620; }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }

/* ---- glass ---- */
.glass {
  background: var(--glass-fill);
  border: 1px solid var(--glass-edge);
  box-shadow:
    inset 0 1px 0 var(--glass-hi),
    inset 0 -1px 0 rgba(0, 0, 0, 0.35),
    0 30px 60px -32px rgba(0, 0, 0, 0.85);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  backdrop-filter: blur(22px) saturate(140%);
}

/* ---- top bar ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 14px var(--gutter);
  background: linear-gradient(180deg, rgba(2, 3, 6, 0.82), rgba(2, 3, 6, 0.45));
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(200, 220, 255, 0.07);
}
.mark {
  color: var(--frost); text-decoration: none; white-space: nowrap;
  font-stretch: 125%; font-weight: 680; font-size: 1.1rem; letter-spacing: -0.01em;
}
.mark { display: inline-flex; align-items: center; gap: 10px; }
.mark .logo { height: 30px; width: auto; display: block; }
.mark .logo-mark { height: 28px; width: 28px; border-radius: 7px; display: block; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; }
.foot-brand img { height: 22px; width: auto; }
.foot-brand a { color: var(--frost); }
.top nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.top nav a { color: var(--steel); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 15px; }
.top nav a:hover { color: var(--frost); }
.top nav a.solid, .top nav a.solid:hover { color: #fff; }

/* ---- buttons ---- */
a.solid, a.ghost {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; font-weight: 560; border-radius: 12px;
}
.top nav a.solid, .top nav a.ghost { padding: 8px 14px; }
a.solid {
  color: #fff;
  background: linear-gradient(180deg, #5a8dff, #3b6fef);
  border: 1px solid rgba(160, 190, 255, 0.55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px -12px rgba(74, 130, 255, 0.9);
}
a.solid:hover { background: linear-gradient(180deg, #6a99ff, #4679f5); color: #fff; }
.top nav a.ghost, a.ghost {
  color: var(--frost);
  border: 1px solid var(--glass-edge);
  background: rgba(190, 210, 240, 0.06);
}
a.ghost:hover { background: rgba(190, 210, 240, 0.12); }
a.big { padding: 13px 22px; font-size: 16.5px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---- flashes ---- */
.notes { max-width: var(--max); margin: 18px auto 0; padding: 0 var(--gutter); }
.note {
  padding: 10px 14px; border-radius: 12px; margin-bottom: 8px; font-size: 15px;
  background: rgba(190, 210, 240, 0.08); border: 1px solid var(--glass-edge);
}
.note.error { border-color: rgba(255, 130, 120, 0.45); color: #ffc7c0; }
.note.success { border-color: rgba(120, 220, 170, 0.4); color: #bdf0d6; }

/* ---- sections ---- */
section { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: end; margin-bottom: 28px; }
.section-head p { color: var(--steel); max-width: 52ch; }

/* ---- hero ---- */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
  padding-top: clamp(56px, 9vw, 120px);
  padding-bottom: clamp(64px, 9vw, 120px);
}
.hero-backdrop {
  position: absolute; z-index: -1;
  inset: 24px calc(var(--gutter) * -1) 0 38%;
  border-radius: 28px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 80%, transparent 100%),
                      linear-gradient(180deg, #000 60%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 0, #000 30%, #000 80%, transparent 100%),
              linear-gradient(180deg, #000 60%, transparent 100%);
  mask-composite: intersect;
  opacity: 0.8;
}
.hero-copy { display: grid; gap: 26px; }
.lead { color: #b9c4d3; font-size: clamp(1.05rem, 1.5vw, 1.2rem); max-width: 46ch; }

/* The example machine: a spec plate that builds itself. */
.build { border-radius: 22px; padding: 22px 22px 20px; display: grid; gap: 16px; }
.build-top { display: flex; justify-content: space-between; align-items: center; }
.build-name { font-stretch: 112%; font-weight: 600; font-size: 1.05rem; }
.build-state {
  font-size: 13px; font-stretch: 87.5%; font-weight: 560;
  padding: 3px 10px; border-radius: 99px;
  color: var(--signal-hi); background: rgba(74, 130, 255, 0.14); border: 1px solid rgba(122, 164, 255, 0.35);
}
.build-state.on { color: #9ff0c8; background: rgba(60, 200, 140, 0.14); border-color: rgba(120, 230, 170, 0.35); }
.spec { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 0; border-radius: 14px; overflow: hidden; background: rgba(200, 220, 255, 0.1); }
.spec div { background: rgba(4, 7, 14, 0.55); padding: 10px 12px; }
.spec dt { font-size: 12.5px; font-stretch: 87.5%; color: var(--steel); }
.spec dd { margin: 2px 0 0; font-weight: 580; font-size: 15.5px; overflow-wrap: anywhere; }
.meter { height: 8px; border-radius: 99px; background: rgba(200, 220, 255, 0.1); overflow: hidden; }
.meter i {
  display: block; height: 100%; width: 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #3b6fef, #8fb4ff);
  box-shadow: 0 0 16px rgba(122, 164, 255, 0.7);
  transition: width 0.9s cubic-bezier(0.3, 0.7, 0.2, 1);
}
.build-step { font-size: 14px; color: var(--steel); min-height: 1.6em; }
.build-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; color: var(--steel); font-size: 15px; }
.build-price b { color: var(--frost); font-size: 1.7rem; font-stretch: 112%; font-weight: 620; letter-spacing: -0.02em; }
.build-price span { font-stretch: 87.5%; }

/* ---- pictures and their placeholders ---- */
.shot { display: block; width: 100%; height: 100%; object-fit: cover; }
.placeholder {
  display: grid; place-content: center; gap: 4px; text-align: center;
  min-height: 180px; padding: 18px;
  color: var(--steel);
  border: 1px dashed rgba(200, 220, 255, 0.28);
  background:
    repeating-linear-gradient(135deg, rgba(200, 220, 255, 0.045) 0 1px, transparent 1px 14px),
    rgba(10, 16, 28, 0.55);
}
.placeholder .ph-what { color: var(--frost); font-weight: 580; font-stretch: 112%; }
.placeholder .ph-how { font-size: 13px; font-stretch: 87.5%; }
.placeholder.backdrop { height: 100%; border-radius: 28px; place-content: start end; justify-items: end; padding: 28px 32px; text-align: right; }

/* ---- hardware ---- */
.hardware { padding-bottom: clamp(64px, 8vw, 110px); }
.parts {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "gpu cpu memory" "gpu storage storage";
  gap: 18px;
}
.part { border-radius: 18px; overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.part .shot { aspect-ratio: 4 / 3; height: auto; border-radius: 0; }
.part .placeholder { border-width: 0 0 1px 0; }
.part-body { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; }
.part-body p { color: #b9c4d3; font-size: 15.5px; }
.part-body p b { color: var(--frost); font-weight: 620; }
.part.gpu { grid-area: gpu; }
.part.gpu .shot { aspect-ratio: 1 / 1; }
.parts > .part:nth-child(2) { grid-area: cpu; }
.parts > .part:nth-child(3) { grid-area: memory; }
.parts > .part:nth-child(4) { grid-area: storage; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); grid-template-rows: 1fr; }
.parts > .part:nth-child(4) .shot { aspect-ratio: auto; min-height: 150px; }
.parts > .part:nth-child(4) .placeholder { border-width: 0 1px 0 0; }
.offers { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.offers li {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 9px 12px; border-radius: 10px;
  background: rgba(4, 7, 14, 0.5); border: 1px solid rgba(200, 220, 255, 0.08);
}
.offers li span { font-stretch: 100%; }
.offers li b { font-weight: 620; white-space: nowrap; }
.offers li small { color: var(--steel); font-weight: 400; font-stretch: 87.5%; }
.rate { color: var(--steel); font-size: 14.5px; margin-top: 18px; max-width: 80ch; }

/* ---- how it works: a real sequence, so it is numbered ---- */
.how { padding-bottom: clamp(64px, 8vw, 110px); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: step; }
.steps li { border-radius: 16px; padding: 18px; display: grid; gap: 8px; align-content: start; counter-increment: step; }
.steps li::before {
  content: counter(step);
  font-stretch: 125%; font-weight: 680; font-size: 1.5rem; line-height: 1;
  color: var(--signal-hi);
}
.steps p { color: #b9c4d3; font-size: 15px; }

/* ---- streaming ---- */
.streaming {
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(24px, 4vw, 56px); align-items: center;
  padding-bottom: clamp(64px, 8vw, 110px);
}
.stream-frame { border-radius: 22px; padding: 10px; }
.stream-frame .shot { border-radius: 14px; aspect-ratio: 16 / 10; height: auto; }
.stream-copy { display: grid; gap: 16px; }
.stream-copy p { color: #b9c4d3; max-width: 44ch; }

/* ---- closing ---- */
.closing {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)));
  border-radius: 26px;
  padding: clamp(28px, 5vw, 52px);
  margin: 0 auto 56px;
  display: grid; gap: 14px; justify-items: start;
  background:
    radial-gradient(600px 300px at 100% 0, rgba(74, 130, 255, 0.28), transparent 70%),
    var(--glass-fill);
}
.closing p { color: #b9c4d3; }
.closing .cta { margin-top: 8px; }

.foot {
  width: min(calc(100% - 2 * var(--gutter)), calc(var(--max) - 2 * var(--gutter)));
  margin: 0 auto; padding: 22px 0 40px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--steel); font-size: 14px;
  border-top: 1px solid rgba(200, 220, 255, 0.08);
}

/* ---- smaller screens ---- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .hero-backdrop { inset: 0; opacity: 0.45; }
  .placeholder.backdrop span { display: none; }
  .parts { grid-template-columns: 1fr 1fr; grid-template-areas: "gpu gpu" "cpu memory" "storage storage"; }
  .part.gpu { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: 1fr; }
  .part.gpu .placeholder { border-width: 0 1px 0 0; }
  .steps { grid-template-columns: 1fr 1fr; }
  .streaming, .section-head { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  body.landing { font-size: 16px; }
  .top nav a:not(.ghost) { display: none; }
  .parts { grid-template-columns: 1fr; grid-template-areas: "gpu" "cpu" "memory" "storage"; }
  .part.gpu, .parts > .part:nth-child(4) { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .part.gpu .placeholder, .parts > .part:nth-child(4) .placeholder { border-width: 0 0 1px 0; }
  .parts > .part:nth-child(4) .shot { aspect-ratio: 4 / 3; }
  .steps { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .meter i { transition: none; }
}
