/* ─────────────────────────────────────────────────────────
   Nano Web — Shared styles
   Nav (mega menu), footer, base resets, animations
   ───────────────────────────────────────────────────────── */

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

:root {
  --bg: #ffffff;
  --ink: #0a0a0a;
  --ink-2: #3a3a3a;
  --muted: #8a8a8a;
  --line: rgba(10,10,10,.08);
  --line-strong: rgba(10,10,10,.12);
  --cream: #e8e0d0;
  --cream-soft: #efe9dc;
  --accent: #f5d033;
  --serif: 'Instrument Serif', 'Times New Roman', serif;
  --sans: 'Manrope', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  font-size: 15px; line-height: 1.5;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }

/* ───── buttons ───── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 16px; border-radius: 6px;
  font-weight: 500; font-size: 15px; font-family: var(--sans);
  border: 1px solid transparent; cursor: pointer;
  background: var(--ink); color: #fff;
  transition: transform .15s ease, background .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn.light { background: #fff; color: var(--ink); border: 1px solid var(--line-strong); }
.btn.pill {
  background: rgba(255,255,255,.95); color: var(--ink);
  border-radius: 999px; padding: 9px 18px;
}
.btn.pill::before {
  content: ""; width: 18px; height: 18px; border-radius: 50%;
  background: var(--accent); display: inline-block; margin-right: 2px;
}
.btn.accent { background: var(--accent); color: var(--ink); border-color: var(--accent); }

/* ───── eyebrow ───── */
.eyebrow {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 32px; font-weight: 500;
}

/* ───── nav ───── */
.nav {
  position: sticky; top: 12px; z-index: 100;
  padding: 0 20px; margin: 12px auto 0;
}
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  width: fit-content; margin: 0 auto;
  background: rgba(255,255,255,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-radius: 999px; padding: 10px 10px 10px 20px;
  border: 1px solid var(--line);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,.08);
}
.nav.nav--hero {
  position: absolute; top: 12px; left: 0; right: 0;
}
.nav.nav--hero .nav-inner {
  background: rgba(255,255,255,.08); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-color: rgba(255,255,255,.1); color: #fff;
  box-shadow: 0 4px 24px -8px rgba(0,0,0,.2);
}
.nav.nav--hero .nav-links a { color: rgba(255,255,255,.85); }
.nav.nav--hero .nav-links a:hover { color: #fff; }
.nav.nav--hero .mega-trigger { color: rgba(255,255,255,.85); }
.nav.nav--hero .mega-trigger:hover { color: #fff; }
.nav .btn { border-radius: 999px; padding: 8px 18px; }
.brand {
  display: flex; align-items: center;
  font-weight: 600; font-size: 18px; letter-spacing: -.01em;
  white-space: nowrap;
}
.brand-mark { display: none; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 15px; }
.nav-links a { color: var(--ink-2); font-weight: 400; }
.nav-links a:hover { color: var(--ink); }

/* ───── mega menu ───── */
.mega-wrap { position: relative; }
.mega-trigger {
  display: flex; align-items: center; gap: 4px;
  font-size: 15px; font-weight: 400; color: var(--ink-2);
  cursor: pointer; background: none; border: none;
  font-family: var(--sans); padding: 0;
}
.mega-trigger:hover { color: var(--ink); }
.mega-trigger svg {
  width: 12px; height: 12px;
  transition: transform .2s ease;
}
.mega-wrap:hover .mega-trigger svg,
.mega-wrap.open .mega-trigger svg { transform: rotate(180deg); }

.mega-menu {
  position: absolute; left: 50%; top: calc(100% + 12px);
  transform: translateX(-50%) translateY(-8px);
  width: 680px;
  background: rgba(255,255,255,.96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(0,0,0,.15);
  opacity: 0; visibility: hidden;
  transition: opacity .25s ease, transform .25s ease, visibility .25s ease;
  z-index: 99;
}
.mega-wrap:hover .mega-menu,
.mega-wrap.open .mega-menu {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-inner {
  padding: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px;
}
.mega-item {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px; border-radius: 10px;
  transition: background .15s ease;
  text-decoration: none;
}
.mega-item:hover { background: var(--cream-soft); }
.mega-icon {
  width: 40px; height: 40px; border-radius: 10px;
  background: var(--cream-soft); display: grid; place-items: center;
  flex-shrink: 0; color: var(--ink);
}
.mega-item:hover .mega-icon { background: var(--cream); }
.mega-icon svg { width: 20px; height: 20px; }
.mega-label { font-size: 14px; font-weight: 500; color: var(--ink); margin: 0 0 2px; }
.mega-desc { font-size: 13px; color: var(--muted); line-height: 1.45; margin: 0; }

/* ───── mobile menu ───── */
.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 32px; height: 32px; padding: 4px; color: var(--ink);
}
.nav-toggle svg { width: 100%; height: 100%; }
.nav.nav--hero .nav-toggle { color: #fff; }
.nav.nav--hero.menu-open .nav-inner {
  background: var(--cream-soft); border-color: rgba(10,10,10,.06); color: var(--ink);
  box-shadow: 0 4px 24px -8px rgba(0,0,0,.06);
}
.nav.nav--hero.menu-open .brand { color: var(--ink); }
.nav.nav--hero.menu-open .nav-toggle { color: var(--ink); }
.nav.nav--hero.menu-open .btn { background: var(--ink); color: #fff; }

.mobile-menu {
  display: none; position: fixed; inset: 0; z-index: 98;
  background: var(--cream-soft); padding: 80px 32px 32px;
  overflow-y: auto;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
  display: block; padding: 14px 0;
  font-size: 16px; font-weight: 500; color: var(--ink);
  border-bottom: 1px solid rgba(10,10,10,.06);
}
.mobile-menu .mobile-services {
  padding: 8px 0 8px 16px;
}
.mobile-menu .mobile-services a {
  font-size: 14px; font-weight: 400; color: var(--ink-2);
  padding: 10px 0; border-bottom: 1px solid rgba(10,10,10,.04);
}
.mobile-menu .btn {
  display: flex; margin-top: 24px; width: 100%; justify-content: center;
  border-radius: 999px; padding: 14px 24px; font-size: 16px;
  background: var(--ink); color: #fff; border: none;
}

/* ───── footer ───── */
footer { padding: 100px 0 36px; }
footer .top {
  display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0,1fr));
  gap: 80px; align-items: start;
  padding-bottom: 100px; max-width: 1180px; margin: 0 auto;
}
footer .brand-block { display: flex; align-items: center; gap: 10px; }
footer .brand-block .brand-mark { width: 20px; height: 20px; color: var(--ink); }
footer .brand-block .brand-name { font-weight: 500; font-size: 16px; color: var(--ink); }
footer .col h6 {
  font-size: 14px; color: var(--muted); margin: 0 0 24px;
  font-weight: 400; line-height: 1;
}
footer .col a {
  display: block; padding: 8px 0; color: var(--ink);
  font-size: 14px; font-weight: 400; line-height: 1.4;
}
footer .col a:hover { text-decoration: underline; }
footer .bottom {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 14px; color: var(--ink);
}
footer .bottom .copy { color: var(--muted); }

/* ───── scroll animations ───── */
@media (prefers-reduced-motion: no-preference) {
  [data-r] {
    opacity: 0; transform: translateY(20px);
    transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1);
  }
  [data-r].in { opacity: 1; transform: none; }
  [data-r-stagger] > * {
    opacity: 0; transform: translateY(18px);
    transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  }
  [data-r-stagger].in > * { opacity: 1; transform: none; }
  [data-r-stagger].in > *:nth-child(1) { transition-delay: .05s; }
  [data-r-stagger].in > *:nth-child(2) { transition-delay: .15s; }
  [data-r-stagger].in > *:nth-child(3) { transition-delay: .25s; }
  [data-r-stagger].in > *:nth-child(4) { transition-delay: .35s; }
  [data-r-stagger].in > *:nth-child(5) { transition-delay: .45s; }
  [data-r-stagger].in > *:nth-child(6) { transition-delay: .55s; }

  @keyframes up { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
}

/* ───── common section patterns ───── */
section { padding: 120px 0; }

.section-header {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: center; margin-bottom: 48px;
}
.section-header h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.6vw, 60px); line-height: 1.05;
  letter-spacing: -.01em; margin: 0;
}
.section-header h2 .dim { color: #9a9a9a; display: block; }
.section-header .lede {
  color: var(--ink-2); font-size: 15px; line-height: 1.6; max-width: 42ch;
}

/* two-column row */
.two-col {
  display: grid; grid-template-columns: 1fr 1.2fr;
  gap: 60px; align-items: center;
}
.two-col.flip { grid-template-columns: 1.2fr 1fr; }
.two-col h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.2vw, 54px); line-height: 1.05;
  margin: 0 0 18px; letter-spacing: -.005em;
}
.two-col h2 .dim { color: #9a9a9a; display: block; }
.two-col .lede {
  color: var(--ink-2); font-size: 15px; line-height: 1.6;
  max-width: 38ch; margin: 0 0 24px;
}

/* visual block */
.visual-block {
  aspect-ratio: 5/4; border-radius: 8px; overflow: hidden;
  background: #f3f1ec; position: relative;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.18);
}
.visual-block image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }

/* feature list */
.feat-list { display: flex; flex-direction: column; border-top: 1px solid var(--line); max-width: 520px; }
.feat-list .feat-item {
  display: grid; grid-template-columns: 1fr auto; gap: 14px;
  padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px;
}
.feat-list .feat-item b { display: block; font-weight: 500; margin-bottom: 3px; }
.feat-list .feat-item span { color: var(--muted); font-size: 13.5px; line-height: 1.5; }
.feat-list .feat-item i { font-style: normal; color: var(--muted); font-size: 13px; }

/* dark band */
.dark-band {
  position: relative; padding: 130px 0; color: #fff;
  overflow: hidden; background: #3a3530;
}
.dark-band::after {
  content: ""; position: absolute; inset: 0;
  background: rgba(0,0,0,.35); z-index: 1;
}
.dark-band .band-inner {
  position: relative; z-index: 2; text-align: center;
  max-width: 780px; margin: 0 auto; padding: 0 32px;
}
.dark-band h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 54px); line-height: 1.15;
  margin: 0; letter-spacing: -.005em; color: #fff;
}

/* cream section */
.cream-section { background: var(--cream); padding: 110px 0 130px; }
.cream-section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(36px, 4.2vw, 52px); line-height: 1.1;
  margin: 0 0 16px; letter-spacing: -.005em;
}
.cream-section h2 .dim { color: #9a9088; display: block; }

/* card grid */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  background: #fff; border-radius: 12px; overflow: hidden;
  border: 1px solid rgba(10,10,10,.04);
}
.card .card-vis {
  aspect-ratio: 16/10; position: relative; overflow: hidden;
  background: linear-gradient(180deg, #3a4a55, #1f2a32);
}
.card .card-vis image-slot { position: absolute; inset: 0; width: 100%; height: 100%; }
.card .card-body { padding: 22px; }
.card .card-body h4 { margin: 0 0 6px; font-size: 15px; font-weight: 500; }
.card .card-body p { margin: 0; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }

/* stat cards */
.stat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.stat-card { background: var(--cream-soft); border-radius: 12px; padding: 24px; }
.stat-card .stat-label {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 8px;
}
.stat-card h4 { margin: 0 0 10px; font-size: 16px; font-weight: 500; }
.stat-card p { margin: 0 0 14px; color: var(--ink-2); font-size: 13.5px; line-height: 1.55; }
.stat-card .stat-num { font-family: var(--serif); font-size: 28px; line-height: 1; margin-top: 6px; }

/* CTA section */
.cta-section {
  background: var(--cream); padding: 130px 0; text-align: center;
  border-radius: 6px; margin: 0 32px;
}
.cta-section h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(42px, 5vw, 66px); line-height: 1.08;
  letter-spacing: -.005em; margin: 0 0 32px;
}

/* ───── responsive ───── */
@media (max-width: 980px) {
  .nav-inner { gap: 16px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .mega-menu { display: none; }
  .section-header,
  .two-col,
  .two-col.flip { grid-template-columns: 1fr; gap: 32px; }
  .card-grid,
  .stat-grid { grid-template-columns: 1fr; }
  footer .top { grid-template-columns: 1fr 1fr; gap: 40px; }
}

@media (max-width: 480px) {
  .wrap { padding: 0 20px; }
  .nav-inner { padding: 10px 10px 10px 20px; }
  section { padding: 80px 0; }
  .cta-section { margin: 0 20px; padding: 80px 20px; }
}

/* ───── Mock UI visuals ───── */
.mock{position:absolute;inset:0;display:flex;flex-direction:column;font-family:var(--sans);overflow:hidden}
.mock-chrome{display:flex;align-items:center;gap:6px;padding:10px 14px;background:rgba(255,255,255,.7);border-bottom:1px solid rgba(10,10,10,.06);flex-shrink:0}
.mock-dots{display:flex;gap:5px}
.mock-dots span{width:7px;height:7px;border-radius:50%;background:rgba(10,10,10,.12)}
.mock-url{flex:1;height:7px;border-radius:4px;background:rgba(10,10,10,.06);margin-left:10px;max-width:140px}
.mock-body{flex:1;padding:14px;display:flex;flex-direction:column;gap:10px;overflow:hidden}
.mock-row{display:flex;gap:10px;align-items:stretch}
.mock-line{height:5px;border-radius:3px;background:rgba(10,10,10,.08)}
.mock-line.w30{width:30%}.mock-line.w40{width:40%}.mock-line.w55{width:55%}.mock-line.w65{width:65%}.mock-line.w80{width:80%}.mock-line.w100{width:100%}
.mock-line.thick{height:8px}.mock-line.accent-bg{background:var(--accent)}
.mock-block{border-radius:6px;background:rgba(10,10,10,.04)}
.mock-card{border-radius:8px;background:#fff;padding:10px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.mock-sidebar{width:28%;background:rgba(255,255,255,.5);border-right:1px solid rgba(10,10,10,.06);padding:14px 10px;display:flex;flex-direction:column;gap:8px;flex-shrink:0}
.mock-nav-item{height:5px;border-radius:3px;background:rgba(10,10,10,.08);width:70%}
.mock-nav-item.active{background:var(--accent);width:85%}
.mock-metric{text-align:center;flex:1}
.mock-metric .num{font-size:18px;font-weight:600;line-height:1;margin:0 0 2px;color:var(--ink)}
.mock-metric .lbl{font-size:7px;color:var(--muted);text-transform:uppercase;letter-spacing:.05em}
.mock-bar-chart{display:flex;align-items:flex-end;gap:4px;height:60px;flex:1}
.mock-bar-chart span{flex:1;border-radius:3px 3px 0 0;background:var(--cream);min-height:6px}
.mock-bar-chart span.hi{background:var(--accent)}
.mock-tag{display:inline-block;padding:3px 8px;border-radius:4px;background:rgba(10,10,10,.05);font-size:7px;color:var(--muted)}
