/* =============================================================================
   NOVABLOOM — DESIGN SYSTEM
   Blue-violet SaaS palette, derived from DESIGN.md's token philosophy
   (8px spacing base, radius scale, type-contrast) but shifted to its own brand.
   ========================================================================== */

/* -----------------------------------------------------------------------------
   1. TOKENS (CSS custom properties)
----------------------------------------------------------------------------- */
:root {
  /* Brand — blue-violet, shifted off the competitor's purple */
  --brand:          #3b5bf5;
  --brand-600:      #2f49d6;
  --brand-700:      #2538ad;
  --brand-300:      #8a9bff;
  --brand-100:      #e6eaff;
  --brand-soft:     #f2f4ff;
  --accent:         #14b8a6;   /* teal secondary accent for variety */
  --accent-soft:    #e6fbf7;

  /* Ink / neutrals (from DESIGN.md neutral ramp, warmed slightly) */
  --ink:            #14152b;   /* near-black with a violet hint */
  --ink-2:          #2c2e4a;
  --muted:          #5b5e7a;
  --muted-2:        #8b8ea8;
  --hairline:       #e7e8f0;
  --hairline-soft:  #f1f2f7;

  /* Surfaces */
  --canvas:         #ffffff;
  --surface:        #f7f8fc;   /* soft-cloud equivalent */
  --surface-2:      #eef0f8;
  --ink-canvas:     #0f1020;   /* dark sections */
  --ink-canvas-2:   #181a33;

  /* Semantic */
  --success:        #16a34a;
  --warning:        #d97706;
  --danger:         #dc2626;

  /* On-color text */
  --on-brand:       #ffffff;
  --on-ink:         #ffffff;

  /* Gradients */
  --grad-brand:     linear-gradient(135deg, #3b5bf5 0%, #6d5cf5 50%, #8b3df5 100%);
  --grad-soft:      linear-gradient(135deg, #f2f4ff 0%, #fdf2fb 100%);
  --grad-hero:      radial-gradient(1200px 600px at 80% -10%, rgba(109,92,245,.18), transparent 60%),
                    radial-gradient(900px 500px at 0% 10%, rgba(59,91,245,.14), transparent 55%);
  --grad-dark:      linear-gradient(135deg, #181a33 0%, #221d4d 60%, #2a1a4a 100%);

  /* Typography */
  --font-display:   "Space Grotesk", "Inter", system-ui, sans-serif;
  --font-body:      "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Radius scale (DESIGN.md: sm/md/lg/full) */
  --r-sm:   10px;
  --r-md:   16px;
  --r-lg:   24px;
  --r-xl:   32px;
  --r-full: 999px;

  /* Spacing base 8px */
  --s-1: 4px;  --s-2: 8px;  --s-3: 12px; --s-4: 16px;
  --s-5: 24px; --s-6: 32px; --s-7: 48px; --s-8: 64px; --s-9: 96px;

  /* Elevation — soft SaaS shadows (DESIGN.md is flat; SaaS direction adds depth) */
  --shadow-sm:  0 1px 2px rgba(20,21,43,.06), 0 1px 3px rgba(20,21,43,.05);
  --shadow-md:  0 8px 24px rgba(20,21,43,.08);
  --shadow-lg:  0 24px 48px -12px rgba(20,21,43,.18);
  --shadow-brand: 0 16px 40px -8px rgba(59,91,245,.45);

  --container: 1200px;
  --nav-h: 76px;
}

/* -----------------------------------------------------------------------------
   2. RESET & BASE
----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--brand-600); }
h1, h2, h3, h4, h5 { font-family: var(--font-display); color: var(--ink); line-height: 1.12; margin: 0 0 var(--s-4); font-weight: 700; letter-spacing: -.02em; }
p { margin: 0 0 var(--s-4); }
ul { margin: 0; padding: 0; }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--brand-100); color: var(--brand-700); }

/* Type scale — billboard-above / quiet-below contrast */
.display-1 { font-size: clamp(2.5rem, 6vw, 4.25rem); }
.display-2 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
h1, .h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2, .h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3, .h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); line-height: 1.65; }

/* -----------------------------------------------------------------------------
   3. LAYOUT HELPERS
----------------------------------------------------------------------------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--s-5); }
.section { padding-block: clamp(48px, 9vw, 112px); }
.section-sm { padding-block: clamp(40px, 6vw, 72px); }
.bg-surface { background: var(--surface); }
.bg-soft { background: var(--grad-soft); }
.bg-brand-soft { background: var(--brand-soft); }
.bg-ink { background: var(--ink-canvas); color: var(--on-ink); }
.bg-ink h1, .bg-ink h2, .bg-ink h3 { color: #fff; }
.text-center { text-align: center; }
.text-gradient { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 600; font-size: .8rem;
  letter-spacing: .12em; text-transform: uppercase; color: var(--brand-600);
  margin-bottom: var(--s-3);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }
.eyebrow.center { justify-content: center; }
.section-head { max-width: 640px; }
.section-head.center { margin-inline: auto; text-align: center; }
.muted { color: var(--muted); }

/* Generic responsive grid */
.grid { display: grid; gap: var(--s-5); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* -----------------------------------------------------------------------------
   4. BUTTONS
----------------------------------------------------------------------------- */
.btn {
  --btn-bg: var(--brand); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 600; font-size: .975rem;
  padding: 14px 26px; border-radius: var(--r-full); border: 1.5px solid transparent;
  background: var(--btn-bg); color: var(--btn-fg); cursor: pointer;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease, color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn-primary:hover { color: #fff; box-shadow: 0 20px 48px -8px rgba(59,91,245,.55); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { color: #fff; background: var(--ink-2); }
.btn-light { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn-light:hover { color: var(--brand-600); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--hairline); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--brand-soft); color: var(--brand-600); }
.btn-on-ink { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-on-ink:hover { background: rgba(255,255,255,.18); color: #fff; }
.btn-lg { padding: 17px 34px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn .ic { width: 18px; height: 18px; }

/* play button */
.btn-play .play-ring {
  width: 34px; height: 34px; border-radius: var(--r-full);
  background: var(--brand-soft); display: inline-grid; place-items: center; color: var(--brand);
}

/* -----------------------------------------------------------------------------
   5. ANNOUNCEMENT BAR
----------------------------------------------------------------------------- */
.announce {
  background: var(--grad-brand); color: #fff; text-align: center;
  font-size: .88rem; padding: 9px 16px;
}
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce .dot { opacity: .6; margin-inline: 8px; }

/* -----------------------------------------------------------------------------
   6. NAVBAR
----------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,.8); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: box-shadow .3s ease, border-color .3s ease, background .3s ease;
}
.nav.scrolled { box-shadow: var(--shadow-sm); border-color: var(--hairline); background: rgba(255,255,255,.92); }
.nav-inner { display: flex; align-items: center; gap: var(--s-5); height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 25px; color: #6d5cf5; }
.brand:hover { color: var(--ink); }
.brand-mark {
  background-image: url("/assets/images/logo.png");
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  width: 48px;
  height: 48px;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 auto; list-style: none; }
.nav-item { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 5px; padding: 10px 14px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; font-size: .95rem; -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
  .nav-link:hover { color: var(--brand-600); background: var(--brand-soft); }
}
.nav-link .chev { width: 15px; height: 15px; transition: transform .25s ease; }
.nav-item:hover .chev { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: calc(100%); left: 50%; transform: translateX(-50%) translateY(8px);
  min-width: 290px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden;
  transition: opacity .22s ease, transform .22s ease; list-style: none;
}
.nav-item:hover .dropdown { opacity: 1; visibility: visible; }
.dropdown::before { content: ""; position: absolute; top: -10px; left: 0; right: 0; height: 10px; }
.dd-link { display: flex; flex-direction: column; gap: 2px; padding: 11px 14px; border-radius: var(--r-md); -webkit-tap-highlight-color: transparent; }
.dd-link .t { font-weight: 600; color: var(--ink); font-size: .94rem; }
.dd-link .d { font-size: .82rem; color: var(--muted); }
/* hover only on devices that truly hover — prevents stuck states on touch */
@media (hover: hover) {
  .dd-link:hover { background: var(--brand-soft); }
  .dd-link:hover .t { color: var(--brand-700); }
  .dd-link:hover .d { color: var(--brand-600); }
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.nav-drawer-cta { display: none; }
.nav-backdrop {
  position: fixed; inset: 0; z-index: 900; background: rgba(15,16,32,.4);
  backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease;
}
body.nav-open .nav-backdrop { opacity: 1; visibility: visible; }

/* Hamburger / mobile */
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--hairline); background: #fff; border-radius: var(--r-sm); cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s ease, opacity .2s ease; position: relative;
}
.nav-toggle span::before { position: absolute; top: -6px; }
.nav-toggle span::after { position: absolute; top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* -----------------------------------------------------------------------------
   7. HERO (split / asymmetric — different from competitor's centered hero)
----------------------------------------------------------------------------- */
.hero { position: relative; background: var(--grad-hero); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s-8); align-items: center; padding-block: clamp(48px, 8vw, 104px); }
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: var(--r-full);
  background: #fff; border: 1px solid var(--hairline); box-shadow: var(--shadow-sm);
  font-size: .82rem; font-weight: 600; color: var(--ink-2); margin-bottom: var(--s-5);
}
.badge-pill .ping { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); position: relative; }
.badge-pill .ping::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; background: var(--brand); opacity: .3; animation: ping 1.8s cubic-bezier(0,0,.2,1) infinite; }
@keyframes ping { 75%, 100% { transform: scale(2.4); opacity: 0; } }
.hero h1 { margin-bottom: var(--s-5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-6); }
.hero-note { margin-top: var(--s-4); font-size: .88rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.hero-note .ic { width: 16px; height: 16px; color: var(--success); }
.hero-note .icon-slot { margin-top: 10px; }

/* Hero media with float + glow */
.hero-media { position: relative; }
.hero-media .frame {
  border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  border: 1px solid var(--hairline); background: #fff;
}
.hero-media .frame img { aspect-ratio: 4/3; object-fit: cover; }
.hero-media .blob { position: absolute; border-radius: 50%; filter: blur(8px); z-index: -1; }
.hero-float {
  position: absolute; background: #fff; border-radius: var(--r-md); box-shadow: var(--shadow-lg);
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; font-size: .85rem; font-weight: 600;
  animation: float 5s ease-in-out infinite;
}
.hero-float .ic-wrap { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.hero-float.f1 { top: 14%; left: -22px; animation-delay: .2s; }
.hero-float.f2 { bottom: 12%; right: -16px; animation-delay: 1.2s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* -----------------------------------------------------------------------------
   8. LOGO STRIP
----------------------------------------------------------------------------- */
.logos { text-align: center; }
.logos .eyebrow-text { font-size: .82rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: var(--s-5); }
.logos-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: clamp(20px, 5vw, 56px); }
.logo-word { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; color: var(--muted-2); opacity: .8; transition: color .2s, opacity .2s; }
.logo-word:hover { color: var(--ink); opacity: 1; }

/* -----------------------------------------------------------------------------
   9. CARDS
----------------------------------------------------------------------------- */
.card {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg);
  padding: var(--s-6); transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.feature-icon {
  width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center;
  background: var(--brand-soft); color: var(--brand); margin-bottom: var(--s-4);
  transition: transform .3s ease;
}
.feature-icon .ic { width: 26px; height: 26px; }
.card:hover .feature-icon { transform: scale(1.08) rotate(-4deg); }
.card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; font-size: .95rem; }
.feature-icon.alt { background: var(--accent-soft); color: var(--accent); }

/* icon list */
.tick-list { list-style: none; display: grid; gap: 12px; }
.tick-list li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); }
.tick-list .tick { flex: 0 0 22px; width: 22px; height: 22px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; margin-top: 2px; }
.tick-list .tick .ic { width: 13px; height: 13px; }

/* split feature row */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: center; }
.split.reverse .split-media { order: -1; }
.split-media img { border-radius: var(--r-xl); box-shadow: var(--shadow-lg); border: 1px solid var(--hairline); }

/* -----------------------------------------------------------------------------
   10. STATS / COUNTERS
----------------------------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.stat { text-align: center; }
.stat .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); color: var(--ink); letter-spacing: -.02em; }
.bg-ink .stat .num { color: #fff; }
.bg-ink .stat .num .suffix { color: var(--brand-300); }
.stat .num .suffix { color: var(--brand); }
.stat .label { color: var(--muted); font-size: .92rem; font-weight: 500; margin-top: 4px; }
.bg-ink .stat .label { color: var(--muted-2); }

/* -----------------------------------------------------------------------------
   11. STEPS / PROCESS
----------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-6); counter-reset: step; position: relative; }
.steps.four { grid-template-columns: repeat(4, 1fr); }
.step { position: relative; }
.step .num { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--brand); background: var(--brand-soft); width: 52px; height: 52px; border-radius: var(--r-md); display: grid; place-items: center; margin-bottom: var(--s-4); }
.step h3 { font-size: 1.15rem; margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: .95rem; }

/* -----------------------------------------------------------------------------
   12. TESTIMONIALS
----------------------------------------------------------------------------- */
.quote-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; gap: var(--s-4); height: 100%; }
.quote-card .mark { font-family: var(--font-display); font-size: 3rem; line-height: .6; color: var(--brand-300); }
.quote-card .q { font-size: 1.05rem; color: var(--ink-2); flex: 1; }
.quote-card .who { display: flex; align-items: center; gap: 12px; }
.quote-card .who img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.quote-card .who .name { font-weight: 600; color: var(--ink); font-size: .95rem; }
.quote-card .who .role { color: var(--muted); font-size: .85rem; }
.stars { display: inline-flex; gap: 2px; color: #f59e0b; }
.stars .ic { width: 16px; height: 16px; fill: currentColor; }

/* -----------------------------------------------------------------------------
   13. CTA BAND
----------------------------------------------------------------------------- */
.cta-band { position: relative; border-radius: var(--r-xl); overflow: hidden; background: var(--grad-dark); color: #fff; padding: clamp(40px, 6vw, 72px); text-align: center; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: var(--grad-hero); opacity: .8; }
.cta-band > * { position: relative; }
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,.78); max-width: 560px; margin-inline: auto; }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--s-3); justify-content: center; margin-top: var(--s-5); }

/* -----------------------------------------------------------------------------
   14. PAGE HEADER (inner pages)
----------------------------------------------------------------------------- */
.page-head { background: var(--grad-soft); padding-block: clamp(48px, 7vw, 88px); text-align: center; position: relative; overflow: hidden; }
.page-head .container { position: relative; }
.page-head h1 { margin-bottom: var(--s-3); }
.page-head .lead { max-width: 620px; margin-inline: auto; }
.breadcrumb { display: flex; gap: 8px; justify-content: center; font-size: .85rem; color: var(--muted); margin-top: var(--s-4); }
.breadcrumb a { color: var(--muted); }
.breadcrumb .sep { color: var(--muted-2); }

/* -----------------------------------------------------------------------------
   15. PRICING
----------------------------------------------------------------------------- */
.price-toggle { display: inline-flex; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-full); padding: 6px; box-shadow: var(--shadow-sm); }
.price-toggle button { border: 0; background: transparent; padding: 10px 20px; border-radius: var(--r-full); font-weight: 600; color: var(--muted); cursor: pointer; font-family: var(--font-body); transition: all .2s; }
.price-toggle button.active { background: var(--ink); color: #fff; }
.price-toggle .save { font-size: .72rem; background: var(--accent-soft); color: var(--accent); padding: 2px 8px; border-radius: var(--r-full); margin-left: 4px; font-weight: 700; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); align-items: stretch; }
.plan { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: var(--s-6); display: flex; flex-direction: column; position: relative; transition: transform .28s, box-shadow .28s; }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.plan.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-brand); transform: translateY(-8px); }
.plan .plan-badge { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--grad-brand); color: #fff; font-size: .72rem; font-weight: 700; padding: 5px 14px; border-radius: var(--r-full); letter-spacing: .04em; }
.plan .pname { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; }
.plan .ptag { color: var(--muted); font-size: .9rem; margin-bottom: var(--s-4); }
.plan .price { font-family: var(--font-display); font-weight: 700; font-size: 2.75rem; color: var(--ink); letter-spacing: -.02em; line-height: 1; }
.plan .price .per { font-size: .95rem; color: var(--muted); font-weight: 500; font-family: var(--font-body); }
.plan .price-sub { font-size: .82rem; color: var(--muted); margin-top: 6px; min-height: 18px; }
.plan .plan-features { list-style: none; display: grid; gap: 12px; margin: var(--s-5) 0; flex: 1; }
.plan .plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--ink-2); }
.plan .plan-features .tick { color: var(--brand); flex: 0 0 18px; }
.plan .plan-features .tick .ic { width: 18px; height: 18px; }
.plan .plan-features li.off { color: var(--muted-2); }

/* comparison table */
.compare-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--hairline); }
.compare-table th, .compare-table td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--hairline); font-size: .92rem; }
.compare-table thead th { background: var(--surface); font-family: var(--font-display); color: var(--ink); }
.compare-table td:not(:first-child), .compare-table th:not(:first-child) { text-align: center; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table .yes { color: var(--brand); font-weight: 700; }
.compare-table .yes .ic { width: 50px; height: 50px; }

/* -----------------------------------------------------------------------------
   16. BLOG
----------------------------------------------------------------------------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: var(--s-7); }
.chip { border: 1px solid var(--hairline); background: #fff; color: var(--ink-2); padding: 9px 18px; border-radius: var(--r-full); font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .2s; font-family: var(--font-body); }
.chip:hover { border-color: var(--brand); color: var(--brand); }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.post-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; transition: transform .28s, box-shadow .28s; height: 100%; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/10; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.06); }
.post-card .body { padding: var(--s-5); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tag { align-self: flex-start; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-600); background: var(--brand-soft); padding: 4px 10px; border-radius: var(--r-full); }
.post-card h3 { font-size: 1.15rem; margin: 0; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--brand-600); }
.post-card .excerpt { color: var(--muted); font-size: .92rem; margin: 0; }
.post-meta { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: 8px; }
.post-meta .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--muted-2); }

.featured-post { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s-6); background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-xl); overflow: hidden; align-items: center; }
.featured-post .fp-media { aspect-ratio: 16/11; overflow: hidden; height: 100%; }
.featured-post .fp-media img { width: 100%; height: 100%; object-fit: cover; }
.featured-post .fp-body { padding: clamp(24px, 4vw, 48px); }

/* article */
.article { max-width: 760px; margin-inline: auto; }
.article p { font-size: 1.08rem; color: var(--ink-2); line-height: 1.8; }
.article h2 { margin-top: var(--s-7); font-size: 1.6rem; }
.article img { border-radius: var(--r-lg); margin-block: var(--s-5); }
.article figure { margin: var(--s-6) 0; }
.article figcaption { text-align: center; font-size: .85rem; color: var(--muted); margin-top: 10px; }
.article blockquote { margin: var(--s-6) 0; padding: var(--s-5) var(--s-6); border-left: 4px solid var(--brand); background: var(--brand-soft); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--font-display); font-size: 1.3rem; color: var(--ink); font-weight: 500; }
.article ul.rich { list-style: none; display: grid; gap: 12px; margin: var(--s-5) 0; }
.article ul.rich li { display: flex; gap: 12px; align-items: flex-start; font-size: 1.05rem; color: var(--ink-2); }
.article ul.rich li::before { content: ""; flex: 0 0 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-top: 11px; }
.article-head { max-width: 760px; margin-inline: auto; text-align: center; }
.article-author { display: inline-flex; align-items: center; gap: 12px; margin-top: var(--s-4); }
.article-author img { width: 48px; height: 48px; border-radius: 50%; }
.article-author .name { font-weight: 600; color: var(--ink); text-align: left; }
.article-author .meta { font-size: .85rem; color: var(--muted); text-align: left; }
.tags-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s-6); }

/* -----------------------------------------------------------------------------
   17. PORTFOLIO
----------------------------------------------------------------------------- */
.portfolio-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-5); }
.work { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 4/3; background: var(--surface); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.work:hover img { transform: scale(1.08); }
.work .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(15,16,32,.88) 0%, rgba(15,16,32,.1) 55%, transparent 100%); display: flex; flex-direction: column; justify-content: flex-end; padding: var(--s-5); opacity: 0; transform: translateY(12px); transition: opacity .35s ease, transform .35s ease; }
.work:hover .overlay { opacity: 1; transform: translateY(0); }
.work .overlay .tag { color: #fff; background: rgba(255,255,255,.18); }
.work .overlay h3 { color: #fff; margin: 8px 0 4px; font-size: 1.25rem; }
.work .overlay p { color: rgba(255,255,255,.85); margin: 0; font-size: .9rem; }

/* -----------------------------------------------------------------------------
   18. TEAM
----------------------------------------------------------------------------- */
.team-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
.member { text-align: center; }
.member .photo { position: relative; border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 1; margin-bottom: var(--s-4); background: var(--surface); }
.member .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.member:hover .photo img { transform: scale(1.06); }
.member .socials { position: absolute; inset-inline: 0; bottom: 0; padding: 12px; display: flex; gap: 8px; justify-content: center; background: linear-gradient(to top, rgba(15,16,32,.7), transparent); opacity: 0; transition: opacity .3s; }
.member:hover .socials { opacity: 1; }
.member .socials a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; }
.member .socials a:hover { background: var(--brand); color: #fff; }
.member .m-name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); }
.member .m-role { color: var(--muted); font-size: .88rem; }

/* -----------------------------------------------------------------------------
   19. CAREERS
----------------------------------------------------------------------------- */
.role-row { display: flex; align-items: center; gap: var(--s-4); justify-content: space-between; background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-md); padding: var(--s-4) var(--s-5); transition: border-color .2s, transform .2s, box-shadow .2s; flex-wrap: wrap; }
.role-row:hover { border-color: var(--brand); transform: translateX(4px); box-shadow: var(--shadow-sm); }
.role-row .r-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--ink); }
.role-meta { display: flex; gap: 8px; flex-wrap: wrap; }
.pill-meta { font-size: .8rem; font-weight: 600; color: var(--ink-2); background: var(--surface); padding: 5px 12px; border-radius: var(--r-full); }

/* -----------------------------------------------------------------------------
   20. FAQ ACCORDION
----------------------------------------------------------------------------- */
.faq-group { margin-bottom: var(--s-7); }
.faq-group h3 { font-size: 1.3rem; margin-bottom: var(--s-4); }
.accordion-item { border: 1px solid var(--hairline); border-radius: var(--r-md); margin-bottom: 12px; overflow: hidden; background: #fff; transition: border-color .2s, box-shadow .2s; }
.accordion-item.open { border-color: var(--brand-300); box-shadow: var(--shadow-sm); }
.accordion-q { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; color: var(--ink); cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.accordion-q .icn { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; transition: transform .3s; }
.accordion-item.open .accordion-q .icn { transform: rotate(45deg); background: var(--brand); color: #fff; }
.accordion-a { max-height: 0; overflow: hidden; transition: max-height .35s ease; }
.accordion-a-inner { padding: 0 22px 20px; color: var(--muted); font-size: .98rem; }

/* -----------------------------------------------------------------------------
   21. CONTACT
----------------------------------------------------------------------------- */
.contact-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: var(--s-7); align-items: start; }
.method-row { display: flex; gap: 16px; align-items: flex-start; padding: var(--s-4) 0; border-bottom: 1px solid var(--hairline); }
.method-row:last-child { border-bottom: 0; }
.method-row .m-ic { flex: 0 0 48px; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; }
.method-row .m-t { font-weight: 700; color: var(--ink); font-family: var(--font-display); }
.method-row .m-v { color: var(--muted); }
.form-card { background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow-sm); }
.field { margin-bottom: var(--s-4); }
.field label { display: block; font-weight: 600; font-size: .88rem; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--hairline); border-radius: var(--r-md);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink); background: #fff; transition: border-color .2s, box-shadow .2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-100); }
.field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4); }
.form-success { display: none; background: var(--accent-soft); color: #0f766e; border: 1px solid #99f6e4; border-radius: var(--r-md); padding: 14px 16px; font-weight: 600; margin-bottom: var(--s-4); }
.form-success.show { display: block; }

/* -----------------------------------------------------------------------------
   22. 404
----------------------------------------------------------------------------- */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; background: var(--grad-hero); }
.notfound .code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 22vw, 13rem); line-height: 1; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* -----------------------------------------------------------------------------
   23. FOOTER
----------------------------------------------------------------------------- */
.footer { background: var(--ink-canvas); color: var(--muted-2); padding-top: var(--s-9); }
.footer a { color: var(--muted-2); }
.footer a:hover { color: #fff; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr 1.4fr; gap: var(--s-6); padding-bottom: var(--s-7); }
.footer .brand { color: #fff; }
.footer .brand:hover { color: #fff; }
.footer-blurb { margin: var(--s-4) 0; font-size: .92rem; max-width: 280px; }
.footer-col h4 { color: #fff; font-size: .95rem; font-family: var(--font-display); margin-bottom: var(--s-4); }
.footer-col ul { list-style: none; display: grid; gap: 11px; }
.footer-col a { font-size: .9rem; }
.news-form { display: flex; gap: 8px; margin-top: var(--s-4); }
.news-form input { flex: 1; min-width: 0; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: #fff; font-family: var(--font-body); }
.news-form input::placeholder { color: var(--muted-2); }
.news-form input:focus { outline: none; border-color: var(--brand-300); }
.footer-social { display: flex; gap: 10px; margin-top: var(--s-5); }
.footer-social a { width: 40px; height: 40px; border-radius: var(--r-md); background: rgba(255,255,255,.06); display: grid; place-items: center; transition: background .2s, transform .2s; }
.footer-social a:hover { background: var(--brand); transform: translateY(-3px); }
.footer-social a .ic { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-block: var(--s-5); display: flex; justify-content: space-between; align-items: center; gap: var(--s-4); flex-wrap: wrap; font-size: .85rem; }
.footer-legal { display: flex; gap: var(--s-4); flex-wrap: wrap; }

/* -----------------------------------------------------------------------------
   24. SCROLL-REVEAL ANIMATION
----------------------------------------------------------------------------- */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.16,1,.3,1), transform .7s cubic-bezier(.16,1,.3,1); will-change: opacity, transform; }
[data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }
[data-reveal][data-delay="4"] { transition-delay: .32s; }
[data-reveal][data-delay="5"] { transition-delay: .40s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .hero-float, .badge-pill .ping::after { animation: none; }
  html { scroll-behavior: auto; }
}

/* -----------------------------------------------------------------------------
   25. UTILITIES
----------------------------------------------------------------------------- */
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-6 { margin-top: var(--s-6); } .mt-7 { margin-top: var(--s-7); }
.gap-tight { gap: var(--s-4) !important; }
.maxw-560 { max-width: 560px; }
.hide-mobile { }
.flow > * + * { margin-top: var(--s-4); }

/* =============================================================================
   26. RESPONSIVE
   Breakpoints: large >1400 | desktop <=1200 | laptop <=992 | tablet <=768 | mobile <=576
   ========================================================================== */

/* Large screens — let it breathe */
@media (min-width: 1500px) {
  :root { --container: 1280px; }
}

/* Desktop / small-laptop */
@media (max-width: 1200px) {
  .footer-top { grid-template-columns: 1.4fr 1fr 1fr 1.4fr; }
  .footer-col.hide-lg { display: none; }
}

/* Laptop / large tablet */
@media (max-width: 992px) {
  .nav-links, .btn-nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { justify-content: space-between; }
  .nav-actions { margin-left: auto; }

  /* Mobile drawer — anchored to the navbar so it stays flush under it
     whether or not the announcement bar is showing */
  .nav-links {
    display: flex; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: #fff; margin: 0; padding: var(--s-3) var(--s-4) var(--s-5); gap: 2px;
    border-top: 1px solid var(--hairline); box-shadow: var(--shadow-lg);
    max-height: calc(100vh - var(--nav-h)); overflow-y: auto; -webkit-overflow-scrolling: touch;
    transform: translateY(-10px); opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity .26s ease, transform .26s ease, visibility .26s ease;
  }
  body.nav-open .nav-links { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
  .nav-link { padding: 15px 16px; font-size: 1.05rem; justify-content: space-between; border-radius: var(--r-md); }
  .nav-item { border-bottom: 1px solid var(--hairline-soft); }
  .nav-item:last-of-type { border-bottom: 0; }
  .nav-item .chev { transition: transform .25s ease; }
  .dropdown {
    position: static; transform: none; visibility: visible; box-shadow: none;
    border: 0; border-radius: 0; min-width: 0; padding: 0; margin: 0;
    opacity: 0; max-height: 0; overflow: hidden;
    transition: max-height .3s ease, opacity .3s ease;
  }
  .nav-item.open .dropdown { opacity: 1; max-height: 60vh; padding-bottom: 6px; }
  .nav-item.open .chev { transform: rotate(180deg); }
  .dropdown::before { display: none; }
  .dd-link { padding: 11px 16px 11px 26px; }

  /* CTAs move into the drawer */
  .nav-drawer-cta { display: grid; gap: 10px; margin-top: var(--s-4); padding: 0 4px; }

  .hero-grid { grid-template-columns: 1fr; gap: var(--s-7); }
  .hero-media { max-width: 560px; }
  .split, .split.reverse { grid-template-columns: 1fr; gap: var(--s-6); }
  .split.reverse .split-media { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: var(--s-6); }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-media { aspect-ratio: 16/9; }
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .steps, .steps.four, .pricing-grid, .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .plan.featured { transform: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-col.span-news { grid-column: 1 / -1; }
}

/* Tablet */
@media (max-width: 768px) {
  .grid-2, .grid-3, .grid-4, .stats, .steps, .steps.four, .pricing-grid, .portfolio-grid, .split { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .form-row { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .hero-float { display: none; }
  .cta-band { padding: var(--s-7) var(--s-5); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .compare-table { min-width: 620px; }
}

/* Mobile */
@media (max-width: 576px) {
  :root { --nav-h: 64px; }
  .container { padding-inline: var(--s-4); }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .team-grid { grid-template-columns: repeat(2, 1fr); gap: var(--s-4); }
  .stats { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); }
  .footer-top { grid-template-columns: 1fr; }
  .news-form { flex-direction: column; }
  .news-form .btn { width: 100%; }
  .price-toggle { width: 100%; justify-content: center; }
  .role-row { align-items: flex-start; }
}
