/* ============================================================
   NEUVUM — Design System
   Palette pulled from the logo: near-black base, chrome/silver
   "N" mark, electric blue accent stroke.
   Display: Space Grotesk / Body: Inter / Labels: JetBrains Mono
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --bg: #0B0E14;
  --bg-elevated: #12151D;
  --bg-elevated-2: #171B26;
  --border: #232838;
  --text-primary: #F5F6F7;
  --text-muted: #8B93A1;
  --text-dim: #565E70;
  --accent: #3B82F6;
  --accent-dim: #1E3A5F;
  --chrome: #C7CCD3;

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --max-width: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

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

/* ---------- Type ---------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }

p { color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.eyebrow::before {
  content: '';
  width: 14px;
  height: 1px;
  background: var(--accent);
}

/* ---------- Header ---------- */

header.site {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(11, 14, 20, 0.88);
  backdrop-filter: blur(10px);
  z-index: 50;
}

header.site .bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 18px 32px;
}

header.site .logo img {
  height: 48px;
  width: auto;
}

nav.main {
  display: flex;
  align-items: center;
  gap: 36px;
}

nav.main a {
  font-size: 0.92rem;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

nav.main a:hover,
nav.main a:focus-visible {
  color: var(--text-primary);
}

nav.main a[aria-current="page"] {
  color: var(--text-primary);
}

/* The CTA inside the nav is a button, not a nav link — don't let link colors apply */
nav.main a.nav-cta,
nav.main a.nav-cta:hover,
nav.main a.nav-cta:focus-visible {
  color: #05070B;
}

/* Hamburger toggle — hidden on desktop, shown on mobile */
.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  position: relative;
  transition: background 0.2s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: transform 0.2s ease;
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Open state — morph into an X */
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

/* Header CTA hidden on small screens (lives inside the mobile menu instead) */
.header-cta { display: inline-flex; }

/* In-nav CTA is mobile-only — hidden on desktop so the header CTA is the single button.
   Specificity must beat the later `.btn { display: inline-flex }` rule. */
nav.main a.nav-cta { display: none; }

/* ---------- Skip link (accessibility) ---------- */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: #05070B;
  padding: 12px 20px;
  font-weight: 600;
  z-index: 100;
  border-radius: 0 0 4px 0;
}

.skip-link:focus {
  left: 0;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 4px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: var(--accent);
  color: #05070B;
}

.btn-primary:hover { transform: translateY(-1px); background: #4C8CF8; }

.btn-ghost {
  border-color: var(--border);
  color: var(--text-primary);
  background: transparent;
}

.btn-ghost:hover { border-color: var(--chrome); }

/* ---------- Hero (signature diagonal motif, echoes the logomark) ---------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 0 100px;
}

.hero-mark {
  position: absolute;
  top: 50%;
  right: 0%;
  transform: translateY(-50%);
  width: 34%;
  max-width: 420px;
  opacity: 0.01;
  pointer-events: none;
  filter: drop-shadow(0 0 60px rgba(59, 130, 246, 0.25));
}

.hero .wrap { position: relative; }

.hero-tag { margin-bottom: 22px; }

.hero h1 { max-width: 780px; margin-bottom: 22px; }
.hero h1 span { color: var(--accent); }

.hero .lede {
  max-width: 560px;
  font-size: 1.1rem;
  margin-bottom: 40px;
}

.hero .actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Sections ---------- */

section { padding: 88px 0; }

section.alt { background: var(--bg-elevated); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.section-head { max-width: 620px; margin-bottom: 56px; }
.section-head h2 { margin-top: 14px; }

/* ---------- Value grid ---------- */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  list-style: none;
}

.grid-3 > li {
  background: var(--bg);
  padding: 40px 34px;
}

.grid-3 h3 { margin: 16px 0 12px; }

.num {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.85rem;
}

/* ---------- CTA block (centered, narrow) ---------- */

.cta-centered {
  text-align: center;
  max-width: 640px;
  margin: 0 auto;
}

.cta-centered h2 { margin-bottom: 20px; }
.cta-centered p { margin-bottom: 36px; }

/* ---------- Page hero variants ---------- */

.hero-compact { padding-bottom: 40px; }

.section-flush-top { padding-top: 0; }

/* ---------- Cards / pricing ---------- */

.tiers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tier {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 36px 30px;
  background: var(--bg-elevated);
  display: flex;
  flex-direction: column;
}

.tier.featured {
  border-color: var(--accent);
  background: var(--bg-elevated-2);
  position: relative;
}

.tier.featured::after {
  content: 'MOST CHOSEN';
  position: absolute;
  top: -12px;
  left: 30px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  background: var(--accent);
  color: #05070B;
  padding: 4px 10px;
  border-radius: 3px;
}

.tier .price {
  font-family: var(--font-display);
  font-size: 2.4rem;
  margin: 14px 0 4px;
}

.tier .price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 400;
}

.tier .tagline { margin-bottom: 24px; }

.tier ul { list-style: none; margin: 0 0 28px; flex-grow: 1; }

.tier li {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
  color: var(--text-muted);
}

.tier li:first-child { border-top: none; }

.tier li::before {
  content: '';
  min-width: 6px;
  height: 6px;
  margin-top: 7px;
  background: var(--accent);
  border-radius: 1px;
}

/* ---------- Footer ---------- */

footer.site {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
}

footer.site .bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

footer.site img.logo { height: 34px; opacity: 0.85; }

footer.site .links {
  display: flex;
  gap: 28px;
}

footer.site .links a {
  font-size: 0.88rem;
  color: var(--text-muted);
}

footer.site .links a:hover { color: var(--text-primary); }

footer.site .fine {
  margin-top: 32px;
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* ---------- Forms (contact) ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 64px;
  align-items: start;
}

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info h3 { margin-bottom: 16px; }
.contact-info p { margin-bottom: 28px; }

form.contact {
  display: grid;
  gap: 20px;
  max-width: 560px;
}

form.contact .btn { justify-self: start; }

.plan-badge {
  background: var(--accent-dim);
  border: 1px solid var(--accent);
  border-radius: 4px;
  padding: 12px 16px;
  font-size: 0.9rem;
  color: var(--text-primary);
  margin: 0;
}

.plan-badge strong { color: var(--accent); }

.field label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 13px 14px;
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.field textarea { resize: vertical; min-height: 120px; }

/* ---------- FAQ (accordion) ---------- */

.faq-list {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border); background: var(--bg); }
.faq-item:last-child { border-bottom: none; }

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 28px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  transition: color 0.15s ease;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover { color: var(--accent); }

.faq-item summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Chevron indicator */
.faq-item summary::after {
  content: '';
  flex-shrink: 0;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--text-muted);
  border-bottom: 2px solid var(--text-muted);
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq-item[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }

.faq-item[open] summary { color: var(--accent); }

.faq-answer {
  padding: 0 28px 24px;
  color: var(--text-muted);
  max-width: 760px;
  margin: 0;
}

@media (max-width: 560px) {
  .faq-item summary { padding: 18px 20px; font-size: 0.98rem; }
  .faq-answer { padding: 0 20px 20px; }
}

/* ---------- About page specifics ---------- */

.story { max-width: 680px; }
.story p { margin-bottom: 20px; font-size: 1.02rem; }
.story h2 { margin: 48px 0 18px; }

.who-list { list-style: none; margin-top: 20px; }
.who-list li {
  padding: 14px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  display: flex;
  gap: 12px;
}
.who-list li:first-child { border-top: none; }
.who-list li::before { content: '→'; color: var(--accent); }

/* ---------- Motion ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn-primary:hover { transform: none; }
}

/* ---------- Responsive ---------- */

@media (max-width: 860px) {
  .grid-3 { grid-template-columns: 1fr; }
  .tiers { grid-template-columns: 1fr; }
  .hero { padding: 80px 0 64px; }
  section { padding: 64px 0; }

  /* Show hamburger, hide desktop CTA button */
  .nav-toggle { display: inline-flex; }
  .header-cta { display: none; }

  /* Mobile nav panel: collapsed by default, expands below the header bar */
  nav.main {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-elevated);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 8px 0;
  }

  nav.main.open { display: flex; }

  nav.main a {
    padding: 15px 24px;
    font-size: 1rem;
    border-bottom: 1px solid var(--border);
  }

  nav.main a:last-of-type { border-bottom: none; }

  /* CTA repeated inside the mobile menu so it stays reachable */
  nav.main a.nav-cta {
    display: flex;
    margin: 12px 24px 8px;
    justify-content: center;
    color: #05070B;
    border-bottom: none;
    padding: 13px 26px;
  }

  header.site { position: sticky; }
  header.site .bar { position: relative; padding: 14px 24px; }
  header.site .logo img { height: 38px; }
}

@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  header.site .bar { padding: 14px 20px; }
  .hero-mark { opacity: 0.09; width: 50%; }
}
