@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Fira+Code:wght@400;700&display=swap');

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1e293b;
  background: #f8fafc;
  overflow-x: hidden;
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ========== NAV ========== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #dbeafe;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.nav-inner {
  max-width: 80rem;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 5rem;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.nav-brand img {
  height: 3rem;
  width: auto;
  transition: transform 0.2s;
}

.nav-brand img:hover {
  transform: scale(1.1);
}

.nav-brand-text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
  color: #1e3a5f;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  color: #64748b;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-link:hover {
  color: #2563eb;
}

.clubhouse-wrap {
  position: relative;
}

.nav-clubhouse {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1.5rem;
  border: 1px solid #bfdbfe;
  border-radius: 9999px;
  color: #1d4ed8;
  font-weight: 500;
  transition: all 0.2s;
  background: transparent;
  font-size: 0.95rem;
  cursor: pointer;
  font-family: inherit;
}

.nav-clubhouse:hover {
  background: #eff6ff;
}

.nav-clubhouse svg {
  width: 1rem;
  height: 1rem;
}

.clubhouse-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 1.25rem;
  width: 18rem;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border: 1px solid #dbeafe;
  border-top: none;
  border-radius: 0 0 1rem 1rem;
  padding: 1.25rem;
  box-shadow: 0 4px 15px rgba(0,0,0,0.06);
  z-index: 50;
}

.clubhouse-input {
  width: 100%;
  text-align: center;
  font-family: 'Fira Code', monospace;
  letter-spacing: 0.15em;
  padding: 0.625rem 0.75rem;
  border: 1px solid #dbeafe;
  border-radius: 0.5rem;
  background: rgba(239, 246, 255, 0.5);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin-bottom: 0.75rem;
}

.clubhouse-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.clubhouse-error {
  display: none;
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 500;
  text-align: center;
  margin-bottom: 0.75rem;
}

.clubhouse-submit {
  width: 100%;
  padding: 0.625rem;
  background: #2563eb;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
  transition: background 0.2s;
  font-family: inherit;
}

.clubhouse-submit:hover {
  background: #1d4ed8;
}

/* ========== HERO ========== */
.hero {
  position: relative;
  height: 100vh;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.35);
  mix-blend-mode: multiply;
}

.hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 60%, #f8fafc);
}

.hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 0 1rem;
  max-width: 56rem;
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-title {
  font-weight: 700;
  font-size: clamp(3.5rem, 10vw, 9rem);
  color: white;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  margin-bottom: 0.5rem;
}

.hero-title-accent {
  display: block;
  color: #5eead4;
}

.hero-subtitle {
  font-family: 'Fira Code', monospace;
  color: #bfdbfe;
  font-size: clamp(1rem, 2vw, 1.25rem);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 2.5rem;
}

.hero-cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  background: white;
  color: #1e3a5f;
  font-size: 1.125rem;
  font-weight: 700;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(30, 58, 95, 0.2);
  transition: all 0.2s;
}

.hero-cta:hover {
  background: #eff6ff;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(30, 58, 95, 0.25);
}

/* ========== WHAT WE DO ========== */
.features {
  padding: 6rem 1rem;
  background: #f8fafc;
}

.features-inner {
  max-width: 80rem;
  margin: 0 auto;
}

.section-header {
  text-align: center;
  margin-bottom: 4rem;
}

.section-title {
  font-weight: 700;
  font-size: 2.25rem;
  color: #1e3a5f;
  margin-bottom: 1rem;
}

.section-bar {
  width: 5rem;
  height: 0.25rem;
  background: #2dd4bf;
  margin: 0 auto;
  border-radius: 9999px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  text-align: center;
}

.feature-card {
  padding: 2rem;
  border-radius: 1.5rem;
  background: white;
  border: 1px solid #eff6ff;
  box-shadow: 0 4px 20px rgba(147, 197, 253, 0.15);
  transition: all 0.3s;
}

.feature-card:hover {
  box-shadow: 0 8px 30px rgba(147, 197, 253, 0.3);
  border-color: #bfdbfe;
}

.feature-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  background: #eff6ff;
  border-radius: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  transition: all 0.3s;
}

.feature-card:hover .feature-icon {
  background: #2563eb;
  color: white;
  transform: scale(1.1);
}

.feature-icon svg {
  width: 2.5rem;
  height: 2.5rem;
}

.feature-title {
  font-weight: 700;
  font-size: 1.5rem;
  color: #1e293b;
  margin-bottom: 0.75rem;
}

.feature-desc {
  color: #64748b;
  font-weight: 500;
  line-height: 1.7;
}

/* ========== RECIPE FORM ========== */
.recipe-section {
  padding: 6rem 1rem;
  background: #f0fdfa;
  position: relative;
  overflow: hidden;
}

.recipe-wave {
  position: absolute;
  top: 0;
  right: 0;
  margin-right: -5rem;
  margin-top: -5rem;
  opacity: 0.1;
  color: #0d9488;
  pointer-events: none;
}

.recipe-wave svg {
  width: 24rem;
  height: 24rem;
}

.recipe-inner {
  max-width: 56rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
}

.recipe-header {
  text-align: center;
  margin-bottom: 3rem;
}

.recipe-icon-wrap {
  display: inline-block;
  padding: 1rem;
  border-radius: 9999px;
  background: white;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  margin-bottom: 1.5rem;
}

.recipe-icon-wrap svg {
  width: 4rem;
  height: 4rem;
  color: #14b8a6;
}

.recipe-title {
  font-weight: 700;
  font-size: 2.25rem;
  color: #134e4a;
  margin-bottom: 1rem;
}

.recipe-subtitle {
  color: #0f766e;
  font-size: 1.125rem;
}

.recipe-card {
  padding: 2rem;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(8px);
  border-radius: 1.5rem;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.recipe-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.recipe-input,
.recipe-textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-family: inherit;
  background: white;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}

.recipe-input:focus,
.recipe-textarea:focus {
  border-color: #14b8a6;
  box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.15);
}

.recipe-textarea {
  min-height: 200px;
  resize: vertical;
}

.recipe-feedback {
  display: none;
  padding: 0.875rem 1rem;
  border-radius: 0.75rem;
  font-weight: 500;
  font-size: 0.95rem;
}

.recipe-submit {
  width: 100%;
  padding: 1rem;
  background: #14b8a6;
  color: white;
  font-size: 1.125rem;
  font-weight: 700;
  border: none;
  border-radius: 0.75rem;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(20, 184, 166, 0.2);
  transition: background 0.2s;
  font-family: inherit;
  letter-spacing: 0.025em;
}

.recipe-submit:hover {
  background: #0d9488;
}

.recipe-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ========== STATISTICS ========== */
.stats {
  padding: 5rem 1rem;
  background: #1e3a5f;
  color: white;
  position: relative;
  overflow: hidden;
}

.stats-texture {
  position: absolute;
  inset: 0;
  opacity: 0.15;
  background-image: url('https://images.unsplash.com/photo-1551244072-5d12893278ab?w=1920&q=80');
  background-size: cover;
  background-position: center;
  mix-blend-mode: overlay;
}

.stats-inner {
  max-width: 80rem;
  margin: 0 auto;
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.stats-label h2 {
  font-weight: 700;
  font-size: 3rem;
  line-height: 1.1;
  margin-bottom: 1rem;
}

.stats-bar {
  width: 6rem;
  height: 0.25rem;
  background: #2dd4bf;
  border-radius: 9999px;
}

.stats-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.stat-card {
  text-align: center;
  padding: 1.5rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
}

.stat-card svg {
  width: 2rem;
  height: 2rem;
  color: #5eead4;
  margin: 0 auto 1rem;
  display: block;
}

.stat-number {
  font-family: 'Fira Code', monospace;
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.stat-desc {
  color: #bfdbfe;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.15em;
}

/* ========== FOOTER ========== */
.footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 3rem 1rem;
  border-top: 1px solid #1e293b;
}

.footer-inner {
  max-width: 80rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.footer-contact {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}

.footer-contact:hover {
  color: white;
}

.footer-contact img {
  height: 2rem;
  width: auto;
  opacity: 0.9;
}

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

  .stats-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .stats-bar {
    margin: 0 auto;
  }

  .nav-brand-text {
    display: none;
  }

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

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }

  .stats-cards {
    grid-template-columns: 1fr;
  }
}
