/* ── TOKENS (NoBoxDev design language) ── */
:root {
  --bg: #FAFAF8;
  --bg-alt: #F0EFEB;
  --bg-dark: #1C1C1E;
  --text: #201E1D;
  --text-muted: #6B6462;
  --coral: #FE795D;
  --coral-dark: #e56a50;
  --purple: #9B78F4;
  --purple-light: #B49AF7;
  --amber: #FF9F0A;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --border: #E0DEDA;
  --radius: 12px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
.nav-brand:hover, .nav-cta:hover, .btn-primary:hover, .btn-ghost:hover, .btn-dark:hover, .noboxdev-card:hover { text-decoration: none; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 1rem + 2vw, 2rem);
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: transparent;
  transition: background 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  background: rgba(28, 28, 30, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}

.nav.nav-light {
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav.nav-light .nav-brand { color: var(--text); }
.nav.nav-light .nav-links a { color: var(--text-muted); }
.nav.nav-light .nav-links a:hover { color: var(--text); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 1rem + 2vw, 2rem);
  height: 64px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: var(--white);
}

.nav-brand svg { width: 28px; height: 28px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--white);
  text-decoration: none;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--white);
  border-radius: 28px;
  padding: 9px 20px;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--coral-dark);
  transform: translateY(-1px);
}

/* ── FOOTER ── */
.footer {
  padding: 40px 0;
  background: var(--bg-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.35);
  font-size: 13px;
}

.footer.footer-light {
  background: var(--bg);
  border-top: 1px solid var(--border);
  color: var(--text-muted);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 1rem + 2vw, 2rem);
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-brand svg { width: 20px; height: 20px; }

.footer-brand span {
  font-weight: 600;
  color: rgba(255,255,255,0.5);
}

.footer.footer-light .footer-brand span {
  color: var(--text-muted);
}

.footer a {
  color: rgba(255,255,255,0.45);
  transition: color 0.2s;
}

.footer a:hover { color: var(--white); text-decoration: none; }

.footer.footer-light a { color: var(--text-muted); }
.footer.footer-light a:hover { color: var(--text); }

.footer-links {
  display: flex;
  gap: 24px;
}

/* ── SECTION SHARED ── */
.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--coral);
  margin-bottom: 12px;
}

.section-header h2 {
  font-size: clamp(1.75rem, 1.5rem + 1.25vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 560px;
  line-height: 1.7;
}

/* ── ANIMATIONS ── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

/* ── RESPONSIVE (shared) ── */
@media (max-width: 768px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
  .footer-links { flex-direction: column; gap: 12px; }
}
