/* ═══════════════════════════════════════════
   THE LINK — Design System
   Shared tokens, resets, typography, utilities
   ═══════════════════════════════════════════ */

/* ── Tokens ── */
:root {
  --black:    #09090b;
  --bg:       #0f0f0f;
  --surface:  #16181d;
  --surface2: #1c1f26;
  --line:     rgba(255, 255, 255, 0.08);
  --line2:    rgba(255, 255, 255, 0.12);

  --accent:     #00e5d5;
  --accent-dim: rgba(0, 229, 213, 0.10);
  --accent-mid: rgba(0, 229, 213, 0.20);
  --accent-glow: rgba(0, 229, 213, 0.35);

  --red:    #f04848;
  --amber:  #f59e0b;

  --text:   #e8eaf0;
  --sub:    #8b8fa8;
  --dim:    #4a4d5e;

  --font:     'Plus Jakarta Sans', sans-serif;
  --wordmark: 'Bebas Neue', sans-serif;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

/* ── Reset ── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
}

img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: var(--font); }
input, textarea, select { font-family: var(--font); }

/* ── Typography ── */
.wordmark {
  font-family: var(--wordmark);
  letter-spacing: 4px;
  color: var(--accent);
}

.section-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: var(--black);
  border: none;
  padding: 14px 28px;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-primary:hover {
  background: #00ffef;
  box-shadow: 0 4px 20px var(--accent-glow);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--sub);
  border: 1px solid var(--line);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.btn-ghost:hover {
  border-color: var(--line2);
  color: var(--text);
}

/* ── Form Inputs ── */
.field-input {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  padding: 13px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease;
}

.field-input:focus {
  border-color: var(--accent-mid);
}

.field-input::placeholder {
  color: var(--dim);
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--sub);
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}

/* ── Utilities ── */
.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pip {
  0%, 100% { box-shadow: 0 0 5px rgba(0, 229, 213, 0.4); }
  50%      { box-shadow: 0 0 14px rgba(0, 229, 213, 0.9); }
}

.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ── Mobile overrides ── */
@media (max-width: 480px) {
  .container { padding: 0 18px; }

  /* Ensure touch-friendly targets (44px min) */
  .btn-primary { padding: 15px 24px; font-size: 0.9rem; min-height: 48px; }
  .btn-ghost { padding: 14px 20px; font-size: 0.85rem; min-height: 48px; }
  .field-input { padding: 14px 16px; font-size: 16px; min-height: 48px; } /* 16px prevents iOS zoom */
  .field-label { font-size: 0.75rem; }
}
