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

:root {
  /* Colors — aligned with DEKT design system */
  --bg:             #0A0A0C;
  --bg-surface:     #121214;
  --bg-elevated:    #1A1A1E;
  --text-primary:   #F5F5F7;
  --text-secondary: #8E8E96;
  --text-muted:     #52525A;
  --accent:         #0A84FF;
  --accent-hover:   #339FFF;
  --accent-glow:    rgba(10, 132, 255, 0.15);
  --border:         #252529;
  --border-hover:   #38383D;

  /* Typography */
  --font:      'Space Grotesk', system-ui, -apple-system, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;

  /* Radii */
  --radius-sm:  8px;
  --radius:     12px;
  --radius-lg:  16px;
  --radius-xl:  20px;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: radial-gradient(ellipse at 50% 0%, #0E0E12 0%, var(--bg) 70%);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

::selection {
  background: rgba(10, 132, 255, 0.3);
  color: var(--text-primary);
}

/* ── Layout ──────────────────────────────────────── */
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ── Ambient Background ──────────────────────────── */
.hero-glow {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 600px;
  background: radial-gradient(ellipse, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 72px 0 48px;
}

.app-icon {
  width: 112px;
  height: 112px;
  border-radius: 25%;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.06);
  margin-bottom: 32px;
  transition: transform 0.2s ease-out;
  animation: fadeUp 0.5s ease-out both;
}

.app-icon:hover {
  transform: scale(1.03);
}

.logo {
  font-family: var(--font-mono);
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  color: var(--text-primary);
  text-shadow: 0 0 40px rgba(10, 132, 255, 0.15);
  margin-bottom: 4px;
  animation: fadeUp 0.5s ease-out 0.08s both;
}

.tagline {
  font-size: 0.875rem;
  color: var(--text-secondary);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
  animation: fadeUp 0.5s ease-out 0.16s both;
}

.description {
  font-size: 1.1rem;
  color: rgba(245, 245, 247, 0.7);
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
  animation: fadeUp 0.5s ease-out 0.24s both;
}

/* ── CTA Button ──────────────────────────────────── */
.cta {
  animation: fadeUp 0.5s ease-out 0.32s both;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(10, 132, 255, 0.25);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 20px rgba(10, 132, 255, 0.35);
  transform: translateY(-1px);
}

.btn-coming-soon {
  background: linear-gradient(
    110deg,
    var(--accent) 0%,
    var(--accent) 40%,
    rgba(51, 159, 255, 0.6) 50%,
    var(--accent) 60%,
    var(--accent) 100%
  );
  background-size: 200% 100%;
  color: #fff;
  box-shadow: 0 2px 12px rgba(10, 132, 255, 0.25);
  cursor: default;
  animation: fadeUp 0.5s ease-out 0.32s both, shimmer 4s ease-in-out 1.5s infinite;
}

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

.btn-icon {
  display: flex;
  align-items: center;
}

.suit-divider {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 8px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.4;
  letter-spacing: 0.3em;
  animation: fadeUp 0.5s ease-out 0.36s both;
}

/* ── Features ────────────────────────────────────── */
.features {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 32px 0 72px;
}

.feature {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  animation: fadeUp 0.5s ease-out both;
}

.feature:nth-child(1) { animation-delay: 0.40s; }
.feature:nth-child(2) { animation-delay: 0.48s; }
.feature:nth-child(3) { animation-delay: 0.56s; }
.feature:nth-child(4) { animation-delay: 0.64s; }

.feature:hover {
  border-color: var(--border-hover);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
}

.feature-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  color: var(--accent);
  overflow: hidden;
}

.feature-icon svg {
  width: 20px;
  height: 20px;
  max-width: 20px;
  max-height: 20px;
  flex-shrink: 0;
}

.feature:nth-child(1) .feature-icon { color: var(--accent); }
.feature:nth-child(2) .feature-icon { color: #FF8C00; }
.feature:nth-child(3) .feature-icon { color: #30D158; }
.feature:nth-child(4) .feature-icon { color: #9A55FF; }

.feature h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.feature p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Footer ──────────────────────────────────────── */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  text-align: center;
  animation: fadeUp 0.5s ease-out 0.72s both;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 32px;
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
  transition: color 0.2s ease;
}

.footer-links a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.footer-mark {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
  margin-bottom: 16px;
  opacity: 0.5;
}

.copyright {
  font-size: 0.8rem;
  color: var(--text-muted);
}

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

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ── Legal Pages ─────────────────────────────────── */
.legal {
  position: relative;
  z-index: 1;
  padding: 60px 0 80px;
}

.legal-header {
  margin-bottom: 40px;
}

.legal-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.legal-header .effective-date {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.legal-content h2 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 32px 0 12px;
  color: var(--text-primary);
}

.legal-content h3 {
  font-size: 1rem;
  font-weight: 600;
  margin: 24px 0 8px;
  color: var(--text-primary);
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 12px;
  line-height: 1.7;
}

.legal-content ul, .legal-content ol {
  color: var(--text-secondary);
  margin-bottom: 12px;
  padding-left: 24px;
  line-height: 1.7;
}

.legal-content li {
  margin-bottom: 6px;
}

.legal-content a {
  color: var(--accent);
  text-decoration: none;
}

.legal-content a:hover {
  text-decoration: underline;
}

.legal-content a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.875rem;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-link:hover {
  color: var(--accent);
}

.back-link:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ── 404 Page ────────────────────────────────────── */
.error-page {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 160px 0 80px;
}

.error-code {
  font-family: var(--font-mono);
  font-size: 5rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.error-message {
  font-size: 1.1rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ── Reduced Motion ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  .hero {
    padding: 64px 0 44px;
  }

  .logo {
    font-size: 3rem;
  }

  .app-icon {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 56px 0 40px;
  }

  .app-icon {
    width: 88px;
    height: 88px;
    margin-bottom: 24px;
  }

  .logo {
    font-size: 2.75rem;
  }

  .tagline {
    font-size: 0.85rem;
  }

  .description {
    font-size: 1rem;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 20px 0 56px;
  }

  .btn {
    padding: 14px 28px;
    font-size: 0.9rem;
  }

  .hero-glow {
    width: 500px;
    height: 400px;
  }

  .error-page {
    padding: 100px 0 60px;
  }

  .error-code {
    font-size: 3.5rem;
  }
}

@media (max-width: 380px) {
  .container {
    padding: 0 16px;
  }

  .logo {
    font-size: 2.25rem;
    letter-spacing: 0.15em;
  }

  .feature {
    padding: 20px 16px;
  }
}
