/* ==========================================================================
   VoiceNest — main stylesheet
   ========================================================================== */
:root {
  --bg: #f8f7fd;
  --surface: #ffffff;
  --surface-2: #f3f1fb;
  --ink: #12102a;
  --ink-2: #2b2850;
  --muted: #5f5b7d;
  --line: #e6e3f3;
  --brand: #7c5cff;
  --brand-ink: #5b3df0;
  --brand-2: #ff5ca8;
  --accent: #1fc8a0;
  --warn: #f59e0b;
  --danger: #e5484d;
  --dark: #0b0a1f;
  --dark-2: #15132f;
  --grad: linear-gradient(135deg, #7c5cff 0%, #b055ff 50%, #ff5ca8 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(18, 16, 42, .04), 0 8px 24px rgba(18, 16, 42, .06);
  --shadow-lg: 0 20px 60px -12px rgba(40, 20, 120, .28);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --container: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.3rem, 5.4vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
h4 { font-size: 1rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.icon { flex: none; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:focus-visible { outline: 3px solid rgba(124, 92, 255, .45); outline-offset: 2px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1;
  padding: .85em 1.3em; border-radius: 999px; border: 1px solid transparent;
  cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s, opacity .2s;
  text-decoration: none !important; white-space: nowrap; position: relative;
}
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 6px 20px -6px rgba(124, 92, 255, .6); }
.btn-primary:hover:not([disabled]) { box-shadow: 0 10px 28px -6px rgba(124, 92, 255, .75); transform: translateY(-1px); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover:not([disabled]) { border-color: #cfc8f3; background: var(--surface-2); }
.btn-soft { background: rgba(124, 92, 255, .1); color: var(--brand-ink); }
.btn-soft:hover { background: rgba(124, 92, 255, .16); }
.btn-light { background: #fff; color: var(--ink); }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.btn-outline-light:hover { background: rgba(255,255,255,.08); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-sm { padding: .6em 1em; font-size: .86rem; }
.btn-lg { padding: 1em 1.6em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%;
  border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite;
}
.btn-ghost.is-loading::after { border-color: rgba(0,0,0,.15); border-top-color: var(--brand); }
@keyframes spin { to { transform: rotate(360deg); } }
.link-btn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.icon-btn { background: none; border: 0; padding: 6px; border-radius: 8px; color: var(--muted); cursor: pointer; display: inline-flex; }
.icon-btn:hover { background: var(--surface-2); color: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(248, 247, 253, .78);
  backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, .86); }
.header-inner { display: flex; align-items: center; gap: 28px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none !important; font-weight: 800; font-size: 1.18rem; letter-spacing: -.02em; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(124,92,255,.7); }
.main-nav { display: flex; gap: 4px; margin-right: auto; }
.main-nav > a { color: var(--ink-2); font-weight: 600; font-size: .95rem; padding: 8px 14px; border-radius: 999px; text-decoration: none; }
.main-nav > a:hover { background: var(--surface-2); }
.main-nav > a.active { color: var(--brand-ink); background: rgba(124,92,255,.1); }
.nav-auth-mobile { display: none; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.link-login { color: var(--ink); font-weight: 600; font-size: .95rem; }
.nav-toggle { display: none; background: none; border: 0; color: var(--ink); padding: 6px; cursor: pointer; }
.user-menu { position: relative; }
.user-chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px 4px 4px; cursor: pointer; font: inherit; font-weight: 600; color: var(--ink); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: .85rem; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 6px; min-width: 190px; display: none; }
.user-dropdown.open { display: block; }
.user-dropdown a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--ink); font-weight: 500; font-size: .92rem; text-decoration: none; }
.user-dropdown a:hover { background: var(--surface-2); }

/* ---------- Flash & toast ---------- */
.flash-wrap { margin-top: 16px; }
.flash { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 12px; margin-bottom: 10px; font-weight: 500; font-size: .95rem; border: 1px solid; }
.flash-success { background: #e9fbf5; border-color: #b4ecd9; color: #0d6b52; }
.flash-error { background: #fdeeee; border-color: #f5c5c6; color: #a02127; }
.flash-info { background: #efeaff; border-color: #d8cdff; color: #4b2fd0; }
.flash-close { background: none; border: 0; font-size: 1.3rem; line-height: 1; cursor: pointer; color: inherit; opacity: .6; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); background: var(--dark); color: #fff; padding: 13px 20px; border-radius: 14px; box-shadow: var(--shadow-lg); font-size: .93rem; font-weight: 500; opacity: 0; pointer-events: none; transition: .3s; z-index: 200; max-width: calc(100% - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #c9b8ff; text-decoration: underline; }

/* ---------- Hero ---------- */
.hero { position: relative; background: var(--dark); color: #fff; padding: 84px 0 200px; overflow: hidden; isolation: isolate; }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; filter: blur(90px); z-index: -1; opacity: .7; }
.hero::before { width: 620px; height: 620px; background: #6a3dff; top: -260px; left: -120px; animation: float 16s ease-in-out infinite; }
.hero::after { width: 540px; height: 540px; background: #ff3d97; top: -120px; right: -160px; opacity: .45; animation: float 20s ease-in-out infinite reverse; }
@keyframes float { 50% { transform: translate(60px, 40px) scale(1.08); } }
.hero-grid-bg { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 75%); }
.hero-inner { text-align: center; max-width: 860px; margin: 0 auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); font-size: .85rem; font-weight: 600; color: #e3dcff; margin-bottom: 24px; }
.eyebrow .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(31,200,160,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(31,200,160,0); } 100% { box-shadow: 0 0 0 0 rgba(31,200,160,0); } }
.hero h1 { color: #fff; margin-bottom: 20px; }
.hero h1 .grad-text { background: linear-gradient(90deg, #b9a5ff, #ff8cc4); -webkit-background-clip: text; background-clip: text; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #c9c4e6; max-width: 660px; margin: 0 auto 32px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 28px; justify-content: center; flex-wrap: wrap; margin-top: 36px; color: #b4aed6; font-size: .9rem; font-weight: 500; }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof .icon { color: var(--accent); }
.hero-app { margin-top: -150px; position: relative; z-index: 2; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 56px; }
.section-head .kicker { display: inline-block; font-size: .8rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 12px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }
.section-dark { background: var(--dark); color: #d9d5f0; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark .section-head p { color: #a9a3cc; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 0 0; }
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -.03em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { color: var(--muted); font-size: .92rem; font-weight: 500; }

.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #d9d1fb; }
.feature .f-icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(124,92,255,.7); }
.feature .f-icon.teal { background: linear-gradient(135deg, #1fc8a0, #12a0c8); box-shadow: 0 8px 20px -8px rgba(31,200,160,.7); }
.feature .f-icon.amber { background: linear-gradient(135deg, #ffb443, #ff6b3d); box-shadow: 0 8px 20px -8px rgba(255,140,60,.7); }
.feature .f-icon.pink { background: linear-gradient(135deg, #ff5ca8, #ff3d6e); box-shadow: 0 8px 20px -8px rgba(255,92,168,.7); }
.feature p { color: var(--muted); margin: 0; font-size: .97rem; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; background: var(--dark-2); border: 1px solid rgba(255,255,255,.08); border-radius: var(--radius); padding: 30px 28px; }
.step::before { counter-increment: step; content: "0" counter(step); font-size: 2.6rem; font-weight: 800; letter-spacing: -.04em; background: linear-gradient(90deg, #b9a5ff, #ff8cc4); -webkit-background-clip: text; background-clip: text; color: transparent; display: block; margin-bottom: 12px; }
.step p { color: #a9a3cc; margin: 0; }

.usecase { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.usecase .u-icon { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(124,92,255,.1); color: var(--brand-ink); }
.usecase h3 { font-size: 1.05rem; margin-bottom: 4px; }
.usecase p { margin: 0; color: var(--muted); font-size: .94rem; }

.lang-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.lang-card { text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 14px; }
.lang-card .flag { width: 60px; height: 60px; margin: 0 auto 12px; border-radius: 18px; display: grid; place-items: center; font-size: 1.15rem; font-weight: 800; letter-spacing: .04em; color: #fff; background: var(--grad); box-shadow: 0 8px 20px -8px rgba(124,92,255,.7); }
.lang-card strong { display: block; }
.lang-card .tag { display: inline-block; margin-top: 8px; font-size: .75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #e9fbf5; color: #0d7a5c; }
.lang-card .tag.member { background: rgba(124,92,255,.1); color: var(--brand-ink); }

.compare { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--line); }
.compare tr:last-child td { border-bottom: 0; }
.compare thead th { background: var(--surface-2); font-size: .9rem; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--accent); font-weight: 700; }
.compare .hl { background: rgba(124,92,255,.05); }

.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px; padding: 0 22px; transition: box-shadow .2s; }
.faq details[open] { box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; font-weight: 400; color: var(--brand); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; margin: 0; }

.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 40px; text-align: center; background: var(--dark); color: #d9d5f0; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: -40%; background: radial-gradient(circle at 20% 30%, rgba(124,92,255,.55), transparent 40%), radial-gradient(circle at 80% 70%, rgba(255,92,168,.45), transparent 40%); z-index: -1; }
.cta-band h2 { color: #fff; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; color: #c9c4e6; }
.cta-band .hero-ctas { margin: 0; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: var(--dark); color: #c9c4e6; padding: 72px 0 64px; position: relative; overflow: hidden; isolation: isolate; text-align: center; }
.page-hero::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: #6a3dff; filter: blur(110px); opacity: .55; top: -300px; left: 50%; transform: translateX(-50%); z-index: -1; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3.2rem); }
.page-hero p { max-width: 640px; margin: 0 auto; font-size: 1.08rem; }
.page-hero.compact { padding: 44px 0 36px; }

/* ---------- Generic content ---------- */
.prose { max-width: 760px; margin: 0 auto; font-size: 1.06rem; color: var(--ink-2); }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose p, .prose li { line-height: 1.8; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose blockquote { margin: 1.6em 0; padding: 18px 22px; border-left: 4px solid var(--brand); background: rgba(124,92,255,.06); border-radius: 0 12px 12px 0; font-weight: 500; color: var(--ink); }
.prose a { text-decoration: underline; }
.prose img { border-radius: 14px; margin: 1.5em 0; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.about-visual { aspect-ratio: 1; border-radius: 28px; background: var(--dark); position: relative; overflow: hidden; display: grid; place-items: center; isolation: isolate; }
.about-visual::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 30% 30%, rgba(124,92,255,.7), transparent 50%), radial-gradient(circle at 70% 75%, rgba(255,92,168,.55), transparent 50%); z-index: -1; }
.about-visual .bars { display: flex; gap: 8px; align-items: center; height: 46%; }
.about-visual .bars i { width: 12px; border-radius: 99px; background: rgba(255,255,255,.9); animation: eq 1.4s ease-in-out infinite; }
.about-visual .bars i:nth-child(odd) { animation-delay: -.6s; }
.about-visual .bars i:nth-child(3n) { animation-delay: -.3s; }
@keyframes eq { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 28px; }
.value { display: flex; gap: 12px; }
.value .icon { color: var(--brand); margin-top: 3px; }
.value p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Forms ---------- */
.field { display: block; margin-bottom: 16px; }
.field > span { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; color: var(--ink-2); }
.field input, .field textarea, .field select, input.input {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,92,255,.14); }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 6px; display: block; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-2); margin-bottom: 16px; cursor: pointer; }
.check input { margin-top: 4px; accent-color: var(--brand); width: 16px; height: 16px; flex: none; }
.form-error { color: var(--danger); font-size: .9rem; font-weight: 500; margin: 0 0 14px; }
.hp { position: absolute !important; left: -9999px !important; }
.auth-wrap { min-height: calc(100vh - 70px); display: grid; place-items: center; padding: 48px 20px; background: radial-gradient(circle at 15% 10%, rgba(124,92,255,.14), transparent 40%), radial-gradient(circle at 85% 90%, rgba(255,92,168,.12), transparent 40%); }
.auth-card { width: 100%; max-width: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 40px 36px; box-shadow: var(--shadow-lg); }
.auth-card h1 { font-size: 1.9rem; margin-bottom: 6px; }
.auth-card .sub { color: var(--muted); margin-bottom: 26px; }
.auth-card .alt { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: .95rem; }
.perks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.perks li { display: flex; gap: 10px; align-items: center; font-size: .93rem; color: var(--ink-2); }
.perks .icon { color: var(--accent); }
.contact-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 32px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .item .u-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(124,92,255,.1); color: var(--brand-ink); flex: none; }
.contact-info .item p { margin: 0; color: var(--muted); font-size: .94rem; }

/* ---------- Blog ---------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.post-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; color: inherit; text-decoration: none !important; }
.post-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.cover { aspect-ratio: 16 / 9; position: relative; overflow: hidden; display: grid; place-items: center; color: rgba(255,255,255,.95); }
.cover::after { content: ""; position: absolute; inset: 0; background-image: repeating-linear-gradient(90deg, rgba(255,255,255,.12) 0 3px, transparent 3px 14px); mask-image: linear-gradient(transparent 30%, #000 50%, transparent 70%); -webkit-mask-image: linear-gradient(transparent 30%, #000 50%, transparent 70%); }
.cover-violet { background: linear-gradient(135deg, #5b3df0, #b055ff); }
.cover-teal { background: linear-gradient(135deg, #0e9f8a, #1fc8a0 60%, #5ad1ff); }
.cover-amber { background: linear-gradient(135deg, #ff7a3d, #ffb443); }
.cover-pink { background: linear-gradient(135deg, #ff3d6e, #ff5ca8 60%, #b055ff); }
.cover-dark { background: linear-gradient(135deg, #15132f, #3b2a8c); }
.cover .icon { position: relative; z-index: 1; filter: drop-shadow(0 6px 16px rgba(0,0,0,.25)); }
.post-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.post-card p { color: var(--muted); font-size: .94rem; flex: 1; }
.meta { display: flex; gap: 14px; align-items: center; font-size: .82rem; color: var(--muted); font-weight: 500; flex-wrap: wrap; }
.pill { display: inline-block; font-size: .74rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(124,92,255,.1); color: var(--brand-ink); }
.article-head { max-width: 760px; margin: 0 auto; text-align: center; }
.article-head .meta { justify-content: center; color: #b4aed6; margin-top: 18px; }
.article-cover { max-width: 980px; margin: -40px auto 48px; border-radius: 24px; aspect-ratio: 21 / 8; box-shadow: var(--shadow-lg); position: relative; z-index: 2; }
.pagination { display: flex; gap: 8px; justify-content: center; margin-top: 48px; }
.pagination a, .pagination span { padding: 8px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; color: var(--ink); text-decoration: none; }
.pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

.brand-logo { max-height: 36px; max-width: 170px; width: auto; }
.blog-search { display: flex; gap: 8px; max-width: 460px; margin: 26px auto 0; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); padding: 6px; border-radius: 999px; }
.blog-search input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: inherit; padding: 6px 14px; outline: none; }
.blog-search input::placeholder { color: #a9a3cc; }
.cat-chips { justify-content: center; margin-bottom: 36px; }
.chip.on { border-color: var(--brand); color: var(--brand-ink); background: rgba(124,92,255,.08); }
.featured-post { display: grid; grid-template-columns: 1.15fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; overflow: hidden; margin-bottom: 36px; color: inherit; text-decoration: none !important; transition: transform .25s, box-shadow .25s; }
.featured-post:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.featured-post .cover { aspect-ratio: auto; min-height: 320px; }
.featured-post .body { padding: 40px; display: flex; flex-direction: column; justify-content: center; }
.featured-post h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 14px 0 10px; }
.featured-post p { color: var(--muted); font-size: 1.04rem; }
.read-more { display: inline-flex; gap: 6px; align-items: center; font-weight: 700; color: var(--brand-ink); }
.pill-hot { background: linear-gradient(135deg, #ffb443, #ff6b3d); color: #fff; }
.cover-img { background: var(--surface-2); }
.cover-img img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.cover.cover-img::after { display: none; }
.article-cover.cover-img { position: relative; overflow: hidden; }
.crumbs { font-size: .88rem; color: #b4aed6; }
.crumbs a { color: #d9ceff; }
.post-tags { display: flex; gap: 8px; flex-wrap: wrap; margin: 32px 0 0; }
.share { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 24px 0 40px; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share > span { font-weight: 700; margin-right: 4px; }
.share a { font-size: .85rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--surface-2); color: var(--ink); text-decoration: none !important; }
.share a:hover { background: rgba(124,92,255,.12); color: var(--brand-ink); }
.post-cta { text-align: center; }
.auth-icon { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto 18px; color: #fff; background: var(--grad); }
@media (max-width: 880px) {
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .cover { min-height: 0; aspect-ratio: 16 / 9; }
  .featured-post .body { padding: 26px; }
}

/* ---------- SEO content pages ---------- */
.content-hero { text-align: left; padding: 56px 0 52px; }
.content-hero .container { max-width: 1100px; }
.content-hero h1 { margin: 14px 0 14px; max-width: 860px; }
.content-hero p { margin: 0; max-width: 760px; font-size: 1.12rem; }
.crumbs span { color: #8f89b8; }
.content-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; font-size: .86rem; color: #a9a3cc; }
.content-meta span { display: inline-flex; gap: 6px; align-items: center; }
.content-layout { max-width: 1100px; padding-top: 48px; padding-bottom: 32px; }
.content-layout.has-toc { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; align-items: start; }
.toc { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 2px; font-size: .9rem; border-left: 2px solid var(--line); padding-left: 16px; }
.toc strong { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.toc a { color: var(--ink-2); padding: 5px 0; line-height: 1.35; }
.toc a:hover { color: var(--brand-ink); text-decoration: none; }
.content-main { min-width: 0; }
.content-prose { max-width: 760px; margin: 0; }
.content-prose h2 { scroll-margin-top: 90px; }
.content-prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: .96rem; }
.content-prose th, .content-prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.content-prose th { background: var(--surface-2); }
.content-prose ol li, .content-prose ul li { margin-bottom: .4em; }
.hub-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-bottom: 40px; }
.hub-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; color: inherit; text-decoration: none !important; transition: transform .2s, box-shadow .2s, border-color .2s; }
.hub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d9d1fb; }
.hub-card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.hub-card p { color: var(--muted); font-size: .95rem; flex: 1; }
.audio-demo { margin: 1.4em 0; padding: 16px 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); }
.audio-demo figcaption { display: flex; flex-direction: column; margin-bottom: 10px; }
.audio-demo figcaption span { font-size: .88rem; color: var(--muted); }
.audio-demo audio { width: 100%; }
.inline-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin: 1.8em 0; padding: 20px 22px; border-radius: 16px; background: linear-gradient(135deg, rgba(124,92,255,.1), rgba(255,92,168,.08)); border: 1px solid #e3dcff; }
.inline-cta strong { display: block; color: var(--ink); }
.inline-cta span { font-size: .93rem; color: var(--muted); }
.content-faq { max-width: 760px; margin-top: 48px; }
.content-faq .faq { max-width: none; }
.related { max-width: 760px; margin-top: 48px; }
.related h2 { font-size: 1.3rem; }
.related-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.related-grid a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: inherit; text-decoration: none; }
.related-grid a:hover { border-color: var(--brand); }
.related-grid strong { display: block; margin-bottom: 4px; }
.related-grid span { font-size: .88rem; color: var(--muted); }
.related-links { display: flex; gap: 8px; flex-wrap: wrap; }
.learn-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.learn-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.learn-card h3 { font-size: 1.05rem; }
.learn-card h3 a { color: var(--ink); }
.learn-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.learn-card li a { font-size: .93rem; color: var(--ink-2); }
.learn-card li a:hover { color: var(--brand-ink); }
@media (max-width: 1024px) { .learn-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 880px) {
  .content-layout.has-toc { grid-template-columns: 1fr; gap: 0; }
  .toc { display: none; }
  .hub-grid, .related-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .learn-grid { grid-template-columns: 1fr; } }

/* ---------- Ads ---------- */
.ad { margin: 32px auto; text-align: center; max-width: 970px; }
.ad-label { display: block; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ad-placeholder { min-height: 96px; display: grid; place-items: center; border: 1.5px dashed #d6d1ec; border-radius: 14px; background: repeating-linear-gradient(45deg, transparent 0 10px, rgba(124,92,255,.03) 10px 20px); color: #a39fc0; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.ad-sidebar { margin: 0; min-height: 250px; }
.site-footer .ad { margin-top: 0; }

/* ---------- Footer ---------- */

/* ==========================================================================
   TTS app
   ========================================================================== */
.tts-app { position: relative; }
.tts-grid { display: grid; grid-template-columns: 1fr 320px; gap: 20px; }
.tts-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow-lg); }
.tts-main { padding: 24px; position: relative; overflow: hidden; }
.tts-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.select-wrap { display: inline-flex; align-items: center; gap: 8px; padding: 0 0 0 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); }
.select-wrap select { border: 0; background: transparent; font: inherit; font-weight: 600; color: var(--ink); padding: 9px 14px 9px 0; cursor: pointer; outline: none; }
.model-pill { display: inline-flex; align-items: center; gap: 8px; font-size: .84rem; font-weight: 600; color: var(--muted); background: var(--surface-2); padding: 7px 14px; border-radius: 999px; }
.model-pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #b9b5cf; }
.model-pill[data-state="loading"] .dot { background: var(--warn); animation: blink 1s infinite; }
.model-pill[data-state="running"] .dot { background: var(--brand); animation: blink .6s infinite; }
.model-pill[data-state="ready"] .dot { background: var(--accent); }
.model-pill[data-state="error"] .dot { background: var(--danger); }
@keyframes blink { 50% { opacity: .3; } }
.tts-editor textarea { width: 100%; font: inherit; font-size: 1.08rem; line-height: 1.7; color: var(--ink); border: 1.5px solid var(--line); border-radius: 16px; padding: 18px 20px; resize: vertical; min-height: 180px; background: #fdfcff; transition: border-color .2s, box-shadow .2s; }
.tts-editor textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(124,92,255,.12); }
.editor-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: inherit; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.chip:hover { border-color: var(--brand); color: var(--brand-ink); }
.counter { font-size: .88rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.warn { color: var(--warn); }
.limit-note { display: flex; gap: 8px; align-items: flex-start; margin: 12px 0 0; font-size: .86rem; color: var(--ink-2); background: rgba(124,92,255,.07); padding: 10px 14px; border-radius: 12px; }
.limit-note .icon { color: var(--brand); margin-top: 3px; }
.tts-voice-current { display: flex; align-items: center; gap: 10px; margin: 18px 0; flex-wrap: wrap; }
.tts-voice-current .label { font-weight: 700; font-size: .9rem; color: var(--muted); }
.voice-badge { font-weight: 700; padding: 6px 14px; border-radius: 999px; background: var(--surface-2); }
.tts-voice-current .btn { margin-left: auto; }
.tts-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.tts-actions .btn-primary { flex: 1 1 220px; }
.tts-output { margin-top: 20px; padding: 18px; border-radius: 16px; background: var(--dark); color: #c9c4e6; }
.tts-output canvas { width: 100%; height: 64px; }
.out-meta { display: flex; justify-content: space-between; font-size: .85rem; margin: 10px 0 8px; gap: 10px; font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 99px; background: rgba(124,92,255,.18); overflow: hidden; }
.progress .bar { height: 100%; width: 0; background: var(--grad); border-radius: 99px; transition: width .25s; }
.tts-loader { position: absolute; inset: 0; background: rgba(255,255,255,.82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 20px; z-index: 5; transition: opacity .3s; }
.tts-loader.hidden { opacity: 0; pointer-events: none; }
.loader-card { max-width: 400px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px; box-shadow: var(--shadow-lg); }
.loader-card .loader-icon { width: 60px; height: 60px; margin: 0 auto 16px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad); }
.loader-card p { color: var(--muted); font-size: .94rem; }
.loader-card .progress { margin: 18px 0 10px; height: 8px; }
.tts-side { padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.side-head { display: flex; justify-content: space-between; align-items: baseline; }
.side-head h3 { margin: 0; }
.voice-group { margin-top: 14px; }
.voice-group h4 { font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.voice-list { list-style: none; margin: 0 0 10px; padding: 0; display: grid; gap: 4px; }
.voice-list li { display: flex; align-items: center; gap: 2px; }
.voice-list .empty { font-size: .88rem; color: var(--muted); padding: 8px 2px; }
.voice-item { flex: 1; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; border: 1.5px solid transparent; background: none; font: inherit; color: var(--ink); cursor: pointer; text-align: left; min-width: 0; }
.voice-item:hover { background: var(--surface-2); }
.voice-item.selected { border-color: var(--brand); background: rgba(124,92,255,.07); }
.v-avatar { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .85rem; color: var(--brand-ink); background: rgba(124,92,255,.12); }
.v-avatar.mine { color: #fff; background: var(--grad); }
.v-name { font-weight: 600; font-size: .94rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.v-meta { font-size: .76rem; color: var(--muted); }
.v-del { font-size: .8rem; }
.side-note { display: flex; gap: 8px; font-size: .8rem; color: var(--muted); margin: 14px 0 4px; }
.side-note .icon { margin-top: 2px; }
.tts-side .link-btn { align-self: flex-start; }

/* Modal */
.modal { border: 0; padding: 0; background: transparent; max-width: 520px; width: calc(100% - 32px); }
.modal::backdrop { background: rgba(11, 10, 31, .55); backdrop-filter: blur(4px); }
.modal-card { background: var(--surface); border-radius: 22px; padding: 26px; box-shadow: var(--shadow-lg); }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h3 { display: flex; align-items: center; gap: 10px; margin: 0; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.tabs { display: flex; gap: 4px; background: var(--surface-2); padding: 4px; border-radius: 12px; margin-bottom: 16px; }
.tab { flex: 1; font: inherit; font-weight: 600; font-size: .9rem; padding: 9px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); cursor: pointer; }
.tab.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.read-me { margin: 0 0 16px; padding: 14px 16px; border-radius: 12px; background: rgba(124,92,255,.07); font-size: .95rem; color: var(--ink-2); border-left: 3px solid var(--brand); }
.rec-row { display: flex; align-items: center; gap: 18px; margin-bottom: 16px; }
.rec-btn { width: 64px; height: 64px; border-radius: 50%; border: 0; background: #fdeeee; display: grid; place-items: center; cursor: pointer; flex: none; transition: transform .15s; }
.rec-btn span { width: 26px; height: 26px; border-radius: 50%; background: var(--danger); transition: border-radius .2s, width .2s, height .2s; }
.rec-btn.recording { animation: recpulse 1.4s infinite; }
.rec-btn.recording span { border-radius: 6px; width: 22px; height: 22px; }
@keyframes recpulse { 0% { box-shadow: 0 0 0 0 rgba(229,72,77,.5); } 70% { box-shadow: 0 0 0 16px rgba(229,72,77,0); } 100% { box-shadow: 0 0 0 0 rgba(229,72,77,0); } }
.rec-time { font-size: 1.5rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 30px 20px; border: 2px dashed #d6d1ec; border-radius: 16px; text-align: center; cursor: pointer; color: var(--brand-ink); margin-bottom: 16px; transition: .2s; }
.dropzone.over, .dropzone:hover { border-color: var(--brand); background: rgba(124,92,255,.05); }
.dropzone input { display: none; }
.dropzone strong { color: var(--ink); }
#tts-clone-preview { width: 100%; margin-bottom: 16px; }

/* ---------- Account & admin ---------- */
.dash { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 28px; }
.dash .card strong { display: block; font-size: 1.9rem; font-weight: 800; letter-spacing: -.03em; }
.dash .card span { color: var(--muted); font-size: .9rem; }
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data th { background: var(--surface-2); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
table.data tr:last-child td { border-bottom: 0; }
table.data tr.unread td { font-weight: 600; }
.admin-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.admin-nav a { padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; color: var(--ink); text-decoration: none; }
.admin-nav a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions form { margin: 0; }
.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.badge.ok { background: #e9fbf5; color: #0d7a5c; }
.badge.admin { background: rgba(124,92,255,.12); color: var(--brand-ink); }
.error-page { text-align: center; padding: 120px 20px; }
.error-page .code { font-size: clamp(5rem, 14vw, 9rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tts-grid { grid-template-columns: 1fr; }
  .tts-side { max-height: none; }
  .lang-grid { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 880px) {
  .main-nav { position: fixed; inset: 70px 0 auto 0; flex-direction: column; background: var(--surface); padding: 16px 20px 24px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-120%); transition: transform .3s; gap: 2px; margin: 0; z-index: 40; }
  .main-nav { visibility: hidden; }
  .main-nav.open { transform: none; visibility: visible; }
  .main-nav > a { padding: 12px 14px; font-size: 1.02rem; }
  .nav-auth-mobile { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
  .nav-auth-mobile a { padding: 10px 14px; font-weight: 600; color: var(--ink); }
  .nav-auth-mobile .btn { color: #fff; }
  .nav-toggle { display: inline-flex; }
  .header-actions .link-login, .header-actions > .btn, .user-chip-name { display: none; }
  .grid-3, .steps, .blog-grid, .split, .contact-grid, .dash { grid-template-columns: 1fr; }
  .grid-2, .values { grid-template-columns: 1fr; }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 72px 0; }
  .split { gap: 32px; }
  .about-visual { max-width: 420px; }
}
@media (max-width: 560px) {
  .container { padding: 0 16px; }
  .hero { padding: 56px 0 180px; }
  .tts-main, .tts-side { padding: 16px; border-radius: 20px; }
  .lang-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: 1fr; }
  .tts-voice-current .btn { margin-left: 0; }
  .tts-actions .btn { flex: 1 1 auto; }
  .cta-band { padding: 48px 22px; border-radius: 22px; }
  .auth-card { padding: 30px 22px; }
  .compare th, .compare td { padding: 12px 10px; font-size: .88rem; }
  .article-cover { margin: -24px 16px 36px; border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { position: relative; background: #08071a; color: #a9a3cc; padding: 72px 0 28px; overflow: hidden; isolation: isolate; }
.site-footer::before { content: ""; position: absolute; width: 900px; height: 500px; left: 50%; top: -260px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(124,92,255,.28), transparent); z-index: -1; pointer-events: none; }
.site-footer a { text-decoration: none; }
.footer-cta { display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 36px 40px; border-radius: 24px; margin-bottom: 64px;
  background: linear-gradient(120deg, rgba(124,92,255,.95), rgba(176,85,255,.9) 55%, rgba(255,92,168,.9)); box-shadow: 0 30px 80px -30px rgba(124,92,255,.7); position: relative; overflow: hidden; }
.footer-cta::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px); background-size: 18px 18px; mask-image: linear-gradient(90deg, transparent, #000); -webkit-mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.footer-cta-text { position: relative; z-index: 1; max-width: 560px; }
.footer-cta-eyebrow { display: inline-flex; gap: 6px; align-items: center; font-size: .8rem; font-weight: 700; color: #fff; background: rgba(255,255,255,.16); padding: 5px 12px; border-radius: 999px; margin-bottom: 12px; }
.footer-cta h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin: 0 0 6px; }
.footer-cta p { color: rgba(255,255,255,.85); margin: 0; }
.footer-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; position: relative; z-index: 1; }
.footer-cta .btn-outline-light { border-color: rgba(255,255,255,.55); }
.footer-main { display: grid; grid-template-columns: minmax(220px, 1fr) 3.6fr; gap: 48px; padding-bottom: 44px; }
.site-footer .brand { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .95rem; line-height: 1.7; margin-bottom: 20px; max-width: 340px; }
.socials { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #d9d5f0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); transition: .2s; }
.socials a:hover { background: var(--grad); border-color: transparent; color: #fff; transform: translateY(-2px); }
.footer-mail { display: inline-flex; gap: 8px; align-items: center; color: #cfc8f3; font-size: .92rem; font-weight: 600; }
.footer-mail:hover { color: #fff; }
.footer-links { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.footer-col h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: #fff; margin: 0 0 16px; font-weight: 800; }
.footer-col h3 a { color: #fff; }
.footer-col h3 a:hover { color: #c9b8ff; }
.footer-col > a { display: block; color: #a9a3cc; padding: 5px 0; font-size: .93rem; line-height: 1.4; transition: color .15s, transform .15s; }
.footer-col > a:hover { color: #fff; transform: translateX(3px); }
.footer-trust { list-style: none; margin: 0; padding: 22px 0; display: flex; flex-wrap: wrap; gap: 10px 28px; justify-content: center; border-top: 1px solid rgba(255,255,255,.07); border-bottom: 1px solid rgba(255,255,255,.07); }
.footer-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .88rem; font-weight: 600; color: #cfc8f3; }
.footer-trust .icon { color: var(--accent); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; font-size: .86rem; }
.footer-bottom p { margin: 0; }
.footer-legal { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal a { color: #a9a3cc; }
.footer-legal a:hover { color: #fff; }
.to-top { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); transition: .2s; }
.to-top:hover { background: var(--grad); border-color: transparent; }
.footer-note { margin: 18px 0 0; font-size: .8rem; color: #6f6a96; text-align: center; }
@media (max-width: 960px) {
  .footer-main { grid-template-columns: 1fr; gap: 40px; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .footer-cta { padding: 28px 22px; margin-bottom: 48px; }
  .footer-cta-actions, .footer-cta-actions .btn { width: 100%; }
  .footer-links { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-trust { justify-content: flex-start; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .to-top { align-self: flex-end; margin-top: -6px; }
}
