/* ═══════════════════════════════════════════════════
   BUFF SPACE — Design System 2026
   Bright modern, cosmic accents, Apple/Notion feel
   ═══════════════════════════════════════════════════ */

:root {
  /* Core palette */
  --bg:        #f8f7ff;
  --bg2:       #ffffff;
  --bg3:       #f1efff;
  --surface:   #ffffff;

  /* Accent system */
  --violet:    #7c3aed;
  --violet2:   #6d28d9;
  --sky:       #0ea5e9;
  --sky2:      #38bdf8;
  --pink:      #ec4899;
  --amber:     #f59e0b;
  --green:     #10b981;

  /* Gradients */
  --grad-hero: linear-gradient(135deg, #7c3aed 0%, #0ea5e9 100%);
  --grad-card: linear-gradient(145deg, rgba(124,58,237,0.05) 0%, rgba(14,165,233,0.05) 100%);
  --grad-text: linear-gradient(90deg, #7c3aed, #0ea5e9);
  --grad-btn:  linear-gradient(135deg, #7c3aed, #0ea5e9);

  /* Text */
  --text:      #0f0b1e;
  --text2:     #3d3558;
  --muted:     #7c728f;
  --light:     #b8b0cc;

  /* Borders & shadows */
  --border:    rgba(124,58,237,0.12);
  --border2:   rgba(0,0,0,0.07);
  --shadow-sm: 0 2px 12px rgba(124,58,237,0.08);
  --shadow-md: 0 8px 32px rgba(124,58,237,0.14);
  --shadow-lg: 0 20px 60px rgba(124,58,237,0.18);

  /* Layout */
  --radius:    18px;
  --radius-sm: 12px;
  --max:       1120px;
  --font:      'Plus Jakarta Sans', sans-serif;
  --display:   'Bricolage Grotesque', 'Plus Jakarta Sans', sans-serif;
}

/* ── RESET ───────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: var(--font); cursor: pointer; }

/* ── TYPOGRAPHY ──────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NOISE & MESH BACKGROUND ─────────────────────── */
.mesh-bg {
  position: relative;
  overflow: hidden;
}

.mesh-bg::before {
  content: '';
  position: absolute;
  inset: -50%;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(124,58,237,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(14,165,233,0.10) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 80%, rgba(236,72,153,0.07) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

.mesh-bg > * { position: relative; z-index: 1; }

/* ── NAV ─────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  height: 66px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1.25rem, 5vw, 3.5rem);
  background: rgba(248,247,255,0.82);
  backdrop-filter: blur(24px) saturate(1.8);
  -webkit-backdrop-filter: blur(24px) saturate(1.8);
  border-bottom: 1px solid var(--border2);
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.nav-logo-mark {
  width: 38px; height: 38px;
  background: var(--grad-btn);
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display);
  font-weight: 800;
  font-size: 14px;
  color: #fff;
  letter-spacing: -0.5px;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(124,58,237,0.35);
}

/* Logo as image */
.nav-logo img {
  height: 32px;
  width: auto;
  display: block;
  flex-shrink: 0;
  /* On light nav bg the dark logo version works fine;
     if you switch to dark header swap to logo-default */
}

/* Hide text label when using image logo */
.nav-logo img + .nav-logo-text {
  display: none;
}

.nav-logo-text {
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  display: block;
  color: var(--text2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
  transition: background 0.2s, color 0.2s;
}

.nav-links a:hover {
  background: rgba(124,58,237,0.08);
  color: var(--violet);
}

.nav-cta {
  background: var(--grad-btn) !important;
  color: #fff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 18px rgba(124,58,237,0.3) !important;
  transition: transform 0.2s, box-shadow 0.2s !important;
}

.nav-cta:hover {
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 24px rgba(124,58,237,0.4) !important;
  background: var(--grad-btn) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  width: 40px; height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  transition: border-color 0.2s;
}

.nav-toggle span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ── BUTTONS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 100px;
  font-family: var(--font);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  transition: all 0.25s;
  cursor: pointer;
  white-space: nowrap;
}

.btn-primary {
  background: var(--grad-btn);
  color: #fff;
  box-shadow: 0 4px 20px rgba(124,58,237,0.32);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(124,58,237,0.45);
}

.btn-secondary {
  background: #fff;
  color: var(--violet);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: rgba(124,58,237,0.3);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.btn-ghost {
  background: rgba(124,58,237,0.07);
  color: var(--violet);
  border: 1px solid rgba(124,58,237,0.15);
}

.btn-ghost:hover {
  background: rgba(124,58,237,0.13);
}

.btn-sm {
  padding: 9px 18px;
  font-size: 13px;
}

.btn-lg {
  padding: 16px 36px;
  font-size: 16px;
}

/* ── LAYOUT ──────────────────────────────────────── */
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 3rem);
}

.section {
  padding: 6rem 0;
}

.section-sm { padding: 3.5rem 0; }
.section-lg { padding: 9rem 0; }

/* ── SECTION HEADER ──────────────────────────────── */
.sec-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 0.9rem;
}

.sec-eyebrow::before {
  content: '';
  display: block;
  width: 20px; height: 2px;
  background: var(--grad-btn);
  border-radius: 2px;
}

.sec-title {
  font-family: var(--display);
  font-size: clamp(1.9rem, 3.5vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: 1rem;
}

.sec-desc {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 520px;
}

/* ── CARDS ───────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.3s, transform 0.3s, border-color 0.3s;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: var(--border);
}

.card-pad { padding: 2rem; }

/* ── CHIP / BADGE ────────────────────────────────── */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(124,58,237,0.08);
  color: var(--violet);
  border: 1px solid rgba(124,58,237,0.18);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
}

.chip-sky {
  background: rgba(14,165,233,0.08);
  color: var(--sky);
  border-color: rgba(14,165,233,0.2);
}

.chip-green {
  background: rgba(16,185,129,0.08);
  color: var(--green);
  border-color: rgba(16,185,129,0.2);
}

/* ── DIVIDER ─────────────────────────────────────── */
.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border2), transparent);
  margin: 2rem 0;
}

/* ── PAGE HERO (inner pages) ─────────────────────── */
.page-hero {
  padding: calc(66px + 4rem) 0 4rem;
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 10% 50%, rgba(124,58,237,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 60% at 90% 30%, rgba(14,165,233,0.06) 0%, transparent 65%);
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a { color: var(--muted); text-decoration: none; transition: color 0.2s; }
.breadcrumb a:hover { color: var(--violet); }
.breadcrumb-sep { color: var(--light); }

/* ── FOOTER ──────────────────────────────────────── */
.footer {
  background: var(--text);
  color: rgba(255,255,255,0.75);
  padding: 4.5rem 0 2rem;
}

.footer-top {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 4rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-brand .nav-logo-text { color: #fff; }

.footer-tagline {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.5);
  margin-top: 0.9rem;
  max-width: 280px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 1.5rem;
}

.footer-social {
  width: 38px; height: 38px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.6);
  text-decoration: none;
  font-size: 15px;
  transition: all 0.2s;
}

.footer-social:hover {
  background: rgba(124,58,237,0.3);
  border-color: rgba(124,58,237,0.5);
  color: #fff;
}

.footer-col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s;
}

.footer-links a:hover { color: #fff; }

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copy {
  font-size: 12.5px;
  color: rgba(255,255,255,0.35);
  line-height: 1.8;
}

.footer-pfdo img {
  height: 28px;
  filter: brightness(0) invert(1);
  opacity: 0.35;
  transition: opacity 0.2s;
}
.footer-pfdo img:hover { opacity: 0.7; }

/* ── TESTIMONIALS ────────────────────────────────── */
.review-card {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.review-card::before {
  content: '"';
  position: absolute;
  top: 1rem; right: 1.5rem;
  font-size: 4rem;
  line-height: 1;
  color: var(--border);
  font-family: Georgia, serif;
}

.review-text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text2);
  margin-bottom: 1.25rem;
}

.review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.review-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--grad-btn);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.review-handle {
  font-size: 13px;
  color: var(--muted);
}

/* ── REVEAL ANIMATION ────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── SCROLLBAR ───────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(124,58,237,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(124,58,237,0.5); }

/* ── MOBILE ──────────────────────────────────────── */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .nav-links.is-open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 66px; left: 0; right: 0;
    background: rgba(248,247,255,0.97);
    backdrop-filter: blur(20px);
    padding: 1.5rem 2rem 2rem;
    gap: 0.25rem;
    border-bottom: 1px solid var(--border2);
    box-shadow: var(--shadow-md);
  }

  .nav-links.is-open a {
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 15px;
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 640px) {
  .section { padding: 4rem 0; }
  .btn-lg { padding: 14px 28px; font-size: 15px; }
}
