/* ==========================================================================
   FSG|One — public landing page
   Aesthetic: cold ink ground, editorial serif display, technical mono labels,
   single ember accent. Restrained motion: one staggered page-load reveal.
   ========================================================================== */

:root {
  --ink:        #0f1319;
  --ink-2:      #141a22;
  --surface:    #171e27;
  --line:       #26303c;
  --line-soft:  #1d252f;

  --paper:      #e9e4da;
  --paper-dim:  #a3a9b2;
  --paper-mute: #6f7883;

  --ember:      #d9603c;
  --ember-lit:  #ef7550;
  --slate:      #7f96aa;

  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body:    "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --maxw: 1240px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--body);
  font-size: clamp(1rem, .96rem + .18vw, 1.0625rem);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { margin: 0; font-weight: 400; }

:focus-visible {
  outline: 2px solid var(--ember-lit);
  outline-offset: 3px;
  border-radius: 2px;
}

/* ── atmosphere ─────────────────────────────────────────────────────────── */

.grain {
  position: fixed;
  inset: -50%;
  z-index: 0;
  pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(58rem 42rem at 78% -8%, rgba(217, 96, 60, .16), transparent 62%),
    radial-gradient(46rem 38rem at 6% 4%, rgba(127, 150, 170, .11), transparent 60%);
}

main, .nav, .foot { position: relative; z-index: 1; }

/* ── nav ────────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.1rem, 3vw, 2rem) var(--gutter);
  max-width: var(--maxw);
  margin-inline: auto;
}

.mark {
  font-family: var(--display);
  font-size: 1.5rem;
  letter-spacing: .01em;
}
.mark__bar { color: var(--ember); padding-inline: .1em; }
.mark__one { color: var(--paper-dim); }
.mark:hover .mark__one { color: var(--paper); }
.mark__one, .mark__bar { transition: color .3s var(--ease); }

.nav__links {
  display: flex;
  gap: clamp(1rem, 3vw, 2.25rem);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.nav__links a { position: relative; padding-block: .35rem; transition: color .25s var(--ease); }
.nav__links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--ember);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .35s var(--ease);
}
.nav__links a:hover { color: var(--paper); }
.nav__links a:hover::after { transform: scaleX(1); }

/* ── shared bits ────────────────────────────────────────────────────────── */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  margin: 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 0 0 rgba(217, 96, 60, .5);
  animation: pulse 3.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 70%, 100% { box-shadow: 0 0 0 0 rgba(217, 96, 60, .45); }
  35%           { box-shadow: 0 0 0 7px rgba(217, 96, 60, 0); }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .8rem 1.35rem;
  border-radius: 2px;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .09em;
  text-transform: uppercase;
  transition: transform .25s var(--ease), background-color .25s var(--ease),
              color .25s var(--ease), border-color .25s var(--ease);
}
.btn svg { width: 15px; height: 15px; transition: transform .3s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--ember);
  color: #170d09;
  font-weight: 500;
}
.btn--solid:hover { background: var(--ember-lit); }

.btn--ghost {
  border: 1px solid var(--line);
  color: var(--paper-dim);
}
.btn--ghost:hover { border-color: var(--paper-mute); color: var(--paper); }

.section__title {
  display: grid;
  gap: .9rem;
  font-family: var(--display);
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3.25rem);
  line-height: 1.08;
  letter-spacing: -.01em;
  max-width: 24ch;
}
.section__num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--ember);
}

/* ── hero ───────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(2.5rem, 6vw, 5.5rem) var(--gutter) 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}

.hero > .eyebrow  { grid-column: 1 / 8; margin-bottom: 1.6rem; }
.hero__title      { grid-column: 1 / 8; }
.hero__lede       { grid-column: 1 / 7; }
.hero__actions    { grid-column: 1 / 8; }

.hero__title {
  font-family: var(--display);
  font-size: clamp(2.9rem, 1.1rem + 7.4vw, 6.75rem);
  line-height: .96;
  letter-spacing: -.022em;
}
.hero__title span { display: block; }
/* second line pulled right + italic: breaks the flush-left block */
.hero__title span:nth-child(2) { padding-left: .14em; }
.hero__title em {
  font-style: italic;
  color: var(--ember);
}

.hero__lede {
  margin: clamp(1.5rem, 3vw, 2.25rem) 0 0;
  color: var(--paper-dim);
  font-size: clamp(1.02rem, .95rem + .34vw, 1.2rem);
  max-width: 46ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: clamp(1.75rem, 3.5vw, 2.75rem);
}

.hero__rule {
  grid-column: 1 / -1;
  height: 1px;
  margin-top: clamp(3rem, 7vw, 6rem);
  background: linear-gradient(90deg, var(--line) 0%, var(--line-soft) 55%, transparent 100%);
}

/* device: overlaps the headline column, floats out past the top of the text */
.device {
  grid-column: 9 / -1;
  grid-row: 1 / span 4;
  justify-self: end;
  margin-top: clamp(0rem, 2vw, 2rem);
  perspective: 900px;
}

.device__frame {
  position: relative;
  width: clamp(200px, 20vw, 268px);
  aspect-ratio: 9 / 18.6;
  padding: 9px;
  border-radius: 30px;
  background: linear-gradient(160deg, #2b3542, #10151b 62%);
  box-shadow:
    0 1px 0 rgba(233, 228, 218, .1) inset,
    -26px 44px 70px -28px rgba(0, 0, 0, .8),
    0 0 0 1px rgba(38, 48, 60, .9);
  transform: rotate(-3deg) rotateY(-11deg);
  animation: float 11s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: rotate(-3deg) rotateY(-11deg) translateY(0); }
  50%      { transform: rotate(-2.4deg) rotateY(-9deg) translateY(-12px); }
}

.device__screen {
  height: 100%;
  border-radius: 23px;
  background: linear-gradient(180deg, #131a23, #0e1319);
  padding: .85rem .8rem;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  overflow: hidden;
}

.device__shine {
  position: absolute;
  inset: 0;
  border-radius: 30px;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(233, 228, 218, .13) 0%, transparent 34%, transparent 100%);
}

.scr__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--mono);
  font-size: .5rem;
  color: var(--paper-mute);
}
.scr__sig { display: flex; align-items: flex-end; gap: 2px; }
.scr__sig i { width: 2px; background: var(--paper-mute); border-radius: 1px; }
.scr__sig i:nth-child(1) { height: 3px; }
.scr__sig i:nth-child(2) { height: 5px; }
.scr__sig i:nth-child(3) { height: 7px; }
.scr__sig i:nth-child(4) { height: 9px; background: var(--paper-dim); }

.scr__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--line-soft);
}
.scr__label { font-family: var(--display); font-size: 1.05rem; }
.scr__count { font-family: var(--mono); font-size: .5rem; color: var(--ember); letter-spacing: .08em; }

.scr__list { display: grid; gap: .42rem; }
.scr__row {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .4rem;
  border-radius: 4px;
  background: var(--ink-2);
  border: 1px solid var(--line-soft);
}
.scr__pill { width: 3px; height: 20px; border-radius: 2px; background: var(--ember); flex: none; }
.scr__pill.alt { background: var(--slate); }
.scr__lines { flex: 1; display: grid; gap: 4px; }
.scr__lines b, .scr__lines i { display: block; height: 4px; border-radius: 2px; }
.scr__lines b { background: #38424f; width: 100%; }
.scr__lines i { background: #262f3a; width: 62%; }
.w85 { width: 85% !important; } .w70 { width: 70% !important; }
.w55 { width: 55% !important; } .w40 { width: 40% !important; }
.scr__tick {
  width: 11px; height: 11px;
  border-radius: 50%;
  border: 1px solid var(--line);
  flex: none;
}
.scr__tick.on { background: var(--ember); border-color: var(--ember); }

.scr__chart {
  margin-top: auto;
  height: 58px;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.scr__chart span {
  flex: 1;
  height: var(--h);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(180deg, #3c4855, #222b35);
  transform-origin: bottom;
  animation: grow 1.1s var(--ease) backwards;
}
.scr__chart span:nth-child(1) { animation-delay: .75s; }
.scr__chart span:nth-child(2) { animation-delay: .82s; }
.scr__chart span:nth-child(3) { animation-delay: .89s; }
.scr__chart span:nth-child(4) { animation-delay: .96s; }
.scr__chart span:nth-child(5) { animation-delay: 1.03s; }
.scr__chart span:nth-child(6) {
  animation-delay: 1.1s;
  background: linear-gradient(180deg, var(--ember), rgba(217, 96, 60, .35));
}
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* ── capabilities ───────────────────────────────────────────────────────── */

.caps {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
}

.caps__list {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(2rem, 4vw, 3.25rem) clamp(1rem, 3vw, 2.5rem);
  margin-top: clamp(2.5rem, 6vw, 4.5rem);
}

/* staggered spans, each entry landing in a different part of the grid */
.cap--a { grid-column: 1 / 6; }
.cap--b { grid-column: 7 / 12; margin-top: clamp(0rem, 4vw, 3.5rem); }
.cap--c { grid-column: 3 / 9; }

.cap {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}
.cap::before {
  content: "";
  position: absolute;
  top: -1px; left: 0;
  width: 2.5rem; height: 1px;
  background: var(--ember);
  transition: width .5s var(--ease);
}
.cap:hover::before { width: 100%; }

.cap__num {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  color: var(--paper-mute);
}
.cap__h {
  margin: .7rem 0 .65rem;
  font-family: var(--display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem);
  line-height: 1.14;
  letter-spacing: -.01em;
  text-wrap: balance;
}
.cap__p {
  margin: 0;
  color: var(--paper-dim);
  max-width: 40ch;
  text-wrap: pretty;
}

/* ── availability ───────────────────────────────────────────────────────── */

.avail {
  border-block: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(23, 30, 39, .5), transparent);
}
.avail__inner {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--gutter);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(1rem, 4vw, 3.5rem);
}
.avail__label {
  margin: 0;
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--paper-mute);
}
.avail__list {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(1.25rem, 4vw, 3rem);
}
.avail__list li {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .95rem;
  color: var(--paper);
}
.avail__list svg { width: 19px; height: 19px; color: var(--slate); }
.avail__state {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--paper-mute);
  padding: .2rem .45rem;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* ── access ─────────────────────────────────────────────────────────────── */

.access {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(3.5rem, 8vw, 7rem) var(--gutter);
}
.access__card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.75rem, 5vw, 3.5rem);
  border: 1px solid var(--line);
  border-radius: 3px;
  background:
    radial-gradient(34rem 20rem at 88% 120%, rgba(217, 96, 60, .14), transparent 70%),
    var(--surface);
  max-width: 60ch;
}
.access__h {
  margin: 1.1rem 0 .8rem;
  font-family: var(--display);
  font-size: clamp(1.85rem, 1.3rem + 2.1vw, 2.85rem);
  line-height: 1.06;
  letter-spacing: -.015em;
  text-wrap: balance;
}
.access__p {
  margin: 0 0 1.9rem;
  color: var(--paper-dim);
  max-width: 44ch;
  text-wrap: pretty;
}

/* ── footer ─────────────────────────────────────────────────────────────── */

.foot {
  max-width: var(--maxw);
  margin-inline: auto;
  padding: clamp(1.5rem, 3vw, 2.25rem) var(--gutter) clamp(2.25rem, 4vw, 3rem);
  border-top: 1px solid var(--line-soft);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .75rem;
}
.foot__mark { font-family: var(--display); font-size: 1.1rem; color: var(--paper-dim); }
.foot__mark span { color: var(--ember); padding-inline: .08em; }
.foot__meta {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--paper-mute);
}

/* ── load reveal ────────────────────────────────────────────────────────── */

.reveal {
  animation: rise .9s var(--ease) backwards;
  animation-delay: var(--d, 0ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: none; }
}

/* ── responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero > .eyebrow, .hero__title, .hero__lede, .hero__actions { grid-column: 1 / -1; }
  .device {
    grid-column: 1 / -1;
    grid-row: auto;
    justify-self: center;
    margin-top: clamp(2.5rem, 8vw, 4rem);
  }
  .device__frame { width: clamp(216px, 58vw, 260px); }

  .caps__list { grid-template-columns: 1fr; }
  .cap--a, .cap--b, .cap--c { grid-column: 1 / -1; margin-top: 0; }
}

@media (max-width: 560px) {
  .nav { flex-direction: column; align-items: flex-start; gap: .9rem; }
  .nav__links { gap: 1.25rem; }
  .hero__title span:nth-child(2) { padding-left: 0; }
  .btn { width: 100%; justify-content: space-between; }
  .avail__inner { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
