*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --accent: #ffffff;
  --accent-hover: #e5e7eb;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --bg-deep: #020617;
  --max-width-hero: 780px;
}

/* smooth anchor scroll */
html.smoothscroll,
body.smoothscroll {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  height: 100%;
}

body {
  min-height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text-main);
  background-color: var(--bg-deep);
  overflow-x: hidden;
}

/* FULL-WIDTH TOP CAROUSEL STRIP */

.top-carousel {
  width: 100%;
  height: 120px;
  overflow: hidden;
  border-bottom: 1px solid rgba(30, 64, 175, 0.45);
  background: radial-gradient(circle at 50% 0%, rgba(59, 130, 246, 0.18), transparent 70%),
              #020617;
}

.top-carousel-track {
  display: flex;
  align-items: stretch;
  height: 100%;
  will-change: transform;
}

.top-carousel-item {
  flex: 0 0 260px;
  height: 100%;
}

.top-carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* VIEWPORT BACKGROUND */

.viewport {
  min-height: calc(100vh - 120px);
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 1.5rem 1.5rem;
  position: relative;
  background-image:
    radial-gradient(circle at 15% 10%, rgba(56, 189, 248, 0.18), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(59, 130, 246, 0.24), transparent 60%),
    radial-gradient(circle at 40% 80%, rgba(16, 185, 129, 0.2), transparent 55%),
    linear-gradient(135deg, #020617 0%, #020617 40%, #020617 100%),
    linear-gradient(rgba(15, 23, 42, 0.8) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 42, 0.8) 1px, transparent 1px);
  background-size:
    100% 100%,
    100% 100%,
    100% 100%,
    100% 100%,
    80px 80px,
    80px 80px;
  background-position: center center;
  background-repeat: no-repeat;
}

/* Thank-you page has no top strip, so fill full height */
body.thankyou .viewport {
  min-height: 100vh;
}

/* HERO */

.hero {
  grid-row: 1 / 2;
  display: grid;
  place-items: center;
  width: 100%;
}

.hero-inner {
  text-align: center;
  max-width: var(--max-width-hero);
  margin: 0 auto;
}

.hero-eyebrow {
  font-size: 0.9rem;
  margin: 0 0 0.25rem;
  color: #e5e7eb;
}

.hero-title {
  margin: 0 0 0.9rem;
  font-size: clamp(2.2rem, 4.6vw, 3rem);
  line-height: 1.25;
}

.hero-subtitle {
  margin: 0 auto 1.8rem;
  max-width: 32rem;
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
}

/* CTA + DISCLAIMER BUTTONS */

.hero-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 2.8rem;
  border-radius: 999px;
  background: var(--accent);
  color: #020617;
  font-weight: 600;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);
  transition: background 0.18s ease, transform 0.14s ease, box-shadow 0.14s ease;
}

.hero-cta:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.95);
}

.hero-cta--full {
  width: 100%;
  text-align: center;
}

.disclaimer-link {
  margin-top: 0.75rem;
  border: none;
  background: transparent;
  color: rgba(148, 163, 184, 0.95);
  font-size: 0.78rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* SOCIAL FOOTER */

.social-footer {
  grid-row: 2 / 3;
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.social-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(156, 163, 175, 0.35);
  color: rgba(156, 163, 175, 0.85);
  text-decoration: none;
}

.icon-svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

/* MODALS */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  z-index: 50;
}

.modal-backdrop.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  width: 100%;
  max-width: 420px;
  background: #050509;
  color: var(--text-main);
  border-radius: 1.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.45);
  padding: 1.9rem 1.9rem 2.2rem;
  position: relative;
}

.modal--disclaimer {
  max-width: 620px;
}

.modal h3 {
  margin-top: 0;
  font-size: 1.05rem;
  margin-bottom: 1.3rem;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 1.4rem;
  cursor: pointer;
}

/* FORM */

.modal-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.8rem;
}

.field-group label {
  color: rgba(209, 213, 219, 0.9);
}

.field-group input {
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid #3f3f46;
  background: #18181b;
  color: var(--text-main);
  font-size: 0.85rem;
}

.field-group input:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.4);
}

.field-error {
  min-height: 0.9rem;
  font-size: 0.7rem;
  color: #fecaca;
}

/* phone country + number row */

.phone-row {
  display: grid;
  grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  gap: 0.4rem;
}

.phone-country {
  padding: 0.75rem 0.7rem;
  border-radius: 0.7rem;
  border: 1px solid #3f3f46;
  background: #18181b;
  color: var(--text-main);
  font-size: 0.8rem;
  cursor: pointer;
}

.phone-country:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.4);
}

.phone-number {
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  border: 1px solid #3f3f46;
  background: #18181b;
  color: var(--text-main);
  font-size: 0.85rem;
}

.phone-number:focus {
  outline: none;
  border-color: #4ade80;
  box-shadow: 0 0 0 1px rgba(74, 222, 128, 0.4);
}

/* consent card */

.consent-card {
  margin-top: 0.25rem;
  padding: 0.9rem 1rem 1rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.75);
  font-size: 0.75rem;
  color: var(--text-muted);
}

.consent-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.45rem;
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.9);
}

.toggle-btn {
  padding: 0.2rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: rgba(148, 163, 184, 0.9);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.toggle-btn.on {
  background: #22c55e;
  border-color: #22c55e;
  color: #022c22;
}

.consent-copy {
  margin: 0;
}

.consent-note {
  margin: 0.2rem 0 0.5rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* success text */

.modal-success {
  font-size: 0.8rem;
  color: #bbf7d0;
  margin-top: 0.8rem;
  text-align: center;
}

/* DISCLAIMER MODAL CONTENT – thin, faint scrollbar */

.disclaimer-scroll {
  max-height: min(60vh, 460px);
  overflow-y: auto;
  padding-right: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Firefox thin scrollbar */
.disclaimer-scroll {
  scrollbar-width: thin;
  scrollbar-color: rgba(148, 163, 184, 0.4) transparent;
}

/* WebKit subtle scrollbar */
.disclaimer-scroll::-webkit-scrollbar {
  width: 3px;
}

.disclaimer-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.disclaimer-scroll::-webkit-scrollbar-thumb {
  background-color: rgba(148, 163, 184, 0.35);
  border-radius: 999px;
}

.disclaimer-scroll p {
  margin: 0 0 0.75rem;
}

.disclaimer-scroll strong {
  color: rgba(229, 231, 235, 0.95);
}

/* MOBILE RESPONSIVE TWEAKS */

@media (max-width: 640px) {
  .viewport {
    padding: 0 1rem 1.2rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 0.85rem;
  }

  .modal {
    padding: 1.5rem 1.3rem 1.7rem;
  }

  .phone-row {
    grid-template-columns: 1fr; /* stack code + number on mobile */
  }

  .phone-country,
  .phone-number {
    width: 100%;
  }

  .top-carousel {
    height: 100px;
  }
}
