/* ============================================================
   AI Xperts Studio — main stylesheet
   Dark navy + electric blue, matched to the brand logo.
   ============================================================ */

:root {
  --navy-950: #030814;
  --navy-900: #050d1f;
  --navy-800: #0a162e;
  --navy-700: #122443;
  --blue-500: #0ea5e9;
  --blue-400: #38bdf8;
  --blue-600: #2563eb;
  --cyan-200: #bae6fd;
  --text-main: #e8eef7;
  --text-muted: #94a3b8;
  --white: #ffffff;
  --card-bg: rgba(14, 32, 62, 0.6);
  --card-border: rgba(56, 189, 248, 0.14);
  --radius: 16px;
  --shadow-glow: 0 0 40px rgba(14, 165, 233, 0.18);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
  font-family: var(--font);
  background: var(--navy-950);
  color: var(--text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }
.container-narrow { width: min(820px, 92%); }

h1, h2, h3 { line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }

.accent {
  background: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.accent-strike {
  background: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-400);
  margin-bottom: 0.9rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 1.7rem;
  border-radius: 12px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: linear-gradient(120deg, var(--blue-500), var(--blue-600));
  color: var(--white);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(14, 165, 233, 0.5); }

.btn-outline {
  border-color: rgba(56, 189, 248, 0.5);
  color: var(--blue-400);
  background: transparent;
}
.btn-outline:hover { background: rgba(56, 189, 248, 0.08); }

.btn-secondary {
  background: var(--navy-700);
  color: var(--text-main);
  border-color: var(--card-border);
}
.btn-secondary:hover { background: var(--navy-800); border-color: rgba(56,189,248,.4); }

.btn-ghost { color: var(--text-muted); }
.btn-ghost:hover { color: var(--blue-400); }

.btn-lg { padding: 1.05rem 2.1rem; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(3, 8, 20, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 0;
}

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

.main-nav { display: flex; gap: 1.9rem; }
.main-nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-muted);
  transition: color 0.15s;
}
.main-nav a:hover { color: var(--blue-400); }

.header-cta { display: flex; align-items: center; gap: 1rem; }

.test-call-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1.1rem;
  border-radius: 12px;
  border: 1px solid rgba(56, 189, 248, 0.35);
  background: rgba(14, 165, 233, 0.08);
  transition: background 0.15s, border-color 0.15s;
}
.test-call-btn:hover { background: rgba(14, 165, 233, 0.16); border-color: var(--blue-400); }

.portal-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
  padding: 0.6rem 1.2rem;
  border-radius: 12px;
  background: linear-gradient(120deg, var(--blue-500), var(--blue-600));
  transition: transform 0.15s;
  white-space: nowrap;
  z-index: 0;
}
/* Blurred glowing halo behind the button */
.portal-btn::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 16px;
  background: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  filter: blur(12px);
  opacity: 0.55;
  z-index: -1;
  animation: portalGlow 2.4s ease-in-out infinite;
}
@keyframes portalGlow {
  0%, 100% { opacity: 0.4; filter: blur(11px); }
  50% { opacity: 0.85; filter: blur(16px); }
}
.portal-btn:hover { transform: translateY(-2px); }
.portal-btn:hover::before { opacity: 0.95; }
.portal-icon { font-size: 0.85rem; }

@media (prefers-reduced-motion: reduce) {
  .portal-btn::before { animation: none; }
}

.test-call-label { display: flex; flex-direction: column; line-height: 1.25; }
.test-call-label small { font-size: 0.7rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.test-call-label strong { font-size: 0.98rem; color: var(--blue-400); }

.pulse-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 rgba(34, 197, 94, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2.5px; background: var(--text-main); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: 5.5rem 0 5rem;
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(14, 165, 233, 0.18), transparent 65%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 4rem;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue-400);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.4rem;
}

.hero h1 { font-size: clamp(2.4rem, 5vw, 3.7rem); margin-bottom: 1.2rem; }

.hero-sub { font-size: 1.15rem; color: var(--text-muted); margin-bottom: 1.6rem; max-width: 540px; }
.hero-sub strong { color: var(--text-main); }

.hero-checks { list-style: none; margin-bottom: 2rem; display: grid; gap: 0.55rem; }
.hero-checks li { display: flex; align-items: center; gap: 0.6rem; font-weight: 500; }
.hero-checks li::before {
  content: '✓';
  flex-shrink: 0;
  width: 22px; height: 22px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(34, 197, 94, 0.15);
  color: #4ade80;
  font-size: 0.8rem;
  font-weight: 800;
}

.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-actions.center { justify-content: center; }
.hero-fineprint { margin-top: 1.1rem; font-size: 0.85rem; color: var(--text-muted); }

/* Hero live-stats card: 2x2 grid of bigger tiles */
.hero-stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 1.3rem; }
.hero-stats .mock-stat { padding: 1.1rem 0.6rem; }
.hero-stats .mock-stat strong { font-size: 1.6rem; }
.hero-stats .mock-stat span { font-size: 0.75rem; }
/* "24/7 Always on" spans the full row underneath */
.hero-stats .mock-stat:last-child {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 0.8rem;
}
.hero-stats .mock-stat:last-child strong { font-size: 1.35rem; }
.hero-stats .mock-stat:last-child span { font-size: 0.85rem; }

/* ---------- Test-call form card ---------- */
.hero-form-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow-glow);
  backdrop-filter: blur(8px);
}

.form-card-head h3 { font-size: 1.4rem; margin-bottom: 0.4rem; }
.form-card-head p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.4rem; }

/* ---------- Self-serve "test it yourself" card ---------- */
.test-live-card { text-align: center; }
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #4ade80;
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid rgba(34, 197, 94, 0.3);
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}
.test-number-big {
  display: block;
  padding: 1.3rem 1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.08);
  border: 1px dashed rgba(56, 189, 248, 0.4);
  transition: background 0.15s, border-color 0.15s;
}
.test-number-big:hover { background: rgba(14, 165, 233, 0.14); border-color: var(--blue-400); }
.test-number-label {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.test-number {
  display: block;
  font-size: 1.9rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; }
.form-group { margin-bottom: 0.9rem; }
.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.form-group input {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--navy-900);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.form-disclaimer { text-align: center; font-size: 0.8rem; color: var(--text-muted); margin-top: 0.8rem; }

.form-alert {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  font-size: 0.92rem;
  margin-bottom: 1.1rem;
}
.form-alert.success { background: rgba(34, 197, 94, 0.12); border: 1px solid rgba(34, 197, 94, 0.4); color: #86efac; }
.form-alert.error { background: rgba(239, 68, 68, 0.12); border: 1px solid rgba(239, 68, 68, 0.4); color: #fca5a5; }

/* ---------- Trust strip ---------- */
.trust-strip {
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  background: var(--navy-900);
}
.trust-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 1.6rem 0;
  text-align: center;
}
.trust-item strong {
  display: block;
  font-size: 1.7rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trust-item span { font-size: 0.88rem; color: var(--text-muted); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.alt-bg { background: var(--navy-900); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 3.2rem; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.7rem); margin-bottom: 0.9rem; }
.section-head p { color: var(--text-muted); font-size: 1.08rem; }

.section-cta { text-align: center; margin-top: 2.8rem; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.compliance-grid { grid-template-columns: repeat(4, 1fr); }

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-glow);
}
/* Clickable feature card (e.g. Client Portal) */
a.feature-card { display: flex; flex-direction: column; }
a.feature-card .card-link { margin-top: auto; padding-top: 1rem; }
.feature-icon {
  font-size: 1.6rem;
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  margin-bottom: 1.1rem;
}
.feature-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.feature-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- How it works ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}
.step-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem 1.9rem;
}
.step-num {
  position: absolute;
  top: -18px;
  left: 1.9rem;
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  font-weight: 800;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-500), var(--blue-600));
  box-shadow: 0 6px 16px rgba(14, 165, 233, 0.4);
}
.step-card h3 { font-size: 1.15rem; margin-bottom: 0.5rem; }
.step-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ---------- Industries ---------- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.4rem;
}
.industry-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.9rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.industry-card:hover {
  transform: translateY(-4px);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: var(--shadow-glow);
}
.industry-icon { font-size: 2.2rem; margin-bottom: 1rem; }
.industry-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.industry-card p { color: var(--text-muted); font-size: 0.92rem; flex-grow: 1; }
.card-link { margin-top: 1.1rem; font-weight: 600; font-size: 0.9rem; color: var(--blue-400); }

.industries-more {
  text-align: center;
  margin-top: 2.4rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* ---------- Comparison table ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
.compare-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 680px;
}
.compare-table th, .compare-table td {
  padding: 1.05rem 1.3rem;
  text-align: left;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
  font-size: 0.95rem;
}
.compare-table thead th {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: var(--navy-800);
}
.compare-table td:first-child { color: var(--text-muted); font-weight: 600; }
.compare-table .highlight-col {
  background: rgba(14, 165, 233, 0.09);
  color: var(--text-main);
}
.compare-table thead .highlight-col { color: var(--blue-400); }
.compare-table tbody tr:last-child td { border-bottom: none; }

/* ---------- Testimonials ---------- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.9rem;
}
.stars { color: #facc15; letter-spacing: 3px; margin-bottom: 0.9rem; }
.testimonial-card p { font-size: 1.02rem; margin-bottom: 1.2rem; }
.testimonial-card footer { display: flex; flex-direction: column; }
.testimonial-card footer strong { font-size: 0.98rem; }
.testimonial-card footer span { font-size: 0.85rem; color: var(--text-muted); }

/* ---------- Client Portal ---------- */
.portal-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
}
.portal-copy h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); margin-bottom: 1rem; }
.portal-copy > p { color: var(--text-muted); margin-bottom: 1.4rem; }
.portal-list { list-style: none; display: grid; gap: 0.7rem; margin-bottom: 1.8rem; }
.portal-list li { display: flex; gap: 0.6rem; color: var(--text-muted); font-size: 0.97rem; }
.portal-list li::before { content: '✓'; color: #4ade80; font-weight: 800; flex-shrink: 0; }
.portal-list li strong { color: var(--text-main); }
.portal-note { font-size: 0.88rem; color: var(--text-muted); margin-top: 1.1rem; }

/* Dashboard mockup */
.portal-mock {
  background: var(--navy-800);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4), var(--shadow-glow);
}
.portal-mock-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: var(--navy-900);
  border-bottom: 1px solid var(--card-border);
}
.portal-mock-head .dot { width: 11px; height: 11px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.portal-mock-title { margin-left: 0.6rem; font-size: 0.8rem; color: var(--text-muted); }
.portal-mock-body { padding: 1.4rem; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; margin-bottom: 1.3rem; }
.mock-stat {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 0.9rem 0.6rem;
  text-align: center;
}
.mock-stat strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  background: linear-gradient(120deg, var(--blue-400), var(--blue-600));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.mock-stat span { font-size: 0.72rem; color: var(--text-muted); }
.mock-row {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(56, 189, 248, 0.08);
}
.mock-row:last-child { border-bottom: none; }
.mock-avatar {
  width: 34px; height: 34px;
  flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-500), var(--blue-600));
}
.mock-lines { flex-grow: 1; display: grid; gap: 0.4rem; }
.mock-line { height: 8px; border-radius: 4px; background: rgba(148, 163, 184, 0.25); }
.mock-line.w80 { width: 80%; } .mock-line.w70 { width: 70%; } .mock-line.w60 { width: 60%; }
.mock-line.w50 { width: 50%; } .mock-line.w40 { width: 40%; } .mock-line.w30 { width: 30%; }
.mock-tag {
  flex-shrink: 0;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--blue-400);
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
}

/* ---------- Founder ---------- */
.founder-inner {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 3rem;
  align-items: center;
}
.founder-photo {
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
  font-size: 5rem;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(37, 99, 235, 0.1));
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-glow);
  margin: 0 auto;
}
.founder-copy h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1rem; }
.founder-copy p { color: var(--text-muted); margin-bottom: 0.9rem; }
.founder-copy p strong { color: var(--text-main); }

/* ---------- Pricing teaser ---------- */
.pricing-banner {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 2.5rem;
  align-items: center;
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12), rgba(37, 99, 235, 0.06));
  border: 1px solid rgba(56, 189, 248, 0.3);
  border-radius: 20px;
  padding: 3rem;
}
.pricing-banner h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: 0.8rem; }
.pricing-banner p { color: var(--text-muted); }
.pricing-banner-cta { display: flex; flex-direction: column; gap: 0.9rem; }

/* ---------- Pricing page ---------- */
.pricing-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  position: relative;
}
.price-card.featured {
  border-color: var(--blue-500);
  box-shadow: var(--shadow-glow);
}
.plan-flag {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--white);
  background: linear-gradient(120deg, var(--blue-500), var(--blue-600));
  padding: 0.3rem 1rem;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 1.2rem; margin-bottom: 0.3rem; }
.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.4rem; }
.plan-price { font-size: 2.6rem; font-weight: 800; margin-bottom: 0.2rem; }
.plan-price small { font-size: 1rem; font-weight: 600; color: var(--text-muted); }
.plan-minutes { color: var(--blue-400); font-weight: 600; font-size: 0.92rem; margin-bottom: 1.5rem; }
.plan-features { list-style: none; display: grid; gap: 0.6rem; margin-bottom: 1.8rem; flex-grow: 1; }
.plan-features li { display: flex; gap: 0.55rem; font-size: 0.93rem; color: var(--text-muted); }
.plan-features li::before { content: '✓'; color: #4ade80; font-weight: 800; }
.plan-overage { font-size: 0.82rem; color: var(--text-muted); margin: 0 0 1.2rem; opacity: 0.85; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.9rem; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  overflow: hidden;
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  font-size: 1.02rem;
  padding: 1.2rem 1.5rem;
  position: relative;
  padding-right: 3rem;
  transition: color 0.15s;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--blue-400);
  transition: transform 0.2s;
}
.faq-item[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq-item[open] summary { color: var(--blue-400); }
.faq-item p { padding: 0 1.5rem 1.3rem; color: var(--text-muted); font-size: 0.97rem; }

/* ---------- Final CTA ---------- */
.final-cta {
  padding: 5.5rem 0;
  text-align: center;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(14, 165, 233, 0.15), transparent 60%),
    var(--navy-900);
  border-top: 1px solid var(--card-border);
}
.final-cta h2 { font-size: clamp(2rem, 4.5vw, 2.9rem); margin-bottom: 0.8rem; }
.final-cta p { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  padding: 4.5rem 0 3.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% -20%, rgba(14, 165, 233, 0.16), transparent 60%);
}
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: 1rem; }
.page-hero p { color: var(--text-muted); font-size: 1.12rem; max-width: 680px; margin: 0 auto; }

/* ---------- Industry detail blocks ---------- */
.industry-detail {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.8rem;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 2.2rem;
  margin-bottom: 1.4rem;
}
.industry-detail .industry-icon { font-size: 2.8rem; }
.industry-detail h2 { font-size: 1.5rem; margin-bottom: 0.6rem; }
.industry-detail p { color: var(--text-muted); margin-bottom: 0.9rem; }
.industry-detail ul { list-style: none; display: grid; gap: 0.5rem; }
.industry-detail ul li { display: flex; gap: 0.55rem; color: var(--text-muted); font-size: 0.95rem; }
.industry-detail ul li::before { content: '✓'; color: #4ade80; font-weight: 800; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  border-top: 1px solid var(--card-border);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}
.footer-logo { height: 84px; width: auto; margin-bottom: 1.1rem; }
.footer-brand p { color: var(--text-muted); font-size: 0.93rem; max-width: 320px; margin-bottom: 1rem; }
.footer-phone { font-weight: 700; color: var(--blue-400); font-size: 1.05rem; }

.footer-col { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-col h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-main);
  margin-bottom: 0.4rem;
}
.footer-col a { color: var(--text-muted); font-size: 0.93rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--blue-400); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.8rem;
  border-top: 1px solid rgba(56, 189, 248, 0.08);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--blue-400); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 3rem; }
  .feature-grid, .steps-grid, .pricing-cards { grid-template-columns: repeat(2, 1fr); }
  .industry-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-banner { grid-template-columns: 1fr; text-align: center; }
  .pricing-banner-cta { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { row-gap: 2.4rem; }
  .portal-inner { grid-template-columns: 1fr; gap: 2.8rem; }
}

@media (max-width: 720px) {
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--navy-900);
    border-bottom: 1px solid var(--card-border);
    padding: 0.5rem 0;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 0.9rem 1.6rem; }
  .nav-toggle { display: flex; }

  .logo-img { height: 58px; }
  .portal-btn { padding: 0.55rem 0.95rem; font-size: 0.85rem; }

  .section { padding: 3.8rem 0; }
  .hero { padding: 3.5rem 0; }
  .feature-grid, .steps-grid, .testimonial-grid, .industry-grid, .pricing-cards { grid-template-columns: 1fr; }
  .steps-grid { row-gap: 2.4rem; }
  .trust-inner { grid-template-columns: repeat(2, 1fr); row-gap: 1.4rem; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .industry-detail { grid-template-columns: 1fr; }
  .pricing-banner { padding: 2rem 1.5rem; }
  .founder-inner { grid-template-columns: 1fr; text-align: center; gap: 2rem; }
  .portal-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .test-number { font-size: 1.6rem; }
}

/* ============================================================
   Early-access / free-trial modal
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.2rem;
  background: rgba(3, 8, 20, 0.78);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  position: relative;
  width: min(460px, 100%);
  max-height: 92vh;
  overflow-y: auto;
  background: var(--navy-800);
  border: 1px solid var(--card-border);
  border-radius: 20px;
  padding: 2.4rem 2rem 2rem;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), var(--shadow-glow);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.25s ease;
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 0.9rem;
  right: 1.1rem;
  width: 34px; height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--text-muted);
  background: none;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
}
.modal-close:hover { color: var(--text-main); background: rgba(255, 255, 255, 0.06); }

.modal-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.6rem;
}
.modal-step-dot {
  height: 4px;
  flex: 1;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.25);
  transition: background 0.2s;
}
.modal-step-dot.active { background: linear-gradient(120deg, var(--blue-400), var(--blue-600)); }

.modal-step h3 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.modal-sub { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 1.5rem; }

.modal-field { margin-bottom: 1rem; }
.modal-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.modal-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
}
.modal-field input,
.modal-field select {
  width: 100%;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-main);
  background: var(--navy-900);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 0.8rem 1rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.modal-field select { appearance: none; cursor: pointer; }
.modal-field input:focus,
.modal-field select:focus {
  outline: none;
  border-color: var(--blue-500);
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}
.modal-field input.invalid { border-color: #f87171; }

.modal-error { color: #fca5a5; font-size: 0.85rem; margin-bottom: 0.9rem; }

.modal-actions { display: flex; gap: 0.8rem; margin-top: 1.4rem; }
.modal-actions .btn-outline { flex: 0 0 auto; }
.modal-actions .btn-primary { flex: 1; }

.modal-success { text-align: center; padding: 1rem 0 0.5rem; }
.modal-success-icon { font-size: 3rem; margin-bottom: 0.8rem; }

@media (max-width: 480px) {
  .modal { padding: 2rem 1.3rem 1.5rem; }
  .modal-row { grid-template-columns: 1fr; }
}
