/* ModPhone marketing — shared styles */

:root {
  /* Palette: warm cream + deep ink + electric indigo accent */
  --bg: #F6F3EC;              /* warm cream */
  --bg-elev: #FBF9F4;         /* slightly lighter */
  --surface: #FFFFFF;
  --ink: #141414;
  --ink-2: #2C2C2C;
  --muted: #6B6A63;
  --hair: #E5E1D6;            /* hairline borders */
  --hair-2: #D9D4C4;
  --accent: #3B3DF2;          /* electric indigo */
  --accent-hover: #2B2DE0;
  --accent-soft: #EDEDFE;
  --sage: #C6D0B5;            /* muted sage — secondary accent */
  --rose: #E8C9BE;
  --ok: #137A4C;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --shadow-1: 0 1px 2px rgba(20,20,20,0.04), 0 2px 6px rgba(20,20,20,0.04);
  --shadow-2: 0 8px 24px rgba(20,20,20,0.08);

  --font-display: "Instrument Serif", "Times New Roman", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "ss01", "cv11";
  min-height: 100vh;
  /* subtle grain */
  background-image:
    radial-gradient(rgba(20,20,20,0.025) 1px, transparent 1px);
  background-size: 3px 3px;
}

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

::selection { background: var(--accent); color: #fff; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 28px; }
.wrap-tight { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 28px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 16px;
  z-index: 80;
  margin: 16px auto 0;
  max-width: 1200px;
  padding: 0 16px;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 18px;
  background: rgba(251, 249, 244, 0.82);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--hair);
  border-radius: 999px;
  box-shadow: var(--shadow-1);
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
}
.brand-mark-img {
  width: 36px; height: 36px;
  object-fit: contain;
  display: block;
  margin-right: 2px;
}
.footer .brand-mark-img { width: 34px; height: 34px; }
.nav-links {
  display: flex; align-items: center; gap: 28px;
}
.nav-links a {
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .15s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active { color: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* Hamburger — shown only at narrow widths. */
.nav-burger {
  display: none;
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid var(--hair-2);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.nav-burger:hover { background: rgba(20,20,20,0.04); }
.nav-burger svg { width: 20px; height: 20px; }

/* Mobile menu — collapsed dropdown below the pill nav. */
.nav-mobile {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 16px; right: 16px;
  background: rgba(251, 249, 244, 0.97);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border: 1px solid var(--hair);
  border-radius: 22px;
  box-shadow: var(--shadow-2);
  padding: 14px;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  border-radius: 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
  transition: background .12s ease;
}
.nav-mobile a:hover { background: rgba(20,20,20,0.04); }
.nav-mobile a.accent {
  background: var(--accent);
  color: #fff;
  text-align: center;
  margin-top: 6px;
}
.nav-mobile a.accent:hover { background: var(--accent-hover); }
.nav-mobile .divider {
  height: 1px;
  background: var(--hair);
  margin: 6px 4px;
}

@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: inline-flex; }
  .nav-inner { padding: 8px 10px 8px 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: transform .08s ease, background .15s ease, color .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg-elev); }
.btn-primary:hover { background: #000; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--ink-2); }
.btn-ghost:hover { color: var(--ink); background: rgba(20,20,20,0.04); }
.btn-outline {
  background: transparent; color: var(--ink);
  border: 1px solid var(--hair-2);
}
.btn-outline:hover { background: #fff; border-color: var(--ink); }
.btn-lg { height: 52px; padding: 0 24px; font-size: 15.5px; }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Type ---------- */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.02;
  font-size: clamp(44px, 7vw, 92px);
}
.display em {
  font-style: italic;
  color: var(--accent);
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before {
  content: "";
  width: 16px; height: 1px; background: currentColor;
}
h2.section {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 56px);
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--ink);
}
h2.section em { font-style: italic; color: var(--accent); }
.lede {
  font-size: clamp(16px, 1.35vw, 18.5px);
  color: var(--muted);
  max-width: 58ch;
  line-height: 1.55;
}

/* ---------- Utility ---------- */
.hr-hair { height: 1px; width: 100%; background: var(--hair); }
.grid { display: grid; gap: 24px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-2 { grid-template-columns: 1fr 1fr; }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 880px) {
  .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .cols-2 { grid-template-columns: 1fr; }
}

section { padding: 96px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } }

/* ---------- Card primitives ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.card-flat {
  background: var(--bg-elev);
  border: 1px solid var(--hair);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  font-size: 12.5px; font-weight: 500;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #DADAFE;
}
.badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(59, 61, 242, 0.15);
}
.mono {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: uppercase;
}

/* ---------- Footer ---------- */
.footer {
  border-top: 1px solid var(--hair);
  padding: 64px 0 40px;
  margin-top: 48px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer h5 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--muted); font-weight: 500; margin-bottom: 16px;
  font-family: var(--font-mono);
}
.footer ul { list-style: none; display: grid; gap: 10px; }
.footer a { color: var(--ink-2); font-size: 14.5px; }
.footer a:hover { color: var(--accent); }
.footer .sig {
  font-family: var(--font-display);
  font-size: 80px;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
  margin-top: 48px;
  border-top: 1px solid var(--hair);
  padding-top: 32px;
}
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 32px; color: var(--muted); font-size: 13px;
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer .sig { font-size: 52px; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Misc ---------- */
.kicker-row {
  display: flex; align-items: center; gap: 24px;
  flex-wrap: wrap;
}
.star { color: #D9A441; }
