/* nibblify.css — Nibblify Global Design System */

:root {
  --bg-deep: #080E1A;
  --bg-card: #0F172A;
  --surface: #1E293B;
  --brand-orange: #F97316;
  --brand-red: #DC2626;
  --brand-gradient: linear-gradient(135deg, #F97316, #DC2626);
  --text-primary: #ffffff;
  --text-secondary: #CBD5E1;
  --text-muted: #94A3B8;
  --border: rgba(255,255,255,0.07);
  --border-brand: rgba(249,115,22,0.25);
  --shadow-glow: 0 0 24px rgba(249,115,22,0.25);
}

*, *::before, *::after { box-sizing: border-box; }
body { background-color: var(--bg-deep); color: var(--text-secondary); font-family: 'Plus Jakarta Sans', sans-serif; -webkit-font-smoothing: antialiased; margin: 0; }
h1,h2,h3,h4 { font-family: 'Outfit', sans-serif; color: var(--text-primary); margin: 0; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
p { margin: 0; }

/* TYPOGRAPHY */
.nib-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 3px; text-transform: uppercase; color: var(--brand-orange); display: block; margin-bottom: 12px; }
.nib-h1 { font-family: 'Outfit', sans-serif; font-weight: 900; font-size: clamp(38px, 6vw, 72px); letter-spacing: -2px; line-height: 1.05; color: var(--text-primary); }
.nib-h2 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: clamp(28px, 4vw, 42px); letter-spacing: -1px; line-height: 1.1; color: var(--text-primary); }
.nib-h3 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; line-height: 1.2; color: var(--text-primary); }
.nib-gradient-text { background: var(--brand-gradient); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* LAYOUT */
.nib-section { padding: 80px 32px; max-width: 1200px; margin: 0 auto; }
.nib-container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.nib-glow-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(249,115,22,0.35), transparent); border: none; margin: 0; }

/* NAV */
.nib-nav { position: sticky; top: 0; z-index: 100; background: rgba(6,11,22,0.88); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); }
.nib-nav-inner { max-width: 1200px; margin: 0 auto; padding: 0 32px; display: flex; justify-content: space-between; align-items: center; height: 64px; }
.nib-nav-logo { display: flex; align-items: center; gap: 10px; }
.nib-nav-dot { width: 10px; height: 10px; background: var(--brand-orange); border-radius: 50%; flex-shrink: 0; }
.nib-nav-logo-img { height: 30px; width: auto; flex-shrink: 0; border-radius: 7px; }
.nib-nav-wordmark { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 18px; color: var(--text-primary); letter-spacing: -0.5px; }
.nib-nav-links { display: flex; align-items: center; gap: 28px; }
.nib-nav-link { font-size: 13px; font-weight: 500; color: var(--text-muted); transition: color 0.2s; }
.nib-nav-link:hover { color: var(--text-secondary); }
.nib-nav-actions { display: flex; align-items: center; gap: 12px; }
.nib-nav-cta { background: var(--brand-gradient); color: #fff; padding: 9px 20px; border-radius: 8px; font-size: 13px; font-weight: 700; box-shadow: 0 0 18px rgba(249,115,22,0.28); transition: opacity 0.2s, transform 0.2s; }
.nib-nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }
.nib-hamburger { display: none; background: none; border: none; color: var(--text-secondary); font-size: 22px; cursor: pointer; padding: 4px; }

/* DROPDOWN */
.nib-dropdown-wrapper { position: relative; }
.nib-dropdown-trigger { font-size: 13px; font-weight: 500; color: var(--text-muted); cursor: pointer; display: flex; align-items: center; gap: 5px; user-select: none; transition: color 0.2s; }
.nib-dropdown-trigger:hover, .nib-dropdown-trigger.active { color: var(--text-primary); }
.nib-dropdown-panel { position: absolute; top: calc(100% + 20px); left: 50%; transform: translateX(-50%); background: #111827; border: 1px solid var(--border); border-radius: 14px; padding: 12px; display: none; grid-template-columns: repeat(3,1fr); gap: 8px; min-width: 460px; box-shadow: 0 24px 48px rgba(0,0,0,0.5); z-index: 200; }
.nib-dropdown-panel.open { display: grid; }
.nib-dropdown-item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); background: rgba(255,255,255,0.02); transition: background 0.2s, border-color 0.2s; }
.nib-dropdown-item:hover { background: rgba(249,115,22,0.07); border-color: var(--border-brand); }
.nib-dropdown-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; background: rgba(255,255,255,0.04); border: 1px solid var(--border); }
.nib-dropdown-icon.food { background: linear-gradient(135deg,rgba(249,115,22,0.18),rgba(220,38,38,0.12)); border-color: rgba(249,115,22,0.28); }
.nib-dropdown-text h4 { font-size: 12px; font-weight: 700; color: var(--text-primary); font-family: 'Plus Jakarta Sans',sans-serif; margin: 0 0 2px; }
.nib-dropdown-text p { font-size: 11px; color: var(--text-muted); margin: 0; }

/* MOBILE MENU */
.nib-mobile-menu { display: none; flex-direction: column; background: #0a1020; border-top: 1px solid var(--border); padding: 16px 24px 24px; gap: 4px; }
.nib-mobile-menu.open { display: flex; }
.nib-mobile-link { padding: 12px 0; font-size: 15px; font-weight: 500; color: var(--text-secondary); border-bottom: 1px solid var(--border); display: block; }
.nib-mobile-cta { display: block; text-align: center; background: var(--brand-gradient); color: #fff; padding: 14px; border-radius: 10px; font-weight: 700; font-size: 15px; margin-top: 12px; }

/* HERO */
.nib-hero { position: relative; overflow: hidden; padding: 100px 32px 80px; }
.nib-hero-glow { position: absolute; border-radius: 50%; pointer-events: none; }
.nib-hero-glow-top { top: -120px; left: 50%; transform: translateX(-50%); width: 700px; height: 600px; background: radial-gradient(circle, rgba(249,115,22,0.1) 0%, transparent 65%); }
.nib-hero-glow-right { top: -100px; right: -150px; width: 500px; height: 500px; background: radial-gradient(circle, rgba(220,38,38,0.07) 0%, transparent 65%); }

/* PILL / BADGE */
.nib-pill { display: inline-flex; align-items: center; gap: 8px; background: rgba(249,115,22,0.1); border: 1px solid var(--border-brand); padding: 6px 16px; border-radius: 100px; font-size: 12px; font-weight: 700; color: var(--brand-orange); letter-spacing: 0.5px; }
.nib-pill-dot { width: 6px; height: 6px; background: var(--brand-orange); border-radius: 50%; }

/* BUTTONS */
.nib-btn-primary { display: inline-flex; align-items: center; gap: 8px; background: var(--brand-gradient); color: #fff; padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 700; box-shadow: var(--shadow-glow); border: none; cursor: pointer; transition: opacity 0.2s, transform 0.2s; }
.nib-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); }
.nib-btn-ghost { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,0.04); color: var(--text-secondary); border: 1px solid var(--border); padding: 12px 24px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.nib-btn-ghost:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); }
.nib-store-btn { display: inline-flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid rgba(255,255,255,0.09); border-radius: 12px; padding: 10px 18px; color: var(--text-primary); transition: background 0.2s, transform 0.2s; }
.nib-store-btn:hover { background: #283548; transform: translateY(-1px); }
.nib-store-btn-icon { font-size: 22px; }
.nib-store-btn-sub { font-size: 9px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.5px; text-transform: uppercase; display: block; }
.nib-store-btn-name { font-size: 14px; font-weight: 700; line-height: 1.2; display: block; }

/* CARDS */
.nib-card { background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 18px; padding: 28px; transition: border-color 0.25s, box-shadow 0.25s, transform 0.25s; }
.nib-card:hover { border-color: var(--border-brand); box-shadow: 0 16px 40px rgba(0,0,0,0.3), 0 0 28px rgba(249,115,22,0.07); transform: translateY(-3px); }
.nib-card-glow { background: rgba(249,115,22,0.05); border: 1px solid var(--border-brand); border-radius: 18px; padding: 28px; box-shadow: 0 0 32px rgba(249,115,22,0.07); }
.nib-card-glass { background: rgba(255,255,255,0.05); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; padding: 28px; }

/* PHONE FRAME */
.nib-phone { border: 10px solid var(--surface); border-radius: 36px; overflow: hidden; box-shadow: 0 32px 64px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.05); background: #000; }

/* STATS BAR */
.nib-stats-bar { display: flex; overflow: hidden; background: rgba(255,255,255,0.03); border: 1px solid var(--border); border-radius: 16px; }
.nib-stat { flex: 1; padding: 22px 20px; text-align: center; border-right: 1px solid var(--border); }
.nib-stat:last-child { border-right: none; }
.nib-stat-value { font-family: 'Outfit',sans-serif; font-size: 28px; font-weight: 800; color: var(--text-primary); margin-bottom: 4px; }
.nib-stat-label { font-size: 11px; color: var(--text-muted); font-weight: 600; }

/* FOOTER */
.nib-footer { background: var(--bg-deep); border-top: 1px solid var(--border); padding: 60px 32px 28px; }
.nib-footer-inner { max-width: 1200px; margin: 0 auto; }
.nib-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.nib-footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-top: 16px; max-width: 240px; }
.nib-footer-col h4 { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 11px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 16px; }
.nib-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.nib-footer-col ul li a { font-size: 13px; color: var(--text-muted); transition: color 0.2s; }
.nib-footer-col ul li a:hover { color: var(--brand-orange); }
.nib-footer-bottom { border-top: 1px solid var(--border); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; }
.nib-footer-copy { font-size: 12px; color: #64748B; }
.nib-socials { display: flex; gap: 8px; }
.nib-social-btn { width: 34px; height: 34px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); font-size: 14px; transition: background 0.2s, color 0.2s, border-color 0.2s; }
.nib-social-btn:hover { background: rgba(249,115,22,0.1); border-color: var(--border-brand); color: var(--brand-orange); }

/* ANIMATIONS */
@keyframes nib-pulse { 0%,100% { box-shadow: 0 0 6px rgba(249,115,22,0.5); } 50% { box-shadow: 0 0 14px rgba(249,115,22,0.9); } }
.nib-nav-dot { animation: nib-pulse 2.5s ease-in-out infinite; }
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.stagger-child:nth-child(1) { transition-delay: 0ms; }
.stagger-child:nth-child(2) { transition-delay: 70ms; }
.stagger-child:nth-child(3) { transition-delay: 140ms; }
.stagger-child:nth-child(4) { transition-delay: 210ms; }
.stagger-child:nth-child(5) { transition-delay: 280ms; }
.stagger-child:nth-child(6) { transition-delay: 350ms; }
@media (prefers-reduced-motion: reduce) { .fade-up { opacity: 1; transform: none; transition: none; } }

/* RESPONSIVE */
@media (max-width: 1024px) {
  .nib-footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .nib-footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 768px) {
  .nib-nav-links, .nib-nav-actions .nib-nav-cta { display: none; }
  .nib-hamburger { display: block; }
  .nib-hero { padding: 72px 20px 56px; }
  .nib-section { padding: 56px 20px; }
  .nib-container { padding: 0 20px; }
  .nib-stats-bar { flex-wrap: wrap; }
  .nib-stat { min-width: 50%; border-right: none; border-bottom: 1px solid var(--border); }
  .nib-stat:nth-child(odd) { border-right: 1px solid var(--border); }
  .nib-footer-grid { grid-template-columns: 1fr; }
  .nib-dropdown-panel { min-width: 280px; grid-template-columns: 1fr; }
}

/* Self-hosted fonts — replaces Google Fonts CDN */
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin-700.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('fonts/outfit-latin-900.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/outfit-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/outfit-latin-ext-700.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-latin-400.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/plus-jakarta-latin-600.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-latin-ext-400.woff2') format('woff2');
  unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/plus-jakarta-cyrillic-ext-400.woff2') format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
