/* ============================================================
   EdgeLock Landing Page — Styles
   Built on brand tokens from agents/brand-designer/output/
   ============================================================ */

/* ── Color Palette & Tokens ── */
:root {
  --color-navy:         #070F1A;
  --color-navy-mid:     #0B1929;
  --color-navy-muted:   #0D1E30;
  --color-blue:         #1A6CF5;
  --color-green:        #00C97A;
  --color-gold:         #F5A623;
  --color-light:        #F0F4F8;
  --color-text-primary: #DCE8F5;
  --color-text-muted:   #3A6090;
  --color-slate:        #8495AA;
  --color-red-muted:    #E05252;

  --font-display:  'Russo One', 'Impact', sans-serif;
  --font-heading:  'Space Grotesk', 'Inter', sans-serif;
  --font-body:     'Inter', system-ui, sans-serif;
  --font-mono:     'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  --text-xs:    0.75rem;
  --text-sm:    0.875rem;
  --text-base:  1rem;
  --text-lg:    1.125rem;
  --text-xl:    1.25rem;
  --text-2xl:   1.5rem;
  --text-3xl:   1.875rem;
  --text-4xl:   2.25rem;
  --text-display: 3.5rem;

  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.4), 0 4px 16px rgba(0,0,0,0.3);
  --shadow-glow-gold:  0 0 24px rgba(245,166,35,0.15);
  --shadow-glow-green: 0 0 24px rgba(0,201,122,0.15);
  --shadow-glow-blue:  0 0 24px rgba(26,108,245,0.15);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--color-navy);
  color: var(--color-text-primary);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a { color: var(--color-blue); text-decoration: none; }
a:hover { color: var(--color-light); }

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

/* ── Layout ── */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.section {
  padding: var(--space-24) 0;
}

.section-alt {
  background: var(--color-navy-mid);
}

.section-title {
  font-family: var(--font-heading);
  font-size: var(--text-4xl);
  font-weight: 700;
  color: var(--color-light);
  text-align: center;
  margin-bottom: var(--space-3);
}

.section-sub {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: var(--space-16);
}

/* ── Utility ── */
.text-gold   { color: var(--color-gold); }
.text-green  { color: var(--color-green); }
.text-blue   { color: var(--color-blue); }
.text-muted  { color: var(--color-text-muted); }

.data-value {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}
.data-positive { color: var(--color-green); }

.badge {
  display: inline-block;
  padding: 2px var(--space-2);
  background: rgba(245,166,35,0.1);
  color: var(--color-gold);
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 6px;
  border: 1px solid rgba(245,166,35,0.2);
}
.badge-green {
  background: rgba(0,201,122,0.1);
  color: var(--color-green);
  border-color: rgba(0,201,122,0.2);
}

.rule-gold {
  display: block;
  height: 1px;
  background: var(--color-gold);
  border: none;
  opacity: 0.2;
  margin: var(--space-8) 0;
}

.logo-img {
  height: 40px;
  width: auto;
}

.footer-logo-img {
  height: 32px;
  width: auto;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: var(--color-blue);
  color: var(--color-light);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover {
  background: #2478FF;
  box-shadow: var(--shadow-glow-blue);
  color: var(--color-light);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-6);
  background: transparent;
  color: var(--color-text-primary);
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  border: 1px solid var(--color-navy-muted);
  border-radius: var(--radius-md);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.btn-secondary:hover {
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.btn-sm { padding: 6px var(--space-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--space-4) var(--space-8); font-size: var(--text-base); }

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(7,15,26,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26,48,80,0.3);
}

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

.nav-logo { display: flex; align-items: center; }

.nav-links {
  display: flex;
  gap: var(--space-8);
}

.nav-links a {
  font-family: var(--font-heading);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--color-slate);
  transition: color 0.15s;
}
.nav-links a:hover {
  color: var(--color-light);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: calc(64px + var(--space-24));
  padding-bottom: var(--space-24);
  background:
    radial-gradient(ellipse 80% 60% at 20% 40%, rgba(26,108,245,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 80% 60%, rgba(0,201,122,0.08) 0%, transparent 60%),
    var(--color-navy);
  animation: mesh-shift 12s ease-in-out infinite alternate;
}

@keyframes mesh-shift {
  0%   { background-position: 20% 40%, 80% 60%; }
  100% { background-position: 30% 50%, 70% 50%; }
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26,108,245,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26,108,245,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

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

.hero-headline {
  font-family: var(--font-display);
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--color-light);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.headline-accent {
  background: linear-gradient(90deg, #1A6CF5 0%, #00C97A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: var(--text-lg);
  color: var(--color-slate);
  line-height: 1.7;
  max-width: 520px;
}

.hero-ctas {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.hero-proof {
  margin-top: var(--space-2);
  font-size: var(--text-sm);
}

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

.hero-mockup {
  width: 100%;
  max-width: 540px;
  border-radius: var(--radius-lg);
  transform: perspective(1000px) rotateY(-8deg) rotateX(2deg);
  box-shadow:
    0 32px 64px rgba(0,0,0,0.6),
    0 0 80px rgba(0,201,122,0.06);
  transition: transform 0.4s ease;
}
.hero-mockup:hover {
  transform: perspective(1000px) rotateY(-3deg) rotateX(1deg);
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

.step-card {
  background: var(--color-navy-mid);
  border: 1px solid #1A3050;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  text-align: center;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: rgba(26,108,245,0.1);
  border: 1px solid rgba(26,108,245,0.2);
  border-radius: 50%;
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--color-blue);
  margin-bottom: var(--space-4);
}

.step-label {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: var(--space-3);
}

.step-card p {
  color: var(--color-slate);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* Step stagger animation */
.step-card {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step-card.visible { opacity: 1; transform: translateY(0); }
.step-card:nth-child(2) { transition-delay: 0.1s; }
.step-card:nth-child(3) { transition-delay: 0.2s; }

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}

.feature-card {
  background: var(--color-navy);
  border: 1px solid #1A3050;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(26,108,245,0.1);
  border-radius: var(--radius-md);
  color: var(--color-blue);
  margin-bottom: var(--space-4);
}

.feature-icon.text-green { background: rgba(0,201,122,0.1); }
.feature-icon.text-gold { background: rgba(245,166,35,0.1); }

.feature-card h3 {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--color-light);
  margin-bottom: var(--space-2);
}

.feature-card p {
  color: var(--color-slate);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ── Social Proof ── */
.proof-container {
  max-width: 640px;
}

.proof-card {
  background: var(--color-navy-mid);
  border: 1px solid #1A3050;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
}

.proof-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: var(--space-6);
}

.proof-table th {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  padding-bottom: var(--space-3);
  border-bottom: 1px solid #1A3050;
}

.proof-table td {
  font-size: var(--text-lg);
  padding: var(--space-4) 0;
}

.roi-value {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  color: var(--color-gold);
  line-height: 1;
}

.proof-disclaimer {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  font-style: italic;
  line-height: 1.6;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  max-width: 800px;
  margin: 0 auto;
}

.pricing-card {
  position: relative;
  background: rgba(11, 25, 41, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid #1A3050;
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.pricing-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(26,108,245,0.6), transparent);
}
.pricing-card-featured::before {
  background: linear-gradient(90deg, transparent, rgba(245,166,35,0.6), transparent);
}

.pricing-card-featured {
  border-color: var(--color-green);
  box-shadow: var(--shadow-card), var(--shadow-glow-green);
  padding-top: calc(var(--space-8) + var(--space-4));
}

.pricing-badge {
  position: absolute;
  top: var(--space-4);
  left: 50%;
  transform: translateX(-50%);
}

.pricing-card-featured .pricing-header {
  padding-top: var(--space-8);
}

.pricing-header {
  margin-bottom: var(--space-6);
}

.pricing-name {
  font-family: var(--font-heading);
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-light);
  margin-bottom: var(--space-2);
}

.price-amount {
  font-family: var(--font-heading);
  font-size: var(--text-display);
  font-weight: 700;
  color: var(--color-light);
  line-height: 1;
}

.price-period {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  color: var(--color-text-muted);
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: var(--space-8);
}

.pricing-features li {
  padding: var(--space-2) 0;
  padding-left: var(--space-6);
  position: relative;
  font-size: var(--text-sm);
  color: var(--color-slate);
  line-height: 1.6;
}

.pricing-features li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 12px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300C97A' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") no-repeat center;
  background-size: 16px;
}

.pricing-cta {
  width: 100%;
  text-align: center;
}

/* ── FAQ ── */
.faq-container {
  max-width: 720px;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.faq-item {
  background: var(--color-navy-mid);
  border: 1px solid #1A3050;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  font-family: var(--font-heading);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--color-light);
  cursor: pointer;
  list-style: none;
  transition: background 0.15s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: var(--text-xl);
  color: var(--color-text-muted);
  flex-shrink: 0;
  margin-left: var(--space-4);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  content: '\2212';
}

.faq-item summary:hover {
  background: var(--color-navy-muted);
}

.faq-item[open] p {
  animation: faq-reveal 0.3s ease;
}
@keyframes faq-reveal {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.faq-item p {
  padding: 0 var(--space-6) var(--space-6);
  color: var(--color-slate);
  font-size: var(--text-sm);
  line-height: 1.7;
}

/* ── Footer ── */
.footer {
  padding: var(--space-16) 0 var(--space-8);
  background: var(--color-navy-mid);
  border-top: 1px solid #1A3050;
}

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

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

.footer-tagline {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
}

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

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

.footer-col h4 {
  font-family: var(--font-heading);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--space-2);
}

.footer-col a {
  font-size: var(--text-sm);
  color: var(--color-slate);
  transition: color 0.15s;
}
.footer-col a:hover {
  color: var(--color-light);
}

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

.footer-legal p {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

.footer-disclaimer {
  max-width: 640px;
  line-height: 1.6;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: var(--space-12);
    text-align: center;
  }

  .hero-headline {
    font-size: var(--text-4xl);
  }

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

  .hero-ctas {
    justify-content: center;
  }

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

  .steps-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }

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

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

  .nav-links {
    display: none;
  }

  .footer-links {
    flex-direction: column;
    gap: var(--space-8);
  }
}
