/* ============================================================
   BidAgent — landing.css
   Shared styles for landing.html and login.html
   ============================================================ */

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

/* ── Variables ──────────────────────────────────────────────── */
:root {
  --blue:       #2563eb;
  --blue-dark:  #1d4ed8;
  --blue-light: #eff6ff;
  --gray-50:    #f9fafb;
  --gray-100:   #f3f4f6;
  --gray-200:   #e5e7eb;
  --gray-400:   #9ca3af;
  --gray-600:   #4b5563;
  --gray-700:   #374151;
  --gray-800:   #1f2937;
  --gray-900:   #111827;
  --font:       'Inter', sans-serif;
  --radius:     10px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.05);
  --shadow-md:  0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg:  0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.07);
}

/* ── Base ───────────────────────────────────────────────────── */
html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg {
  display: block;
}

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

/* ── Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: 24px;
}

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  border-radius: var(--radius);
  transition: background .18s, color .18s, box-shadow .18s, transform .1s;
  white-space: nowrap;
  line-height: 1;
}

.btn:active { transform: scale(.98); }

.btn-primary {
  background: var(--blue);
  color: #fff;
  padding: 14px 26px;
  box-shadow: 0 2px 8px rgba(37,99,235,.30);
}

.btn-primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 4px 14px rgba(37,99,235,.40);
}

.btn-primary-lg {
  font-size: 17px;
  padding: 16px 32px;
}

.btn-white {
  background: #fff;
  color: var(--blue);
  padding: 14px 28px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}

.btn-white:hover {
  background: var(--blue-light);
}

.btn-text {
  background: none;
  color: var(--gray-600);
  padding: 0;
  font-size: 16px;
}

.btn-text:hover { color: var(--gray-900); }

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 15px;
}

/* ── Nav ────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
}

.brand-logo {
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  transition: color .16s;
}

.nav-link:hover { color: var(--gray-900); }

.nav .btn-primary {
  font-size: 14px;
  padding: 9px 18px;
}

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 64px; /* nav height */
  background: radial-gradient(ellipse 80% 60% at 50% 0%, #eff6ff 0%, #fff 72%);
  overflow: hidden;
}

.hero-inner {
  max-width: 800px;
  margin-inline: auto;
  text-align: center;
  padding: 100px 24px;
}

.hero-pill {
  display: inline-block;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37,99,235,.20);
  margin-bottom: 28px;
  letter-spacing: .02em;
}

.hero h1 {
  font-size: 52px;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.03em;
  color: var(--gray-900);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 18px;
  line-height: 1.65;
  color: var(--gray-600);
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-note {
  font-size: 13px;
  color: var(--gray-400);
  letter-spacing: .01em;
}

/* ── Stats bar ──────────────────────────────────────────────── */
.stats-bar {
  background: #fff;
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
  padding: 32px 0;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.stat-num {
  display: block;
  font-size: 24px;
  font-weight: 800;
  color: var(--blue);
  line-height: 1.2;
  margin-bottom: 4px;
}

.stat-desc {
  font-size: 13px;
  color: var(--gray-600);
  line-height: 1.4;
  max-width: 220px;
  margin-inline: auto;
}

.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--gray-200);
  flex-shrink: 0;
}

/* ── Who it's for ───────────────────────────────────────────── */
.who {
  padding: 100px 0;
  background: #fff;
}

.who-header {
  text-align: center;
  margin-bottom: 64px;
}

.who-header h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gray-900);
}

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

.who-card {
  position: relative;
  border: 1px solid var(--gray-200);
  border-radius: 20px;
  padding: 48px 40px;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
}

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

.who-card--primary {
  border-color: var(--blue);
  background: linear-gradient(180deg, #fff 0%, #f0f7ff 100%);
  box-shadow: 0 4px 20px rgba(37,99,235,.08);
}

.who-card-tag {
  position: absolute;
  top: 24px;
  right: 24px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.who-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.who-card h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 16px;
}

.who-desc {
  font-size: 15px;
  color: var(--gray-700);
  margin-bottom: 16px;
  line-height: 1.6;
}

.who-impact {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-900);
  background: var(--gray-50);
  padding: 12px 16px;
  border-radius: 10px;
  margin-bottom: 24px;
  line-height: 1.5;
}

.who-list {
  list-style: none;
  margin-bottom: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.who-list li {
  font-size: 14px;
  color: var(--gray-600);
  position: relative;
  padding-left: 24px;
  line-height: 1.5;
}

.who-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--blue);
  font-weight: 700;
}

.who-cta {
  width: 100%;
  justify-content: center;
}

/* ── How it works ───────────────────────────────────────────── */
.how {
  background: var(--gray-50);
  padding: 96px 0;
}

.how-header {
  text-align: center;
  margin-bottom: 60px;
}

.how-header h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gray-900);
}

.steps {
  display: flex;
  gap: 32px;
  align-items: flex-start;
}

.step {
  flex: 1;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .2s;
}

.step:hover {
  box-shadow: var(--shadow-md);
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}

.step h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.step p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── Features ───────────────────────────────────────────────── */
.features {
  background: #fff;
  padding: 96px 0;
}

.features-header {
  text-align: center;
  margin-bottom: 56px;
}

.features-header h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--gray-900);
}

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

.feature-card {
  border: 1px solid var(--gray-200);
  border-radius: 14px;
  padding: 32px 28px;
  transition: box-shadow .2s, border-color .2s;
}

.feature-card:hover {
  border-color: var(--gray-300, #d1d5db);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 18px;
}

.icon-blue   { background: #eff6ff; }
.icon-green  { background: #f0fdf4; }
.icon-purple { background: #faf5ff; }
.icon-orange { background: #fff7ed; }

.feature-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── CTA Banner ─────────────────────────────────────────────── */
.cta-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #2563eb 50%, #3b82f6 100%);
  padding: 80px 0;
  text-align: center;
}

.cta-banner h2 {
  font-size: 34px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -.02em;
  margin-bottom: 32px;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  padding: 40px 0;
}

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

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

.footer-tagline {
  font-size: 13px;
  color: var(--gray-400);
  margin-left: 34px;
}

.footer-copy {
  font-size: 13px;
  color: var(--gray-400);
}

/* ── Login Page ─────────────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  background: var(--gray-50);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.login-card {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  padding: 36px;
  border: 1px solid var(--gray-200);
}

.login-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 28px;
}

.login-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-900);
  text-align: center;
  margin-bottom: 24px;
  letter-spacing: -.02em;
}

/* Auth Tabs */
.auth-tabs {
  display: flex;
  background: var(--gray-100);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 28px;
  gap: 4px;
}

.auth-tab {
  flex: 1;
  text-align: center;
  padding: 9px 12px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-600);
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background .16s, color .16s, box-shadow .16s;
}

.auth-tab.active {
  background: #fff;
  color: var(--gray-900);
  box-shadow: 0 1px 4px rgba(0,0,0,.10);
}

.auth-tab:hover:not(.active) {
  color: var(--gray-700);
}

/* Form */
.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

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

.form-group label {
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
}

.form-group input {
  width: 100%;
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}

.form-group input::placeholder {
  color: var(--gray-400);
}

.form-group input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}

.form-group.hidden {
  display: none;
}

/* Error */
.login-error {
  display: none;
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #dc2626;
  line-height: 1.5;
}

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

/* Below card note */
.login-note {
  margin-top: 20px;
  font-size: 12px;
  color: var(--gray-400);
  text-align: center;
}

/* Google button */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 11px 16px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-800);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  cursor: pointer;
  transition: background .15s, box-shadow .15s;
  text-decoration: none;
}
.btn-google:hover {
  background: var(--gray-50);
  box-shadow: 0 1px 6px rgba(0,0,0,.10);
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
  color: var(--gray-400);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-200);
}

/* Phone modal */
.phone-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(2px);
}
.phone-modal {
  background: #fff;
  border-radius: 16px;
  padding: 36px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
  margin: 16px;
}
.phone-modal-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}
.phone-modal-sub {
  font-size: 13px;
  color: var(--gray-600);
  margin-bottom: 24px;
  line-height: 1.5;
}
.phone-input-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.phone-prefix {
  padding: 11px 14px;
  font-size: 14px;
  font-family: var(--font);
  color: var(--gray-700);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  font-weight: 500;
  flex-shrink: 0;
}
.phone-input-row input {
  flex: 1;
  font-family: var(--font);
  font-size: 14px;
  color: var(--gray-900);
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 11px 14px;
  outline: none;
  transition: border-color .16s, box-shadow .16s;
}
.phone-input-row input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.12);
}
.phone-modal-error {
  display: none;
  font-size: 12px;
  color: #dc2626;
  margin-bottom: 12px;
}
.phone-modal-error.visible { display: block; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 36px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .hero-inner {
    padding: 72px 20px 60px;
  }

  .hero-actions {
    flex-direction: column;
    gap: 12px;
  }

  .btn-primary-lg {
    width: 100%;
    justify-content: center;
  }

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

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

  .how,
  .features {
    padding: 64px 0;
  }

  .how-header h2,
  .features-header h2,
  .cta-banner h2 {
    font-size: 26px;
  }

  .cta-banner {
    padding: 60px 0;
  }

  .footer .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

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