/* ============================================
   Cascane — Design Tokens & Shared Stylesheet
   ============================================ */

:root {
  /* Colors */
  --bg:             #080809;
  --surface:        #1A1A1A;
  --accent:         #00D9FF;
  --accent-green:   #11FF00;
  --accent-cyan:    #00FFD1;
  --text-primary:   #FFFFFF;
  --text-secondary: #B0B0B0;
  --muted:          #404040;

  /* Accent with alpha */
  --accent-10:      rgba(0, 217, 255, 0.10);
  --accent-20:      rgba(0, 217, 255, 0.20);
  --accent-06:      rgba(0, 217, 255, 0.06);

  /* Typography */
  --font:           'Inter', sans-serif;
  --fs-xs:          0.75rem;    /* 12px */
  --fs-sm:          0.875rem;   /* 14px */
  --fs-base:        1rem;       /* 16px */
  --fs-lg:          1.125rem;   /* 18px */
  --fs-xl:          1.25rem;    /* 20px */
  --fs-2xl:         1.5rem;     /* 24px */
  --fs-3xl:         2rem;       /* 32px */
  --fs-4xl:         2.75rem;    /* 44px */
  --fs-5xl:         3.5rem;     /* 56px */

  /* Spacing */
  --space-xs:       0.5rem;
  --space-sm:       0.75rem;
  --space-md:       1rem;
  --space-lg:       1.5rem;
  --space-xl:       2rem;
  --space-2xl:      3rem;
  --space-3xl:      4rem;
  --space-4xl:      6rem;
  --space-5xl:      8rem;

  /* Layout */
  --max-w:          1120px;
  --radius:         12px;
  --radius-sm:      8px;
}

/* ============================================
   Reset & Base
   ============================================ */

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

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

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

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

a:hover {
  opacity: 0.8;
}

img {
  max-width: 100%;
  display: block;
}

/* ============================================
   Utilities
   ============================================ */

.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.section {
  padding-block: var(--space-4xl);
}

.section-label {
  display: inline-block;
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-md);
}

.section-heading {
  font-size: var(--fs-3xl);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: var(--space-lg);
}

.section-body {
  font-size: var(--fs-base);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.75;
}

.section-body + .section-body {
  margin-top: var(--space-md);
}

/* ============================================
   Background grain texture (CSS-only)
   ============================================ */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 200px 200px;
}

/* ============================================
   Navigation
   ============================================ */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(8, 8, 9, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(64, 64, 64, 0.3);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

/* Wordmark */
.wordmark {
  font-size: var(--fs-xl);
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  text-decoration: none;
  position: relative;
}

.wordmark::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-cyan));
  border-radius: 1px;
  opacity: 0.7;
}

.wordmark:hover {
  opacity: 1;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text-primary);
  opacity: 1;
}

/* ============================================
   Hero
   ============================================ */

.hero {
  padding-top: var(--space-5xl);
  padding-bottom: var(--space-4xl);
  position: relative;
}

/* Subtle radial glow behind hero */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 500px;
  background: radial-gradient(
    ellipse at center,
    rgba(0, 217, 255, 0.06) 0%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

.hero .container {
  position: relative;
  z-index: 1;
}

.hero-heading {
  font-size: var(--fs-4xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  max-width: 680px;
  margin-bottom: var(--space-lg);
}

.hero-heading .accent-word {
  background: linear-gradient(135deg, var(--accent), var(--accent-cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: var(--fs-lg);
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.75;
}

/* ============================================
   Divider
   ============================================ */

.divider {
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent,
    var(--muted) 30%,
    var(--muted) 70%,
    transparent
  );
  border: none;
}

/* ============================================
   Features Grid
   ============================================ */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

.feature-card {
  background-color: var(--surface);
  border: 1px solid var(--muted);
  border-radius: var(--radius);
  padding: var(--space-2xl);
  transition: border-color 0.25s ease, background-color 0.25s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-20), transparent);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.feature-card:hover {
  border-color: rgba(64, 64, 64, 0.6);
  background-color: rgba(26, 26, 26, 0.8);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background-color: var(--accent-06);
  border: 1px solid var(--accent-20);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  color: var(--accent);
  font-size: var(--fs-xl);
  line-height: 1;
}

.feature-title {
  font-size: var(--fs-lg);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-sm);
}

.feature-desc {
  font-size: var(--fs-sm);
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   Contact
   ============================================ */

.contact-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--fs-base);
  font-weight: 600;
  color: var(--accent);
  margin-top: var(--space-lg);
  padding: var(--space-sm) var(--space-lg);
  border: 1px solid var(--accent-20);
  border-radius: var(--radius-sm);
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  background-color: var(--accent-06);
  border-color: var(--accent);
  opacity: 1;
}

/* ============================================
   Footer
   ============================================ */

.footer {
  padding-block: var(--space-2xl);
  border-top: 1px solid rgba(64, 64, 64, 0.3);
}

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

.footer-copy {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
}

.footer-link {
  font-size: var(--fs-xs);
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
  opacity: 1;
}

/* ============================================
   Privacy page
   ============================================ */

.page-content {
  padding-top: var(--space-3xl);
  padding-bottom: var(--space-5xl);
  min-height: 60vh;
}

.page-content .section-heading {
  margin-bottom: var(--space-xl);
}

.page-content .section-body a {
  color: var(--accent);
}

.legal-content {
  background-color: #fff;
  color: #333;
  border-radius: var(--radius);
  padding: var(--space-2xl) var(--space-xl);
  margin-top: var(--space-lg);
  overflow-x: auto;
}

.legal-content table {
  max-width: 100%;
}

/* ============================================
   Responsive — 768px+
   ============================================ */

@media (min-width: 768px) {
  .hero {
    padding-top: var(--space-5xl);
    padding-bottom: var(--space-5xl);
  }

  .hero-heading {
    font-size: var(--fs-5xl);
  }

  .hero-subtitle {
    font-size: var(--fs-xl);
  }

  .section-heading {
    font-size: var(--fs-4xl);
  }

  .features-grid {
    grid-template-columns: 1fr 1fr;
  }

  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
  }
}
