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

:root {
  --bg:           #fbfbfd;
  --surface:      #ffffff;
  --border:       #e4e4eb;
  --text:         #18181b;
  --text-mid:     #52525b;
  --text-dim:     #a1a1aa;
  --accent:       #6366f1;
  --accent-hover: #818cf8;
  --accent-soft:  rgba(99, 102, 241, 0.08);
  --radius:       14px;
  --radius-sm:    10px;
}

html {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(ellipse 40% 60% at 20% 50%, rgba(99, 102, 241, 0.04) 0%, transparent 50%),
    linear-gradient(90deg, #ffffff 0%, #fdfdfe 25%, #fafafc 50%, #f5f5f9 75%, #f0f0f5 100%);
  background-attachment: fixed;
}

a { color: inherit; text-decoration: none; }

/* Nav */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(251, 251, 253, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  padding: 0 32px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.logo-icon { width: 28px; height: 28px; border-radius: 6px; }
.nav-cta {
  background: var(--text);
  color: #fff !important;
  padding: 8px 18px;
  border-radius: 8px;
  font-weight: 500;
  font-size: 13px;
  transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

/* Decorative orbs */
.bg-orbs {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.orb-1 {
  width: 520px; height: 520px;
  top: -120px; left: -160px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.35), transparent 70%);
  animation: orbDrift 22s ease-in-out infinite alternate;
}
.orb-2 {
  width: 460px; height: 460px;
  top: 30%; right: -180px;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.28), transparent 70%);
  animation: orbDrift 28s ease-in-out infinite alternate-reverse;
}
@keyframes orbDrift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(40px, -30px) scale(1.05); }
  100% { transform: translate(-20px, 30px) scale(0.97); }
}

main, .nav, .modal-backdrop { position: relative; z-index: 1; }
.nav { z-index: 100; }
.modal-backdrop { z-index: 200; }

/* Hero */
.hero {
  padding: 80px 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  animation: fadeUp 0.6s ease both;
}
.hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  max-width: 720px;
  margin-bottom: 2px;
}
.hero-sub {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-mid);
  max-width: 540px;
}

.hero-link {
  display: inline;
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
  transition: color 0.15s, text-decoration-color 0.15s;
}
.hero-link:hover {
  color: var(--accent-hover);
  text-decoration-color: var(--accent);
}

.hero-meta {
  font-size: 12.5px;
  color: var(--text-dim);
  max-width: 500px;
  line-height: 1.5;
  margin-top: -4px;
}
.hero-link-sm {
  font-weight: 500;
  font-size: 12.5px;
  text-decoration-color: rgba(99, 102, 241, 0.28);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px -16px rgba(99, 102, 241, 0.55);
}
.btn-lg {
  padding: 13px 30px;
  font-size: 14.5px;
  border-radius: 12px;
  margin-top: 8px;
}

/* Video */
.video-section {
  padding: 28px 24px 60px;
  display: flex;
  justify-content: center;
  animation: fadeUp 0.7s 0.15s ease both;
}
.video-frame {
  width: 100%;
  max-width: 880px;
  aspect-ratio: 16 / 9;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 13px;
  letter-spacing: 0.04em;
  box-shadow: 0 18px 50px -30px rgba(99, 102, 241, 0.25);
}

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 30, 0.45);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.18s ease;
}
.modal-backdrop.open {
  display: flex;
  opacity: 1;
}
.modal {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px 28px;
  max-width: 640px;
  width: 100%;
  position: relative;
  box-shadow: 0 30px 60px -20px rgba(20, 20, 30, 0.3);
  text-align: center;
}
/* Right-side drawer — transparent click-catcher (no dim, no blur) */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  pointer-events: none;
  transition: opacity 0.22s ease;
  opacity: 0;
}
.drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(420px, 100vw);
  background: var(--surface);
  border-left: 1px solid var(--border);
  padding: 68px 32px 32px;
  box-shadow: -30px 0 80px -30px rgba(20, 20, 30, 0.25);
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
}
.drawer-backdrop.open .drawer {
  transform: translateX(0);
}
.drawer-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: transparent;
  border: none;
  color: var(--text-mid);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  transition: background 0.15s, color 0.15s;
}
.drawer-close:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.drawer-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.drawer-body {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 14px;
}
.drawer-search {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-family: inherit;
  background: var(--bg);
  color: var(--text);
  margin-bottom: 12px;
}
.drawer-search:focus { outline: none; border-color: var(--accent); }

.coverage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 16px;
}
.coverage-list li {
  font-size: 13.5px;
  color: var(--text);
  line-height: 1.4;
  padding: 8px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.coverage-list li:hover { background: var(--accent-soft); }
.coverage-list .coverage-empty {
  color: var(--text-mid);
  font-style: italic;
  background: transparent !important;
}

.drawer-foot {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.5;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.drawer-foot a { color: var(--accent); font-weight: 600; }
.drawer-foot a:hover { opacity: 0.75; }

.includes-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.includes-list li {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.includes-list li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: transparent;
  border: none;
  color: var(--text-mid);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  transition: background 0.15s, color 0.15s;
}
.modal-close:hover {
  background: var(--accent-soft);
  color: var(--text);
}
.modal-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

/* Method options inside modal */
.method-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  text-align: left;
}
.method-option {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.method-option:hover { border-color: var(--accent); background: var(--surface); }
.method-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}
.method-option h4 {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.method-option p {
  font-size: 12.5px;
  color: var(--text-mid);
  line-height: 1.55;
}

/* Inline modal link (e.g., "Don't see yours?") */
.modal-link {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: rgba(99, 102, 241, 0.3);
  text-underline-offset: 3px;
  cursor: pointer;
  align-self: flex-start;
  margin-top: 4px;
}
.modal-link:hover { color: var(--accent-hover); }

/* Connect form (inside modal) */
.connect-form { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.connect-form select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
}
.connect-form select:focus { outline: none; border-color: var(--accent); }
.connect-form .btn-primary { padding: 10px 16px; font-size: 13px; }

/* Portal address (inside modal) */
.portal-info { margin-top: auto; }
.portal-address {
  background: var(--accent-soft);
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-family: 'SFMono-Regular', Consolas, monospace;
  font-size: 12.5px;
  color: var(--text);
  word-break: break-all;
}

/* Footer */
.page-footer {
  position: fixed;
  bottom: 16px;
  right: 20px;
  font-size: 12px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
  pointer-events: none;
}

/* Responsive */
@media (max-width: 720px) {
  .nav-inner { padding: 0 16px; height: 48px; }
  .nav-logo { font-size: 14px; }
  .logo-icon { width: 22px; height: 22px; }

  .hero { padding: 72px 16px 20px; gap: 14px; }
  .hero h1 { font-size: 24px; }
  .hero-sub { font-size: 14px; }
  .btn-lg { padding: 12px 24px; font-size: 14px; }

  .video-section { padding: 20px 16px 48px; }

  .method-options { grid-template-columns: 1fr; gap: 12px; }

  .orb { filter: blur(60px); }
  .orb-1 { width: 320px; height: 320px; }
  .orb-2 { width: 280px; height: 280px; }
  .page-footer { bottom: 10px; right: 14px; font-size: 11px; }
}
