/* ==========================================================================
   CORE STYLESHEET
   --------------------------------------------------------------------------
   Table of contents
   01. Design tokens (overridden per template in theme.css)
   02. Reset & base
   03. Layout: container (responsive breakpoints), sections, grid
   04. Typography helpers
   05. Buttons, badges, links
   06. Header, navigation, mobile drawer
   07. Hero layouts (split / center / full / editorial)
   08. Cards, features, bento
   09. Stats, logos, marquee
   10. Split media, process, gallery
   11. Testimonials
   12. Pricing
   13. FAQ accordion, tabs
   14. Team, blog
   15. CTA, newsletter, forms
   16. Page header, 404
   17. Footer
   18. Utilities: preloader, back-to-top, cursor, reveal states
   19. Reduced motion & print
   ========================================================================== */

/* 01. Design tokens ------------------------------------------------------ */
:root {
  --bg: #ffffff;
  --bg-2: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f0f1f4;
  --text: #0e1116;
  --muted: #5b6270;
  --line: rgba(14, 17, 22, .1);
  --primary: #5b5bf6;
  --primary-2: #8b5cf6;
  --on-primary: #ffffff;
  --accent: #22d3ee;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 28px;
  --radius-btn: 999px;
  --font-head: "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --head-weight: 700;
  --head-tracking: -0.035em;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .06), 0 1px 3px rgba(16, 24, 40, .08);
  --shadow: 0 12px 32px -12px rgba(16, 24, 40, .18);
  --shadow-lg: 0 40px 80px -24px rgba(16, 24, 40, .28);
  --header-h: 76px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --gradient: linear-gradient(135deg, var(--primary), var(--primary-2));
}

/* 02. Reset & base ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
img { object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4, h5, h6 {
  margin: 0 0 .5em;
  font-family: var(--font-head);
  font-weight: var(--head-weight);
  letter-spacing: var(--head-tracking);
  line-height: 1.08;
}
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
figure, blockquote { margin: 0; }
::selection { background: var(--primary); color: var(--on-primary); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; border-radius: 6px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 1000;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* 03. Layout ------------------------------------------------------------- */
/* Mobile-first container that follows the project breakpoint scale:
   640 / 768 / 1024 / 1280 / 1536 / 1920 */
.container { width: 100%; margin-inline: auto; padding-inline: 16px; }
@media (min-width: 640px)  { .container { max-width: 640px; } }
@media (min-width: 768px)  { .container { max-width: 768px; padding-inline: 24px; } }
@media (min-width: 1024px) { .container { max-width: 1024px; } }
@media (min-width: 1280px) { .container { max-width: 1280px; padding-inline: 32px; } }
@media (min-width: 1536px) { .container { max-width: 1440px; } }
@media (min-width: 1920px) { .container { max-width: 1600px; } }
.container--narrow { max-width: 880px !important; }

.section { padding-block: clamp(72px, 10vw, 140px); position: relative; }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
.section--alt { background: var(--bg-2); }
.section--dark { background: #0b0d12; color: #f3f4f6; --text: #f3f4f6; --muted: #a0a7b4; --line: rgba(255,255,255,.1); --surface: #14171f; --surface-2: #1b1f29; }

.grid { display: grid; gap: 24px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 768px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .grid-2 { gap: 32px; }
}
.split { display: grid; gap: 48px; align-items: center; grid-template-columns: 1fr; }
@media (min-width: 1024px) { .split { grid-template-columns: 1fr 1fr; gap: 72px; } .split--reverse > :first-child { order: 2; } }

/* 04. Typography helpers ------------------------------------------------- */
.display { font-size: clamp(2.6rem, 7vw, 6rem); line-height: 1; }
.h1 { font-size: clamp(2.3rem, 5.4vw, 4.6rem); }
.h2 { font-size: clamp(2rem, 4.2vw, 3.4rem); }
.h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.text-gradient { background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--row { max-width: none; display: flex; flex-wrap: wrap; gap: 24px; align-items: end; justify-content: space-between; }
.section-head--row > div { max-width: 640px; }

/* 05. Buttons, badges, links -------------------------------------------- */
.btn {
  --btn-bg: var(--primary); --btn-fg: var(--on-primary);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--radius-btn);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; font-size: .98rem; line-height: 1;
  border: 1px solid transparent; overflow: hidden; isolation: isolate; white-space: nowrap;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), background .3s, color .3s;
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.18);
  transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::after { transform: translateY(0); }
.btn:hover { box-shadow: 0 14px 30px -12px color-mix(in srgb, var(--btn-bg) 70%, transparent); }
.btn .ti { font-size: 1.15em; transition: transform .4s var(--ease); }
.btn:hover .ti-arrow-right, .btn:hover .ti-arrow-up-right { transform: translateX(3px); }
.btn--gradient { background: var(--gradient); }
.btn--dark { --btn-bg: var(--text); --btn-fg: var(--bg); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); border-color: var(--line); }
.btn--ghost::after { background: var(--surface-2); }
.btn--light { --btn-bg: #fff; --btn-fg: #0e1116; }
.btn--sm { min-height: 42px; padding: 10px 18px; font-size: .9rem; }
.btn--lg { min-height: 60px; padding: 18px 32px; font-size: 1.05rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--primary); }
.link-arrow .ti { transition: transform .35s var(--ease); }
.link-arrow:hover .ti { transform: translate(3px, -3px); }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  border: 1px solid var(--line); border-radius: 999px; background: color-mix(in srgb, var(--surface) 80%, transparent);
  font-size: .85rem; font-weight: 500; backdrop-filter: blur(8px);
}
.badge b { background: var(--gradient); color: var(--on-primary); border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-2); font-size: .82rem; font-weight: 500; }
.icon-box {
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 16px;
  background: color-mix(in srgb, var(--primary) 12%, transparent); color: var(--primary); font-size: 1.6rem;
}

/* 06. Header & navigation ----------------------------------------------- */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 100; height: var(--header-h);
  display: flex; align-items: center; transition: background .4s, box-shadow .4s, transform .5s var(--ease), height .4s;
}
.site-header.is-scrolled {
  background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px); box-shadow: 0 1px 0 var(--line); height: 66px;
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header--light:not(.is-scrolled) { color: #fff; --text: #fff; --line: rgba(255,255,255,.25); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-logo, var(--font-head)); font-weight: var(--logo-weight, 700); font-size: var(--logo-size, 1.35rem); letter-spacing: var(--logo-tracking, -0.03em); text-transform: var(--logo-case, none); line-height: 1; }
.logo__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--gradient); color: var(--on-primary); font-size: 1.2rem; }
.nav__menu { display: none; }
.nav__menu > li { position: relative; }
.nav__link { display: inline-flex; align-items: center; gap: 4px; padding: 10px 14px; font-weight: 500; font-size: .95rem; border-radius: 999px; transition: background .3s, color .3s; }
.nav__link:hover, .nav__link.is-active { color: var(--primary); }
.site-header--light:not(.is-scrolled) .nav__link:hover { color: #fff; background: rgba(255,255,255,.12); }
.nav__link .ti { font-size: .9rem; transition: transform .3s; }
.dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 8px;
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: all .35s var(--ease);
  --text: inherit;
}
.site-header--light:not(.is-scrolled) .dropdown { color: #0e1116; background: #fff; }
.nav__menu > li:hover .dropdown, .nav__menu > li:focus-within .dropdown { opacity: 1; visibility: visible; transform: none; }
.nav__menu > li:hover .nav__link .ti { transform: rotate(180deg); }
.dropdown a { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-radius: 10px; font-size: .93rem; font-weight: 500; }
.dropdown a:hover { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.nav__actions .btn { display: none; }
.icon-btn {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--line); font-size: 1.2rem; transition: background .3s, transform .3s;
}
.icon-btn:hover { background: var(--surface-2); }
.site-header--light:not(.is-scrolled) .icon-btn:hover { background: rgba(255,255,255,.12); }
.theme-toggle .ti-moon { display: none; }
[data-theme="dark"] .theme-toggle .ti-sun { display: none; }
[data-theme="dark"] .theme-toggle .ti-moon { display: block; }
@media (min-width: 640px) { .nav__actions .btn { display: inline-flex; } }
@media (min-width: 1024px) {
  .nav__menu { display: flex; align-items: center; gap: 2px; }
  .menu-toggle { display: none; }
}
/* Mobile drawer */
.drawer {
  position: fixed; inset: 0; z-index: 200; visibility: hidden; pointer-events: none;
}
.drawer__backdrop { position: absolute; inset: 0; background: rgba(5, 7, 12, .55); opacity: 0; transition: opacity .4s; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(380px, 88vw); padding: 24px;
  background: var(--bg); color: var(--text); transform: translateX(100%); transition: transform .55s var(--ease);
  display: flex; flex-direction: column; gap: 24px; overflow-y: auto;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; }
.drawer__nav a { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.1rem; font-weight: 500; }
.drawer__nav .sub { padding-left: 16px; font-size: .98rem; color: var(--muted); }
body.no-scroll { overflow: hidden; }

/* 07. Hero layouts ------------------------------------------------------- */
.hero { position: relative; padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(64px, 9vw, 120px); overflow: hidden; }
.hero__title { font-size: clamp(2.6rem, 6.6vw, 5.6rem); line-height: 1.02; margin-bottom: 24px; }
.hero__title em { font-style: normal; }
.hero .lead { margin-bottom: 36px; }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 40px; font-size: .92rem; color: var(--muted); }
.avatars { display: flex; }
.avatars img { width: 40px; height: 40px; border-radius: 50%; border: 3px solid var(--bg); margin-left: -12px; }
.avatars img:first-child { margin-left: 0; }
.stars { color: #f5b301; letter-spacing: 2px; }
/* split */
.hero--split .split { align-items: center; }
.hero__visual { position: relative; }
.hero__visual img { border-radius: var(--radius-lg); width: 100%; aspect-ratio: 4/4.4; }
/* center */
.hero--center { text-align: center; }
.hero--center .lead { margin-inline: auto; }
.hero--center .btn-group, .hero--center .hero__meta { justify-content: center; }
.hero--center .hero__title { max-width: 16ch; margin-inline: auto; }
.hero__stage { margin-top: clamp(48px, 7vw, 88px); position: relative; }
/* full image */
.hero--full { min-height: 100svh; display: flex; align-items: flex-end; color: #fff; --text: #fff; --muted: rgba(255,255,255,.78); --line: rgba(255,255,255,.25); }
.hero--full .hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero--full .hero__bg img { width: 100%; height: 100%; }
.hero--full::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(5,7,12,.35) 0%, rgba(5,7,12,.2) 40%, rgba(5,7,12,.82) 100%); }
.hero--full .hero__title { max-width: 14ch; }
/* editorial */
.hero--editorial .hero__title { font-size: clamp(3rem, 10.5vw, 10rem); line-height: .92; letter-spacing: -0.055em; }
.hero__row { display: grid; gap: 32px; align-items: end; margin-top: 32px; }
@media (min-width: 1024px) { .hero__row { grid-template-columns: 1.1fr 1fr; } }
.hero__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.blob { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.grid-lines {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%);
}
.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px; padding: 14px 18px;
  background: color-mix(in srgb, var(--surface) 88%, transparent); color: var(--text);
  backdrop-filter: blur(14px); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
  font-size: .9rem; line-height: 1.3;
}
.float-card strong { display: block; font-size: 1.1rem; }
.float-card .icon-box { width: 42px; height: 42px; border-radius: 12px; font-size: 1.25rem; }

/* 08. Cards, features, bento -------------------------------------------- */
.card {
  position: relative; padding: clamp(24px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); transition: transform .5s var(--ease), box-shadow .5s var(--ease), border-color .4s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 35%, var(--line)); }
.card h3 { font-size: 1.3rem; margin: 22px 0 10px; }
.card p { color: var(--muted); margin: 0; }
.card--glow::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--primary) 14%, transparent), transparent 60%);
}
.card--glow:hover::before { opacity: 1; }
.bento { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .bento { grid-template-columns: repeat(6, 1fr); grid-auto-rows: minmax(250px, auto); }
  .bento > :nth-child(1) { grid-column: span 4; grid-row: span 2; }
  .bento > :nth-child(2) { grid-column: span 2; }
  .bento > :nth-child(3) { grid-column: span 2; }
  .bento > :nth-child(4) { grid-column: span 3; }
  .bento > :nth-child(5) { grid-column: span 3; }
}
.bento .card { display: flex; flex-direction: column; overflow: hidden; }
.bento__visual { margin-top: auto; padding-top: 24px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; }
.check-list .ti { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 14%, transparent); color: var(--primary); font-size: .85rem; margin-top: 2px; }

/* 09. Stats, logos, marquee --------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
@media (min-width: 1024px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat__num { font-family: var(--font-head); font-size: clamp(2.4rem, 5vw, 4rem); font-weight: var(--head-weight); letter-spacing: -0.04em; line-height: 1; }
.stat__label { color: var(--muted); margin-top: 10px; font-size: .95rem; }
.stats--bordered .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 20px 48px; opacity: .7; }
.logos span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 1.3rem; letter-spacing: -0.03em; }
.logos .ti { font-size: 1.6rem; }
.logos-title { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 28px; }
.marquee { display: flex; overflow: hidden; user-select: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__track { display: flex; flex: none; gap: 56px; padding-right: 56px; align-items: center; animation: marquee var(--marquee-speed, 32s) linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-100%); } }
.text-band { padding-block: 28px; border-block: 1px solid var(--line); }
.text-band .marquee__track span { font-family: var(--font-head); font-size: clamp(2rem, 5vw, 4rem); font-weight: var(--head-weight); letter-spacing: -0.04em; white-space: nowrap; display: inline-flex; align-items: center; gap: 56px; }
.text-band .marquee__track .ti { font-size: .6em; color: var(--primary); }
.text-band .outline { color: transparent; -webkit-text-stroke: 1.5px var(--text); }

/* 10. Split media, process, gallery ------------------------------------ */
.media { position: relative; border-radius: var(--radius-lg); overflow: hidden; }
.media img { width: 100%; height: 100%; aspect-ratio: 5/4; transition: transform 1.2s var(--ease); }
.media:hover img { transform: scale(1.04); }
.media--tall img { aspect-ratio: 4/5; }
.process { display: grid; gap: 24px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1280px) { .process { grid-template-columns: repeat(4, 1fr); } }
.step { position: relative; padding: 32px 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.step__num { font-family: var(--font-head); font-size: .9rem; font-weight: 700; color: var(--primary); display: inline-block; padding: 6px 12px; border-radius: 999px; background: color-mix(in srgb, var(--primary) 12%, transparent); }
.step h3 { font-size: 1.25rem; margin: 22px 0 10px; }
.step p { color: var(--muted); margin: 0; }

/* 11. Testimonials ------------------------------------------------------ */
.testimonial { display: flex; flex-direction: column; gap: 24px; height: 100%; }
.testimonial blockquote { margin: 0; font-size: 1.08rem; line-height: 1.6; }
.testimonial .person { display: flex; align-items: center; gap: 14px; margin-top: auto; }
.testimonial .person img { width: 52px; height: 52px; border-radius: 50%; }
.testimonial .person strong { display: block; }
.testimonial .person span { font-size: .9rem; color: var(--muted); }
.quote-xl { font-family: var(--font-head); font-size: clamp(1.6rem, 3.4vw, 2.8rem); line-height: 1.2; letter-spacing: -0.03em; font-weight: 500; }
.slider { position: relative; }
.slider__track { display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 8px; }
.slider__track::-webkit-scrollbar { display: none; }
.slider__track > * { flex: 0 0 min(88%, 420px); scroll-snap-align: start; }
.slider__nav { display: flex; gap: 10px; }

/* 12. Pricing ----------------------------------------------------------- */
.billing-toggle { display: inline-flex; align-items: center; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); margin-bottom: 48px; }
.billing-toggle button { padding: 10px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; transition: background .3s, color .3s; }
.billing-toggle button.is-active { background: var(--surface); box-shadow: var(--shadow-sm); color: var(--primary); }
.billing-toggle small { color: #16a34a; font-weight: 700; }
.pricing { display: grid; gap: 24px; grid-template-columns: 1fr; align-items: stretch; }
@media (min-width: 1024px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.plan { display: flex; flex-direction: column; gap: 22px; padding: 36px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface); position: relative; }
.plan--featured { background: #0b0d12; color: #fff; --text: #fff; --muted: #a0a7b4; --line: rgba(255,255,255,.12); border-color: transparent; box-shadow: var(--shadow-lg); }
.plan--featured::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--gradient); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.plan__tag { position: absolute; top: 24px; right: 24px; }
.plan__price { font-family: var(--font-head); font-size: 3.2rem; font-weight: var(--head-weight); letter-spacing: -0.04em; line-height: 1; }
.plan__price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .check-list { margin-top: 4px; }
.plan .btn { margin-top: auto; }

/* 13. FAQ accordion & tabs --------------------------------------------- */
.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-family: var(--font-head); font-size: clamp(1.05rem, 1.6vw, 1.25rem); font-weight: 600; letter-spacing: -0.01em; }
.accordion__icon { flex: none; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); transition: transform .4s var(--ease), background .3s; }
.accordion__item.is-open .accordion__icon { transform: rotate(45deg); background: var(--primary); color: var(--on-primary); border-color: transparent; }
.accordion__panel { height: 0; overflow: hidden; transition: height .45s var(--ease); }
.accordion__panel p { padding-bottom: 24px; color: var(--muted); max-width: 70ch; }
.tabs__list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.tabs__btn { padding: 12px 22px; border-radius: 999px; border: 1px solid var(--line); font-weight: 600; transition: all .3s; }
.tabs__btn.is-active, .tabs__btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.tabs__panel[hidden] { display: none; }

/* 14. Team & blog ------------------------------------------------------- */
.member { text-align: left; }
.member__img { border-radius: var(--radius); overflow: hidden; position: relative; margin-bottom: 18px; }
.member__img img { width: 100%; aspect-ratio: 4/4.6; transition: transform 1s var(--ease), filter .6s; filter: grayscale(.25); }
.member:hover .member__img img { transform: scale(1.05); filter: none; }
.member__social { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 8px; transform: translateY(20px); opacity: 0; transition: all .5s var(--ease); }
.member:hover .member__social { transform: none; opacity: 1; }
.member__social a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: #0e1116; }
.member h3 { font-size: 1.2rem; margin-bottom: 2px; }
.member p { color: var(--muted); margin: 0; font-size: .95rem; }
.post { display: flex; flex-direction: column; gap: 16px; }
.post__img { border-radius: var(--radius); overflow: hidden; }
.post__img img { width: 100%; aspect-ratio: 16/10; transition: transform 1s var(--ease); }
.post:hover .post__img img { transform: scale(1.05); }
.post__meta { display: flex; gap: 14px; font-size: .88rem; color: var(--muted); }
.post h3 { font-size: 1.3rem; margin: 0; line-height: 1.25; }
.post:hover h3 { color: var(--primary); }

/* 15. CTA, newsletter, forms ------------------------------------------- */
.cta-box { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px); border-radius: var(--radius-lg); background: var(--gradient); color: var(--on-primary); text-align: center; isolation: isolate; }
.cta-box .lead { color: inherit; opacity: .85; margin-inline: auto; }
.cta-box .btn-group { justify-content: center; }
.cta-box::before, .cta-box::after { content: ""; position: absolute; z-index: -1; border-radius: 50%; background: rgba(255,255,255,.14); }
.cta-box::before { width: 420px; height: 420px; top: -180px; left: -120px; }
.cta-box::after { width: 320px; height: 320px; bottom: -160px; right: -80px; }
.form { display: grid; gap: 16px; }
.form-row { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }
.field label { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 8px; }
.input, .select, .textarea {
  width: 100%; min-height: 54px; padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); transition: border-color .3s, box-shadow .3s;
}
.textarea { min-height: 150px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary) 18%, transparent); }
.newsletter { display: flex; gap: 8px; padding: 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); max-width: 460px; }
.newsletter .input { border: 0; min-height: 48px; background: transparent; box-shadow: none; }
.newsletter .btn { min-height: 48px; }
.form-note { font-size: .88rem; color: var(--muted); }
.form-success { display: none; padding: 14px 18px; border-radius: 14px; background: color-mix(in srgb, #16a34a 14%, transparent); color: #15803d; font-weight: 600; }
.form.is-sent .form-success { display: block; }
.contact-list li { display: flex; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.contact-list .icon-box { width: 48px; height: 48px; font-size: 1.3rem; flex: none; }
.contact-list strong { display: block; }
.map-embed { border-radius: var(--radius-lg); overflow: hidden; min-height: 360px; background: var(--surface-2); position: relative; }

/* 16. Page header & 404 ------------------------------------------------- */
.page-header { position: relative; padding-top: calc(var(--header-h) + clamp(56px, 8vw, 110px)); padding-bottom: clamp(48px, 6vw, 80px); overflow: hidden; }
.page-header h1 { font-size: clamp(2.6rem, 7vw, 6rem); letter-spacing: -0.05em; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: .92rem; color: var(--muted); margin-bottom: 20px; }
.breadcrumb a:hover { color: var(--primary); }
.error-page { min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 120px 16px 80px; }
.error-page .code { font-family: var(--font-head); font-size: clamp(7rem, 26vw, 18rem); line-height: .85; font-weight: 800; letter-spacing: -0.07em; }

/* 17. Footer ------------------------------------------------------------ */
.site-footer { padding-top: clamp(64px, 8vw, 110px); background: var(--bg-2); }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1fr 1fr; padding-bottom: 56px; }
.footer-grid > :first-child { grid-column: 1 / -1; }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr 1.6fr; } .footer-grid > :first-child { grid-column: auto; } }
.footer-grid h4 { font-size: 1rem; margin-bottom: 18px; letter-spacing: 0; }
.footer-links li { padding: 5px 0; }
.footer-links a { color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--primary); }
.socials { display: flex; gap: 10px; margin-top: 22px; }
.socials a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); transition: all .3s; }
.socials a:hover { background: var(--primary); color: var(--on-primary); border-color: transparent; transform: translateY(-3px); }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; padding-block: 26px; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-mega { font-family: var(--font-logo, var(--font-head)); font-weight: 800; font-size: clamp(3.4rem, 15vw, 15rem); letter-spacing: -0.06em; line-height: .8; text-align: center; opacity: .08; user-select: none; padding-top: 24px; overflow: hidden; }

/* 18. Utilities -------------------------------------------------------- */
.preloader { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center; background: var(--bg); transition: opacity .6s, visibility .6s; }
.preloader.is-done { opacity: 0; visibility: hidden; }
.preloader__bar { width: 140px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.preloader__bar::after { content: ""; display: block; height: 100%; width: 40%; background: var(--gradient); animation: load 1s var(--ease) infinite; }
@keyframes load { from { transform: translateX(-100%); } to { transform: translateX(260%); } }
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 50px; height: 50px; border-radius: 50%;
  display: grid; place-items: center; background: var(--text); color: var(--bg); font-size: 1.3rem;
  opacity: 0; visibility: hidden; transform: translateY(16px); transition: all .4s var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.cursor { position: fixed; top: 0; left: 0; z-index: 998; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--primary); pointer-events: none; mix-blend-mode: difference; transition: width .3s, height .3s, margin .3s; display: none; }
.cursor.is-hover { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: #fff; }
@media (hover: hover) and (pointer: fine) { .has-cursor .cursor { display: block; } }
.divider { height: 1px; background: var(--line); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-4 { margin-top: 24px } .mt-6 { margin-top: 40px } .mt-8 { margin-top: 64px }
.w-full { width: 100%; }
.rounded { border-radius: var(--radius); overflow: hidden; }
.hide-mobile { display: none; }
@media (min-width: 1024px) { .hide-mobile { display: initial; } }
/* Reveal states — only hidden when JS + animations are active */
.js-anim [data-anim] { opacity: 0; }
.js-anim [data-anim="none"] { opacity: 1; }
.line-mask { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }

/* 19. Reduced motion & print ------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js-anim [data-anim] { opacity: 1 !important; }
}
@media print { .site-header, .site-footer, .to-top, .preloader, .drawer { display: none !important; } }
