/* ===== Design tokens ===== */
:root {
  --bg-void: #0B0D14;
  --bg-panel: #12151F;
  --bg-panel-2: #171B27;
  --ink-100: #F5F6FA;
  --ink-70: #C3C7D6;
  --ink-50: #9CA3B8;
  --ink-35: #6B7186;
  --hairline: rgba(245, 246, 250, 0.09);
  --amber: #FFB648;
  --amber-ink: #3A2604;

  --accent-violet: #7C5CFF;
  --accent-cyan: #38D9E8;
  --accent-coral: #FF6B4A;

  --font-display: 'Space Grotesk', 'Segoe UI', sans-serif;
  --font-body: 'Manrope', 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;

  --radius-icon: 22%;
  --radius-card: 22px;
  --radius-pill: 999px;

  --container: 1180px;
}

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg-void);
  color: var(--ink-100);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

code {
  font-family: var(--font-mono);
}

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

/* ===== Status bar ===== */
.statusbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding: 0 clamp(16px, 4vw, 40px);
  background: rgba(11, 13, 20, 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
}

.statusbar__left, .statusbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.statusbar__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: var(--amber);
  color: var(--amber-ink);
  font-weight: 700;
  font-size: 13px;
}

.statusbar__brand {
  color: var(--ink-70);
  text-transform: lowercase;
}

.statusbar__clock {
  color: var(--ink-50);
  min-width: 3.6em;
  text-align: right;
}

.statusbar__icon { color: var(--ink-50); }

.statusbar__cta {
  margin-left: 6px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--ink-100);
  color: var(--bg-void);
  font-weight: 600;
  text-decoration: none;
  font-size: 12px;
  transition: transform 0.15s ease, background 0.15s ease;
}
.statusbar__cta:hover { background: var(--amber); transform: translateY(-1px); }

@media (max-width: 560px) {
  .statusbar__brand { display: none; }
}

/* ===== Reveal-on-scroll ===== */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: clamp(56px, 10vw, 108px) clamp(16px, 4vw, 40px) clamp(48px, 8vw, 88px);
  overflow: hidden;
}

.hero__glow {
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 640px;
  background:
    radial-gradient(480px 320px at 20% 10%, rgba(124, 92, 255, 0.24), transparent 70%),
    radial-gradient(420px 300px at 82% 25%, rgba(56, 217, 232, 0.18), transparent 70%),
    radial-gradient(380px 280px at 55% 60%, rgba(255, 107, 74, 0.14), transparent 70%);
  filter: blur(10px);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  text-align: center;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 20px;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 5.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 22px;
}
.hero__headline em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent-violet), var(--accent-cyan) 55%, var(--accent-coral));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  max-width: 620px;
  margin: 0 auto 34px;
  color: var(--ink-70);
  font-size: clamp(15px, 1.6vw, 18px);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(48px, 8vw, 76px);
}

.hero__stat {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-35);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.98); }

.btn--primary {
  background: var(--amber);
  color: var(--amber-ink);
  box-shadow: 0 8px 24px -8px rgba(255, 182, 72, 0.55);
}
.btn--primary:hover { box-shadow: 0 10px 30px -6px rgba(255, 182, 72, 0.7); transform: translateY(-2px); }

.btn--outline {
  background: transparent;
  color: var(--ink-100);
  border: 1.5px solid var(--hairline);
}
.btn--outline:hover {
  border-color: var(--accent, var(--amber));
  color: var(--accent, var(--amber));
  transform: translateY(-2px);
}

/* Dock */
.dock {
  display: flex;
  justify-content: center;
  gap: clamp(20px, 5vw, 56px);
  flex-wrap: wrap;
}

.dock__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-50);
  font-family: var(--font-mono);
  font-size: 12.5px;
  transition: transform 0.25s cubic-bezier(.2,.8,.3,1.4);
}

.dock__item img {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-icon);
  box-shadow: 0 10px 30px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  transition: box-shadow 0.25s ease, transform 0.25s cubic-bezier(.2,.8,.3,1.4);
}

.dock__item:hover,
.dock__item:focus-visible {
  transform: translateY(-6px);
  color: var(--ink-100);
}
.dock__item:hover img,
.dock__item:focus-visible img {
  box-shadow: 0 16px 34px -8px var(--dock-accent), 0 0 0 1px rgba(255,255,255,0.12);
}

/* ===== App sections ===== */
.app {
  position: relative;
  padding: clamp(56px, 9vw, 96px) clamp(16px, 4vw, 40px);
  border-top: 1px solid var(--hairline);
  overflow: hidden;
}

.app__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(560px 420px at 15% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
  pointer-events: none;
}
.app--reverse .app__glow {
  background: radial-gradient(560px 420px at 85% 20%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 65%);
}

.app__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.app--reverse .app__inner {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}
.app--reverse .app__info { order: 2; }
.app--reverse .app__gallery { order: 1; }

.app__heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}

.app__icon {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-icon);
  box-shadow: 0 10px 26px -10px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.06);
  flex-shrink: 0;
}

.app__title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.app__tagline {
  margin: 0;
  color: var(--accent);
  font-size: 14.5px;
  font-weight: 500;
}

.app__meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-35);
  margin: 0 0 20px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--hairline);
}
.app__meta code { color: var(--ink-50); }

.app__rating { color: var(--amber); font-weight: 600; }

.app__badge {
  display: inline-block;
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent) 20%, transparent);
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.app__desc {
  color: var(--ink-70);
  font-size: 15.5px;
  margin: 0 0 22px;
  max-width: 52ch;
}

.app__features {
  list-style: none;
  margin: 0 0 30px;
  padding: 0;
  display: grid;
  gap: 11px;
}
.app__features li {
  position: relative;
  padding-left: 22px;
  color: var(--ink-70);
  font-size: 14.5px;
}
.app__features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--accent);
}

/* Gallery */
.app__gallery { min-width: 0; }

.gallery__track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 6px 6px 18px;
  margin: -6px -6px -18px;
  scrollbar-width: thin;
  scrollbar-color: var(--bg-panel-2) transparent;
}
.gallery__track::-webkit-scrollbar { height: 8px; }
.gallery__track::-webkit-scrollbar-thumb { background: var(--bg-panel-2); border-radius: 8px; }

.gallery__track img {
  scroll-snap-align: start;
  flex: 0 0 auto;
  height: clamp(280px, 34vw, 400px);
  width: auto;
  border-radius: var(--radius-card);
  box-shadow: 0 20px 44px -18px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.gallery__track img:hover {
  transform: translateY(-6px) scale(1.015);
  box-shadow: 0 26px 54px -16px color-mix(in srgb, var(--accent) 45%, black 10%), 0 0 0 1px rgba(255,255,255,0.1);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 40px clamp(16px, 4vw, 40px) 56px;
}
.footer__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-70);
}
.footer__links {
  display: flex;
  gap: 20px;
  font-size: 13.5px;
}
.footer__links a { text-decoration: none; color: var(--ink-50); transition: color 0.15s ease; }
.footer__links a:hover { color: var(--amber); }
.footer__fine {
  width: 100%;
  margin: 8px 0 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ink-35);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .app__inner,
  .app--reverse .app__inner {
    grid-template-columns: 1fr;
  }
  .app--reverse .app__info,
  .app--reverse .app__gallery,
  .app__info,
  .app__gallery {
    order: initial;
  }
  .gallery__track img { height: clamp(260px, 62vw, 340px); }
}

@media (max-width: 480px) {
  .dock__item img { width: 60px; height: 60px; }
  .hero__actions { align-items: stretch; }
  .btn { justify-content: center; }
}
