/* CipherPulse Landing — premium cyber theme */

:root {
  --deep-navy: #070B14;
  --panel-navy: #0F1629;
  --charcoal: #1A2238;
  --cyan: #00D4FF;
  --blue: #3B82F6;
  --emerald: #22C55E;
  --coral: #F87171;
  --amber: #F59E0B;
  --text-primary: #F8FAFC;
  --text-secondary: #94A3B8;
  --glass-border: rgba(0, 212, 255, 0.15);
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body: 'Outfit', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --header-h: 72px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-secondary);
  background: var(--deep-navy);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

img, svg {
  display: block;
}

.container {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

/* Background effects */
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(135deg, var(--deep-navy) 0%, var(--panel-navy) 55%, var(--deep-navy) 100%);
}

.grid-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 212, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 255, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black 20%, transparent 75%);
}

.glow {
  position: fixed;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -2;
}

.glow-1 {
  width: 480px;
  height: 480px;
  top: -120px;
  right: -80px;
  background: rgba(0, 212, 255, 0.12);
}

.glow-2 {
  width: 400px;
  height: 400px;
  bottom: 20%;
  left: -100px;
  background: rgba(59, 130, 246, 0.1);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--glass-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--cyan);
}

.logo-icon svg {
  width: 100%;
  height: 100%;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.site-nav a {
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

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

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.12);
  border: 1px solid rgba(0, 212, 255, 0.3);
  color: var(--cyan) !important;
}

.nav-cta:hover {
  background: rgba(0, 212, 255, 0.2);
  color: var(--text-primary) !important;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}

.btn svg {
  width: 20px;
  height: 20px;
}

.btn-primary {
  background: var(--cyan);
  color: var(--deep-navy);
  box-shadow: 0 0 32px rgba(0, 212, 255, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 48px rgba(0, 212, 255, 0.5);
  color: var(--deep-navy);
}

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

.btn-ghost:hover {
  border-color: rgba(0, 212, 255, 0.4);
  background: rgba(0, 212, 255, 0.06);
  color: var(--text-primary);
}

/* Hero */
.hero {
  padding: calc(var(--header-h) + 64px) 0 80px;
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  background: rgba(0, 212, 255, 0.06);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 12px;
}

.hero-line {
  display: block;
  font-size: clamp(2.4rem, 7vw, 4rem);
  color: var(--text-primary);
}

.hero-accent {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--emerald);
  margin-bottom: 20px;
}

.hero-desc {
  max-width: 640px;
  margin: 0 auto 32px;
  font-size: 1.1rem;
  color: var(--text-secondary);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  list-style: none;
}

.hero-stats li {
  flex: 1 1 140px;
  max-width: 200px;
  padding: 20px 16px;
  background: linear-gradient(145deg, rgba(26, 34, 56, 0.9), rgba(15, 22, 41, 0.95));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.stat-value {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.75rem;
  color: var(--cyan);
  margin-bottom: 4px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

/* Sections */
.section {
  padding: 80px 0;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}

.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  color: var(--text-primary);
  line-height: 1.2;
  margin-bottom: 16px;
  max-width: 720px;
}

.section-lead {
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 48px;
}

/* Features */
.features {
  background: linear-gradient(180deg, transparent, rgba(15, 22, 41, 0.5) 30%, transparent);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 28px;
  background: linear-gradient(145deg, rgba(26, 34, 56, 0.85), rgba(15, 22, 41, 0.9));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: rgba(0, 212, 255, 0.35);
  box-shadow: 0 8px 40px rgba(0, 212, 255, 0.08);
  transform: translateY(-4px);
}

.feature-num {
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(148, 163, 184, 0.5);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-icon.vault { background: rgba(34, 197, 94, 0.15); color: var(--emerald); }
.feature-icon.nexus { background: rgba(59, 130, 246, 0.15); color: var(--blue); }
.feature-icon.signal { background: rgba(0, 212, 255, 0.15); color: var(--cyan); }
.feature-icon.ascend { background: rgba(245, 158, 11, 0.15); color: var(--amber); }
.feature-icon.pulse { background: rgba(0, 212, 255, 0.12); color: var(--cyan); }
.feature-icon.widget { background: rgba(59, 130, 246, 0.12); color: var(--blue); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.6;
}

/* About */
.about-grid {
  display: grid;
  gap: 20px;
  margin-bottom: 40px;
}

.about-card {
  padding: 28px;
  background: rgba(26, 34, 56, 0.6);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.about-card.highlight {
  border-color: rgba(245, 158, 11, 0.3);
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(26, 34, 56, 0.8));
}

.about-card.highlight strong {
  color: var(--amber);
}

.about-emoji {
  font-size: 1.5rem;
  display: block;
  margin-bottom: 12px;
}

.about-card p {
  font-size: 1rem;
}

.about-tagline {
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text-primary);
  padding: 24px;
  border-top: 1px solid var(--glass-border);
}

/* Privacy */
.privacy {
  background: linear-gradient(180deg, transparent, rgba(15, 22, 41, 0.4));
}

.privacy-intro {
  font-size: 1.1rem;
  max-width: 680px;
  margin-bottom: 12px;
}

.privacy-date {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--amber);
  margin-bottom: 32px;
}

.policy-block {
  padding: 24px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.1);
}

.policy-block:last-child {
  border-bottom: none;
}

.policy-block h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.policy-block p {
  margin-bottom: 12px;
}

.policy-block p:last-child {
  margin-bottom: 0;
}

.policy-block ul {
  margin: 12px 0 0 20px;
}

.policy-block li {
  margin-bottom: 8px;
}

.policy-block strong {
  color: var(--text-primary);
}

/* Contact */
.contact-note {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--amber);
  margin-bottom: 32px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 24px;
  background: linear-gradient(145deg, rgba(26, 34, 56, 0.85), rgba(15, 22, 41, 0.9));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
}

.contact-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cyan);
  margin-bottom: 8px;
}

.contact-card a {
  font-size: 1rem;
  font-weight: 500;
  word-break: break-word;
}

.contact-card p {
  color: var(--text-primary);
  font-size: 0.95rem;
}

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--glass-border);
  background: rgba(7, 11, 20, 0.6);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
}

.footer-copy {
  font-size: 0.85rem;
}

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.9rem;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 16px;
    background: rgba(7, 11, 20, 0.97);
    border-bottom: 1px solid var(--glass-border);
    transform: translateY(-120%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s, opacity 0.3s;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    padding: 14px 8px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.08);
  }

  .site-nav a:last-child {
    border-bottom: none;
    margin-top: 8px;
    text-align: center;
  }

  .hero {
    padding-top: calc(var(--header-h) + 40px);
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .btn {
    width: 100%;
  }

  .section {
    padding: 60px 0;
  }

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

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .about-card.highlight {
    grid-column: 1 / -1;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .feature-card:hover,
  .btn-primary:hover {
    transform: none;
  }
}
