/* GRUBBRR Homepage — black primary + multi-color accents. Font: Geist */
:root {
  --bg: #ffffff;
  --fg: #0C0F1A;
  --fg-2: #3A4260;
  --fg-3: #6B7591;
  --border: #E4E8F0;
  --border-2: #F1F3F8;
  /* Primary brand: black */
  --accent: #0C0F1A;
  --accent-ink: #000000;
  --accent-wash: #F1F3F8;
  --ink: #0C0F1A;
  --navy: #0A0E1A;

  /* Multi-color accent palette */
  --c-orange:  #E05C1A; --c-orange-wash: #FEF2EA;
  --c-blue:    #1A57E0; --c-blue-wash:   #EAF1FE;
  --c-green:   #118A3E; --c-green-wash:  #EAF9EF;
  --c-purple:  #6B3BD3; --c-purple-wash: #F2ECFE;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(12,15,26,0.04), 0 1px 1px rgba(12,15,26,0.03);
  --shadow-md: 0 6px 18px -6px rgba(12,15,26,0.08), 0 2px 4px rgba(12,15,26,0.04);
  --shadow-lg: 0 24px 48px -20px rgba(12,15,26,0.18), 0 4px 12px rgba(12,15,26,0.04);

  --container: 1240px;
  --nav-h: 68px;
  --announce-h: 40px;

  --ff-sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ff-mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: hidden; }
section[id] { scroll-margin-top: 84px; }
body {
  font-family: var(--ff-sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

/* Typography */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: #F1F3F8;
  color: #0C0F1A;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.eyebrow::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}

h1, h2, h3, h4 {
  font-family: var(--ff-sans);
  font-weight: 700;
  letter-spacing: -0.022em;
  color: var(--fg);
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -0.034em; font-weight: 800; }
h2 { font-size: clamp(32px, 3.8vw, 48px); line-height: 1.06; letter-spacing: -0.03em; font-weight: 800; }
h3 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; font-weight: 700; }
h4 { font-size: 17px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; color: var(--fg-2); }

.italic-accent { font-style: italic; color: var(--fg); font-weight: 800; position: relative; }
.italic-accent::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.05em;
  height: 0.18em;
  background: #FFE6B0;
  z-index: -1;
  border-radius: 2px;
}

.mono { font-family: var(--ff-mono); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 22px;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 10px 24px -10px rgba(12,15,26,0.55);
}
.btn-primary:hover { background: #000; }
.btn-outline {
  background: #fff;
  color: var(--fg);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--fg); }
.btn-accent-outline {
  background: #fff;
  color: var(--accent);
  border: 1.5px solid var(--accent);
}
.btn-accent-outline:hover { background: var(--accent); color: #fff; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 28px; font-size: 16px; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .06s; }
.reveal.d2 { transition-delay: .12s; }
.reveal.d3 { transition-delay: .18s; }
.reveal.d4 { transition-delay: .24s; }

/* Section spacing */
section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-hairline { border-top: 1px solid var(--border); }

/* Utility */
.kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fg-3);
}

/* Placeholder "image" box */
.placeholder {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  background:
    repeating-linear-gradient(135deg, #F6F7FB, #F6F7FB 8px, #EEF1F7 8px, #EEF1F7 9px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-3);
  font-family: var(--ff-mono);
  font-size: 11.5px;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.placeholder::after {
  content: attr(data-label);
  padding: 6px 10px;
  background: rgba(255,255,255,0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

/* Responsive */
@media (max-width: 860px) {
  .container { padding: 0 20px; }
  section { padding: 72px 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
}

/* Mobile navigation */
.nav-links { display: flex; align-items: center; gap: 2px; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-toggle {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  gap: 5px;
  flex-shrink: 0;
}
.nav-toggle-bar {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--fg);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle-bar.open:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle-bar.open:nth-child(2) { opacity: 0; }
.nav-toggle-bar.open:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.nav-mobile {
  display: none;
  grid-template-columns: 1fr;
  gap: 4px;
  padding: 0 0 16px;
  border-top: 1px solid var(--border);
  margin-top: -1px;
}
.nav-mobile a:not(.btn) {
  display: block;
  padding: 12px 14px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  color: var(--fg);
}
.nav-mobile a:not(.btn):hover { background: var(--border-2); }
.nav-mobile .btn { width: 100%; margin-top: 8px; }

/* Announcement bar */
.announce-bar {
  min-height: var(--announce-h);
  flex-wrap: wrap;
  text-align: center;
  line-height: 1.4;
}

/* Form rows */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

@media (max-width: 1100px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-cta { display: none; }
  .nav-mobile { display: grid; }
}

@media (max-width: 560px) {
  .container { padding: 0 16px; }
  section { padding: 56px 0; }
  h1 { font-size: clamp(32px, 9vw, 40px); }
  h2 { font-size: clamp(26px, 7vw, 30px); }
  .btn { white-space: normal; text-align: center; }
  .btn-lg { height: auto; min-height: 50px; padding: 14px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .announce-bar { padding: 10px 16px !important; font-size: 12px !important; gap: 8px !important; }
  .announce-text { flex: 1 1 100%; }
  .feat-mini-grid { grid-template-columns: 1fr !important; }
  .feat-stats-grid { grid-template-columns: 1fr !important; }
}

/* Video Modal */
.video-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: modal-fade-in .25s ease;
}
.video-modal {
  position: relative;
  background: #fff;
  border-radius: 20px;
  max-width: 480px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 24px;
  box-shadow: 0 24px 64px -16px rgba(0,0,0,0.3);
  animation: modal-scale-in .3s cubic-bezier(.2,.8,.2,1);
}
.video-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #F4F6FA;
  border: 1px solid var(--border);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--fg);
  transition: background .2s ease, transform .2s ease;
  z-index: 2;
}
.video-modal-close:hover {
  background: #EBEEF4;
  transform: scale(1.08);
}
.video-modal-content {
  display: flex;
  justify-content: center;
}
.video-modal-content .instagram-media {
  margin: 0 auto !important;
  min-width: 0 !important;
}
@keyframes modal-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-scale-in {
  from { opacity: 0; transform: scale(.9) translateY(10px); }
  to { opacity: 1; transform: none; }
}
