@import 'tokens.css';

/* ─── Particles Canvas ─── */
#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ─── Layout wrapper — NO overflow hidden (breaks anchor scroll) ─── */
.l-wrapper {
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════════
   NAV
═══════════════════════════════════════ */
nav.l-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-8);
  background: rgba(2,6,9,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease);
  overflow: hidden;
}

/* Neon gradient bottom line */
nav.l-nav::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--accent) 30%,
    var(--accent-blue) 70%,
    transparent 100%);
  opacity: 0.4;
}

nav.l-nav.scrolled {
  background: rgba(2,6,9,0.97);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
}

.nav-logo .logo-mark {
  width: 30px; height: 30px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.68rem;
  color: #000;
  font-weight: 800;
  flex-shrink: 0;
  font-family: var(--font-mono);
  box-shadow: 0 0 14px rgba(0,245,212,0.5);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.nav-links {
  display: flex;
  gap: var(--space-6);
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transition: color var(--dur-fast);
  font-family: var(--font-mono);
  position: relative;
}
.nav-links a::before { content: '> '; color: var(--accent); opacity: 0; transition: opacity var(--dur-fast); }
.nav-links a:hover { color: var(--accent); text-decoration: none; }
.nav-links a:hover::before { opacity: 1; }

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

/* ═══════════════════════════════════════
   BUTTONS (landing-specific)
═══════════════════════════════════════ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 9px 20px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  border: 1px solid transparent;
  text-decoration: none !important;
  font-family: var(--font-mono);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border-strong);
}
.btn-ghost:hover { color: var(--accent); border-color: var(--border-accent); background: var(--accent-dim); }

.btn-primary {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(0,245,212,0.3);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-primary:hover {
  background: #1afce3;
  border-color: #1afce3;
  box-shadow: 0 0 28px rgba(0,245,212,0.55), 0 0 70px rgba(0,245,212,0.18);
}

.btn-lg  { padding: 13px 30px; font-size: 0.76rem; }

.btn-outline {
  background: transparent;
  color: var(--accent);
  border-color: var(--border-accent);
  clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 8px, 100% 100%, 8px 100%, 0 calc(100% - 8px));
}
.btn-outline:hover {
  background: var(--accent-dim);
  box-shadow: 0 0 16px rgba(0,245,212,0.2);
}

/* ═══════════════════════════════════════
   HERO
═══════════════════════════════════════ */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 120px var(--space-8) var(--space-20);
  background: var(--grad-hero);
  position: relative;
  overflow: hidden;
}

/* Horizontal scan line that sweeps down the hero */
.hero::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-blue), transparent);
  opacity: 0;
  animation: scan-line 7s linear infinite;
  pointer-events: none;
}
@keyframes scan-line {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 0.35; }
  95%  { opacity: 0.35; }
  100% { top: 100%; opacity: 0; }
}

/* Left & right accent vertical lines */
.hero::after {
  content: '';
  position: absolute;
  top: 15%; bottom: 15%;
  left: 0;
  width: 2px;
  background: linear-gradient(180deg, transparent, var(--accent), transparent);
  opacity: 0.15;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 5px 16px;
  background: rgba(0,245,212,0.07);
  border: 1px solid var(--border-accent);
  font-size: 0.65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: var(--space-8);
  font-family: var(--font-mono);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); box-shadow: 0 0 8px var(--accent); }
  50%      { opacity: 0.5; transform: scale(0.75); box-shadow: 0 0 3px var(--accent); }
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin-bottom: var(--space-4);
}

.hero h1 .brand {
  background: var(--grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 24px rgba(0,245,212,0.3));
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.15rem);
  color: var(--accent-cyan);
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: var(--space-8);
  font-family: var(--font-mono);
  text-transform: uppercase;
  animation: text-flicker 8s ease-in-out infinite;
}

@keyframes text-flicker {
  0%,78%,100% { opacity: 1; }
  80% { opacity: 0.75; }
  82% { opacity: 1; }
  84% { opacity: 0.8; }
  86% { opacity: 1; }
}

.hero-body {
  max-width: 620px;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: var(--space-10);
}

.hero-actions {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
  justify-content: center;
}

.hero-label {
  margin-top: var(--space-6);
  font-size: 0.68rem;
  color: var(--text-subtle);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: var(--space-8);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--text-muted);
  font-size: 0.65rem;
  font-family: var(--font-mono);
  letter-spacing: 0.08em;
  animation: float 3s ease-in-out infinite;
}
.scroll-indicator svg { width: 18px; height: 18px; color: var(--accent); }

@keyframes float {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(8px); }
}

/* ═══════════════════════════════════════
   SECTIONS
═══════════════════════════════════════ */
section {
  padding: var(--space-20) var(--space-8);
  max-width: 1100px;
  margin: 0 auto;
}

.section-eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-4);
  font-family: var(--font-mono);
}
.section-eyebrow::before {
  content: '> ';
  opacity: 0.6;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.7rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.12;
  margin-bottom: var(--space-4);
}

.section-sub {
  color: var(--text-muted);
  max-width: 560px;
  font-size: 1rem;
  line-height: 1.75;
}

/* ═══════════════════════════════════════
   THE PROBLEM
═══════════════════════════════════════ */
.problem-section {
  background: linear-gradient(180deg, var(--bg-base) 0%, rgba(5,13,21,0.95) 50%, var(--bg-base) 100%);
  position: relative;
}

.problem-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 500px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), var(--accent-blue), transparent);
  opacity: 0.5;
}

.problem-card {
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat top left / 2px 16px,
    linear-gradient(var(--accent), var(--accent)) no-repeat top left / 16px 2px,
    linear-gradient(var(--border-strong), var(--border-strong)) no-repeat bottom right / 2px 16px,
    linear-gradient(var(--border-strong), var(--border-strong)) no-repeat bottom right / 16px 2px,
    rgba(5,13,21,0.8);
  border: 1px solid var(--border);
  padding: var(--space-10) var(--space-8);
  backdrop-filter: blur(20px);
  position: relative;
}

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  margin-top: var(--space-8);
}

.problem-item { display: flex; gap: var(--space-4); }

.problem-icon {
  width: 42px; height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.1rem;
  background: rgba(255,31,75,0.08);
  border: 1px solid rgba(255,31,75,0.2);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.problem-item h4 {
  font-size: 0.9rem;
  font-weight: 700;
  margin-bottom: 5px;
  color: var(--text);
}
.problem-item p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   FEATURES GRID
═══════════════════════════════════════ */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-5);
  margin-top: var(--space-12);
}

.feature-card {
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat top left / 2px 12px,
    linear-gradient(var(--accent), var(--accent)) no-repeat top left / 12px 2px,
    var(--bg-glass);
  border: 1px solid var(--border);
  padding: var(--space-6);
  transition: all var(--dur-base) var(--ease);
  cursor: default;
}
.feature-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: var(--shadow-accent);
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat top left / 2px 16px,
    linear-gradient(var(--accent), var(--accent)) no-repeat top left / 16px 2px,
    rgba(0,245,212,0.04);
}

.feature-icon {
  width: 44px; height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 1.25rem;
  background: rgba(0,245,212,0.07);
  border: 1px solid var(--border-accent);
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
}

.feature-card h3 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--space-2);
  color: var(--text);
}
.feature-card p {
  font-size: 0.83rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   HOW IT WORKS
═══════════════════════════════════════ */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-top: var(--space-10);
}

.step {
  display: flex;
  gap: var(--space-6);
  align-items: flex-start;
  padding: var(--space-6);
  background:
    linear-gradient(var(--accent), var(--accent)) no-repeat top left / 2px 12px,
    linear-gradient(var(--accent), var(--accent)) no-repeat top left / 12px 2px,
    var(--bg-glass);
  border: 1px solid var(--border);
  transition: all var(--dur-base) var(--ease);
}
.step:hover {
  border-color: var(--border-accent);
  box-shadow: 0 0 20px rgba(0,245,212,0.07);
}

.step-num {
  width: 44px; height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-accent);
  font-size: 0.8rem;
  font-weight: 800;
  color: #000;
  font-family: var(--font-mono);
  box-shadow: 0 0 18px rgba(0,245,212,0.35);
  clip-path: polygon(0 0, calc(100% - 6px) 0, 100% 6px, 100% 100%, 6px 100%, 0 calc(100% - 6px));
}

.step-body h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.step-body p {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ═══════════════════════════════════════
   SPLIT SECTION (Not / Why)
═══════════════════════════════════════ */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-8);
  align-items: start;
}

.not-list {
  list-style: none;
  margin-top: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}
.not-list li {
  display: flex;
  gap: var(--space-3);
  align-items: center;
  padding: var(--space-4) var(--space-5);
  background: rgba(255,31,75,0.05);
  border: 1px solid rgba(255,31,75,0.14);
  font-size: 0.88rem;
  font-weight: 500;
  font-family: var(--font-mono);
}
.not-list li::before {
  content: '✕';
  color: var(--danger);
  font-weight: 700;
  font-size: 0.8rem;
}

.compliance-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  background: rgba(0,245,212,0.06);
  border: 1px solid var(--border-accent);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--accent);
  margin-right: var(--space-2);
  margin-top: var(--space-2);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
}

/* ═══════════════════════════════════════
   CTA BAND
═══════════════════════════════════════ */
.cta-band {
  background: linear-gradient(135deg,
    rgba(0,245,212,0.07) 0%,
    rgba(0,136,255,0.07) 100%);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-20) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 50%,
    rgba(0,245,212,0.07) 0%,
    transparent 70%);
}

/* Corner brackets on CTA band */
.cta-band::after {
  content: '';
  position: absolute;
  top: 20px; left: 20px;
  width: 24px; height: 24px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  opacity: 0.4;
}

.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-4);
}
.cta-band p {
  color: var(--text-muted);
  font-size: 1rem;
  max-width: 520px;
  margin: 0 auto var(--space-8);
  line-height: 1.75;
}

.cta-form {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  flex-wrap: wrap;
  max-width: 480px;
  margin: 0 auto;
}

.cta-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 11px 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.85rem;
  font-family: var(--font-mono);
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
  outline: none;
}
.cta-form input[type="email"]:focus {
  border-color: var(--border-accent);
  box-shadow: 0 0 12px rgba(0,245,212,0.12);
}
.cta-form input[type="email"]::placeholder { color: var(--text-muted); }

/* ═══════════════════════════════════════
   FOOTER
═══════════════════════════════════════ */
footer {
  padding: var(--space-12) var(--space-8);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  max-width: 1100px;
  margin: 0 auto;
}

.footer-brand { display: flex; flex-direction: column; gap: var(--space-2); }

.footer-brand .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px; height: 28px;
  background: var(--accent);
  font-size: 0.7rem;
  font-weight: 800;
  color: #000;
  font-family: var(--font-mono);
  clip-path: polygon(0 0, calc(100% - 5px) 0, 100% 5px, 100% 100%, 5px 100%, 0 calc(100% - 5px));
}

.footer-note {
  font-size: 0.76rem;
  color: var(--text-muted);
  max-width: 300px;
  line-height: 1.65;
  font-family: var(--font-mono);
}

.footer-links { display: flex; gap: var(--space-6); list-style: none; }
.footer-links a {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  transition: color var(--dur-fast);
}
.footer-links a:hover { color: var(--accent); text-decoration: none; }

.footer-copy {
  font-size: 0.72rem;
  color: var(--text-subtle);
  font-family: var(--font-mono);
}

/* ─── Divider ─── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
  max-width: 1100px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════
   REVEAL ANIMATION
═══════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ═══════════════════════════════════════
   TOAST (landing page)
═══════════════════════════════════════ */
#toast-container {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.toast {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px 16px;
  background: var(--bg-surface-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  box-shadow: 0 0 20px rgba(0,0,0,0.6);
  min-width: 280px;
  animation: slide-in 0.18s var(--ease);
}
.toast.success { border-left-color: var(--success); }
.toast.error   { border-left-color: var(--danger); }
.toast.info    { border-left-color: var(--accent-blue); }

@keyframes slide-in {
  from { transform: translateX(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* ═══════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════ */
@media (max-width: 768px) {
  nav.l-nav { padding: var(--space-4); }
  .nav-links { display: none; }
  .hero { padding: 100px var(--space-5) var(--space-12); }
  section { padding: var(--space-12) var(--space-5); }
  .problem-grid { grid-template-columns: 1fr; }
  .split-section { grid-template-columns: 1fr; }
  .cta-band { padding: var(--space-12) var(--space-5); }
  footer { flex-direction: column; align-items: flex-start; }
  .footer-links { flex-wrap: wrap; gap: var(--space-4); }
}
