/* ============================================
   CUSTOM PROPERTIES
   ============================================ */
:root {
  /* Brand palette */
  --charcoal: #131313;
  --mist: #e6eded;
  --shadow: #343535;
  --kraft: #cdab81;

  /* Typography */
  --font-sans: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";

  /* Layout */
  --section-width: 650px;
}

/* ============================================
   RESET & BASE STYLES
   ============================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--mist);
  color: var(--charcoal);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* ============================================
   TYPOGRAPHY
   ============================================ */
h1 {
  margin: 0 0 8px;
  font-size: clamp(24px, 4.5vw, 42px);
  letter-spacing: 0.01em;
  line-height: 1.3;
  color: var(--charcoal);
  font-weight: 600;
}

.launch-date {
  margin: 0 0 32px;
  font-size: clamp(20px, 2vw, 23px);
  color: var(--kraft);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tagline {
  margin: 0 auto 12px;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--shadow);
  max-width: 60ch;
  font-weight: 300;
}

.footer {
  margin-top: 16px;
  font-size: clamp(12px, 1.5vw, 13px);
  color: var(--shadow);
  opacity: 0.7;
}

/* ============================================
   LAYOUT
   ============================================ */
.wrap {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(24px, 4vw, 48px);
}

.card {
  width: min(900px, 100%);
  text-align: center;
}

/* ============================================
   LOGO & VISUAL ELEMENTS
   ============================================ */
.logo {
  width: clamp(180px, 40vw, 360px);
  height: auto;
  display: block;
  margin: 0 auto clamp(20px, 4vh, 32px);
}

.divider {
  width: 72px;
  height: 2px;
  background: var(--kraft);
  margin: 32px auto;
  border-radius: 2px;
  opacity: 0.6;
}

.accent {
  width: 72px;
  height: 3px;
  background: var(--kraft);
  margin: 24px auto 32px;
  border-radius: 2px;
}

/* ============================================
   BUTTONS & CTAs
   ============================================ */
.hero-cta {
  display: inline-block;
  padding: 16px 40px;
  background: var(--kraft);
  color: var(--charcoal);
  text-decoration: none;
  border-radius: 6px;
  font-size: 17px;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
  border: none;
}

.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(205, 171, 129, 0.3);
}

.submit-btn {
  padding: 16px 40px;
  background: var(--kraft);
  color: var(--charcoal);
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  font-family: var(--font-sans);
}

.submit-btn:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(205, 171, 129, 0.3);
}

.submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ============================================
   FEATURES SECTION
   ============================================ */
.features {
  margin: 32px auto 40px;
  max-width: 650px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  text-align: left;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .features-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

.feature {
  padding: 0;
}

.feature-title {
  font-size: clamp(17px, 2vw, 19px);
  font-weight: 800;
  color: var(--kraft);
  margin: 0 0 4px;
  letter-spacing: 0.01em;
  hyphens: auto;
}

.feature-desc {
  font-size: clamp(14px, 1.8vw, 15px);
  color: var(--shadow);
  margin: 0;
  line-height: 1.5;
}

/* ============================================
   LOCATION SECTION
   ============================================ */
.location-section {
  width: min(var(--section-width), 100%);
  max-width: none;
  margin: 40px auto 32px;
  padding: 24px;
  background-color: var(--shadow);
  border-radius: 8px;
}

.location-label {
  font-size: clamp(13px, 1.8vw, 14px);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  margin: 0 0 8px;
  font-weight: 600;
}

.location {
  font-size: clamp(20px, 2.2vw, 25px);
  color: #fff;
  margin: 0;
  font-weight: 500;
}

.location-link {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
  border-bottom: 1px solid transparent;
}

.location-link:hover,
.location-link:focus {
  color: var(--kraft);
  border-bottom-color: var(--kraft);
}

/* ============================================
   SIGNUP SECTION
   ============================================ */
.signup-section {
  width: min(var(--section-width), 100%);
  max-width: none;
  background: rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 24px;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.signup-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  margin: 0 0 16px;
  color: var(--charcoal);
}

.signup-desc {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--shadow);
  margin: 0 0 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   FORM ELEMENTS
   ============================================ */
.signup-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.email-input {
  flex: 1;
  min-width: 280px;
  padding: 16px 24px;
  border: 2px solid var(--shadow);
  border-radius: 6px;
  font-size: 16px;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color 0.2s ease;
}

.email-input:focus {
  border-color: var(--kraft);
}

.form-message {
  font-size: 14px;
  margin-top: 8px;
}

.form-message.success {
  color: #1a7f37;
}

.form-message.error {
  color: #9b1c1c;
}

/* ============================================
   ANIMATIONS & INTERACTIONS
   ============================================ */
@keyframes pulseOutline {
  0% {
    box-shadow: 0 0 0 0 rgba(205, 171, 129, 0.35);
  }
  100% {
    box-shadow: 0 0 0 8px rgba(205, 171, 129, 0);
  }
}

.signup-section.highlight {
  outline: 2px solid var(--kraft);
  animation: pulseOutline 900ms ease-out;
}

#signup {
  scroll-margin-top: 12vh;
}

/* ============================================
   ACCESSIBILITY & MOTION PREFERENCES
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
