/* ============================================================
   AuthSigma – Marketing Landing Page Styles
   Dark enterprise cybersecurity theme
   ============================================================ */

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

:root {
  --bg-primary:   #0a0d12;
  --bg-surface:   #111620;
  --bg-card:      #151c2b;
  --bg-card-alt:  #1a2235;
  --border:       #1e2d45;
  --accent:       #2563eb;
  --accent-glow:  rgba(37, 99, 235, 0.18);
  --accent-hover: #3b82f6;
  --green:        #10b981;
  --red:          #ef4444;
  --orange:       #f59e0b;
  --yellow:       #eab308;
  --text-primary: #f0f4ff;
  --text-muted:   #8b9ab4;
  --text-faint:   #4a5a72;
  --font-sans:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', monospace;
  --radius:       8px;
  --radius-lg:    14px;
  --max-width:    1120px;
  --section-pad:  96px;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

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

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: 24px;
}

section {
  padding-block: var(--section-pad);
}

/* ---- Grid overlay (subtle background) ---- */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ---- Sticky Navigation ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 18, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding-block: 14px;
}

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

.nav__logo {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav__logo-icon {
  width: 28px;
  height: 28px;
  background: var(--accent);
  border-radius: 6px;
  display: grid;
  place-items: center;
}

.nav__logo-icon svg {
  width: 16px;
  height: 16px;
  fill: #fff;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav__links a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.nav__cta {
  flex-shrink: 0;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, transform 0.15s;
  border: none;
  line-height: 1;
  text-decoration: none;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 0 0 var(--accent-glow);
}

.btn--primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 24px var(--accent-glow);
  transform: translateY(-1px);
  color: #fff;
}

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

.btn--outline:hover {
  border-color: var(--accent);
  color: var(--accent-hover);
  background: var(--accent-glow);
}

.btn--lg {
  padding: 14px 28px;
  font-size: 1rem;
}

/* ---- Section labels ---- */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 14px;
}

/* ---- Headings ---- */
h1, h2, h3, h4 {
  line-height: 1.2;
  letter-spacing: -0.3px;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.15rem; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-block: 110px 96px;
  overflow: hidden;
}

/* Radial glow behind headline */
.hero::after {
  content: '';
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 400px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.13) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 20px;
  background: rgba(37, 99, 235, 0.12);
  border: 1px solid rgba(37, 99, 235, 0.3);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-hover);
  margin-bottom: 28px;
  letter-spacing: 0.5px;
}

.hero__eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  flex-shrink: 0;
}

.hero__headline {
  max-width: 820px;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.hero__headline em {
  font-style: normal;
  color: var(--accent-hover);
}

.hero__sub {
  max-width: 680px;
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 32px;
}

.hero__trust {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-faint);
  font-size: 0.82rem;
}

.hero__trust svg {
  width: 14px;
  height: 14px;
  fill: var(--green);
  flex-shrink: 0;
}

/* ============================================================
   PROBLEM
   ============================================================ */
.problem {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.problem__header {
  max-width: 760px;
  margin-bottom: 60px;
}

.problem__header h2 { margin-bottom: 18px; }

.problem__header p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.problem__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.risk-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.risk-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.risk-card__icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  background: var(--accent-glow);
  border: 1px solid rgba(37, 99, 235, 0.25);
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.risk-card__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--accent-hover);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.risk-card h3 {
  margin-bottom: 10px;
  font-size: 1rem;
  font-weight: 700;
}

.risk-card p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.65;
}

/* ============================================================
   OFFER
   ============================================================ */
.offer__header {
  max-width: 680px;
  margin-bottom: 52px;
}

.offer__header h2 { margin-bottom: 14px; }

.offer__header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.offer__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.offer__list {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
}

.offer__list ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.offer__list ul li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

.offer__list ul li::before {
  content: '';
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%2310b981' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 10px;
  margin-top: 2px;
}

.offer__sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.offer__badge {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.offer__badge h3 {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 8px;
}

.offer__badge p {
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.offer__badge span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--text-muted);
}

.offer__timeline {
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.offer__timeline p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 4px;
}

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

/* ============================================================
   DELIVERABLES
   ============================================================ */
.deliverables {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.deliverables__header {
  text-align: center;
  max-width: 600px;
  margin-inline: auto;
  margin-bottom: 56px;
}

.deliverables__header h2 { margin-bottom: 14px; }

.deliverables__header p {
  color: var(--text-muted);
}

.deliverables__cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.deliverable-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  position: relative;
  overflow: hidden;
}

.deliverable-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}

.deliverable-card__num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 16px;
  font-family: var(--font-mono);
}

.deliverable-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.deliverable-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ============================================================
   PRICING
   ============================================================ */
.pricing__inner {
  max-width: 780px;
  margin-inline: auto;
}

.pricing__card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 52px 48px;
  position: relative;
  overflow: hidden;
}

.pricing__card::after {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.pricing__header {
  margin-bottom: 36px;
}

.pricing__header h2 { margin-bottom: 14px; }

.pricing__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 24px 0 10px;
}

.pricing__price .amount {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}

.pricing__price .from {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing__price .period {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.pricing__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 36px;
}

.pricing__terms {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 36px;
}

.pricing__term {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 16px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.pricing__term svg {
  width: 16px;
  height: 16px;
  stroke: var(--accent-hover);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}

.pricing__guarantee {
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 36px;
}

.pricing__guarantee strong {
  color: var(--green);
}

.pricing__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ============================================================
   WHY
   ============================================================ */
.why {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.why__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.why__text h2 { margin-bottom: 20px; }

.why__text p {
  color: var(--text-muted);
  font-size: 1.02rem;
  line-height: 1.75;
  margin-bottom: 32px;
}

.why__pillars {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.why__pillar {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  color: var(--text-muted);
}

.why__pillar svg {
  width: 18px;
  height: 18px;
  stroke: var(--accent-hover);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}

.why__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.why__diagram {
  width: 100%;
  max-width: 420px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.why__diagram-title {
  color: var(--text-faint);
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  font-size: 0.7rem;
  text-transform: uppercase;
}

.why__diagram-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
}

.why__diagram-row:last-child { border-bottom: none; }

.why__diagram-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.dot-red    { background: var(--red);    box-shadow: 0 0 6px color-mix(in srgb, var(--red)    50%, transparent); }
.dot-orange { background: var(--orange); box-shadow: 0 0 6px color-mix(in srgb, var(--orange) 50%, transparent); }
.dot-yellow { background: var(--yellow); box-shadow: 0 0 6px color-mix(in srgb, var(--yellow) 40%, transparent); }
.dot-green  { background: var(--green);  box-shadow: 0 0 6px color-mix(in srgb, var(--green)  40%, transparent); }

.why__diagram-label { flex: 1; }

.why__diagram-badge {
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: 4px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-critical { background: rgba(239,68,68,0.15); color: #f87171; }
.badge-high     { background: rgba(245,158,11,0.15); color: #fbbf24; }
.badge-medium   { background: rgba(234,179,8,0.12);  color: #facc15; }
.badge-low      { background: rgba(16,185,129,0.12); color: #34d399; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(37,99,235,0.1) 0%, transparent 70%);
  pointer-events: none;
}

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

.cta-section h2 { margin-bottom: 18px; }

.cta-section p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 540px;
  margin-inline: auto;
  margin-bottom: 36px;
}

.cta-section .hero__trust {
  justify-content: center;
  margin-top: 20px;
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-surface);
  padding-block: 40px;
}

.footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer__brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.footer__brand-sub {
  font-size: 0.8rem;
  color: var(--text-faint);
}

.footer__contact {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.footer__contact a {
  color: var(--text-muted);
  font-size: 0.875rem;
  transition: color 0.2s;
}

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

.footer__copy {
  font-size: 0.75rem;
  color: var(--text-faint);
}

/* ============================================================
   MOBILE MENU TOGGLE
   ============================================================ */
.nav__toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  cursor: pointer;
  color: var(--text-primary);
}

.nav__toggle svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  :root { --section-pad: 72px; }

  .why__inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .why__visual { order: -1; }

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

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

@media (max-width: 700px) {
  :root { --section-pad: 56px; }

  .nav__links { display: none; }

  .nav__links.is-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-primary);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px 20px;
    gap: 16px;
  }

  .nav__toggle { display: block; }

  .nav__cta .btn { display: none; }

  .hero { padding-block: 72px 60px; }

  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { justify-content: center; }

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

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

  .pricing__card { padding: 32px 24px; }

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

  .footer__inner { flex-direction: column; align-items: flex-start; }
  .footer__contact { align-items: flex-start; }
}

@media (max-width: 480px) {
  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.5rem; }
}

/* ============================================================
   SCROLL FADE-IN (JS enhanced)
   ============================================================ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}
