/* =========================================================================
   LucidSky — teaser landing
   Style tokens and rules follow DESIGN.md (authoritative).
   Substitute fonts: Playfair Display 300 (serif display) / Inter (sans).
   ========================================================================= */

:root {
  /* Colors */
  --color-abyss-black: #070708;
  --color-pure-white: #ffffff;
  --color-steel-gray: #8f8f93;
  --color-electric-cobalt: #1954ec;
  --gradient-electric-cobalt: linear-gradient(135deg, rgb(0, 204, 255), rgb(12, 146, 246) 43%, rgb(25, 84, 236) 75%, rgb(25, 84, 236));

  /* Fonts (substitutes per DESIGN.md) */
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Type scale */
  --text-caption: 10px;
  --text-body: 15px;
  --text-body-sm: 14px;
  --text-heading: 45px;
  --text-heading-lg: 52px;
  --text-display: 72px;

  /* Spacing */
  --spacing-8: 8px;
  --spacing-23: 23px;
  --spacing-32: 32px;
  --spacing-59: 59px;
  --spacing-99: 99px;

  /* Layout */
  --page-max-width: 1200px;
  --page-margin: 96px;
}

/* -------------------------------------------------------------------------
   Reset & base
   ------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--color-abyss-black);
  color: var(--color-pure-white);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.5;
  font-feature-settings: "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Numerals align vertically everywhere */
* {
  font-feature-settings: "tnum";
}

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

/* Signature particle field — fixed, behind all content, bleeds across sections */
#field {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  display: block;
  pointer-events: none;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

/* Visible focus states — accessibility */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 1px solid var(--color-pure-white);
  outline-offset: 4px;
}

/* -------------------------------------------------------------------------
   Typography primitives
   ------------------------------------------------------------------------- */
.micro {
  font-family: var(--font-sans);
  font-size: var(--text-caption);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-pure-white);
  margin: 0;
}

.display,
.heading,
.heading-lg {
  font-family: var(--font-serif);
  font-weight: 300;
  color: var(--color-pure-white);
  margin: 0;
  line-height: 1.13;
  letter-spacing: 0;
  overflow-wrap: break-word;
}

.display {
  font-size: var(--text-display);
}

.heading {
  font-size: var(--text-heading);
}

.heading-lg {
  font-size: var(--text-heading-lg);
}

.stack {
  line-height: 1.13;
}

.accent {
  color: var(--color-electric-cobalt);
}

.body {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-body);
  line-height: 1.5;
  color: var(--color-steel-gray);
  max-width: 480px;
  margin: 0;
}

.body--wide {
  max-width: 480px;
}

/* -------------------------------------------------------------------------
   Corner navigation — floats on canvas, no bar/background
   ------------------------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-32) var(--page-margin);
  pointer-events: none;
}

.nav a {
  pointer-events: auto;
}

.nav__brand {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-8);
  font-size: var(--text-caption);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-pure-white);
}

.nav__mark {
  color: var(--color-pure-white);
  flex: none;
}

.nav__contact {
  font-size: var(--text-caption);
  font-weight: 400;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--color-pure-white);
}

/* -------------------------------------------------------------------------
   Layout scaffolding
   ------------------------------------------------------------------------- */
main {
  display: block;
}

.section {
  padding: var(--spacing-99) var(--page-margin);
  max-width: var(--page-max-width);
  margin: 0 auto;
  width: 100%;
}

/* Left column text, right column visual/description — the two-column rhythm */
.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--spacing-59);
  align-items: start;
}

.col-text {
  min-width: 0;
}

.col-visual {
  min-width: 0;
  padding-top: 8px;
}

/* Section dividers — 1px white hairline at low opacity */
.divider {
  border: 0;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  margin: 0 auto;
  max-width: var(--page-max-width);
  width: calc(100% - (2 * var(--page-margin)));
}

/* -------------------------------------------------------------------------
   Hero — full viewport
   ------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0 var(--page-margin);
  max-width: var(--page-max-width);
  margin: 0 auto;
  width: 100%;
}

.hero .col-text {
  max-width: 760px;
}

.hero .micro {
  margin-bottom: var(--spacing-32);
}

.hero .display {
  max-width: 12ch;
  margin-bottom: var(--spacing-32);
}

.hero .body {
  margin-top: var(--spacing-8);
}

.scroll {
  position: absolute;
  left: var(--page-margin);
  bottom: var(--spacing-59);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--spacing-8);
  color: var(--color-pure-white);
}

.scroll .micro {
  color: var(--color-pure-white);
}

.scroll__line {
  width: 1px;
  height: 60px;
  background: var(--color-pure-white);
  margin-left: 2px;
}

/* -------------------------------------------------------------------------
   What we're building — stacked blocks
   ------------------------------------------------------------------------- */
.stack-blocks {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-32);
}

.block .micro {
  margin-bottom: var(--spacing-8);
}

/* -------------------------------------------------------------------------
   Design targets — circle stat indicators
   ------------------------------------------------------------------------- */
.targets {
  text-align: left;
}

.targets > .micro {
  margin-bottom: var(--spacing-59);
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-59);
  justify-content: flex-start;
}

.stat {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 180px;
}

.stat__ring {
  position: relative;
  width: 180px;
  height: 180px;
}

.stat__arc {
  fill: none;
  stroke: var(--color-electric-cobalt);
  stroke-width: 1;
  stroke-linecap: round;
}

.stat__value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 59px;
  line-height: 1;
  color: var(--color-pure-white);
  letter-spacing: -0.02em;
}

.stat__unit {
  font-size: 18px;
  font-weight: 300;
  margin-left: 4px;
  align-self: center;
  color: var(--color-pure-white);
}

.stat__caption {
  margin-top: var(--spacing-23);
  font-size: var(--text-caption);
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-steel-gray);
  text-align: center;
  max-width: 160px;
  line-height: 1.4;
}

/* -------------------------------------------------------------------------
   CTA
   ------------------------------------------------------------------------- */
.cta .heading-lg {
  margin-bottom: var(--spacing-23);
}

.form {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin-top: var(--spacing-32);
  max-width: 480px;
}

.form__input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-right: 0;
  border-radius: 0;
  color: var(--color-pure-white);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: var(--text-body-sm);
  letter-spacing: 0.01em;
  padding: 0 20px;
  height: 48px;
}

.form__input::placeholder {
  color: var(--color-steel-gray);
}

/* Outline Button — 1px white border, no fill, square corners, 13px */
.btn-outline {
  flex: none;
  background: transparent;
  border: 1px solid var(--color-pure-white);
  border-radius: 0;
  color: var(--color-pure-white);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 0 25px;
  height: 48px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.btn-outline:hover {
  background: var(--color-pure-white);
  color: var(--color-abyss-black);
}

.form__status {
  margin-top: var(--spacing-32);
}

/* Ghost link — inline text link, 4px radius on clickable area */
.ghost-link {
  display: inline-block;
  margin-top: var(--spacing-32);
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 13px;
  color: var(--color-pure-white);
  border-radius: 4px;
  padding: 12px 0;
}

.ghost-link:hover {
  color: var(--color-steel-gray);
}

/* -------------------------------------------------------------------------
   Footer — minimal, no border above
   ------------------------------------------------------------------------- */
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--spacing-59) var(--page-margin);
  max-width: var(--page-max-width);
  margin: 0 auto;
  width: 100%;
}

.footer__label {
  color: var(--color-steel-gray);
}

/* Attribution stack — right-aligned, quieter than the 0.4em micro labels */
.footer__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--spacing-8);
  text-align: right;
}

.footer__credit,
.footer__copy {
  font-size: var(--text-caption);
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--color-steel-gray);
}

/* -------------------------------------------------------------------------
   Responsive — stack columns, scale display type down
   ------------------------------------------------------------------------- */
@media (max-width: 900px) {
  :root {
    --page-margin: 40px;
  }

  .nav {
    padding: var(--spacing-23) var(--page-margin);
  }

  /* Stack: text first, visual second */
  .two-col {
    grid-template-columns: 1fr;
    gap: var(--spacing-32);
  }

  .cta .col-visual {
    display: none;
  }

  /* Display type scales down — serif never below 32px */
  .display {
    font-size: 40px;
  }

  .heading {
    font-size: 32px;
  }

  .heading-lg {
    font-size: 32px;
  }

  .hero .display {
    max-width: 100%;
  }

  .section {
    padding: var(--spacing-59) var(--page-margin);
  }

  .stat-row {
    gap: var(--spacing-32) var(--spacing-59);
    justify-content: center;
  }
}

@media (max-width: 480px) {
  :root {
    --page-margin: 24px;
  }

  .footer {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-8);
  }

  .footer__meta {
    align-items: flex-start;
    text-align: left;
  }

  .form {
    flex-direction: column;
  }

  .form__input {
    border-right: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 0;
  }

  .btn-outline {
    height: 48px;
    margin-top: 0;
    border-top: 0;
  }
}

/* -------------------------------------------------------------------------
   Reduced motion — particle field freezes (handled in JS); disable smooth scroll
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
  }
}
