/* ═══════════════════════════════════════════════
   LUMOS — Design System
   Brutalist Swiss Minimalism / Editorial Dark
   ═══════════════════════════════════════════════ */

/* ─── Reset ─── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ─── Custom Properties ─── */
:root {
  /* Palette */
  --black: #08080a;
  --ink: #111113;
  --dark: #1a1a1e;
  --mid: #2a2a2f;
  --steel: #4a4a52;
  --ash: #8a8a92;
  --silver: #b8b8be;
  --bone: #e8e8e2;
  --white: #f5f5f0;

  /* Accent — subtle warm amber for CTA hover */
  --amber: #d4a853;
  --amber-dim: rgba(212, 168, 83, 0.12);

  /* Typography scale (Major Third — 1.25) */
  --text-xs: clamp(0.72rem, 0.68rem + 0.2vw, 0.8rem);
  --text-sm: clamp(0.8rem, 0.76rem + 0.2vw, 0.9rem);
  --text-base: clamp(0.95rem, 0.88rem + 0.35vw, 1.1rem);
  --text-lg: clamp(1.1rem, 0.95rem + 0.75vw, 1.4rem);
  --text-xl: clamp(1.4rem, 1.1rem + 1.5vw, 2rem);
  --text-2xl: clamp(1.8rem, 1.2rem + 3vw, 3.2rem);
  --text-3xl: clamp(2.4rem, 1.4rem + 5vw, 5rem);
  --text-display: clamp(3rem, 1.6rem + 7vw, 7.5rem);

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 10rem;

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-reveal: 1.1s;
  --duration-fast: 0.3s;

  /* Grid */
  --max-width: 1400px;
  --gutter: clamp(1.5rem, 4vw, 4rem);
}

/* ─── Base ─── */
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  color-scheme: dark;
  background: var(--black);
}

body {
  font-family: "Helvetica Neue", "Helvetica", "Arial", system-ui, sans-serif;
  font-weight: 400;
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--silver);
  background: var(--black);
  overflow-x: hidden;
}

::selection {
  background: var(--amber);
  color: var(--black);
}

a {
  color: inherit;
  text-decoration: none;
}

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

/* ─── Skip Link (Accessibility) ─── */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--gutter);
  background: var(--white);
  color: var(--black);
  padding: var(--space-xs) var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  z-index: 1000;
  transition: top var(--duration-fast) var(--ease-out-expo);
}

.skip-link:focus-visible {
  top: var(--space-sm);
  outline: 2px solid var(--amber);
  outline-offset: 2px;
}

/* ─── Layout Containers ─── */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: var(--space-xl);
  position: relative;
}

.section--full {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-sm) 0;
  transition: background var(--duration-fast) ease,
    backdrop-filter var(--duration-fast) ease;
}

.nav--scrolled {
  background: rgba(8, 8, 10, 0.85);
  backdrop-filter: blur(20px) saturate(1.2);
  -webkit-backdrop-filter: blur(20px) saturate(1.2);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav__logo {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
}

.nav__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.nav__link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ash);
  transition: color var(--duration-fast) ease;
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--white);
  transition: width var(--duration-fast) var(--ease-out-expo);
}

.nav__link:hover,
.nav__link:focus-visible {
  color: var(--white);
}

.nav__link:hover::after,
.nav__link:focus-visible::after {
  width: 100%;
}

.nav__link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 6rem;
  overflow: hidden;
}

.hero__content {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero__text {
  max-width: 680px;
}

.hero__badge {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--amber);
  border: 1px solid rgba(212, 168, 83, 0.3);
  padding: 0.35em 1em;
  margin-bottom: var(--space-md);
}

.hero__headline {
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.hero__headline em {
  font-style: normal;
  color: var(--amber);
}

.hero__sub {
  font-size: var(--text-lg);
  line-height: 1.55;
  color: var(--ash);
  max-width: 540px;
  margin-bottom: var(--space-lg);
}

.hero__image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.hero__image img {
  width: 100%;
  height: auto;
}

.hero__image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, var(--black) 100%);
  pointer-events: none;
}

/* ─── CTA Button ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 1em 2.4em;
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  transition: transform var(--duration-fast) var(--ease-out-expo),
    background var(--duration-fast) ease,
    box-shadow var(--duration-fast) ease;
  position: relative;
  touch-action: manipulation;
}

.btn--primary {
  background: var(--white);
  color: var(--black);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(245, 245, 240, 0.15);
}

.btn--primary:active {
  transform: translateY(0);
}

.btn--primary:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.btn--ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid var(--mid);
}

.btn--ghost:hover {
  border-color: var(--steel);
  background: var(--amber-dim);
}

.btn--ghost:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.btn__arrow {
  transition: transform var(--duration-fast) var(--ease-out-expo);
}

.btn:hover .btn__arrow {
  transform: translateX(4px);
}

/* ─── Section Headers ─── */
.section__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: var(--space-sm);
}

.section__title {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: var(--space-md);
}

.section__body {
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--ash);
  max-width: 600px;
}

/* ─── Hardware Section ─── */
.hardware {
  background: var(--ink);
  border-top: 1px solid var(--dark);
  border-bottom: 1px solid var(--dark);
}

.hardware__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.hardware__image {
  position: relative;
  border-radius: 2px;
  overflow: hidden;
}

.hardware__image img {
  width: 100%;
  height: auto;
}

.hardware__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.spec {
  padding: var(--space-sm);
  border: 1px solid var(--dark);
  background: rgba(26, 26, 30, 0.5);
}

.spec__label {
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.3em;
}

.spec__value {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
}

/* ─── Software Section ─── */
.software {
  background: var(--black);
}

.software__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  align-items: center;
}

.software__mockup {
  display: flex;
  justify-content: center;
}

.software__mockup img {
  max-width: 520px;
  width: 100%;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(255, 255, 255, 0.05);
}

/* ─── Feature Columns ─── */
.features {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.feature {
  padding: var(--space-md);
  border: 1px solid var(--dark);
  background: var(--ink);
  position: relative;
  overflow: hidden;
}

.feature::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--amber) 0%, transparent 100%);
  opacity: 0;
  transition: opacity var(--duration-fast) ease;
}

.feature:hover::before {
  opacity: 1;
}

.feature__number {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.1em;
  margin-bottom: var(--space-xs);
  font-variant-numeric: tabular-nums;
}

.feature__title {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--white);
  margin-bottom: 0.5em;
}

.feature__desc {
  font-size: var(--text-sm);
  color: var(--ash);
  line-height: 1.6;
}

/* ─── Gallery Section ─── */
.gallery {
  background: var(--ink);
  border-top: 1px solid var(--dark);
}

.gallery__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  margin-top: var(--space-lg);
}

.gallery__item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  border-radius: 2px;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out-expo);
}

.gallery__item:hover img {
  transform: scale(1.05);
}

.gallery__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(8, 8, 10, 0.6) 100%);
  pointer-events: none;
}

.gallery__caption {
  position: absolute;
  bottom: var(--space-sm);
  left: var(--space-sm);
  z-index: 2;
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--bone);
}

/* ─── Footer ─── */
.footer {
  background: var(--black);
  border-top: 1px solid var(--dark);
  padding-block: var(--space-xl);
}

.footer__cta {
  text-align: center;
  padding-bottom: var(--space-xl);
  border-bottom: 1px solid var(--dark);
  margin-bottom: var(--space-lg);
}

.footer__headline {
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--white);
  text-wrap: balance;
  margin-bottom: var(--space-md);
  max-width: 700px;
  margin-inline: auto;
}

.footer__bottom {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__link {
  font-size: var(--text-xs);
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  transition: color var(--duration-fast) ease;
}

.footer__link:hover,
.footer__link:focus-visible {
  color: var(--white);
}

.footer__link:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--steel);
}

/* ─── Divider ─── */
.divider {
  width: 60px;
  height: 1px;
  background: var(--mid);
  margin-block: var(--space-lg);
}

/* ─── Scroll Reveal Animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity var(--duration-reveal) var(--ease-out-expo),
    transform var(--duration-reveal) var(--ease-out-expo);
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--delay-1 {
  transition-delay: 0.1s;
}

.reveal--delay-2 {
  transition-delay: 0.2s;
}

.reveal--delay-3 {
  transition-delay: 0.3s;
}

.reveal--delay-4 {
  transition-delay: 0.4s;
}

/* Stagger children */
.reveal-group .reveal:nth-child(1) {
  transition-delay: 0s;
}

.reveal-group .reveal:nth-child(2) {
  transition-delay: 0.12s;
}

.reveal-group .reveal:nth-child(3) {
  transition-delay: 0.24s;
}

.reveal-group .reveal:nth-child(4) {
  transition-delay: 0.36s;
}

/* ─── Reduced Motion ─── */
@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .gallery__item img {
    transition: none;
  }

  .btn {
    transition: none;
  }

  html {
    scroll-behavior: auto;
  }
}

/* ─── Responsive — Tablet (≥640px) ─── */
@media (min-width: 640px) {
  .gallery__grid {
    grid-template-columns: 1fr 1fr;
  }

  .features {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .hardware__specs {
    grid-template-columns: repeat(4, 1fr);
  }

  .footer__bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}

/* ─── Responsive — Desktop (≥1024px) ─── */
@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-2xl);
  }

  .hero__content {
    grid-template-columns: 1fr 1fr;
  }

  .hardware__grid {
    grid-template-columns: 1fr 1fr;
  }

  .software__grid {
    grid-template-columns: 1.2fr 1fr;
  }

  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .nav__links--mobile {
    display: none;
  }
}

/* ─── Responsive — Wide (≥1440px) ─── */
@media (min-width: 1440px) {
  .hero__headline {
    font-size: 4.5rem;
  }
}

/* ─── Grain Overlay ─── */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}