/* ============================================
   THE GATE RECOVERY PROJECT — Stylesheet
   ============================================ */

:root {
  --navy:       #1E3A5F;
  --blue:       #2B5C8A;
  --blue-light: #4A7FAD;
  --gold:       #C9963A;
  --gold-light: #E8B86D;
  --gray-900:   #1C1C1E;
  --gray-700:   #3C3C43;
  --gray-500:   #6B7280;
  --gray-300:   #D1D5DB;
  --gray-100:   #F3F4F6;
  --warm-white: #F9F8F5;
  --white:      #FFFFFF;

  --font: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-serif: Georgia, 'Times New Roman', serif;

  --radius: 8px;
  --radius-lg: 16px;
  --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 4px 16px rgba(0,0,0,0.06);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.10);

  --max-width: 1100px;
  --section-gap: 6rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--warm-white);
  color: var(--gray-900);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== LAYOUT ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

section {
  padding: var(--section-gap) 0;
}

/* ===== TYPOGRAPHY ===== */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

p { color: var(--gray-700); }
p + p { margin-top: 1rem; }

.lead {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--gray-700);
}

/* ===== NAV ===== */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(249, 248, 245, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-300);
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav-logo img {
  display: block;
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.9rem;
  color: var(--gray-700);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--navy); }

.nav-cta {
  background: var(--navy);
  color: var(--white) !important;
  padding: 0.45rem 1rem;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.2s !important;
}

.nav-cta:hover {
  background: var(--blue) !important;
  text-decoration: none !important;
}

/* ===== HERO ===== */
#hero {
  padding: 5rem 0 4rem;
  background: linear-gradient(160deg, var(--warm-white) 60%, #EDF2F8 100%);
  border-bottom: 1px solid var(--gray-300);
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(201, 150, 58, 0.12);
  border: 1px solid rgba(201, 150, 58, 0.3);
  color: #8B6420;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.75rem;
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--gold);
  border-radius: 50%;
}

.hero-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.hero-logo {
  height: 55px;
  width: auto;
  margin-bottom: 2rem;
}

.hero-content h1 {
  margin-bottom: 1.5rem;
}

.hero-content h1 span {
  color: var(--blue);
}

.hero-content .lead {
  margin-bottom: 2.5rem;
  max-width: 480px;
}

/* ===== SIGNUP FORM ===== */
.signup-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-300);
}

.signup-card h3 {
  margin-bottom: 0.5rem;
  color: var(--navy);
}

.signup-card p {
  font-size: 0.9rem;
  color: var(--gray-500);
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--gray-900);
  background: var(--warm-white);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.form-group input:focus {
  border-color: var(--blue-light);
  box-shadow: 0 0 0 3px rgba(43, 92, 138, 0.12);
}

.btn-primary {
  width: 100%;
  padding: 0.8rem 1.5rem;
  background: var(--navy);
  color: var(--white);
  border: none;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.btn-primary:hover { background: var(--blue); }
.btn-primary:active { transform: scale(0.99); }
.btn-primary:disabled { opacity: 0.6; cursor: not-allowed; }

.form-note {
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: var(--gray-500);
  text-align: center;
}

.form-success {
  display: none;
  text-align: center;
  padding: 1.5rem;
}

.form-success .checkmark {
  width: 48px;
  height: 48px;
  background: #EEF6EE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.4rem;
}

.form-success h4 {
  font-size: 1.1rem;
  color: var(--navy);
  text-transform: none;
  letter-spacing: 0;
  margin-bottom: 0.5rem;
}

.form-success p {
  font-size: 0.9rem;
}

/* ===== SECTION LABELS ===== */
.section-label {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.75rem;
}

.section-header {
  margin-bottom: 3rem;
}

.section-header h2 {
  margin-bottom: 1rem;
}

.section-header p {
  font-size: 1.1rem;
  max-width: 600px;
}

/* ===== THE PROBLEM ===== */
#problem {
  background: var(--navy);
  color: var(--white);
}

#problem .section-label { color: var(--gold-light); }
#problem h2 { color: var(--white); }
#problem p { color: rgba(255,255,255,0.8); }
#problem .section-header p { color: rgba(255,255,255,0.75); }

.problem-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 3rem;
}

.problem-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
}

.problem-card .icon {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  display: block;
}

.problem-card h3 {
  color: var(--white);
  margin-bottom: 0.75rem;
  font-size: 1.1rem;
}

.problem-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.memory-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.memory-tag {
  background: rgba(201, 150, 58, 0.15);
  border: 1px solid rgba(201, 150, 58, 0.3);
  color: var(--gold-light);
  font-size: 0.8rem;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  padding-top: 3rem;
  border-top: 1px solid rgba(255,255,255,0.1);
}

.stat-item {
  text-align: center;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--gold-light);
  display: block;
  line-height: 1;
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.4;
}

/* ===== WHAT WE'RE BUILDING ===== */
#platform {
  background: var(--warm-white);
}

.platform-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--navy), var(--blue-light));
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.feature-icon {
  width: 44px;
  height: 44px;
  background: #EDF2F8;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1.25rem;
}

.feature-card h3 {
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  line-height: 1.65;
}

.platform-principles {
  margin-top: 3rem;
  padding: 2rem 2.5rem;
  background: #EDF2F8;
  border-radius: var(--radius-lg);
  border-left: 4px solid var(--blue);
}

.platform-principles h3 {
  color: var(--navy);
  margin-bottom: 1.25rem;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.principles-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  list-style: none;
}

.principles-list li {
  font-size: 0.95rem;
  color: var(--gray-700);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  line-height: 1.5;
}

.principles-list li::before {
  content: '—';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.05em;
}

/* ===== ABOUT ===== */
#about {
  background: var(--white);
  border-top: 1px solid var(--gray-300);
  border-bottom: 1px solid var(--gray-300);
}

.about-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: center;
}

.about-identity {
  position: relative;
}

.founder-card {
  background: linear-gradient(135deg, var(--navy) 0%, #2B4C7E 100%);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: white;
}

.founder-card .gate-year {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1rem;
}

.founder-card h3 {
  color: var(--white);
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.founder-card .title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 1.5rem;
}

.founder-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.founder-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 0.3rem 0.7rem;
  border-radius: 100px;
}

.about-content .section-label { margin-bottom: 0.75rem; }
.about-content h2 { margin-bottom: 1.5rem; }

.about-content .lead {
  margin-bottom: 1.25rem;
}

.callout-box {
  margin-top: 1.75rem;
  background: rgba(201, 150, 58, 0.08);
  border: 1px solid rgba(201, 150, 58, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}

.callout-box p {
  font-size: 0.95rem;
  color: #6B4E10;
  font-style: italic;
  line-height: 1.6;
  margin: 0;
}

/* ===== GET INVOLVED ===== */
#involved {
  background: linear-gradient(160deg, #EDF2F8 0%, var(--warm-white) 100%);
}

.involved-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  align-items: start;
}

.involved-options {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
}

.option-card {
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  transition: box-shadow 0.2s;
}

.option-card:hover {
  box-shadow: var(--shadow);
}

.option-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.option-card h4 {
  text-transform: none;
  letter-spacing: 0;
  color: var(--navy);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.option-card p {
  font-size: 0.875rem;
  line-height: 1.5;
}

.option-card a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--blue);
}

/* ===== FOOTER ===== */
footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  padding: 3rem 0;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand p {
  font-size: 0.85rem;
  margin-top: 0.75rem;
  max-width: 300px;
  line-height: 1.6;
}

.footer-logo {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
  letter-spacing: 0.04em;
}

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

.footer-links {
  display: flex;
  gap: 4rem;
}

.footer-col h5 {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--white); text-decoration: none; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}

.footer-bottom a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
}

.footer-bottom a:hover { color: rgba(255,255,255,0.7); }

/* ===== FORM STATUS MESSAGES ===== */
.form-error-msg {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
  font-size: 0.85rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius);
  margin-top: 0.75rem;
  display: none;
}

/* ===== SPINNER ===== */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ===== UTILITIES ===== */
.text-center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

/* ===== MOBILE RESPONSIVE ===== */
@media (max-width: 768px) {
  :root { --section-gap: 4rem; }

  .nav-links { display: none; }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .hero-content .lead { max-width: 100%; }
  .hero-logo { height: 44px; }

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

  .stat-row {
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
  }

  .stat-number { font-size: 1.8rem; }

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

  .principles-list {
    grid-template-columns: 1fr;
  }

  .about-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .involved-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-top {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-links {
    gap: 2rem;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .stat-row {
    grid-template-columns: 1fr;
  }

  .footer-links {
    flex-direction: column;
    gap: 1.5rem;
  }
}
