/* Bakery District Landing — palette from app Assets/Colors */

:root {
  --oven-dark: #1E1612;
  --oven-mid: #2A1F18;
  --crust-brown: #3D2B1F;
  --crust-light: #5C4030;
  --honey-gold: #E8A838;
  --honey-light: #F5C563;
  --copper-oven: #B87333;
  --dough-cream: #FFF8EE;
  --bread-warm: #F5E6D3;
  --flour-mist: #D7CCC8;
  --fresh-green: #4CAF50;
  --berry-accent: #C45B7A;

  --font-body: "Outfit", system-ui, sans-serif;
  --font-display: "Fraunces", Georgia, serif;
  --radius: 22px;
  --radius-sm: 14px;
  --shadow: 0 28px 64px rgba(0, 0, 0, 0.48);
  --transition: 0.38s cubic-bezier(0.33, 1, 0.68, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  font-family: var(--font-body);
  background: var(--oven-dark);
  color: var(--bread-warm);
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }

a { color: var(--honey-light); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--dough-cream); }

/* Background */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("assets/bg-hero.png") center / cover no-repeat,
    linear-gradient(155deg, var(--oven-dark) 0%, var(--oven-mid) 40%, var(--crust-brown) 100%);
}

.page-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(30, 22, 18, 0.72) 0%,
    rgba(30, 22, 18, 0.88) 55%,
    rgba(30, 22, 18, 0.96) 100%
  );
}

.flour-dust {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 238, 0.07) 0%, transparent 68%);
  animation: drift-flour 10s ease-in-out infinite;
  pointer-events: none;
}
.flour-1 { top: 12%; left: 6%; width: 140px; height: 140px; }
.flour-2 { top: 55%; right: 8%; width: 180px; height: 180px; animation-delay: -3.5s; }
.flour-3 { bottom: 8%; left: 28%; width: 100px; height: 100px; animation-delay: -6s; }

@keyframes drift-flour {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.45; }
  50% { transform: translateY(-20px) scale(1.06); opacity: 0.75; }
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(30, 22, 18, 0.84);
  border-bottom: 1px solid rgba(232, 168, 56, 0.18);
}

.nav {
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--dough-cream);
}

.nav-brand img {
  border-radius: 10px;
  box-shadow: 0 4px 16px rgba(232, 168, 56, 0.25);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 8px;
}

.nav-links a {
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--flour-mist);
  transition: background var(--transition), color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--dough-cream);
  background: rgba(232, 168, 56, 0.14);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--honey-gold);
  border-radius: 2px;
  transition: var(--transition);
}

/* Hero */
.hero {
  padding: 72px 24px 48px;
}

.hero-inner {
  max-width: 1160px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--honey-gold);
  margin-bottom: 14px;
}

.hero-copy h1 {
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  color: var(--dough-cream);
  margin-bottom: 20px;
}

.hero-copy h1 em {
  font-style: normal;
  color: var(--honey-light);
}

.hero-lead {
  font-size: 1.08rem;
  color: var(--flour-mist);
  max-width: 520px;
  margin-bottom: 28px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition);
}

.btn-primary {
  background: linear-gradient(135deg, var(--honey-gold), var(--copper-oven));
  color: var(--oven-dark);
  box-shadow: 0 8px 28px rgba(232, 168, 56, 0.35);
}

.btn-primary:hover {
  color: var(--oven-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 36px rgba(232, 168, 56, 0.45);
}

.btn-ghost {
  border: 1.5px solid rgba(232, 168, 56, 0.45);
  color: var(--honey-light);
}

.btn-ghost:hover {
  background: rgba(232, 168, 56, 0.1);
  color: var(--dough-cream);
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-chip {
  background: rgba(61, 43, 31, 0.65);
  border: 1px solid rgba(232, 168, 56, 0.22);
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  min-width: 90px;
}

.stat-chip strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--honey-light);
  line-height: 1.1;
}

.stat-chip span {
  font-size: 0.78rem;
  color: var(--flour-mist);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Hero visual */
.hero-showcase {
  position: relative;
  width: min(380px, 100%);
  margin: 0 auto;
  aspect-ratio: 1;
}

.hero-app-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 42%;
  border-radius: 22%;
  box-shadow: var(--shadow), 0 0 60px rgba(232, 168, 56, 0.2);
  animation: pulse-glow 4s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: var(--shadow), 0 0 40px rgba(232, 168, 56, 0.15); }
  50% { box-shadow: var(--shadow), 0 0 80px rgba(232, 168, 56, 0.35); }
}

.orbit-ring {
  position: absolute;
  inset: 0;
  animation: spin-slow 28s linear infinite;
}

.orbit-item {
  position: absolute;
  width: 22%;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.4));
}

.orbit-a { top: 0; left: 50%; transform: translateX(-50%); }
.orbit-b { bottom: 8%; right: 0; }
.orbit-c { bottom: 8%; left: 0; }
.orbit-d { top: 38%; right: -2%; width: 18%; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orbit-item {
  animation: counter-spin 28s linear infinite;
}

@keyframes counter-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

.orbit-a { top: 0; left: 50%; margin-left: -11%; animation: counter-spin 28s linear infinite; }
.orbit-b { bottom: 8%; right: 0; animation: counter-spin 28s linear infinite; }
.orbit-c { bottom: 8%; left: 0; animation: counter-spin 28s linear infinite; }
.orbit-d { top: 38%; right: -2%; animation: counter-spin 28s linear infinite; }

/* Story strip */
.story-strip {
  padding: 0 24px 56px;
  overflow: hidden;
}

.story-track {
  max-width: 960px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.story-card {
  background: rgba(61, 43, 31, 0.55);
  border: 1px solid rgba(232, 168, 56, 0.18);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  transition: transform var(--transition), border-color var(--transition);
}

.story-card:hover {
  transform: translateY(-6px);
  border-color: rgba(232, 168, 56, 0.4);
}

.story-card img {
  width: 100%;
  max-height: 180px;
  object-fit: contain;
  margin-bottom: 12px;
}

.story-card figcaption {
  font-weight: 600;
  color: var(--honey-light);
  font-size: 0.95rem;
}

/* Features */
.features {
  padding: 56px 24px 72px;
  max-width: 1160px;
  margin: 0 auto;
}

.section-head {
  text-align: center;
  margin-bottom: 44px;
}

.section-head-left {
  text-align: left;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  color: var(--dough-cream);
  margin-bottom: 12px;
}

.section-lead {
  color: var(--flour-mist);
  max-width: 560px;
  margin: 0 auto;
}

.section-head-left .section-lead { margin: 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.feature-card {
  background: linear-gradient(145deg, rgba(61, 43, 31, 0.7), rgba(42, 31, 24, 0.85));
  border: 1px solid rgba(232, 168, 56, 0.16);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 168, 56, 0.38);
}

.feature-icon-wrap {
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-icon-wrap img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--dough-cream);
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.92rem;
  color: var(--flour-mist);
}

.pipeline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 4px;
  padding: 20px 24px;
  background: rgba(30, 22, 18, 0.6);
  border: 1px dashed rgba(232, 168, 56, 0.28);
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--honey-light);
  letter-spacing: 0.04em;
}

.pipe-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--honey-gold);
  opacity: 0.7;
}

/* Legal */
.legal {
  padding: 72px 24px;
  background: rgba(30, 22, 18, 0.55);
  border-top: 1px solid rgba(232, 168, 56, 0.12);
}

.legal-inner {
  max-width: 860px;
  margin: 0 auto;
}

.legal-body {
  background: rgba(61, 43, 31, 0.45);
  border: 1px solid rgba(232, 168, 56, 0.14);
  border-radius: var(--radius);
  padding: 32px 36px;
}

.legal-body h3 {
  font-family: var(--font-display);
  color: var(--honey-light);
  font-size: 1.15rem;
  margin: 28px 0 10px;
}

.legal-body h3:first-of-type { margin-top: 0; }

.legal-body p,
.legal-body li {
  color: var(--flour-mist);
  font-size: 0.95rem;
}

.legal-body ul {
  padding-left: 22px;
  margin: 10px 0;
}

.legal-body li { margin-bottom: 8px; }

.legal-body li strong { color: var(--bread-warm); }

/* Support */
.support {
  padding: 72px 24px 96px;
}

.support-inner {
  max-width: 1160px;
  margin: 0 auto;
}

.support-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 20px;
}

.support-card {
  background: rgba(61, 43, 31, 0.55);
  border: 1px solid rgba(232, 168, 56, 0.16);
  border-radius: var(--radius);
  padding: 28px;
}

.support-card h3 {
  font-family: var(--font-display);
  color: var(--dough-cream);
  margin-bottom: 14px;
  font-size: 1.2rem;
}

.support-card p {
  color: var(--flour-mist);
  font-size: 0.94rem;
  margin-bottom: 10px;
}

.support-email {
  display: inline-block;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--honey-light);
  margin: 8px 0 12px;
}

.support-note {
  font-size: 0.85rem !important;
  opacity: 0.75;
}

.faq-item {
  border-bottom: 1px solid rgba(232, 168, 56, 0.12);
  padding: 12px 0;
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--bread-warm);
  list-style: none;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  margin-top: 8px;
  font-size: 0.88rem;
}

.info-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(232, 168, 56, 0.1);
  font-size: 0.9rem;
}

.info-list dt {
  color: var(--flour-mist);
  font-weight: 500;
}

.info-list dd {
  color: var(--dough-cream);
  font-weight: 600;
  text-align: right;
}

/* Footer */
.site-footer {
  border-top: 1px solid rgba(232, 168, 56, 0.14);
  padding: 32px 24px;
  background: rgba(20, 14, 10, 0.92);
}

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

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

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

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a {
  font-size: 0.9rem;
  color: var(--flour-mist);
}

.footer-copy {
  width: 100%;
  text-align: center;
  font-size: 0.82rem;
  color: rgba(215, 204, 200, 0.55);
  margin-top: 8px;
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s var(--transition), transform 0.65s var(--transition);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-stats { justify-content: center; }

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

  .story-track {
    grid-template-columns: 1fr;
    max-width: 320px;
  }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }

  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    background: rgba(30, 22, 18, 0.97);
    padding: 16px 24px 24px;
    border-bottom: 1px solid rgba(232, 168, 56, 0.18);
    display: none;
  }

  .nav-links.open { display: flex; }

  .nav { position: relative; flex-wrap: wrap; }

  .pipeline {
    border-radius: var(--radius);
    font-size: 0.78rem;
  }

  .legal-body { padding: 24px 20px; }
}
