:root {
  --blue-600: #0057D8;
  --blue-500: #0B7FFF;
  --blue-400: #3AA0FF;
  --teal-500: #30B0C7;
  --sea-deep: #0059B2;
  --sea-crest: #66CCF2;
  --green-500: #34C759;
  --font-ui: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

/* The form/success elements set their own `display`, which otherwise
   beats the browser's default [hidden] rule at equal specificity. */
[hidden] {
  display: none !important;
}

html, body {
  margin: 0;
  /* Covers the iOS "rubber-band" overscroll area above/below the page so
     it reads as the same ocean gradient instead of flashing white. */
  background: var(--sea-deep);
}

.page {
  min-height: 100vh;
  /* iOS Safari's collapsing address bar makes 100vh taller than the
     actual visible viewport, leaving a white gap; 100dvh tracks the
     real visible area. Kept as a second declaration so browsers without
     dvh support just keep using the 100vh above. */
  min-height: 100dvh;
  background: linear-gradient(180deg, var(--sea-crest) 0%, var(--sea-deep) 55%, var(--blue-600) 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: var(--font-ui);
  color: #fff;
  position: relative;
}

.page::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.25), transparent 60%);
}

.hero {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 88px 24px 64px;
  gap: 28px;
  text-align: center;
}

.hero img.logo {
  width: 88px;
  height: 88px;
  border-radius: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-copy h1 {
  margin: 0;
  font: 800 44px/1.1 var(--font-ui);
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0;
  font: 500 20px/1.5 var(--font-ui);
  color: rgba(255, 255, 255, 0.92);
  max-width: 480px;
}

.signup-form {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  flex-wrap: wrap;
  justify-content: center;
}

.signup-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 18px;
  border-radius: 12px;
  border: none;
  font: 500 16px var(--font-ui);
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
}

.signup-form input[type="email"]:focus {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.5), 0 4px 14px rgba(0, 0, 0, 0.12);
}

.signup-form button {
  height: 48px;
  padding: 0 24px;
  border-radius: 12px;
  border: none;
  background: #fff;
  color: var(--blue-600);
  font: 700 16px var(--font-ui);
  cursor: pointer;
  outline: none;
}

.signup-form button:disabled {
  opacity: 0.6;
  cursor: default;
}

@keyframes shake {
  10%, 90% { transform: translateX(-1px); }
  20%, 80% { transform: translateX(2px); }
  30%, 50%, 70% { transform: translateX(-4px); }
  40%, 60% { transform: translateX(4px); }
}

.signup-form.shake {
  animation: shake 0.4s;
}

@keyframes pop-in {
  from { opacity: 0; transform: scale(0.85) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.signup-success {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  padding: 14px 22px;
  border-radius: 12px;
  background: #fff;
  color: var(--blue-600);
  font: 700 16px var(--font-ui);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  animation: pop-in 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.signup-success svg {
  width: 24px;
  height: 24px;
  color: var(--green-500);
  flex-shrink: 0;
}

/* Off-screen but still reachable by bots that fill in every field blindly. */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-note {
  margin: 0;
  font: 500 13px var(--font-ui);
  color: rgba(255, 255, 255, 0.75);
  min-height: 18px;
}

.form-note.is-error {
  color: #FFD7D5;
  font-weight: 700;
}

.showcase {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  padding: 0 24px 72px;
}

.showcase-label {
  font: 700 15px var(--font-ui);
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.showcase-shots {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 1000px;
}

.showcase-shots img {
  width: 220px;
  max-width: 80vw;
  height: auto;
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.features {
  position: relative;
  width: 100%;
  max-width: 920px;
  padding: 0 24px 96px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.feature-card {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
}

.feature-card svg {
  width: 28px;
  height: 28px;
}

.feature-card .title {
  font: 700 17px var(--font-ui);
}

.feature-card .desc {
  font: 400 14px/1.5 var(--font-ui);
  color: rgba(255, 255, 255, 0.85);
}

@media (max-width: 640px) {
  .hero {
    padding-top: 56px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-copy p {
    font-size: 17px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  /* Full-bleed row: break out of .showcase's padding so the side shots
     can run off the edge of the viewport instead of overlapping. */
  .showcase-shots {
    flex-wrap: nowrap;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    overflow-x: hidden;
    gap: 16px;
  }

  .showcase-shots img {
    width: 190px;
    max-width: none;
    border-radius: 20px;
    flex-shrink: 0;
  }

  /* Keep the first (trip detail) shot front-and-center; the course and
     settings shots flank it, partially cut off by the viewport edge. */
  .showcase-shots img:nth-child(1) {
    order: 2;
  }

  .showcase-shots img:nth-child(2) {
    order: 1;
  }

  .showcase-shots img:nth-child(3) {
    order: 3;
  }
}
