/* ── FONTS ───────────────────────────────────────────── */
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 300; font-display: swap;
  src: url('./fonts/DMSans-Light.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/DMSans-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/DMSans-Medium.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 600; font-display: swap;
  src: url('./fonts/DMSans-SemiBold.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('./fonts/DMSans-Bold.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: normal; font-weight: 800; font-display: swap;
  src: url('./fonts/DMSans-ExtraBold.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans'; font-style: italic; font-weight: 400; font-display: swap;
  src: url('./fonts/DMSans-Italic.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('./fonts/DMMono-Regular.ttf') format('truetype');
}
@font-face {
  font-family: 'DM Mono'; font-style: normal; font-weight: 500; font-display: swap;
  src: url('./fonts/DMMono-Medium.ttf') format('truetype');
}

/* ── RESET ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; background: #fafafa; color: #1a1a1a; }

/* ── NAV ─────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.95); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0,0,0,0.07);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 66px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 20px; color: #1a1a1a; text-decoration: none;
}
.nav-logo-csv { color: #2563eb; }
.nav-logo-img { width: 58px; height: 58px; object-fit: contain; }
.nav-links { display: flex; gap: 44px; list-style: none; }
.nav-links a {
  font-size: 15px; font-weight: 500; color: #64748b;
  text-decoration: none; transition: color .2s;
}
.nav-links a:hover { color: #2563eb; }
.nav-links a.active {
  color: #2563eb; font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}
.nav-cta {
  background: linear-gradient(135deg, #2563eb, #1e40af);
  color: white; border: none; border-radius: 9px;
  padding: 10px 22px; font-size: 14px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .2s;
  display: flex; align-items: center; gap: 7px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.35);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 5px 18px rgba(37,99,235,0.45);
}
.nav-cta.nav-cta-active {
  outline: 2px solid rgba(255,255,255,0.7);
  outline-offset: 2px;
  box-shadow: 0 2px 12px rgba(37,99,235,0.35), 0 0 0 4px rgba(37,99,235,0.18);
}

/* ── SECTIONS COMMON ─────────────────────────────────── */
section { padding: 90px 5vw; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-label {
  font-size: 16px; font-weight: 700; letter-spacing: .12em;
  color: #2563eb; text-transform: uppercase; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(26px, 3.5vw, 40px); font-weight: 700;
  color: #0f172a; margin-bottom: 16px; line-height: 1.2; text-wrap: pretty;
}
.section-sub { font-size: 16px; color: #64748b; line-height: 1.65; max-width: 560px; }

/* ── BUTTONS ─────────────────────────────────────────── */
.btn-primary {
  background: #2563eb; color: white; border: none; border-radius: 10px;
  padding: 13px 26px; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: inherit; transition: all .2s;
  text-decoration: none; display: inline-block;
}
.btn-primary:hover {
  background: #1d4ed8; transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(37,99,235,0.35);
}
.btn-secondary {
  background: transparent; color: #2563eb; border: none;
  padding: 13px 4px; font-size: 15px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: color .2s, gap .2s;
  text-decoration: none; display: inline-flex; align-items: center; gap: 6px;
}
.btn-secondary:hover { color: #1d4ed8; gap: 10px; }

/* ── FOOTER ──────────────────────────────────────────── */
footer {
  background: #0f172a; color: rgba(255,255,255,0.5);
  padding: 40px 5vw; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 20px;
}
.footer-logo { font-size: 15px; font-weight: 700; color: white; }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-links a {
  font-size: 13px; color: rgba(255,255,255,0.45);
  text-decoration: none; transition: color .2s;
}
.footer-links a:hover { color: white; }
.footer-copy { font-size: 12px; }

/* ── HAMBURGER BUTTON ────────────────────────────────── */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; border-radius: 8px; color: #1a1a1a;
  transition: background .2s; flex-shrink: 0;
}
.nav-burger:hover { background: rgba(0,0,0,0.06); }
.nav-burger .close-icon { display: none; }

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 820px) {
  /* Nav: hide links + CTA, show burger */
  .nav-links {
    display: none; flex-direction: column; gap: 0;
    position: fixed; top: 66px; left: 0; right: 0; z-index: 99;
    background: rgba(255,255,255,0.98); backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(0,0,0,0.08);
    box-shadow: 0 8px 32px rgba(0,0,0,0.10);
    padding: 6px 0 12px;
  }
  .nav-links.nav-open { display: flex; }
  .nav-links li { border-bottom: 1px solid rgba(0,0,0,0.04); }
  .nav-links li:last-child { border-bottom: none; }
  .nav-links a { display: block; padding: 14px 5vw; font-size: 16px; font-weight: 500; }
  .nav-cta { display: none; }
  .nav-burger { display: flex; }

  /* Sections */
  section { padding: 64px 5vw; }

  /* Footer */
  footer { flex-direction: column; align-items: flex-start; gap: 20px; padding: 36px 5vw; }
  .footer-links { gap: 18px; }

  /* Common grids */
  .features-grid, .comp-grid, .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  section { padding: 48px 5vw; }
  .footer-links { gap: 14px; }
  .section-title { font-size: clamp(22px, 6vw, 32px); }
}
