/* ============================================================
   Quanrel — Landing Page Stylesheet
   ============================================================ */

/* ── Tokens ─────────────────────────────────────────────────── */
:root {
  --blue:        #635BFF;
  --blue-d:      #4F46E5;
  --blue-lt:     #EEF2FF;
  --green:       #0EA66E;
  --green-lt:    #ECFDF5;
  --red:         #E53E3E;
  --red-lt:      #FFF5F5;
  --amber:       #D97706;
  --amber-lt:    #FFFBEB;
  --purple:      #9B5DE5;
  --ink:         #0A2540;
  --ink-2:       #425466;
  --ink-3:       #8898AA;
  --bg:          #FAFBFC;
  --surface:     #FFFFFF;
  --border:      #E3E8EF;
  --border-2:    #CBD5E1;
  --r:           12px;
  --r-sm:        8px;
  --shadow:      0 1px 3px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.04);
  --shadow-md:   0 4px 12px rgba(0,0,0,.07), 0 12px 32px rgba(0,0,0,.05);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.12);
}

/* ── Base ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ── Navigation ──────────────────────────────────────────────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(0,0,0,.06);
  transition: box-shadow .2s;
}
.nav.scrolled { box-shadow: 0 2px 16px rgba(0,0,0,.06); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  letter-spacing: -.02em;
  flex-shrink: 0;
}
.nav-logo-icon {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-icon svg { width: 16px; height: 16px; stroke: #fff; fill: none; stroke-width: 2.5; }

/* Center links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 12px;
  border-radius: 7px;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.nav-link.active { color: var(--blue); font-weight: 600; }

/* Right CTAs */
.nav-ctas { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.btn-nav-ghost {
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-2);
  padding: 8px 16px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.btn-nav-ghost:hover { color: var(--ink); background: rgba(0,0,0,.04); }
.btn-nav-primary {
  font-size: .875rem;
  font-weight: 600;
  color: #fff;
  background: var(--blue);
  padding: 8px 18px;
  border-radius: 8px;
  transition: background .15s, transform .1s, box-shadow .15s;
  display: flex; align-items: center; gap: 6px;
}
.btn-nav-primary:hover {
  background: var(--blue-d);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99,91,255,.3);
}

/* Hamburger */
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  margin-left: auto;
  border-radius: 6px;
  transition: background .15s;
}
.nav-hamburger:hover { background: rgba(0,0,0,.05); }
.nav-hamburger svg { width: 22px; height: 22px; }

/* Mobile nav */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav-mobile.open { display: flex; }
.nav-mobile .nav-link { padding: 10px 12px; font-size: .95rem; }
.nav-mobile-divider { height: 1px; background: var(--border); margin: 8px 0; }
.nav-mobile .btn-nav-primary { width: 100%; justify-content: center; padding: 12px; }

/* ── Shared section ──────────────────────────────────────────── */
.section-wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-lt);
  padding: 5px 12px;
  border-radius: 100px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--ink);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 560px;
  margin-top: 14px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 28px;
  border-radius: 10px;
  transition: background .15s, transform .15s, box-shadow .15s;
}
.btn-primary:hover {
  background: var(--blue-d);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(99,91,255,.3);
}
.btn-primary svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2.5; }
.btn-secondary {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: var(--ink);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 24px;
  border-radius: 10px;
  border: 1.5px solid var(--border-2);
  transition: border-color .15s, background .15s, transform .15s;
}
.btn-secondary:hover { border-color: var(--ink); background: rgba(0,0,0,.03); transform: translateY(-1px); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--ink);
  color: rgba(255,255,255,.55);
  padding: 72px 0 0;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px 56px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.15rem;
  color: #fff; letter-spacing: -.02em;
  margin-bottom: 16px;
}
.footer-brand-desc { font-size: .88rem; line-height: 1.7; max-width: 220px; }
.footer-social { display: flex; gap: 12px; margin-top: 24px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.08);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.55);
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.16); color: #fff; }
.footer-social svg { width: 16px; height: 16px; fill: currentColor; }

.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col h4 {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.4);
  margin-bottom: 16px;
}
.footer-col a {
  display: block;
  font-size: .88rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 10px;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 20px 28px;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-size: .82rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { transition: color .15s; }
.footer-bottom-links a:hover { color: #fff; }

/* ── Reveal animation ────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity: 1; transform: none; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 960px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 720px) {
  .nav-links, .nav-ctas { display: none; }
  .nav-hamburger { display: flex; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .section-wrap { padding: 0 20px; }
}
