/* ============================================================
   Quanrel — Landing Page Stylesheet  (full redesign)
   ============================================================ */

/* ── 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;
  --purple-lt:   #F5F3FF;
  --ink:         #0A2540;
  --ink-2:       #425466;
  --ink-3:       #8898AA;
  --bg:          #F8FAFC;
  --surface:     #FFFFFF;
  --border:      #E3E8EF;
  --border-2:    #CBD5E1;
  --r:           12px;
  --r-sm:        8px;
  --r-lg:        20px;
  --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);
  --shadow-xl:   0 32px 80px rgba(0,0,0,.18);
}

/* ── 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(--surface);
  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,.95);
  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 20px rgba(0,0,0,.08); }
.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.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: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue), var(--purple));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 8px rgba(99,91,255,.35);
}
.nav-logo-icon svg { width: 17px; height: 17px; stroke: #fff; fill: none; stroke-width: 2.5; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-link {
  font-size: .88rem;
  font-weight: 500;
  color: var(--ink-2);
  padding: 7px 13px;
  border-radius: 8px;
  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; }
.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: 700;
  color: #fff;
  background: var(--blue);
  padding: 9px 20px;
  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 14px rgba(99,91,255,.35);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
  margin-left: auto;
  border-radius: 6px;
}
.nav-hamburger svg { width: 22px; height: 22px; }
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 20px;
  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: 13px; border-radius: 10px; }

/* ── Shared sections ─────────────────────────────────────────── */
.section-wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .1em;
  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.9rem, 3.8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.035em;
  color: var(--ink);
}
.section-sub {
  font-size: 1.05rem;
  color: var(--ink-2);
  line-height: 1.75;
  max-width: 560px;
  margin-top: 16px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 30px;
  border-radius: 10px;
  transition: background .15s, transform .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-primary:hover {
  background: var(--blue-d);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(99,91,255,.35);
}
.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 26px;
  border-radius: 10px;
  border: 1.5px solid var(--border-2);
  transition: border-color .15s, background .15s, transform .15s;
  white-space: nowrap;
}
.btn-secondary:hover { border-color: var(--ink-3); background: rgba(0,0,0,.03); transform: translateY(-1px); }
.btn-outline-white {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent;
  color: rgba(255,255,255,.85);
  font-weight: 600;
  font-size: .95rem;
  padding: 13px 26px;
  border-radius: 10px;
  border: 1.5px solid rgba(255,255,255,.25);
  transition: border-color .15s, background .15s;
  white-space: nowrap;
}
.btn-outline-white:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.08); color: #fff; }

/* ── Tab component ───────────────────────────────────────────── */
.tabs-nav {
  display: flex;
  gap: 4px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 5px;
  width: fit-content;
  flex-wrap: wrap;
}
.tab-btn {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 18px;
  border-radius: 8px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink-3);
  background: none;
  border: none;
  cursor: pointer;
  transition: all .2s;
  white-space: nowrap;
}
.tab-btn:hover { color: var(--ink-2); background: rgba(0,0,0,.04); }
.tab-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0,0,0,.08), 0 2px 12px rgba(0,0,0,.05);
}
.tab-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ── Accordion ───────────────────────────────────────────────── */
.accordion-item {
  border-bottom: 1px solid var(--border);
}
.accordion-item:first-child { border-top: 1px solid var(--border); }
.accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  gap: 16px;
}
.accordion-q {
  font-size: .97rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.45;
  flex: 1;
}
.accordion-icon {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background .2s, border-color .2s;
}
.accordion-icon svg { width: 12px; height: 12px; stroke: var(--ink-3); fill: none; stroke-width: 2.5; transition: transform .25s; }
.accordion-item.open .accordion-icon { background: var(--blue-lt); border-color: rgba(99,91,255,.2); }
.accordion-item.open .accordion-icon svg { stroke: var(--blue); transform: rotate(45deg); }
.accordion-body {
  display: none;
  padding: 0 4px 20px;
}
.accordion-item.open .accordion-body { display: block; }
.accordion-body p {
  font-size: .93rem;
  color: var(--ink-2);
  line-height: 1.75;
}

/* ── Cards ───────────────────────────────────────────────────── */
.card-base {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  transition: box-shadow .2s, transform .2s, border-color .2s;
}
.card-base:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
  border-color: var(--border-2);
}

/* ── Stat / number ───────────────────────────────────────────── */
.stat-num {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -.04em;
  line-height: 1;
}

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

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: #0A2540;
  color: rgba(255,255,255,.55);
  padding: 80px 0 0;
}
.footer-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 28px 64px;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 56px;
}
.footer-brand-logo {
  display: flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.15rem;
  color: #fff; letter-spacing: -.02em;
  margin-bottom: 14px;
}
.footer-brand-desc { font-size: .88rem; line-height: 1.75; max-width: 230px; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a {
  width: 38px; height: 38px;
  border-radius: 9px;
  background: rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: rgba(255,255,255,.15); 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: .7rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: 18px;
}
.footer-col a {
  display: block;
  font-size: .875rem;
  color: rgba(255,255,255,.55);
  margin-bottom: 11px;
  transition: color .15s;
}
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.07);
  padding: 22px 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; }

/* ── Shared inner page hero ──────────────────────────────────── */
.page-hero {
  padding: 90px 28px 72px;
  text-align: center;
  background: linear-gradient(160deg, #F5F7FF 0%, #fff 60%);
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  top: -120px; left: 50%;
  transform: translateX(-50%);
  width: 700px; height: 500px;
  background: radial-gradient(ellipse at center, rgba(99,91,255,.07) 0%, transparent 70%);
  pointer-events: none;
}
.page-hero-inner { position: relative; max-width: 680px; margin: 0 auto; }
.page-hero h1 { font-size: clamp(2.1rem, 4.5vw, 3.2rem); font-weight: 800; letter-spacing: -.035em; color: var(--ink); margin-bottom: 18px; line-height: 1.1; }
.page-hero p { font-size: 1.1rem; color: var(--ink-2); max-width: 520px; margin: 0 auto; line-height: 1.75; }

/* ── Form styles (contact) ───────────────────────────────────── */
.fg { margin-bottom: 18px; }
.fg label { display: block; font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.fg input, .fg select, .fg textarea {
  width: 100%;
  padding: 11px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .93rem;
  color: var(--ink);
  background: var(--surface);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(99,91,255,.1);
}
.fg textarea { resize: vertical; min-height: 120px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .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; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .page-hero { padding: 72px 20px 56px; }
}
@media (max-width: 480px) {
  .footer-cols { grid-template-columns: 1fr; }
  .section-wrap { padding: 0 20px; }
  .tabs-nav { width: 100%; }
  .tab-btn { flex: 1; justify-content: center; padding: 9px 12px; font-size: .82rem; }
}
