:root {
  --primary: #1b2559;
  --primary-dark: #10163a;
  --accent: #ff7a1a;
  --accent-soft: #ffe2c7;
  --bg: #f5f7fb;
  --text-main: #111827;
  --text-muted: #6b7280;
  --border-soft: #e5e7eb;
  --danger: #e11d48;
  --success: #059669;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-pill: 999px;
  --shadow-soft: 0 20px 40px rgba(15, 23, 42, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text-main);
}

body {
  line-height: 1.6;
}

/* Layout */

.site-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.main-content {
  flex: 1 0 auto;
}

.page-wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 5rem;
}

/* Top notice bar */

.top-bar {
  background: #020617;
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

.top-bar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.top-bar a {
  color: #e5e7eb;
  text-decoration: none;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top, rgba(148,163,255,.14), transparent 55%),
              rgba(15,23,42,0.96);
  border-bottom: 1px solid rgba(148,163,255,0.15);
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
}

/* Logo */

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: conic-gradient(from 180deg, #f97316, #facc15, #22c55e, #0ea5e9, #6366f1, #f97316);
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-inner {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: radial-gradient(circle at 30% 20%, #facc15, #1d2333 48%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #e5e7eb;
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
}

.logo-text-main {
  color: white;
  font-weight: 700;
  font-size: 1rem;
}

.logo-text-sub {
  color: #9ca3af;
  font-size: 0.75rem;
}

/* Nav */

nav {
  flex: 1 1 auto;
}

.nav-row {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  flex-wrap: wrap;
}

.nav-links a,
.nav-dropdown > button {
  color: #e5e7eb;
  text-decoration: none;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.15s ease;
}

.nav-links a:hover,
.nav-dropdown > button:hover {
  background: rgba(148,163,255,0.14);
  border-color: rgba(148,163,255,0.4);
  transform: translateY(-1px);
}

.nav-links a.active {
  background: white;
  color: var(--primary-dark);
  border-color: transparent;
}

/* Dropdown */

.nav-dropdown {
  position: relative;
}

.nav-dropdown-menu {
  position: absolute;
  top: 120%;
  left: 0;
  min-width: 220px;
  background: #020617;
  border-radius: 16px;
  padding: 0.6rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,255,0.25);
  display: none;
  flex-direction: column;
  z-index: 50;
}

.nav-dropdown-menu a {
  padding: 0.55rem 0.75rem;
  border-radius: 999px;
  color: #e5e7eb;
  text-decoration: none;
  font-size: 0.85rem;
  border: none;
}

.nav-dropdown-menu a span {
  opacity: 0.9;
}

.nav-dropdown-menu a:hover {
  background: rgba(148,163,255,0.16);
}

.nav-dropdown.open .nav-dropdown-menu {
  display: flex;
}

/* Right section */

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.nav-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  color: #e5e7eb;
  white-space: nowrap;
}

.nav-phone span {
  color: #f97316;
}

.btn-pill {
  padding: 0.55rem 1.3rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,255,0.6);
  background: linear-gradient(135deg, #f97316, #fb923c);
  color: white;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(248,113,113,0.3);
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}

.btn-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(248,113,113,0.4);
}

/* Hero */

.hero-shell {
  position: relative;
  min-height: 85vh;
  color: white;
  background: #020617;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-video-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.hero-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(1.2);
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(251,191,36,0.26), transparent 55%),
    radial-gradient(circle at 70% 15%, rgba(56,189,248,0.3), transparent 55%),
    linear-gradient(to bottom, rgba(15,23,42,0.4), rgba(15,23,42,0.9));
  mix-blend-mode: soft-light;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 420px);
  gap: 4rem;
  align-items: center;
}

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

.hero-kicker {
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #c4d0ff;
  margin-bottom: 1rem;
  font-weight: 600;
}

.hero-title {
  font-size: clamp(2.4rem, 4vw, 3.5rem);
  line-height: 1.1;
  margin: 0 0 1.2rem;
  font-weight: 800;
}

.hero-title span {
  color: #f97316;
}

.hero-lead {
  max-width: 100%;
  font-size: 1.05rem;
  color: #e5e7eb;
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 2rem;
}

.badge-soft {
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,255,0.35);
  font-size: 0.8rem;
  color: #e5e7eb;
  background: rgba(15,23,42,0.7);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.8rem;
}

.btn-primary {
  padding: 0.85rem 2rem;
  border-radius: 999px;
  border: none;
  background: linear-gradient(130deg, #f97316, #fb923c);
  color: white;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  box-shadow: 0 20px 40px rgba(248,113,113,0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 55px rgba(248,113,113,0.55);
}

.btn-outline {
  padding: 0.8rem 1.8rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,255,0.7);
  background: rgba(15,23,42,0.6);
  color: #e5e7eb;
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  transition: all 0.18s ease;
}

.btn-outline:hover {
  background: rgba(15,23,42,0.8);
  border-color: rgba(148,163,255,0.9);
}

.hero-note {
  font-size: 0.85rem;
  color: #cbd5f5;
  line-height: 1.6;
}

/* Right side hero card */

.hero-card {
  background: radial-gradient(circle at top, rgba(59,130,246,0.25), transparent 55%),
              rgba(15,23,42,0.96);
  border-radius: 24px;
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(148,163,255,0.35);
  align-self: start;
}

.hero-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  color: white;
  font-weight: 700;
}

.hero-card p {
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: #cbd5f5;
}

.step-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
  display: grid;
  gap: 0.7rem;
}

.step-list li {
  font-size: 0.88rem;
  color: #e5e7eb;
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.step-bullet {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(248,250,252,0.08);
  border: 1px solid rgba(148,163,255,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* Small stat strip */

.hero-stats {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  font-size: 0.8rem;
}

.hero-stat {
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(15,23,42,0.5);
  border: 1px solid rgba(148,163,255,0.2);
  color: #cbd5f5;
}

.hero-stat strong {
  display: block;
  color: white;
  margin-bottom: 0.2rem;
  font-size: 0.9rem;
}

/* Sections */

.section {
  padding: 5rem 1.5rem;
}

.section.white {
  background: white;
}

.section.light {
  background: var(--bg);
}

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
}

.section-title {
  margin: 0.3rem 0 0.5rem;
  font-size: 2rem;
  font-weight: 800;
}

.section-lead {
  margin: 0;
  max-width: 36rem;
  margin-inline: auto;
  font-size: 1rem;
  color: var(--text-muted);
}

/* Cards */

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.5rem;
}

.card {
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem;
  background: white;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 25px rgba(15,23,42,0.04);
}

.card.dark {
  background: rgba(15,23,42,0.94);
  border-color: rgba(148,163,255,0.35);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
  font-size: 1.15rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.card.dark p {
  color: #cbd5f5;
}

/* Plans */

.plan-toggle {
  display: inline-flex;
  padding: 0.18rem;
  border-radius: 999px;
  background: #020617;
  border: 1px solid rgba(148,163,255,0.4);
}

.plan-toggle button {
  border: none;
  background: transparent;
  color: #e5e7eb;
  font-size: 0.8rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}

.plan-toggle button.active {
  background: white;
  color: var(--primary-dark);
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 1.5rem;
}

.plan-card {
  border-radius: 22px;
  padding: 2rem 1.8rem 2.2rem;
  background: white;
  border: 1px solid var(--border-soft);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px rgba(15,23,42,0.1);
}

.plan-card.featured {
  border-width: 2px;
  border-color: #fb923c;
  box-shadow: var(--shadow-soft);
  transform: translateY(-8px);
}

.plan-card.featured:hover {
  transform: translateY(-12px);
}

.plan-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  font-weight: 600;
}

.plan-name {
  margin-top: 0.4rem;
  font-size: 1.4rem;
  font-weight: 700;
}

.plan-price {
  margin: 0.5rem 0 0.3rem;
  font-weight: 700;
  font-size: 1.6rem;
}

.plan-price span {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
}

.plan-highlight {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.2rem;
}

.plan-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  font-size: 0.9rem;
}

.plan-features li {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.5rem;
}

.plan-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(16,185,129,0.08);
  border: 1px solid rgba(16,185,129,0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: var(--success);
  flex-shrink: 0;
  margin-top: 2px;
}

.plan-btn {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: none;
  background: #020617;
  color: white;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.plan-btn:hover {
  background: #10163a;
  transform: scale(1.02);
}

.plan-card.featured .plan-btn {
  background: linear-gradient(135deg, #f97316, #fb923c);
}

.plan-card.featured .plan-btn:hover {
  background: linear-gradient(135deg, #ea580c, #f97316);
}

/* Page hero (inner pages) */

.page-hero {
  padding: 3.5rem 1.5rem 2.5rem;
  background: radial-gradient(circle at top, rgba(129,140,248,0.4), #020617);
  color: white;
}

.page-hero-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.8rem;
  color: #cbd5f5;
  margin-bottom: 0.6rem;
}

.page-hero h1 {
  margin: 0 0 0.4rem;
  font-size: 1.9rem;
}

.page-hero p {
  margin: 0;
  max-width: 38rem;
  font-size: 0.95rem;
  color: #e5e7eb;
}

/* Two-column layout for content pages */

.content-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.9fr) minmax(0, 1.25fr);
  gap: 1.8rem;
  align-items: flex-start;
}

.content-main {
  background: white;
  border-radius: 20px;
  padding: 1.6rem 1.5rem;
  border: 1px solid var(--border-soft);
  box-shadow: 0 10px 25px rgba(15,23,42,0.04);
}

.content-main h2 {
  margin-top: 0;
  font-size: 1.3rem;
}

.content-main h3 {
  margin-top: 1.1rem;
  font-size: 1.05rem;
}

.content-main p {
  font-size: 0.94rem;
  color: var(--text-muted);
}

.content-main ul {
  margin: 0.4rem 0 0.9rem 1.2rem;
  padding: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.content-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}

.sidebar-card {
  border-radius: 18px;
  padding: 1.1rem 1rem;
  background: #020617;
  color: #e5e7eb;
  border: 1px solid rgba(148,163,255,0.4);
}

.sidebar-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.sidebar-card p {
  font-size: 0.85rem;
  margin: 0 0 0.6rem;
}

/* Forms */

.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.88rem;
}

.form-field label {
  font-weight: 500;
}

.form-field input,
.form-field textarea,
.form-field select {
  border-radius: 12px;
  border: 1px solid var(--border-soft);
  padding: 0.55rem 0.75rem;
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

/* Footer */

.site-footer {
  background: #020617;
  color: #9ca3af;
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.8fr) repeat(3, minmax(0,1fr));
  gap: 2rem;
  font-size: 0.88rem;
  margin-bottom: 2.5rem;
}

.footer-brand {
  max-width: 20rem;
}

.footer-brand h3 {
  margin: 0 0 0.6rem;
  color: #e5e7eb;
  font-size: 1.2rem;
}

.footer-brand p {
  margin: 0;
  line-height: 1.7;
}

.footer-col h4 {
  margin: 0 0 0.6rem;
  color: #e5e7eb;
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.4rem;
}

.footer-col a {
  color: #9ca3af;
  text-decoration: none;
  display: inline-block;
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: #e5e7eb;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(55,65,81,0.9);
  padding-top: 1.2rem;
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 1rem;
}

/* Admin pages */

.admin-shell {
  max-width: 420px;
  margin: 4.5rem auto;
  padding: 2rem 1.75rem 2.1rem;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--border-soft);
  box-shadow: var(--shadow-soft);
}

.admin-shell h1 {
  margin-top: 0;
  margin-bottom: 0.3rem;
  font-size: 1.4rem;
}

.admin-shell p {
  margin: 0 0 1.2rem;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.admin-error {
  display: none;
  font-size: 0.82rem;
  color: var(--danger);
  margin-bottom: 0.7rem;
}

.admin-meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dashboard-shell {
  max-width: 1100px;
  margin: 3.5rem auto;
  padding: 0 1.5rem 3rem;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0,2fr) minmax(0,1.7fr);
  gap: 1.5rem;
}

.db-card {
  border-radius: 18px;
  padding: 1.4rem 1.3rem;
  background: white;
  border: 1px solid var(--border-soft);
  box-shadow: 0 12px 30px rgba(15,23,42,0.05);
}

.db-card h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.db-list {
  list-style: none;
  margin: 0.3rem 0 0;
  padding: 0;
  font-size: 0.9rem;
}

.db-list li {
  padding: 0.35rem 0;
  border-bottom: 1px dashed #e5e7eb;
}

/* Responsive */

@media (max-width: 1200px) {
  .nav-inner {
    gap: 1rem;
  }
  
  .nav-links {
    font-size: 0.82rem;
    gap: 0.4rem;
  }
  
  .nav-links a,
  .nav-dropdown > button {
    padding: 0.4rem 0.6rem;
  }
}

@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
    padding: 3rem 1.5rem;
  }
  
  .hero-card {
    max-width: 500px;
    margin: 0 auto;
  }
  
  .nav-links {
    display: none;
  }
  
  .nav-right {
    margin-left: auto;
  }
}

@media (max-width: 768px) {
  .top-bar-inner {
    flex-direction: column;
    text-align: center;
    gap: 0.3rem;
  }
  
  .hero-shell {
    min-height: auto;
  }
  
  .hero-inner {
    padding: 3rem 1.2rem;
  }
  
  .hero-title {
    font-size: 2rem;
  }
  
  .card-grid-3,
  .plan-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .nav-phone {
    display: none;
  }
  
  .section {
    padding: 3rem 1.2rem;
  }
}

@media (max-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
  
  .hero-inner {
    padding: 2.5rem 1rem;
  }
  
  .hero-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  
  .btn-primary,
  .btn-outline {
    justify-content: center;
  }
  
  .nav-inner {
    padding: 0.6rem 1rem;
  }
  
  .logo-text-sub {
    display: none;
  }
}
