/* Exprema brand tokens — mirrors exprema-web/src/app/globals.css */
@font-face {
  font-family: "Geist";
  src: url("/assets/fonts/Geist-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Geist Mono";
  src: url("/assets/fonts/GeistMono-Variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;

  --canvas: #0a0c10;
  --void: #07090c;
  --surface: #0f1218;
  --surface-2: #14181f;
  --surface-3: #1b212b;

  --fg: #e9ebee;
  --fg-muted: #9aa1ac;
  --fg-subtle: #6b7280;

  --cyan: #0aa2cb;
  --cyan-bright: #22c3ea;
  --cyan-deep: #077796;
  --blue: #1c5ba9;

  --cyan-fill: #0aa2cb;
  --cyan-fill-bright: #22c3ea;
  --on-cyan: #0a0c10;

  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.16);
  --line-cyan: rgba(10, 162, 203, 0.35);

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --ease-swift: cubic-bezier(0.4, 0, 0.2, 1);
  --focus: #22c3ea;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;

    --canvas: #f5f6f8;
    --void: #eceef2;
    --surface: #ffffff;
    --surface-2: #f1f3f7;
    --surface-3: #e6e9ef;

    --fg: #12151a;
    --fg-muted: #4b5563;
    --fg-subtle: #6b7280;

    --cyan: #0a708c;
    --cyan-bright: #0d7f9e;
    --cyan-deep: #075d75;

    --line: rgba(10, 12, 16, 0.1);
    --line-strong: rgba(10, 12, 16, 0.18);
    --line-cyan: rgba(10, 112, 140, 0.35);

    --focus: #0d7f9e;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-color: var(--line);
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  background-color: var(--canvas);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  html {
    color-scheme: light;
  }
}

body {
  margin: 0;
  background-color: var(--canvas);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "ss01", "cv01", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

::selection {
  background-color: color-mix(in oklab, var(--cyan) 40%, transparent);
  color: var(--fg);
}

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

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

p {
  text-wrap: pretty;
}

a {
  color: inherit;
}

svg {
  display: block;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--cyan-fill);
  color: var(--on-cyan);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.container-x {
  width: 100%;
  max-width: 82rem;
  margin-inline: auto;
  padding-inline: 1.25rem;
}

@media (min-width: 48rem) {
  .container-x {
    padding-inline: 2rem;
  }
}

@media (min-width: 80rem) {
  .container-x {
    padding-inline: 2.5rem;
  }
}

/* ── Shared type ─────────────────────────────────────────────── */

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.section-head {
  max-width: 44rem;
}

.section-head h2 {
  margin-top: 1.25rem;
  font-size: clamp(1.9rem, 4.4vw, 3.25rem);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.section-lede {
  margin-top: 1.25rem;
  max-width: 36rem;
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

/* ── Buttons ─────────────────────────────────────────────────── */

.btn {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  padding: 0 20px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 200ms var(--ease-swift),
    border-color 200ms var(--ease-swift),
    color 200ms var(--ease-swift);
}

.btn:active {
  transform: translateY(1px);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
}

.btn-primary {
  background: var(--cyan-fill);
  color: var(--on-cyan);
}

.btn-primary:hover {
  background: var(--cyan-fill-bright);
}

.btn-outline {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--fg);
}

.btn-outline:hover {
  border-color: var(--line-cyan);
  color: var(--cyan-bright);
}

.btn-small {
  height: 36px;
  padding: 0 14px;
  font-size: 0.8125rem;
}

/* ── Header ──────────────────────────────────────────────────── */

.site-header {
  position: relative;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--canvas) 90%, transparent);
  backdrop-filter: blur(12px);
}

.dispatch {
  display: none;
  border-bottom: 1px solid var(--line);
  background: var(--void);
}

@media (min-width: 48rem) {
  .dispatch {
    display: block;
  }
}

.dispatch-inner {
  display: flex;
  height: 36px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-muted);
}

.dispatch-label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.dispatch-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 10px color-mix(in srgb, var(--cyan-bright) 70%, transparent);
}

.dispatch-meta {
  color: var(--fg-subtle);
}

.header-bar {
  display: flex;
  height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  color: var(--fg);
  text-decoration: none;
}

.wordmark {
  width: auto;
  height: 20px;
}

@media (min-width: 48rem) {
  .wordmark {
    height: 23px;
  }
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.lang-switch {
  display: inline-flex;
  height: 36px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
}

.lang-switch button {
  height: 100%;
  border: 0;
  background: transparent;
  padding: 0 0.625rem;
  color: var(--fg-subtle);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition:
    background-color 200ms var(--ease-swift),
    color 200ms var(--ease-swift);
}

.lang-switch button:hover {
  color: var(--fg);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--surface-2);
  color: var(--fg);
}

/* ── Hero ────────────────────────────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -18rem -10% auto;
  height: 42rem;
  background: radial-gradient(
    50% 50% at 50% 0%,
    color-mix(in oklab, var(--cyan) 16%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

@media (min-width: 64rem) {
  .hero-inner {
    grid-template-columns: minmax(0, 1.15fr) minmax(20rem, 0.85fr);
    align-items: center;
    gap: 4.5rem;
  }
}

.hero-copy h1 {
  margin-top: 1.25rem;
  max-width: 12ch;
  font-size: clamp(2.75rem, 7.5vw, 5.25rem);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede {
  margin-top: 1.5rem;
  max-width: 36rem;
  color: var(--fg-muted);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.redirect {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1.125rem 1.25rem;
}

.redirect-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.redirect-host {
  display: block;
  margin-top: 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.redirect-old .redirect-host {
  color: var(--fg-subtle);
  text-decoration: line-through;
  text-decoration-color: color-mix(in oklab, var(--fg-subtle) 60%, transparent);
}

.redirect-new .redirect-host {
  color: var(--cyan);
  text-decoration: none;
  transition: color 200ms var(--ease-swift);
}

.redirect-new a.redirect-host:hover {
  color: var(--cyan-bright);
}

.redirect-arrow {
  font-family: var(--font-mono);
  font-size: 1.125rem;
  line-height: 1;
  color: var(--cyan);
}

@media (max-width: 30rem) {
  .redirect {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .redirect-arrow {
    transform: rotate(90deg);
  }
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero-note {
  margin-top: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* ── Status panel ────────────────────────────────────────────── */

.status-panel {
  position: relative;
  border: 1px solid var(--line-cyan);
  background: linear-gradient(180deg, var(--surface), var(--void));
  padding: 1.5rem;
}

.status-panel::after {
  content: "";
  position: absolute;
  inset: auto -20% -45% -20%;
  height: 60%;
  background: radial-gradient(
    50% 50% at 50% 100%,
    color-mix(in oklab, var(--cyan) 14%, transparent) 0%,
    transparent 70%
  );
  pointer-events: none;
}

.status-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.status-live {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan-bright);
}

.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-bright);
  box-shadow: 0 0 12px var(--cyan-bright);
  animation: exprema-pulse 2.4s ease-in-out infinite;
}

.status-rows {
  position: relative;
  z-index: 1;
  margin: 0;
}

.status-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}

.status-row dt {
  color: var(--fg-muted);
  font-size: 0.8125rem;
}

.status-row dd {
  margin: 0;
  text-align: right;
  font-size: 0.8125rem;
  color: var(--fg);
}

.status-row dd.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cyan);
}

.status-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.status-code {
  color: var(--cyan);
}

/* ── Access cards ────────────────────────────────────────────── */

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.cards {
  display: grid;
  gap: 1px;
  margin-top: 2.75rem;
  background: var(--line);
}

@media (min-width: 48rem) {
  .cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.card-accent {
  background: var(--surface);
}

.card-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.card-accent .card-label {
  color: var(--cyan);
}

.card h3 {
  margin-top: 1.5rem;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.card > p {
  margin-top: 1rem;
  color: var(--fg-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

.text-link {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.5rem;
  margin-top: 2rem;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  transition:
    color 200ms var(--ease-swift),
    border-color 200ms var(--ease-swift);
}

.text-link svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.text-link:hover {
  color: var(--cyan-bright);
  border-color: currentColor;
}

.card .card-hint {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  color: var(--fg-subtle);
  font-size: 0.8125rem;
  line-height: 1.55;
}

/* ── Notes band ──────────────────────────────────────────────── */

.notes {
  border-top: 1px solid var(--line);
  background: var(--void);
}

.notes-inner {
  display: grid;
  gap: 2.5rem;
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

@media (min-width: 64rem) {
  .notes-inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 4rem;
    align-items: start;
  }
}

.note-grid {
  display: grid;
  gap: 1px;
  background: var(--line);
}

@media (min-width: 40rem) {
  .note-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.note {
  background: var(--void);
  padding: 1.5rem;
}

.note h3 {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  line-height: 1.4;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg);
}

.note p {
  margin-top: 0.75rem;
  color: var(--fg-muted);
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ── Footer ──────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--void);
}

.footer-inner {
  display: grid;
  gap: 2.5rem;
  padding-block: 3rem;
}

@media (min-width: 48rem) {
  .footer-inner {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
    align-items: start;
  }
}

.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
}

.mark {
  width: 30px;
  height: 30px;
  flex: none;
}

.footer-name {
  font-size: 0.9375rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.footer-brand address {
  margin-top: 0.5rem;
  font-style: normal;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--fg-muted);
}

.footer-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-support {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

.footer-mail {
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--cyan);
  text-decoration: none;
  transition: color 200ms var(--ease-swift);
}

.footer-mail:hover {
  color: var(--cyan-bright);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  margin-top: 1.75rem;
  font-size: 0.8125rem;
}

.footer-links a {
  color: var(--fg-muted);
  text-decoration: none;
  transition: color 200ms var(--ease-swift);
}

.footer-links a:hover {
  color: var(--fg);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--fg-subtle);
}

@media (min-width: 48rem) {
  .footer-bottom {
    grid-column: 1 / -1;
  }
}

.footer-domain {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  letter-spacing: 0.1em;
  color: var(--fg-subtle);
}

/* ── Motion ──────────────────────────────────────────────────── */

@keyframes exprema-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.35;
  }
}

@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;
  }
}
