/*
 * CyberWise — prelaunch "coming soon" page.
 *
 * Standalone, no build step. The design tokens below are the oklch values from
 * the real app (app/globals.css), so this page reads as the same brand. Theme
 * follows the visitor's OS setting via prefers-color-scheme (the app does
 * light/dark too, just via next-themes).
 */

/* ── Design tokens (light) — mirrors :root in app/globals.css ──────────────-*/
:root {
  --background: oklch(1 0 0);
  --foreground: oklch(0.145 0 0);
  --muted: oklch(0.97 0 0);
  --muted-foreground: oklch(0.556 0 0);
  --primary: oklch(0.546 0.215 263);
  --primary-foreground: oklch(0.985 0 0);
  --border: oklch(0.922 0 0);
  --radius: 0.625rem;

  --font-sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
    Roboto, Helvetica, Arial, sans-serif;
  --font-heading: "Lexend", var(--font-sans);
}

/* ── Design tokens (dark) — mirrors .dark in app/globals.css ────────────────*/
@media (prefers-color-scheme: dark) {
  :root {
    --background: oklch(0.145 0 0);
    --foreground: oklch(0.985 0 0);
    --muted: oklch(0.269 0 0);
    --muted-foreground: oklch(0.708 0 0);
    --primary: oklch(0.673 0.182 263);
    --primary-foreground: oklch(0.145 0 0);
    --border: oklch(1 0 0 / 10%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100svh;
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Soft brand glow at the top — same radial-gradient as the live hero. */
.glow {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(
    60% 60% at 50% 0%,
    color-mix(in oklch, var(--primary) 14%, transparent),
    transparent
  );
}

.page {
  display: flex;
  flex-direction: column;
  min-height: 100svh;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Header ────────────────────────────────────────────────────────────────*/
.site-header {
  padding: 1.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--foreground);
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 600;
}

.brand-mark {
  width: 1.6rem;
  height: 1.6rem;
  color: var(--primary);
}

.brand-name {
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

/* ── Hero ──────────────────────────────────────────────────────────────────*/
.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
  text-align: center;
  padding: 3rem 0 4rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklch, var(--muted) 50%, transparent);
  color: var(--muted-foreground);
  font-size: 0.8rem;
  font-weight: 500;
}

.eyebrow svg {
  width: 0.95rem;
  height: 0.95rem;
  color: var(--primary);
}

.headline {
  margin: 0;
  max-width: 18ch;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: clamp(2.4rem, 6vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.subhead {
  margin: 0;
  max-width: 42rem;
  color: var(--muted-foreground);
  font-size: clamp(1rem, 2.2vw, 1.2rem);
  text-wrap: pretty;
}

/* ── Actions / notify button ───────────────────────────────────────────────*/
.actions {
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 1.5rem;
  height: 2.85rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
}

.btn-primary {
  background: var(--primary);
  color: var(--primary-foreground);
  box-shadow: 0 1px 2px color-mix(in oklch, var(--primary) 35%, transparent);
}

.btn-primary:hover {
  background: color-mix(in oklch, var(--primary) 90%, black);
}

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

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

.note {
  margin: 0;
  color: var(--muted-foreground);
  font-size: 0.875rem;
}

/* ── Topic chips ───────────────────────────────────────────────────────────*/
.topics {
  margin-top: 1.5rem;
}

.topics-label {
  margin: 0 0 0.85rem;
  color: var(--muted-foreground);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.6rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chips li {
  padding: 0.4rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in oklch, var(--muted) 40%, transparent);
  color: var(--foreground);
  font-size: 0.85rem;
}

/* ── Footer ────────────────────────────────────────────────────────────────*/
.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--muted-foreground);
  font-size: 0.85rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--muted-foreground);
  text-decoration: underline;
  text-underline-offset: 2px;
}

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

/* ── Entrance animation (respects reduced-motion) ──────────────────────────-*/
@media (prefers-reduced-motion: no-preference) {
  .hero > * {
    animation: rise 0.6s ease both;
  }
  .hero > *:nth-child(2) { animation-delay: 0.05s; }
  .hero > *:nth-child(3) { animation-delay: 0.1s; }
  .hero > *:nth-child(4) { animation-delay: 0.15s; }
  .hero > *:nth-child(5) { animation-delay: 0.2s; }
  .hero > *:nth-child(6) { animation-delay: 0.25s; }

  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(0.75rem);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
