/* AuthPoint Retail — dark enterprise theme */
:root {
  --bg: #070b12;
  --bg-alt: #0b111c;
  --surface: #0e1624;
  --surface-2: #121c2e;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.28);
  --text: #e8eef6;
  --muted: #93a1b5;
  --faint: #64748b;
  --accent: #38bdf8;
  --accent-2: #818cf8;
  --accent-dim: rgba(56, 189, 248, 0.12);
  --green: #34d399;
  --radius: 14px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.container { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

a { color: inherit; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(7, 11, 18, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1140px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.05rem; }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06121f;
}
.brand-sub { color: var(--accent); font-weight: 600; }
.brand-text { display: inline-flex; align-items: baseline; gap: 6px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { text-decoration: none; color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 8px; width: 40px; height: 40px; cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); border-radius: 2px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font); font-weight: 600; font-size: 1rem;
  padding: 13px 28px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #06121f;
  box-shadow: 0 4px 24px rgba(56, 189, 248, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(56, 189, 248, 0.45); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 9px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 40px; font-size: 1.1rem; }
.btn-block { width: 100%; margin-top: 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 170px 0 90px; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 340px at 20% 10%, rgba(56, 189, 248, 0.14), transparent 60%),
    radial-gradient(700px 380px at 85% 25%, rgba(129, 140, 248, 0.12), transparent 60%),
    radial-gradient(500px 300px at 50% 100%, rgba(52, 211, 153, 0.06), transparent 60%);
}
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(148,163,184,0.05) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(148,163,184,0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black 30%, transparent 75%);
}
.hero .container { position: relative; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 0.85rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--accent); background: var(--accent-dim);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 8px 16px; border-radius: 999px; margin-bottom: 26px;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(52,211,153,0.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px; }
.gradient-text { background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { font-size: 1.18rem; color: var(--muted); max-width: 720px; margin-bottom: 34px; }
.hero-sub strong { color: var(--text); }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 60px; }

.stat-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  border-top: 1px solid var(--border); padding-top: 34px;
}
.stat { display: flex; flex-direction: column; gap: 4px; }
.stat-num { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.01em; }
.stat-label { color: var(--faint); font-size: 0.88rem; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-kicker { color: var(--accent); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 14px; }
.section h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; margin-bottom: 16px; }
.section-lede { color: var(--muted); font-size: 1.1rem; max-width: 700px; margin-bottom: 48px; }
.table-title { font-size: 1.3rem; font-weight: 700; margin: 64px 0 24px; }

/* ---------- Cards ---------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: 0 12px 40px rgba(0,0,0,0.4); }
.card-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 50px; height: 50px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-dim); color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.25);
}
.card h3 { font-size: 1.12rem; font-weight: 700; margin-bottom: 10px; }
.card p { color: var(--muted); font-size: 0.96rem; }
.card p em { color: var(--text); }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.check-list li { position: relative; padding-left: 28px; color: var(--muted); font-size: 0.95rem; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  color: var(--green); font-weight: 800;
}

/* ---------- Cost panel ---------- */
.cost-panel {
  margin-top: 56px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 44px;
}
.cost-main { min-width: 0; }
.cost-big { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; margin-bottom: 16px; }
.cost-copy { color: var(--muted); }
.cost-copy strong { color: var(--text); }
.cost-side { border-left: 1px solid var(--border); padding-left: 40px; display: flex; flex-direction: column; justify-content: center; }
.cost-pct { font-size: 3rem; font-weight: 800; background: linear-gradient(120deg, var(--accent), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cost-pct-label { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.latency { display: flex; flex-direction: column; }
.latency-row { display: grid; grid-template-columns: 74px 1fr 44px; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--muted); margin-bottom: 10px; }
.latency-bar { height: 10px; background: rgba(148,163,184,0.15); border-radius: 6px; overflow: hidden; }
.latency-bar .fill { height: 100%; border-radius: 6px; }
.fill.legacy { background: #f87171; }
.fill.authpoint { background: linear-gradient(90deg, var(--accent), var(--green)); }
.latency-val { text-align: right; font-weight: 700; color: var(--text); }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table.compare { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 640px; }
.compare th, .compare td { padding: 15px 20px; text-align: left; border-bottom: 1px solid var(--border); }
.compare thead th { background: var(--surface-2); font-weight: 700; font-size: 0.85rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: none; }
.compare tbody tr:hover td { background: rgba(56,189,248,0.04); }
.compare td:first-child { font-weight: 600; color: var(--text); white-space: nowrap; }
.compare td.hl { color: var(--accent); font-weight: 600; }
.compare th.hl { color: var(--accent); }

/* ---------- ROI ---------- */
.roi-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 8px; }
.roi-stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 32px 28px; }
.roi-num { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.02em; }
.roi-label { font-weight: 700; margin: 8px 0 6px; }
.roi-sub { color: var(--faint); font-size: 0.9rem; }

.steps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.step {
  display: flex; gap: 18px; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius); padding: 26px;
}
.step-num {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1.1rem; color: #06121f;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.step h4 { font-size: 1.05rem; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 0.95rem; }
.step p strong { color: var(--text); }

.econ-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.econ {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 20px 16px; display: flex; flex-direction: column; gap: 6px;
}
.econ.highlight { border-color: rgba(52, 211, 153, 0.4); background: rgba(52, 211, 153, 0.06); }
.econ-label { color: var(--faint); font-size: 0.82rem; }
.econ-val { font-size: 1.35rem; font-weight: 800; }
.econ.highlight .econ-val { color: var(--green); }

/* ---------- Architecture diagram ---------- */
.arch-diagram { max-width: 760px; margin: 0 auto 56px; }
.arch-node {
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--radius);
  padding: 24px; text-align: center; position: relative;
}
.arch-node.cloud { border-color: rgba(56,189,248,0.4); }
.arch-node.edge { border-color: rgba(129,140,248,0.4); }
.arch-node.terminal { border-color: rgba(52,211,153,0.35); }
.arch-node-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 46px; height: 46px; border-radius: 12px; margin-bottom: 12px;
  background: var(--accent-dim); color: var(--accent);
}
.arch-node-title { font-weight: 800; letter-spacing: 0.08em; font-size: 0.95rem; margin-bottom: 6px; }
.arch-node-sub { color: var(--muted); font-size: 0.88rem; }
.arch-link { text-align: center; padding: 12px 0; color: var(--faint); font-size: 0.82rem; position: relative; }
.arch-link::before, .arch-link::after {
  content: ""; display: block; width: 2px; height: 12px; margin: 0 auto;
  background: linear-gradient(var(--accent), transparent);
}
.arch-link::after { background: linear-gradient(transparent, var(--accent)); margin-top: 6px; }
.arch-link::before { margin-bottom: 6px; }
.arch-link span { display: inline-block; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 5px 14px; }

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.price-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 36px 30px; position: relative; display: flex; flex-direction: column;
}
.price-card.featured { border-color: rgba(56,189,248,0.5); box-shadow: 0 0 60px rgba(56,189,248,0.12); transform: scale(1.03); }
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #06121f;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 16px; border-radius: 999px; white-space: nowrap;
}
.price-name { font-weight: 700; font-size: 1.05rem; margin-bottom: 10px; }
.price-amount { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 22px; }
.price-per { display: block; font-size: 0.9rem; font-weight: 500; color: var(--faint); margin-top: 2px; }
.price-card .check-list { margin-bottom: 8px; }
.price-card .btn-block { margin-top: auto; }

/* ---------- CTA section ---------- */
.cta-section { text-align: center; background: radial-gradient(700px 400px at 50% 0%, rgba(56,189,248,0.08), transparent 70%); }
.cta-section h2 { font-size: clamp(2rem, 4.4vw, 3rem); }
.cta-section .section-lede { margin-left: auto; margin-right: auto; }
.cta-section .table-title { margin-top: 56px; }
.cta-section .steps { text-align: left; margin-bottom: 48px; }
.cta-center { margin-top: 8px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--border); padding: 48px 0; background: var(--bg-alt); }
.footer-inner { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.footer-note { color: var(--muted); font-size: 0.92rem; max-width: 560px; }
.footer-copy { color: var(--faint); font-size: 0.85rem; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 6, 12, 0.75); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity 0.25s, visibility 0.25s;
}
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--surface-2); border: 1px solid var(--border-strong); border-radius: 18px;
  width: 100%; max-width: 480px; padding: 36px 32px; position: relative;
  transform: translateY(16px); transition: transform 0.25s;
  max-height: 90vh; overflow-y: auto;
}
.modal-overlay.open .modal { transform: translateY(0); }
.modal-close {
  position: absolute; top: 14px; right: 18px; background: none; border: none;
  color: var(--muted); font-size: 1.8rem; cursor: pointer; line-height: 1;
}
.modal-close:hover { color: var(--text); }
.modal h3 { font-size: 1.4rem; margin-bottom: 6px; }
.modal-sub { color: var(--muted); font-size: 0.95rem; margin-bottom: 22px; }
.modal label { display: block; font-size: 0.88rem; font-weight: 600; margin-bottom: 14px; color: var(--text); }
.modal input, .modal textarea {
  display: block; width: 100%; margin-top: 6px;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 9px;
  color: var(--text); font-family: var(--font); font-size: 0.95rem; padding: 11px 14px;
}
.modal input:focus, .modal textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(56,189,248,0.15); }
.modal textarea { resize: vertical; }
.form-status { font-size: 0.9rem; min-height: 1.4em; margin-bottom: 6px; }
.form-status.error { color: #f87171; }
.form-status.success { color: var(--green); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .card-grid { grid-template-columns: 1fr 1fr; }
  .cost-panel { grid-template-columns: 1fr; padding: 32px; }
  .cost-side { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 28px; }
  .steps { grid-template-columns: 1fr; }
  .econ-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .price-card.featured { transform: none; }
  .roi-stats { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; background: var(--bg-alt);
    border-bottom: 1px solid var(--border); padding: 8px 24px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-top: 1px solid var(--border); }
  .nav-toggle { display: inline-flex; }
  .nav-cta .btn { display: none; }
  .stat-row { grid-template-columns: 1fr 1fr; gap: 24px 12px; }
  .card-grid { grid-template-columns: 1fr; }
  .hero { padding: 140px 0 70px; }
  .section { padding: 72px 0; }
  .econ-grid { grid-template-columns: 1fr 1fr; }
  .hero-ctas .btn { flex: 1; }
}
