/* ============================================================
   TeeSquad — Premium Landing Page Styles
   Country club meets modern SaaS. Dark greens, cream, gold.
   ============================================================ */

:root {
  --green-deep:   #12261f;
  --green-mid:    #1a3a2a;
  --green-sage:   #2d5a40;
  --green-light:  #3e7a57;
  --cream:        #f5f0e8;
  --cream-light:  #faf8f4;
  --cream-dark:   #e8e0d0;
  --gold:         #c9a84c;
  --gold-light:   #d9bc6a;
  --text-dark:    #1a2b22;
  --text-muted:   #5a6b5f;
  --white:        #ffffff;
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--cream-light);
  color: var(--text-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- Typography ---- */
h1, h2, h3, h4 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}

a { color: var(--green-sage); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold); }

/* ---- Layout Helpers ---- */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(18, 38, 31, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.02em;
}

.nav-logo span {
  color: var(--gold);
}

.nav-cta {
  background: var(--gold);
  color: var(--green-deep);
  padding: 10px 24px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  transition: background 0.2s, transform 0.15s;
  cursor: pointer;
  border: none;
}

.nav-cta:hover {
  background: var(--gold-light);
  color: var(--green-deep);
  transform: translateY(-1px);
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: linear-gradient(165deg, var(--green-deep) 0%, var(--green-mid) 60%, var(--green-sage) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(201,168,76,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,255,255,0.03) 0%, transparent 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201, 168, 76, 0.15);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.8rem;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 28px;
}

.hero-eyebrow .dot {
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  color: var(--cream);
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero h1 em {
  color: var(--gold);
  font-style: normal;
}

.hero-sub {
  font-size: 1.2rem;
  color: rgba(245, 240, 232, 0.72);
  margin-bottom: 48px;
  max-width: 520px;
  line-height: 1.7;
}

/* ---- Hero form ---- */
.hero-form {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.hero-form .input-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero-form label {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.6);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-form input {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  padding: 14px 18px;
  font-size: 1rem;
  color: var(--cream);
  width: 220px;
  transition: border-color 0.2s, background 0.2s;
  outline: none;
}

.hero-form input::placeholder {
  color: rgba(245, 240, 232, 0.35);
}

.hero-form input:focus {
  border-color: var(--gold);
  background: rgba(255, 255, 255, 0.12);
}

.hero-form .btn-primary {
  background: var(--gold);
  color: var(--green-deep);
  padding: 14px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  align-self: flex-end;
  letter-spacing: 0.01em;
}

.hero-form .btn-primary:hover {
  background: var(--gold-light);
  transform: translateY(-2px);
}

.hero-form .btn-primary:active {
  transform: translateY(0);
}

.hero-form input.error {
  border-color: #e05252;
}

.hero-note {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.45);
}

/* ---- Hero social proof ---- */
.hero-proof {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-proof-text {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.4);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 500;
  margin-bottom: 16px;
}

.hero-proof-logos {
  display: flex;
  gap: 32px;
  align-items: center;
}

.proof-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(245, 240, 232, 0.55);
  font-size: 0.85rem;
}

.proof-badge svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* ---- Success state ---- */
.hero-success {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}

.hero-success.visible {
  display: flex;
}

.hero-success h3 {
  font-size: 1.75rem;
  color: var(--cream);
}

.hero-success p {
  color: rgba(245, 240, 232, 0.65);
  font-size: 1.05rem;
}

.hero-success-icon {
  width: 56px;
  height: 56px;
  background: rgba(62, 122, 87, 0.3);
  border: 1px solid rgba(62, 122, 87, 0.5);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

/* ============================================================
   FEATURES / PAIN POINTS
   ============================================================ */
.features {
  padding: 100px 0;
  background: var(--cream-light);
}

.section-label {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--green-sage);
  margin-bottom: 16px;
}

.features h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--green-deep);
  max-width: 520px;
  margin-bottom: 60px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--cream-dark);
  border-radius: 16px;
  padding: 36px 32px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(18, 38, 31, 0.1);
  border-color: rgba(45, 90, 64, 0.25);
}

.feature-icon {
  width: 48px;
  height: 48px;
  background: var(--green-mid);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--green-deep);
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how {
  padding: 100px 0;
  background: var(--green-deep);
}

.how h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--cream);
  margin-bottom: 64px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.67% + 24px);
  right: calc(16.67% + 24px);
  height: 1px;
  background: linear-gradient(90deg, rgba(201,168,76,0.4) 0%, rgba(201,168,76,0.15) 50%, rgba(201,168,76,0.4) 100%);
}

.step {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.step-num {
  width: 56px;
  height: 56px;
  background: rgba(201, 168, 76, 0.12);
  border: 1px solid rgba(201, 168, 76, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.5rem;
  color: var(--gold);
}

.step h3 {
  font-family: 'Inter', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.step p {
  color: rgba(245, 240, 232, 0.55);
  font-size: 0.9rem;
  line-height: 1.65;
}

/* ============================================================
   WAITLIST CTA SECTION
   ============================================================ */
.waitlist-cta {
  padding: 100px 0;
  background: linear-gradient(135deg, var(--cream) 0%, var(--cream-dark) 100%);
  text-align: center;
}

.waitlist-cta h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  color: var(--green-deep);
  margin-bottom: 16px;
}

.waitlist-cta > .container > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 48px;
}

.waitlist-form {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  max-width: 560px;
  margin: 0 auto 16px;
}

.waitlist-form input {
  flex: 1;
  min-width: 200px;
  background: var(--white);
  border: 1.5px solid var(--cream-dark);
  border-radius: 10px;
  padding: 16px 20px;
  font-size: 1rem;
  color: var(--text-dark);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.waitlist-form input::placeholder {
  color: var(--text-muted);
}

.waitlist-form input:focus {
  border-color: var(--green-sage);
  box-shadow: 0 0 0 3px rgba(45, 90, 64, 0.1);
}

.waitlist-form .btn-primary {
  background: var(--green-mid);
  color: var(--cream);
  padding: 16px 36px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  letter-spacing: 0.01em;
}

.waitlist-form .btn-primary:hover {
  background: var(--green-sage);
  transform: translateY(-2px);
}

.waitlist-form input.error {
  border-color: #e05252;
}

.waitlist-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.waitlist-success {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.waitlist-success.visible {
  display: flex;
}

.waitlist-success h3 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.75rem;
  color: var(--green-deep);
}

.waitlist-success p {
  color: var(--text-muted);
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--green-deep);
  padding: 40px 0;
  border-top: 1px solid rgba(201, 168, 76, 0.1);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.2rem;
  color: var(--cream);
}

.footer-logo span { color: var(--gold); }

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 0.8rem;
  color: rgba(245, 240, 232, 0.45);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--cream); }

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 240, 232, 0.25);
}

/* ============================================================
   ERROR / TOAST
   ============================================================ */
.error-msg {
  color: #c0392b;
  font-size: 0.8rem;
  margin-top: 8px;
  display: none;
}

.error-msg.visible { display: block; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 768px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .steps::before { display: none; }

  .hero-form {
    flex-direction: column;
  }

  .hero-form input {
    width: 100%;
  }

  .hero-form .btn-primary {
    width: 100%;
  }

  .hero-proof-logos {
    flex-wrap: wrap;
    gap: 20px;
  }

  .nav-cta {
    display: none;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}