/* Brainstamped.com — Light Theme v3 */
:root {
  --bg: #FAFAF7;
  --bg-card: #FFFFFF;
  --bg-elevated: #F0EDE8;
  --primary: #2D6A4F;
  --primary-light: #40916C;
  --primary-glow: rgba(45,106,79,0.08);
  --accent: #D4A24E;
  --accent-glow: rgba(212,162,78,0.08);
  --text: #1A1A2E;
  --text-muted: #6B7280;
  --text-dim: #9CA3AF;
  --border: rgba(0,0,0,0.08);
  --radius: 12px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Merriweather', Georgia, serif;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
img { max-width: 100%; display: block; }
a { color: inherit; }

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.nav.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,0.06); }
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}
.logo-img {
  height: 52px;
  width: auto;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--text);
  letter-spacing: -0.3px;
}
.logo-tagline {
  font-family: var(--font);
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 500;
  letter-spacing: 0.5px;
  margin-top: -2px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text); }
.nav-cta {
  background: var(--primary) !important;
  color: #fff !important;
  padding: 9px 22px;
  border-radius: 8px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}
.nav-cta:hover {
  background: var(--primary-light) !important;
  transform: translateY(-1px);
}

/* Hamburger */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
  z-index: 110;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px auto;
  transition: transform 0.3s, opacity 0.3s;
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.25s;
  font-family: var(--font);
}
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 2px 12px rgba(45,106,79,0.2);
}
.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(45,106,79,0.25);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 2px 12px rgba(212,162,78,0.2);
}
.btn-accent:hover {
  background: #c49340;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(212,162,78,0.25);
}
.btn-smart {
  background: #5B8DEF;
  color: #fff;
  box-shadow: 0 2px 12px rgba(91,141,239,0.2);
}
.btn-smart:hover {
  background: #4A7DE0;
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(91,141,239,0.25);
}
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.btn-lg { padding: 16px 40px; font-size: 1.05rem; }

/* ============================================
   HERO
   ============================================ */
.hero {
  padding: 140px 24px 80px;
  text-align: center;
  background: var(--bg);
}
.hero-content {
  max-width: 720px;
  margin: 0 auto;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.25;
  margin-bottom: 20px;
  color: var(--text);
  font-weight: 900;
}
.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.hero-cta-row {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.hero-trust {
  font-size: 0.85rem;
  color: var(--text-dim);
}

/* ============================================
   SECTIONS — shared
   ============================================ */
section { padding: 80px 0; }
.section-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 2.5px;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.1rem);
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
  line-height: 1.3;
}
.section-sub {
  font-size: 1rem;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-center { text-align: center; }
.section-center .section-sub { margin: 0 auto; }

/* ============================================
   HOW IT WORKS — 3 steps
   ============================================ */
.steps-row {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 48px;
}
.step-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  flex: 1;
  max-width: 300px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.step-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-glow);
  border: 1.5px solid rgba(45,106,79,0.15);
}
.step-card h3 {
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}
.step-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}
.step-connector {
  width: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.4;
}

/* ============================================
   FEATURED SCAN CARDS
   ============================================ */
.scan-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  margin-top: 48px;
}
.scan-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.scan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.07);
}
.scan-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  padding: 12px;
}
.scan-card-icon svg { width: 100%; height: 100%; }
.scan-card--emergency .scan-card-icon {
  background: var(--primary-glow);
  color: var(--primary);
}
.scan-card--edible .scan-card-icon {
  background: var(--accent-glow);
  color: var(--accent);
}
.scan-card--smart .scan-card-icon {
  background: rgba(91,141,239,0.08);
  color: #5B8DEF;
}
.scan-card h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--text);
  margin-bottom: 12px;
  font-weight: 700;
}
.scan-card p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.scan-card-tags {
  font-size: 0.8rem;
  color: var(--text-dim);
  margin-bottom: 24px;
  letter-spacing: 0.3px;
}
.scan-card .btn { margin-top: auto; align-self: flex-start; }

/* ============================================
   VALUE PROPS
   ============================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.value {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
}
.value:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.05);
}
.value-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 14px;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-glow);
  border-radius: 12px;
  padding: 10px;
}
.value-icon svg { width: 100%; height: 100%; }
.value h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 8px;
  font-weight: 700;
}
.value p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================
   BLOG PREVIEW CARDS
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.blog-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
.blog-card h3 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--text);
  margin-bottom: 10px;
  font-weight: 700;
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 16px;
  flex: 1;
}
.blog-card-link {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}
.blog-card:hover .blog-card-link { color: var(--primary-light); }

/* ============================================
   COMING SOON
   ============================================ */
.coming-soon { background: var(--bg-elevated); }
.coming-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
  margin-bottom: 32px;
}
.coming-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 16px;
  text-align: center;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.coming-item:hover {
  opacity: 1;
}
.coming-item h4 {
  font-family: var(--font-display);
  font-size: 0.9rem;
  color: var(--text-muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.coming-item span {
  font-size: 0.78rem;
  color: var(--text-dim);
  font-weight: 500;
  letter-spacing: 0;
}
.coming-note {
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
}

/* ============================================
   EMAIL CAPTURE
   ============================================ */
.email-section {
  background: var(--bg-card);
  text-align: center;
}
.email-section .section-sub {
  margin: 0 auto 32px;
}
.email-form {
  display: flex;
  gap: 12px;
  max-width: 460px;
  margin: 0 auto;
}
.email-form input[type="email"] {
  flex: 1;
  padding: 14px 18px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
}
.email-form input[type="email"]:focus {
  border-color: var(--primary);
}
.email-form input[type="email"]::placeholder {
  color: var(--text-dim);
}
.email-form button {
  padding: 14px 28px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: var(--font);
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.email-form button:hover { background: var(--primary-light); }

/* ============================================
   FOOTER
   ============================================ */
footer {
  padding: 48px 0;
  border-top: 1px solid var(--border);
  text-align: center;
  background: var(--bg);
}
.footer-brand { margin-bottom: 20px; }
.footer-logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--text);
  margin-bottom: 6px;
}
.footer-slogan {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 500;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
footer a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}
footer a:hover { color: var(--text); }
.footer-copy {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .values-grid { grid-template-columns: repeat(2, 1fr); }
  .coming-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .hamburger { display: block; }

  .nav-inner { padding: 10px 16px; }
  .logo-img { height: auto; width: 200px; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(12px);
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    z-index: 105;
  }
  .nav-links.open { display: flex; }
  .nav-links a { font-size: 1.2rem; color: var(--text); }

  .hero { padding: 100px 16px 48px; }
  .hero h1 { font-size: 1.6rem; line-height: 1.3; }
  .hero-sub { font-size: 0.95rem; margin-bottom: 24px; }
  .hero-cta-row { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-cta-row .btn { width: 100%; text-align: center; padding: 14px 20px; font-size: 0.95rem; }

  section { padding: 48px 0; }
  .container { padding: 0 16px; }
  .section-title { font-size: 1.4rem; }

  .scan-cards { grid-template-columns: 1fr; gap: 16px; }
  .scan-card { padding: 24px 20px; }
  .scan-card h3 { font-size: 1.1rem; }

  .blog-grid { grid-template-columns: 1fr; gap: 16px; }
  .blog-card { padding: 20px 16px; }
  .blog-card h3 { font-size: 0.95rem; }

  .values-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .value { padding: 20px 16px; }
  .value h3 { font-size: 0.85rem; }
  .value p { font-size: 0.8rem; }

  .coming-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .coming-item { padding: 16px 12px; }

  .steps-row { flex-direction: column; gap: 12px; }
  .step-connector { transform: rotate(90deg); width: 32px; height: 24px; }
  .step-card { max-width: 100%; padding: 24px 20px; }

  .email-form { flex-direction: column; }
  .email-form button { width: 100%; }

  .btn-lg { padding: 14px 24px; font-size: 0.95rem; }
}

@media (max-width: 400px) {
  .hero h1 { font-size: 1.4rem; }
  .hero { padding: 88px 12px 40px; }
  .container { padding: 0 12px; }
  .values-grid { grid-template-columns: 1fr; }
  .coming-grid { grid-template-columns: 1fr; }
  .scan-card { padding: 20px 16px; }
}
