/* ================================================
   Saiko Design System  --  The Deep Blue
   North Star: "The Deep Blue"
   Register: Product (brand landing surface)
   Strategy: Committed  |  Accent: Abyssal Blue
   Theme: Dark ocean  |  Elevation: Tonal
   Scene: "Server admin opens a Discord DM link on
          their phone at 11pm, half-curious,
          half-skeptical, sprawled on the couch."
   ================================================ */

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

/* --- Design Tokens --- */
:root {
  /* Surfaces — deep ocean blue-tinted near-blacks */
  --surface: oklch(0.10 0.01 250);
  --surface-elevated: oklch(0.14 0.015 250);
  --surface-raised: oklch(0.18 0.02 250);
  --surface-accent: oklch(0.55 0.18 250 / 0.10);

  /* Text — phosphorescent blue-tinted whites */
  --text-primary: oklch(0.93 0.005 250);
  --text-secondary: oklch(0.67 0.01 250);
  --text-muted: oklch(0.45 0.015 250);

  /* Accent — Abyssal Blue (committed, single voice) */
  --accent: oklch(0.55 0.18 250);
  --accent-hover: oklch(0.60 0.20 255);
  --accent-subtle: oklch(0.55 0.18 250 / 0.12);
  --accent-glow: oklch(0.55 0.18 250 / 0.20);
  --accent-glow-strong: oklch(0.55 0.18 250 / 0.35);

  /* Borders — deep line */
  --border: oklch(0.22 0.015 250);
  --border-faint: oklch(0.22 0.015 250 / 0.5);

  /* Spacing — varied for rhythm */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;
}

/* --- Typography --- */
body {
  font-family: "Sora", -apple-system, BlinkMacSystemFont, "Segoe UI",
    system-ui, sans-serif;
  background: var(--surface);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Modular scale: 1.25 ratio */
h1,
.h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h2,
.h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
}

h3,
.h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.body-large {
  font-size: 1.15rem;
  line-height: 1.7;
}

.body {
  font-size: 1rem;
  line-height: 1.7;
}

.body-small {
  font-size: 0.875rem;
  line-height: 1.6;
}

.caption {
  font-size: 0.75rem;
  line-height: 1.5;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

/* Cap line length for prose */
.prose {
  max-width: 65ch;
}

.text-secondary {
  color: var(--text-secondary);
}

.text-accent {
  color: var(--accent);
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.15s ease-out;
}

a:hover {
  color: var(--accent-hover);
}

/* --- Navigation --- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--space-md) var(--space-xl);
  background: oklch(0.10 0.01 250 / 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-faint);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  color: var(--text-primary);
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
}

.nav-brand:hover {
  color: var(--text-primary);
}

.nav-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: oklch(0.10 0.01 250);
  font-size: 1rem;
  font-weight: 700;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: 0.6rem 1.25rem;
  border: none;
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease-out;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: oklch(0.10 0.01 250);
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: oklch(0.10 0.01 250);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  background: var(--surface-raised);
  color: var(--text-primary);
  border-color: var(--text-muted);
}

.btn-large {
  padding: 0.75rem 1.75rem;
  font-size: 1rem;
}

/* --- Hero --- */
.hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: var(--space-3xl) var(--space-xl) var(--space-2xl);
  position: relative;
  overflow: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-full);
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  width: fit-content;
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero-title-accent {
  color: var(--accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 50ch;
}

.hero-actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  padding-top: var(--space-sm);
}

/* Hero visual block — asymmetric accent element */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 400px;
}

.hero-shape {
  width: 100%;
  max-width: 440px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: linear-gradient(
    160deg,
    var(--accent) 0%,
    oklch(0.35 0.15 250) 100%
  );
  position: relative;
  overflow: hidden;
}

.hero-shape::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 80% 60% at 30% 20%,
      oklch(0.95 0.08 250 / 0.3) 0%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 60% 50% at 70% 80%,
      oklch(0.3 0.12 250 / 0.3) 0%,
      transparent 100%
    );
}

.hero-shape-glow {
  position: absolute;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: var(--accent-glow-strong);
  filter: blur(60px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* --- Feature Sections --- */
.features {
  padding: var(--space-3xl) var(--space-xl);
}

.features-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-3xl);
}

/* Split feature (alternating) */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
}

.feature-split-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.feature-split-tag {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.feature-split-visual {
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-split-block {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--text-muted);
}

/* Full-width feature with dense copy */
.feature-full {
  text-align: center;
  padding: var(--space-2xl) 0;
  position: relative;
}

.feature-full::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--accent-subtle);
  border-radius: var(--radius-lg);
  filter: blur(40px);
  opacity: 0.5;
  pointer-events: none;
}

.feature-full-inner {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.feature-full-features {
  display: flex;
  gap: var(--space-lg);
  flex-wrap: wrap;
  justify-content: center;
  padding-top: var(--space-lg);
}

.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 0.5rem 1rem;
  background: var(--surface-raised);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.feature-pill span {
  font-size: 1.1rem;
}

/* Tight capability cluster */
.feature-cluster {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.feature-cluster-item {
  padding: var(--space-xl);
  border-radius: var(--radius-md);
  background: var(--surface-elevated);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  transition: border-color 0.15s ease-out;
}

.feature-cluster-item:hover {
  border-color: var(--accent-glow);
}

.feature-cluster-icon {
  font-size: 1.5rem;
  margin-bottom: var(--space-xs);
}

.feature-cluster-item h3 {
  font-size: 1rem;
  font-weight: 600;
}

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

/* --- Stats / Proof --- */
.proof {
  padding: var(--space-2xl) var(--space-xl);
  text-align: center;
}

.proof-inner {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.proof-stat {
  font-size: clamp(1.5rem, 3.5vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
}

.proof-stat-number {
  color: var(--accent);
}

.proof-blocks {
  display: flex;
  justify-content: center;
  gap: var(--space-2xl);
  flex-wrap: wrap;
  padding-top: var(--space-md);
}

.proof-block {
  text-align: center;
}

.proof-block-value {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}

.proof-block-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--space-xs);
}

/* --- CTA --- */
.cta {
  padding: var(--space-3xl) var(--space-xl);
  background: linear-gradient(
    160deg,
    var(--accent) 0%,
    oklch(0.30 0.15 250) 100%
  );
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      ellipse 60% 50% at 20% 50%,
      oklch(0.95 0.08 250 / 0.2) 0%,
      transparent 100%
    ),
    radial-gradient(
      ellipse 50% 60% at 80% 30%,
      oklch(0.25 0.10 250 / 0.3) 0%,
      transparent 100%
    );
  pointer-events: none;
}

.cta-inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  align-items: center;
}

.cta h2 {
  color: oklch(0.10 0.01 250);
}

.cta p {
  color: oklch(0.18 0.02 250 / 0.85);
  font-size: 1.1rem;
  max-width: 45ch;
}

.cta .btn-primary {
  background: oklch(0.10 0.01 250);
  color: var(--text-primary);
  margin-top: var(--space-sm);
}

.cta .btn-primary:hover {
  background: oklch(0.14 0.015 250);
  color: var(--text-primary);
}

/* --- Footer --- */
.footer {
  padding: var(--space-xl) var(--space-xl) var(--space-lg);
  border-top: 1px solid var(--border-faint);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer-brand {
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 500;
}

.footer-links {
  display: flex;
  gap: var(--space-lg);
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.85rem;
  transition: color 0.15s ease-out;
}

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

/* --- Responsive --- */

/* Tablet */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .hero-visual {
    min-height: 300px;
    order: -1;
  }

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

  .hero-title {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .feature-split {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .feature-cluster {
    grid-template-columns: repeat(2, 1fr);
  }

  .nav {
    padding: var(--space-md) var(--space-lg);
  }

  .hero {
    padding: var(--space-3xl) var(--space-lg) var(--space-2xl);
  }

  .features {
    padding: var(--space-2xl) var(--space-lg);
  }

  .proof {
    padding: var(--space-2xl) var(--space-lg);
  }

  .cta {
    padding: var(--space-2xl) var(--space-lg);
  }
}

/* Mobile */
@media (max-width: 600px) {
  .nav-actions .btn-ghost {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 5rem;
  }

  .hero-grid {
    gap: var(--space-lg);
  }

  .hero-visual {
    min-height: 220px;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .feature-cluster {
    grid-template-columns: 1fr;
  }

  .proof-blocks {
    gap: var(--space-lg);
  }

  .proof-block-value {
    font-size: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: var(--space-md);
  }

  .feature-split-visual {
    display: none;
  }

  .feature-full-features {
    flex-direction: column;
    align-items: center;
  }
}

/* --- Animations (respected prefers-reduced-motion) --- */
@media (prefers-reduced-motion: no-preference) {
  .hero-shape-glow {
    animation: pulse 4s ease-in-out infinite alternate;
  }

  .hero-shape {
    transition: transform 0.3s ease-out;
  }

  .hero-shape:hover {
    transform: scale(1.02);
  }

  .feature-cluster-item {
    transition:
      border-color 0.15s ease-out,
      transform 0.2s ease-out;
  }

  .feature-cluster-item:hover {
    transform: translateY(-2px);
  }

  @keyframes pulse {
    0% {
      transform: translate(-50%, -50%) scale(1);
      opacity: 0.6;
    }
    100% {
      transform: translate(-50%, -50%) scale(1.4);
      opacity: 1;
    }
  }
}

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