/* ================================================================
   INBOXFLOOD — DomainDingo-inspired dark design system v10
   ================================================================ */

@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Geist:wght@300;400;500;600;700&display=swap');

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

:root {
  /* Backgrounds */
  --bg:       #080810;
  --bg-1:     #0d0d18;
  --bg-2:     #12121f;
  --bg-3:     #181826;

  /* Text */
  --t-1:      #f0f0f8;
  --t-2:      #a0a0b8;
  --t-3:      #52526a;

  /* Accent — orange like DomainDingo */
  --acc:      #f97316;
  --acc-2:    #fb923c;
  --acc-dim:  rgba(249,115,22,0.12);
  --acc-glow: rgba(249,115,22,0.2);

  /* Borders */
  --b-1:      rgba(255,255,255,0.06);
  --b-2:      rgba(255,255,255,0.10);
  --b-3:      rgba(255,255,255,0.16);

  /* Status */
  --green:    #22c55e;
  --green-d:  rgba(34,197,94,0.10);
  --red:      #ef4444;
  --red-d:    rgba(239,68,68,0.10);
  --blue:     #6366f1;
  --blue-d:   rgba(99,102,241,0.10);

  --radius:   10px;
  --r-pill:   100px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--t-1);
  font-family: 'Geist', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Subtle noise texture */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 1000;
  pointer-events: none;
  opacity: 0.018;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

/* ── NAV ── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px;
  background: rgba(8,8,16,0.80);
  backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--b-1);
}
.nav-logo {
  font-family: 'Geist', sans-serif;
  font-size: 17px; font-weight: 700;
  color: var(--t-1); text-decoration: none;
  letter-spacing: -0.3px;
}
.nav-logo .dot { color: var(--acc); }
.nav-center { display: flex; align-items: center; gap: 2px; }
.nav-link {
  color: var(--t-2); text-decoration: none;
  font-size: 14px; font-weight: 400;
  padding: 6px 14px; border-radius: var(--r-pill);
  transition: color .15s, background .15s;
}
.nav-link:hover, .nav-link.active {
  color: var(--t-1); background: var(--b-1);
}
.nav-right { display: flex; align-items: center; gap: 8px; }
.nav-in {
  color: var(--t-2); text-decoration: none;
  font-size: 14px; padding: 6px 14px;
  border-radius: var(--r-pill);
  transition: color .15s;
}
.nav-in:hover { color: var(--t-1); }
.nav-cta {
  background: var(--acc); color: #fff;
  border: none; cursor: pointer;
  font-family: 'Geist', sans-serif;
  font-size: 14px; font-weight: 600;
  padding: 8px 20px; border-radius: var(--r-pill);
  text-decoration: none;
  transition: background .15s, box-shadow .15s;
  box-shadow: 0 0 20px var(--acc-glow);
}
.nav-cta:hover {
  background: var(--acc-2);
  box-shadow: 0 0 32px rgba(249,115,22,0.35);
}

/* ── HERO ── */
.hero {
  padding: 130px 40px 80px;
  text-align: center;
  position: relative; overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.07) 0%, transparent 65%);
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg-2); border: 1px solid var(--b-2);
  border-radius: var(--r-pill); padding: 5px 14px;
  font-size: 12px; font-weight: 500; color: var(--t-2);
  margin-bottom: 28px; letter-spacing: 0.02em;
}
.hero-kicker .live { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 2s infinite; flex-shrink: 0; }
@keyframes blink { 0%,100%{opacity:1;box-shadow:0 0 0 0 rgba(34,197,94,0.5)} 50%{opacity:.6;box-shadow:0 0 0 5px rgba(34,197,94,0)} }

.hero h1 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(42px, 6vw, 88px);
  font-weight: 700;
  line-height: 1.0;
  letter-spacing: -2px;
  max-width: 860px; margin: 0 auto 20px;
}
.hero h1 .serif {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -1px;
  color: var(--acc);
}
.hero-sub {
  font-size: 17px; color: var(--t-2);
  line-height: 1.7; max-width: 480px;
  margin: 0 auto 36px;
  font-weight: 300;
}
.hero-btns { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.hero-note { font-size: 12px; color: var(--t-3); margin-top: 14px; }

/* ── BUTTONS ── */
.btn-acc {
  background: var(--acc); color: #fff; border: none;
  font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 600;
  padding: 13px 28px; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 0 24px var(--acc-glow);
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-acc:hover { background: var(--acc-2); transform: translateY(-1px); box-shadow: 0 8px 32px rgba(249,115,22,0.35); }

.btn-ghost {
  background: transparent; color: var(--t-2);
  border: 1px solid var(--b-2);
  font-family: 'Geist', sans-serif; font-size: 15px; font-weight: 500;
  padding: 12px 24px; border-radius: var(--r-pill);
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  transition: border-color .15s, color .15s;
}
.btn-ghost:hover { border-color: var(--b-3); color: var(--t-1); }

/* ── DIVIDER ── */
.divider { height: 1px; background: var(--b-1); }

/* ── MARQUEE ── */
.marquee { overflow: hidden; padding: 16px 0; border-bottom: 1px solid var(--b-1); }
.marquee-inner { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.marquee-inner:hover { animation-play-state: paused; }
.m-item {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--bg-2); border: 1px solid var(--b-1);
  border-radius: var(--r-pill); padding: 6px 16px;
  font-size: 13px; color: var(--t-2); margin: 0 4px; white-space: nowrap;
}
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── STATS ROW ── */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--b-1);
}
.stat {
  padding: 32px 40px; border-right: 1px solid var(--b-1);
  text-align: center; transition: background .2s; cursor: default;
}
.stat:last-child { border-right: none; }
.stat:hover { background: var(--bg-1); }
.stat-n {
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-size: 48px;
  color: var(--acc); line-height: 1; margin-bottom: 4px;
}
.stat-l { font-size: 13px; color: var(--t-3); font-weight: 400; }

/* ── SECTION ── */
.section { padding: 80px 40px; border-bottom: 1px solid var(--b-1); }
.section.tinted { background: var(--bg-1); }
.container { max-width: 1100px; margin: 0 auto; }

.sec-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--acc);
  display: flex; align-items: center; gap: 8px; margin-bottom: 14px;
}
.sec-eyebrow::before { content: ''; width: 18px; height: 1px; background: var(--acc); }

.sec-h2 {
  font-family: 'Geist', sans-serif;
  font-size: clamp(30px, 3.5vw, 48px);
  font-weight: 700; letter-spacing: -1.5px;
  line-height: 1.08; margin-bottom: 12px;
}
.sec-h2 .serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--acc); letter-spacing: -0.5px; }

.sec-desc { font-size: 15px; color: var(--t-2); line-height: 1.8; max-width: 500px; margin-bottom: 48px; font-weight: 300; }

/* ── CARD GRID ── */
.grid { display: grid; gap: 1px; background: var(--b-1); border: 1px solid var(--b-1); border-radius: 14px; overflow: hidden; }
.grid.c2 { grid-template-columns: 1fr 1fr; }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--bg); padding: 36px;
  transition: background .18s; position: relative; overflow: hidden;
}
.section.tinted .card { background: var(--bg-1); }
.card:hover { background: var(--bg-2); }
.card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: linear-gradient(90deg, transparent, var(--acc-glow), transparent);
  opacity: 0; transition: opacity .25s;
}
.card:hover::after { opacity: 1; }

.card-num { font-family: 'Instrument Serif', serif; font-style: italic; font-size: 52px; color: rgba(255,255,255,0.04); position: absolute; top: 18px; right: 22px; line-height: 1; pointer-events: none; }
.card-icon { font-size: 22px; margin-bottom: 16px; display: block; }
.card-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--t-1); letter-spacing: -0.2px; }
.card-desc { font-size: 14px; color: var(--t-2); line-height: 1.75; margin-bottom: 14px; font-weight: 300; }
.card-list { list-style: none; }
.card-list li {
  font-size: 13px; color: var(--t-2); padding: 7px 0;
  border-bottom: 1px solid var(--b-1);
  display: flex; align-items: flex-start; gap: 9px; line-height: 1.5;
}
.card-list li:last-child { border-bottom: none; }
.card-list li::before { content: '–'; color: var(--acc); font-size: 12px; flex-shrink: 0; margin-top: 2px; }

/* ── STEPS ── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--b-1); border: 1px solid var(--b-1); border-radius: 14px; overflow: hidden; }
.step { background: var(--bg); padding: 36px 32px; transition: background .18s; position: relative; overflow: hidden; }
.section.tinted .step { background: var(--bg-1); }
.step:hover { background: var(--bg-2); }
.step-n { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-3); margin-bottom: 16px; }
.step-title { font-size: 17px; font-weight: 600; color: var(--t-1); margin-bottom: 8px; letter-spacing: -0.2px; }
.step-desc { font-size: 14px; color: var(--t-2); line-height: 1.7; font-weight: 300; }
.step::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.step:hover::before { transform: scaleX(1); }

/* ── CTA BAND ── */
.cta-band {
  padding: 100px 40px; text-align: center;
  background: var(--bg-1); position: relative; overflow: hidden;
}
.cta-band::before {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 600px; height: 400px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.cta-h { font-size: clamp(32px, 4vw, 56px); font-weight: 700; letter-spacing: -1.5px; margin-bottom: 12px; position: relative; }
.cta-h .serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--acc); }
.cta-p { font-size: 16px; color: var(--t-2); margin-bottom: 32px; position: relative; font-weight: 300; }

/* ── FOOTER ── */
.footer { padding: 56px 40px 0; border-top: 1px solid var(--b-1); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-logo { font-size: 17px; font-weight: 700; color: var(--t-1); text-decoration: none; margin-bottom: 10px; display: block; letter-spacing: -0.3px; }
.footer-logo .dot { color: var(--acc); }
.footer-tag { font-size: 13px; color: var(--t-3); line-height: 1.6; max-width: 200px; font-weight: 300; }
.footer-col h5 { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--t-3); margin-bottom: 14px; }
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--t-2); text-decoration: none; font-size: 14px; font-weight: 300; transition: color .15s; }
.footer-col a:hover { color: var(--t-1); }
.footer-bottom { padding: 20px 0; border-top: 1px solid var(--b-1); display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--t-3); flex-wrap: wrap; gap: 8px; }

/* ── PAGE HERO (sub-pages) ── */
.page-hero {
  padding: 120px 40px 64px;
  border-bottom: 1px solid var(--b-1);
  position: relative; overflow: hidden;
}
.page-hero::before {
  content: ''; position: absolute; top: -80px; left: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(ellipse, rgba(249,115,22,0.06) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero-tag { font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
.page-hero h1 { font-size: clamp(36px, 4.5vw, 64px); font-weight: 700; letter-spacing: -2px; line-height: 1.05; max-width: 700px; margin-bottom: 16px; }
.page-hero h1 .serif { font-family: 'Instrument Serif', serif; font-style: italic; font-weight: 400; color: var(--acc); letter-spacing: -1px; }
.page-hero p { font-size: 16px; color: var(--t-2); max-width: 500px; line-height: 1.75; font-weight: 300; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .nav { padding: 0 20px; }
  .nav-center { display: none; }
  .section { padding: 56px 20px; }
  .hero { padding: 100px 20px 56px; }
  .page-hero { padding: 90px 20px 48px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3) { border-top: 1px solid var(--b-1); }
  .grid.c2, .grid.c3, .grid.c4 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer { padding: 40px 20px 0; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .cta-band { padding: 64px 20px; }
}
@media (max-width: 500px) {
  .hero h1 { font-size: 38px; letter-spacing: -1px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
}
