/* ============================================
   BuddyLunch Landing Page
   Colors derived from app icon:
   - Blue:   #2B7DE9 (primary), #1A5BB5 (dark), #E8F1FC (light)
   - Gold:   #F5A623 (accent), #D4891A (dark)
   - White:  #FFFFFF
   ============================================ */

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

:root {
  --blue: #2b7de9;
  --blue-dark: #1a5bb5;
  --blue-deeper: #0f3d7a;
  --blue-light: #e8f1fc;
  --gold: #f5a623;
  --gold-dark: #d4891a;
  --white: #ffffff;
  --gray-50: #f8fafc;
  --gray-100: #f1f5f9;
  --gray-200: #e2e8f0;
  --gray-600: #475569;
  --gray-800: #1e293b;
  --gray-900: #0f172a;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.1), 0 12px 32px rgba(0, 0, 0, 0.08);
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial,
    sans-serif;
  color: var(--gray-800);
  line-height: 1.6;
  background: var(--white);
  overflow-x: hidden;
}

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

/* ---- Nav ---- */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--gray-900);
  font-weight: 700;
  font-size: 1.15rem;
}

.nav-logo img {
  border-radius: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition:
    background 0.2s,
    transform 0.15s;
  cursor: pointer;
  border: none;
}

.btn-sm {
  background: var(--blue);
  color: var(--white);
}

.btn-sm:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

/* ---- Hero ---- */

.hero {
  padding: 140px 0 80px;
  background: linear-gradient(
    165deg,
    var(--blue) 0%,
    var(--blue-dark) 50%,
    var(--blue-deeper) 100%
  );
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--white);
  clip-path: ellipse(55% 100% at 50% 100%);
}

.hero-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
}

.hero-text {
  flex: 1;
  max-width: 560px;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero-sub {
  font-size: 1.2rem;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 32px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  align-items: center;
}

.app-store-badge img {
  height: 54px;
  transition: transform 0.15s;
}

.app-store-badge:hover img {
  transform: scale(1.04);
}

.hero-image {
  flex-shrink: 0;
}

.hero-icon {
  width: 260px;
  height: 260px;
  border-radius: 52px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: float 4s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

/* ---- Features ---- */

.features {
  padding: 100px 0;
  background: var(--white);
}

.section-title {
  text-align: center;
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gray-900);
  margin-bottom: 56px;
}

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

.feature-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition:
    box-shadow 0.25s,
    transform 0.2s;
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--gray-600);
  line-height: 1.6;
}

/* ---- How It Works ---- */

.how-it-works {
  padding: 100px 0;
  background: var(--blue-light);
}

.steps {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0;
}

.step {
  text-align: center;
  flex: 1;
  max-width: 220px;
  padding: 0 12px;
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: var(--white);
  font-size: 1.3rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 4px 12px rgba(245, 166, 35, 0.35);
}

.step h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.step p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.5;
}

.step-connector {
  width: 48px;
  height: 2px;
  background: var(--gray-200);
  margin-top: 26px;
  flex-shrink: 0;
}

/* ---- CTA ---- */

.cta {
  padding: 100px 0;
  background: linear-gradient(165deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
}

.cta-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cta-icon {
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  margin-bottom: 28px;
}

.cta h2 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.cta p {
  font-size: 1.1rem;
  opacity: 0.9;
  margin-bottom: 32px;
  max-width: 440px;
}

/* ---- Footer ---- */

.footer {
  padding: 40px 0;
  background: var(--gray-900);
  color: var(--gray-200);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  color: var(--white);
}

.footer-brand img {
  border-radius: 6px;
}

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

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

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

.footer-copy {
  font-size: 0.8rem;
  color: var(--gray-600);
}

/* ---- Subpages (Privacy, Terms, Support) ---- */

.page-header {
  padding: 120px 0 48px;
  background: linear-gradient(165deg, var(--blue) 0%, var(--blue-dark) 100%);
  color: var(--white);
  text-align: center;
}

.page-header h1 {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-date {
  margin-top: 8px;
  opacity: 0.8;
  font-size: 0.95rem;
}

.page-content {
  padding: 64px 0 100px;
}

.content-narrow {
  max-width: 720px;
}

.page-content h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-top: 40px;
  margin-bottom: 12px;
}

.page-content h2:first-child {
  margin-top: 0;
}

.page-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 24px;
  margin-bottom: 8px;
}

.page-content p {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
}

.page-content ul {
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 12px;
  padding-left: 24px;
}

.page-content li {
  margin-bottom: 6px;
}

.page-content a {
  color: var(--blue);
  text-decoration: none;
}

.page-content a:hover {
  text-decoration: underline;
}

/* ---- Support Form ---- */

.support-intro {
  margin-bottom: 36px;
}

.support-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

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

.form-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--gray-800);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 14px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--gray-800);
  background: var(--white);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 125, 233, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--gray-200);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%23475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}

.btn-submit {
  background: var(--blue);
  color: var(--white);
  padding: 14px 32px;
  font-size: 1rem;
  align-self: flex-start;
}

.btn-submit:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
}

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

.form-status {
  font-size: 0.9rem;
  min-height: 24px;
}

.form-status-success {
  color: #16a34a;
}

.form-status-error {
  color: #dc2626;
}

/* ---- Responsive ---- */

@media (max-width: 900px) {
  .hero h1 {
    font-size: 2.4rem;
  }

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

  .hero-cta {
    justify-content: center;
  }

  .hero-icon {
    width: 180px;
    height: 180px;
    border-radius: 36px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }

  .step-connector {
    width: 2px;
    height: 24px;
    margin: 0;
  }
}

@media (max-width: 600px) {
  .hero {
    padding: 120px 0 60px;
  }

  .hero h1 {
    font-size: 2rem;
  }

  .hero-sub {
    font-size: 1.05rem;
  }

  .features {
    padding: 72px 0;
  }

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

  .section-title {
    font-size: 1.7rem;
    margin-bottom: 36px;
  }

  .how-it-works {
    padding: 72px 0;
  }

  .cta {
    padding: 72px 0;
  }

  .cta h2 {
    font-size: 1.7rem;
  }
}
