/* ============================
   GLOBAL / PAGE BASE
============================ */

@import url('https://fonts.googleapis.com/css2?family=Urbanist:wght@300;400;500;600;700;800&display=swap');

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow-x: hidden;
  background: #ffffff;
  position: relative;
  font-family: 'Urbanist', sans-serif !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Media defaults */
img,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

/* Design tokens */
:root {
  --container: 1300px;
  --accent: #ff6a4a;
  /* CTA orange */
  --ink: #0f1115;
  --on-dark: #ffffff;
  --ink-muted: #d6d9de;
}

.name-highlight {
  color: var(--accent) !important;
  font-weight: bold !important;
}

/* Layout container */
.container {
  max-width: var(--container);
  width: 100%;
  margin-inline: auto;
  padding-inline: 20px;
  box-sizing: border-box;
}

/* Accessible “screen-reader only” utility */
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ============================
   BUTTONS (used in hero)
============================ */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, filter .2s ease, background .2s ease;
}

.btn .icon {
  width: 18px;
  height: 18px;
}

.btn--primary {
  background: var(--accent, #ff6a4a);
  color: #fff;
}

.btn--primary:hover {
  filter: brightness(.95);
  transform: translateY(-1px);
}

/* ============================
   HERO SECTION
============================ */

/* Section shell */
.hero {
  position: relative;
  color: var(--on-dark);
  padding-block: clamp(64px, 7vw, 120px);
  min-height: clamp(560px, 78vh, 840px);
  overflow: clip;
}

/* Background layer (image + gradients) */
.hero__bg {
  position: absolute;
  inset: 0;
  width: auto;
  background:
    radial-gradient(1200px 600px at 22% 12%, rgba(255, 255, 255, .06), transparent 60%),
    linear-gradient(180deg, rgba(6, 10, 18, .88) 0%, rgba(6, 10, 18, .8) 42%, rgba(6, 10, 18, .55) 70%, rgba(6, 10, 18, .25) 100%),
    url("img/hero-bg.jpg") center/cover no-repeat;
  pointer-events: none;
  z-index: 0;
}

/* Soft white glow at bottom */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: auto;
  height: 180px;
  background: linear-gradient(to bottom,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.15) 35%,
      rgba(255, 255, 255, 0.6) 70%,
      rgba(255, 255, 255, 1) 100%);
  filter: blur(14px);
  opacity: 0.9;
  pointer-events: none;
  z-index: 1;
}

/* Dark fade into page background */
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 140px;
  background: linear-gradient(to bottom, rgba(6, 10, 18, 0), rgba(6, 10, 18, 1));
  pointer-events: none;
}

/* Stronger glow on larger screens */
@media (min-width: 1024px) {
  .hero::before {
    height: 220px;
    filter: blur(18px);
    opacity: 1;
  }
}

/* Content grid */
.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(0, 540px);
  /* still 2 cols, just tuned */
  align-items: center;
  gap: clamp(40px, 6vw, 96px);
  /* more breathing room between left + right */
}

/* Left copy */
.hero__logo {
  width: clamp(70px, 8vw, 110px);
  /* responsive */
  height: auto;
  display: block;
  margin: 0 0 32px;
}

.hero__title {
  margin: 0 0 14px;
  font-weight: 700;
  letter-spacing: .2px;
  line-height: 1.06;
  font-size: clamp(2.25rem, 1.1rem + 4.8vw, 3rem);
  text-shadow: 0 2px 22px rgba(0, 0, 0, .28);
}

.hero__subtitle {
  margin: 0 0 26px;
  color: var(--ink-muted);
  font-size: clamp(1rem, .9rem + .5vw, 1.125rem);
  max-width: 56ch;
}

/* Actions row (form + button) */
.hero__actions .email-hero {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.early-form {
  width: 100%;
}

/* Email input specifically used in hero */
.email-input {
  width: 100%;
  height: 52px;
  border-radius: 4px;
  padding: 0 20px;
  background: #ffffff;
  color: #0f172a;
  border: none;
  outline: none;
  font-size: 1rem;
  box-sizing: border-box;
}

.email-input::placeholder {
  color: #9ca3af;
}

/* Mockup / media on the right */
.hero__media {
  position: relative;
  display: grid;
  place-items: center;
}

.hero__media img {
  width: 100%;
  max-width: 640px;
  /* caps size nicely on big screens */
  height: auto;
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 20px 60px rgba(0, 0, 0, .32),
    0 2px 0 6px rgba(255, 255, 255, .08) inset;
  outline: 10px solid rgba(255, 255, 255, .22);
  transform: translateY(8px) scale(1.1);
}

/* ============================
   SAFE AREA (iOS NOTCH)
============================ */

@supports (padding: max(0px)) {
  .hero .container {
    padding-left: clamp(40px, 6vw, 120px);
    padding-right: clamp(40px, 6vw, 120px);
  }
}

/* ============================
   RESPONSIVE HERO BEHAVIOUR
============================ */

/* Slightly rebalance columns on mid screens */
@media (max-width: 1140px) {
  .hero__grid {
    grid-template-columns: 1.1fr .9fr;
  }
}

/* Tablet: stack layout, center content */
@media (max-width: 980px) {
  .hero__media img {
    width: 80%;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero__copy {
    text-align: center;
    margin: 0 auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__actions .email-hero {
    justify-content: center;
    align-items: center;
  }

  .hero__grid {
    grid-template-columns: 1fr;
    place-items: center;
    text-align: center;
  }

  .hero__media {
    order: -1;
    /* mockup above text */
    margin-bottom: 14px;
  }

  .hero {
    min-height: auto;
    /* let content define height */
  }
}

/* Tablet-ish: reinforce 1-column grid + centering */
@media (max-width: 768px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 32px;
  }

  .hero__media img {
    max-width: 90%;
    margin-inline: auto;
  }

  .hero__actions {
    justify-content: center;
  }

  .hero__logo {
    margin-left: auto;
    margin-right: auto;
    display: block;
  }

  .hero__copy {
    text-align: center;
    /* ensures logo + text align nicely */
  }
}

/* Small phones: smaller text + tighter layout */
@media (max-width: 600px) {
  .hero__media img {
    width: 90%;
    max-width: 420px;
    margin: 0 auto;
  }

  .hero__title {
    font-size: clamp(1.8rem, 1rem + 4vw, 2.8rem);
    line-height: 1.15;
  }

  .hero__subtitle {
    font-size: 1rem;
  }

  .hero__actions {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero__copy {
    max-width: 90%;
  }

  .btn {
    width: auto;
  }
}

/* Extra small: slightly smaller padding & buttons */
@media (max-width: 560px) {
  .hero {
    padding-block: 56px;
  }

  .btn {
    padding: 11px 16px;
    border-radius: 8px;
  }

  .hero__actions {
    gap: 10px;
  }
}

.vs {
  letter-spacing: .2px;
  line-height: 1.06;
  font-size: clamp(1.25rem, 0.7rem + 4.8vw, 2rem);
  text-shadow: 0 2px 22px rgba(0, 0, 0, .28);
  z-index: 2;
  position: relative;
  margin-top: 6rem;
  text-align: center;
  font-weight: bold;
  padding: 4rem 0rem;
}

#early-feedback {
  opacity: 0;
  transition: opacity 0.4s ease-in-out;
  font-size: clamp(1rem, .9rem + .5vw, 1.125rem);
  min-height: 25px !important;
  color: var(--accent);
  margin: 1rem 0rem;
}

#early-feedback.show {
  opacity: 1;
}

.fs-100-p {
  font-size: 100% !important;
}