﻿/* ═══════════════════════════════════════════════════════════════════
   Landing Page — Premium SaaS 2026
   ═══════════════════════════════════════════════════════════════════ */

html { scroll-behavior: smooth; }

/* ── Responsive Nav Helpers ────────────────────────────────────────── */
.md-nav-links { display: none; }
.sm-show { display: none; }
@media (min-width: 40rem) { .sm-show { display: inline-flex; } }
@media (min-width: 48rem) { .md-nav-links { display: flex; } .md-nav-hide { display: none !important; } }

/* ── Custom Properties ───────────────────────────────────────────── */
:root {
    --brand-indigo: #6366f1;
    --brand-violet: #8b5cf6;
    --brand-cyan:   #22d3ee;
    --brand-emerald:#34d399;
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --glass-bg: rgba(255,255,255,0.42);
    --glass-border: rgba(255,255,255,0.28);
    --glass-blur: blur(40px) saturate(180%);
    --glass-shadow: 0 8px 32px rgba(99,102,241,0.07);
    --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.5);
}
.dark {
    --glass-bg: rgba(15,23,42,0.48);
    --glass-border: rgba(148,163,184,0.09);
    --glass-shadow: 0 8px 32px rgba(0,0,0,0.25);
    --glass-highlight: inset 0 1px 0 rgba(255,255,255,0.04);
}

/* ── Scrollbar ───────────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--brand-indigo); border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #818cf8; }

/* ── Typography Helpers ──────────────────────────────────────────── */
.text-5xl  { font-size: 3rem;    line-height: 1.1; }
.text-6xl  { font-size: 3.75rem; line-height: 1.05; }
.text-7xl  { font-size: 4.5rem;  line-height: 1; }
.text-xl   { font-size: 1.25rem; line-height: 1.75; }
.text-balance { text-wrap: balance; }
.leading-relaxed { line-height: 1.625; }
.leading-snug    { line-height: 1.375; }

/* ── Layout Helpers ──────────────────────────────────────────────── */
.absolute   { position: absolute; }
.top-0      { top: 0; }
.left-0     { left: 0; }
.right-0    { right: 0; }
.w-full     { width: 100%; }
.h-full     { height: 100%; }
.max-w-3xl  { max-width: 48rem; }
.max-w-4xl  { max-width: 56rem; }
.max-w-5xl  { max-width: 64rem; }
.max-w-7xl  { max-width: 80rem; }
.w-px       { width: 1px; }
.h-6        { height: 1.5rem; }
.h-8        { height: 2rem; }
.h-10       { height: 2.5rem; }
.h-12       { height: 3rem; }
.w-6        { width: 1.5rem; }
.w-8        { width: 2rem; }
.w-10       { width: 2.5rem; }
.w-12       { width: 3rem; }
.mt-8       { margin-top: 2rem; }
.mt-10      { margin-top: 2.5rem; }
.mt-12      { margin-top: 3rem; }
.mt-16      { margin-top: 4rem; }
.mt-20      { margin-top: 5rem; }
.mb-2       { margin-bottom: 0.5rem; }
.mb-3       { margin-bottom: 0.75rem; }
.mb-6       { margin-bottom: 1.5rem; }
.mb-10      { margin-bottom: 2.5rem; }
.mb-12      { margin-bottom: 3rem; }
.mb-16      { margin-bottom: 4rem; }
.gap-5      { gap: 1.25rem; }
.gap-6      { gap: 1.5rem; }
.gap-8      { gap: 2rem; }
.gap-10     { gap: 2.5rem; }
.gap-12     { gap: 3rem; }
.p-4        { padding: 1rem; }
.p-5        { padding: 1.25rem; }
.p-6        { padding: 1.5rem; }
.p-10       { padding: 2.5rem; }
.px-8       { padding-inline: 2rem; }
.py-20      { padding-block: 5rem; }
.py-24      { padding-block: 6rem; }
.items-start { align-items: flex-start; }
.justify-start { justify-content: flex-start; }
.flex-wrap   { flex-wrap: wrap; }
.text-right  { text-align: right; }
.whitespace-nowrap { white-space: nowrap; }
.list-none   { list-style: none; }
.border-none { border: none; }

@media (min-width: 40rem) {
    .sm\:flex-row   { flex-direction: row; }
    .sm\:text-left  { text-align: left; }
    .sm\:text-5xl   { font-size: 3rem; line-height: 1.1; }
}
@media (min-width: 48rem) {
    .md\:text-5xl { font-size: 3rem;    line-height: 1.1; }
    .md\:text-6xl { font-size: 3.75rem; line-height: 1.05; }
    .md\:text-7xl { font-size: 4.5rem;  line-height: 1; }
    .md\:text-xl  { font-size: 1.25rem; line-height: 1.75; }
    .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .md\:flex-row    { flex-direction: row; }
    .md\:items-center { align-items: center; }
    .md\:text-left   { text-align: left; }
}
@media (min-width: 64rem) {
    .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .lg\:text-6xl { font-size: 3.75rem; line-height: 1.05; }
    .lg\:text-7xl { font-size: 4.5rem;  line-height: 1; }
}

/* ── Gradient Text ───────────────────────────────────────────────── */
.gradient-text {
    background: linear-gradient(135deg, #818cf8 0%, #a78bfa 40%, #c084fc 70%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dark .gradient-text {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 40%, #d8b4fe 70%, #6ee7b7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ── Navigation ──────────────────────────────────────────────────── */
.landing-nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    transition: background-color .35s ease, backdrop-filter .35s ease, box-shadow .35s ease;
}
.nav-scrolled {
    background-color: rgba(255,255,255,.55);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(255,255,255,.22);
    box-shadow: 0 1px 3px rgba(0,0,0,.04), 0 8px 24px rgba(99,102,241,.04);
}
.dark .nav-scrolled {
    background-color: rgba(3,7,18,.65);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-bottom: 1px solid rgba(148,163,184,.08);
    box-shadow: 0 1px 3px rgba(0,0,0,.2), 0 8px 24px rgba(0,0,0,.15);
}
.nav-link {
    font-size: .875rem;
    font-weight: 500;
    color: #4b5563;
    transition: color .2s;
    text-decoration: none;
}
.nav-link:hover { color: #6366f1; }
.dark .nav-link { color: #9ca3af; }
.dark .nav-link:hover { color: #a5b4fc; }

/* ── Hamburger Button ─────────────────────────────────────────── */
.burger-btn {
    position: relative;
    width: 2.25rem;
    height: 2.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 200;
    border-radius: .5rem;
    transition: background .2s;
}
.burger-btn:hover { background: rgba(99,102,241,.08); }
.dark .burger-btn:hover { background: rgba(165,180,252,.1); }

.burger-bar {
    display: block;
    width: 1.2rem;
    height: 2px;
    border-radius: 2px;
    background: #4b5563;
    transition: transform .4s cubic-bezier(.23,1,.32,1), opacity .3s ease, background .3s;
    transform-origin: center;
}
.dark .burger-bar { background: #d1d5db; }

/* Animated X state */
.burger-btn.active .burger-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #a5b4fc;
}
.burger-btn.active .burger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}
.burger-btn.active .burger-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: #a5b4fc;
}

/* ── Full-Screen Mobile Overlay (Glass) ───────────────────────── */
.mobile-overlay {
    position: fixed;
    inset: 0;
    z-index: 99;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.72);
    backdrop-filter: blur(48px) saturate(200%);
    -webkit-backdrop-filter: blur(48px) saturate(200%);
    opacity: 0;
    visibility: hidden;
    transition: opacity .45s cubic-bezier(.23,1,.32,1), visibility .45s;
}
.dark .mobile-overlay {
    background: rgba(3,7,18,.78);
    backdrop-filter: blur(48px) saturate(200%);
    -webkit-backdrop-filter: blur(48px) saturate(200%);
}
.mobile-overlay.open {
    opacity: 1;
    visibility: visible;
}

.mobile-overlay-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3rem;
    width: 100%;
    padding: 2rem;
    max-width: 24rem;
}

/* ── Overlay Nav Links ───────────────────────────────────────── */
.mobile-overlay-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .25rem;
    width: 100%;
}

.mobile-overlay-link {
    position: relative;
    display: block;
    width: 100%;
    text-align: center;
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: -.02em;
    padding: .875rem 1rem;
    border-radius: .875rem;
    color: #1f2937;
    text-decoration: none;
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity .5s cubic-bezier(.23,1,.32,1),
        transform .5s cubic-bezier(.23,1,.32,1),
        background .25s ease,
        color .25s ease;
    transition-delay: calc(.06s * var(--i, 0));
}
.dark .mobile-overlay-link { color: #e5e7eb; }

.mobile-overlay.open .mobile-overlay-link {
    opacity: 1;
    transform: translateY(0);
    /* stagger each link via --i */
    transition-delay: calc(.08s + .07s * var(--i, 0));
}

.mobile-overlay-link:hover {
    background: rgba(99,102,241,.08);
    color: #6366f1;
}
.dark .mobile-overlay-link:hover {
    background: rgba(129,140,248,.1);
    color: #c7d2fe;
}

/* Gradient underline on hover */
.mobile-overlay-link::after {
    content: '';
    position: absolute;
    bottom: .4rem;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 40%;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, #6366f1, #a78bfa, #c084fc);
    transition: transform .35s cubic-bezier(.23,1,.32,1);
    transform-origin: center;
}
.mobile-overlay-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

/* ── Overlay Footer ──────────────────────────────────────────── */
.mobile-overlay-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity .5s cubic-bezier(.23,1,.32,1) .35s,
                transform .5s cubic-bezier(.23,1,.32,1) .35s;
}
.mobile-overlay.open .mobile-overlay-footer {
    opacity: 1;
    transform: translateY(0);
}

.mobile-overlay-tagline {
    font-size: .75rem;
    font-weight: 500;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #9ca3af;
}
.dark .mobile-overlay-tagline { color: #6b7280; }

/* Body scroll lock when menu is open */
body.menu-open { overflow: hidden; }

/* ── Hero Section ────────────────────────────────────────────────── */
.hero-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
#hero-canvas {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    pointer-events: none;
}
.hero-gradient {
    background:
        radial-gradient(ellipse 90% 70% at 50% -5%, rgba(99,102,241,.16) 0%, transparent 65%),
        radial-gradient(ellipse 55% 55% at 85% 35%, rgba(139,92,246,.1) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 15% 60%, rgba(34,211,238,.06) 0%, transparent 50%);
}
.dark .hero-gradient {
    background:
        radial-gradient(ellipse 90% 70% at 50% -5%, rgba(99,102,241,.28) 0%, transparent 65%),
        radial-gradient(ellipse 55% 55% at 85% 35%, rgba(139,92,246,.18) 0%, transparent 55%),
        radial-gradient(ellipse 40% 40% at 15% 60%, rgba(34,211,238,.08) 0%, transparent 50%);
}

/* ── Hero Entrance Animation ─────────────────────────────────────── */
@keyframes heroFadeIn {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
.hero-animate {
    animation: heroFadeIn .9s var(--ease-out-expo) forwards;
    opacity: 0;
}
.hero-animate-d1 { animation-delay: .15s; }
.hero-animate-d2 { animation-delay: .3s; }
.hero-animate-d3 { animation-delay: .45s; }
.hero-animate-d4 { animation-delay: .6s; }
.hero-animate-d5 { animation-delay: .75s; }

/* ── Section Container ───────────────────────────────────────────── */
.section-container {
    max-width: 72rem;
    margin-inline: auto;
    padding-inline: 1.5rem;
}
.section-padding {
    padding-block: 5rem;
}
@media (min-width: 48rem) {
    .section-padding { padding-block: 7rem; }
}

/* ── Section Badge ───────────────────────────────────────────────── */
.section-badge {
    display: inline-flex;
    align-items: center;
    gap: .375rem;
    padding: .35rem 1rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    background: rgba(99,102,241,.07);
    color: #6366f1;
    border: 1px solid rgba(99,102,241,.12);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.dark .section-badge {
    background: rgba(129,140,248,.1);
    color: #a5b4fc;
    border-color: rgba(165,180,252,.12);
}

/* ── Glass Card (iOS Glassmorphism) ──────────────────────────────── */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--glass-border);
    border-radius: 1.25rem;
    padding: 1.75rem;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    transition:
        transform .4s var(--ease-out-expo),
        box-shadow .4s var(--ease-out-expo),
        border-color .4s ease;
}
.glass-card:hover {
    box-shadow: 0 20px 44px -12px rgba(99,102,241,.16), var(--glass-highlight);
    border-color: rgba(165,180,252,.5);
}
.dark .glass-card {
    background: var(--glass-bg);
    border-color: var(--glass-border);
}
.dark .glass-card:hover {
    box-shadow: 0 20px 44px -12px rgba(99,102,241,.25), var(--glass-highlight);
    border-color: rgba(99,102,241,.3);
}

/* ── Feature Icon ── (see refined version at bottom) */

/* ── Analytics Mockup (Glass) ────────────────────────────────────── */
.analytics-card {
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 1.25rem;
    padding: 2rem;
    box-shadow: 0 25px 50px -12px rgba(99,102,241,.08), inset 0 1px 0 rgba(255,255,255,.5);
}
.dark .analytics-card {
    background: rgba(15,23,42,.55);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border-color: rgba(148,163,184,.08);
    box-shadow: 0 25px 50px -12px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.04);
}
.analytics-bar {
    height: .5rem;
    border-radius: .25rem;
    transition: width 1.2s var(--ease-out-expo);
}
.bar-indigo  { background: linear-gradient(90deg, #6366f1, #818cf8); }
.bar-violet  { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }
.bar-emerald { background: linear-gradient(90deg, #10b981, #34d399); }
.bar-cyan    { background: linear-gradient(90deg, #06b6d4, #22d3ee); }

/* ── Step Circle ─────────────────────────────────────────────────── */
.step-number {
    width: 3.25rem;
    height: 3.25rem;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.125rem;
    font-weight: 700;
    flex-shrink: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    box-shadow: 0 4px 14px -4px rgba(99,102,241,.4);
}
.step-connector {
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, #818cf8, transparent);
    margin-left: calc(3.25rem / 2 - 1px);
}

/* ── Pricing (Glass) ─────────────────────────────────────────────── */
.pricing-card {
    background: rgba(255,255,255,.48);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 1.5rem;
    padding: 2rem;
    transition: transform .4s var(--ease-out-expo), box-shadow .4s var(--ease-out-expo);
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}
.pricing-card:hover {
    box-shadow: 0 20px 48px -12px rgba(99,102,241,.14), var(--glass-highlight);
}
.pricing-card.featured {
    border-color: rgba(129,140,248,.6);
    box-shadow: 0 0 0 1px rgba(129,140,248,.4), 0 25px 60px -15px rgba(99,102,241,.18), var(--glass-highlight);
}
.dark .pricing-card {
    background: rgba(15,23,42,.5);
    border-color: rgba(148,163,184,.08);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}
.dark .pricing-card.featured {
    border-color: rgba(129,140,248,.5);
    box-shadow: 0 0 0 1px rgba(129,140,248,.3), 0 25px 60px -15px rgba(99,102,241,.25), var(--glass-highlight);
}
.pricing-badge {
    position: absolute;
    top: -.7rem;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    padding: .25rem 1rem;
    border-radius: 9999px;
    font-size: .7rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    white-space: nowrap;
}
.check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .625rem;
}
.check-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .875rem;
    color: #4b5563;
}
.dark .check-list li { color: #9ca3af; }
.check-list svg {
    width: 1.125rem;
    height: 1.125rem;
    color: #6366f1;
    flex-shrink: 0;
}
.dark .check-list svg { color: #a5b4fc; }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.dark .faq-item { border-color: #374151; }
.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    text-align: left;
}
.dark .faq-trigger { color: #f3f4f6; }
.faq-chevron {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
    transition: transform .3s ease;
    color: #9ca3af;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height .45s var(--ease-out-expo), opacity .3s ease;
    opacity: 0;
}
.faq-item.open .faq-answer {
    max-height: 200px;
    opacity: 1;
}
.faq-answer p {
    padding-bottom: 1.25rem;
    font-size: .9375rem;
    line-height: 1.6;
    color: #6b7280;
}
.dark .faq-answer p { color: #9ca3af; }

/* ── Testimonials (Glass) ────────────────────────────────────────── */
.testimonial-card {
    background: rgba(255,255,255,.45);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 1.25rem;
    padding: 1.5rem;
    box-shadow: var(--glass-shadow), var(--glass-highlight);
    transition: transform .35s var(--ease-out-expo), box-shadow .35s var(--ease-out-expo);
}
.testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px -10px rgba(99,102,241,.12), var(--glass-highlight);
}
.dark .testimonial-card {
    background: rgba(15,23,42,.45);
    border-color: rgba(148,163,184,.08);
    box-shadow: var(--glass-shadow), var(--glass-highlight);
}
.dark .testimonial-card:hover {
    box-shadow: 0 16px 36px -10px rgba(0,0,0,.3), var(--glass-highlight);
}
.stars { color: #f59e0b; letter-spacing: .08em; font-size: .875rem; }

/* ── CTA Section (Glass) ─────────────────────────────────────────── */
.cta-gradient {
    background: linear-gradient(135deg, #312e81 0%, #4c1d95 40%, #1e1b4b 100%);
    border-radius: 1.75rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(129,140,248,.15);
    box-shadow: 0 32px 64px -20px rgba(79,70,229,.25);
}
.cta-gradient::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99,102,241,.3) 0%, transparent 55%),
        radial-gradient(ellipse at 80% 50%, rgba(139,92,246,.25) 0%, transparent 55%),
        radial-gradient(ellipse at 50% 100%, rgba(34,211,238,.1) 0%, transparent 45%);
    pointer-events: none;
}

/* ── Buttons ─────────────────────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.75rem;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 60%, #a78bfa 100%);
    color: white;
    font-weight: 600;
    font-size: .9375rem;
    border-radius: .875rem;
    border: 1px solid rgba(255,255,255,.15);
    cursor: pointer;
    text-decoration: none;
    transition: all .35s var(--ease-out-expo);
    box-shadow: 0 2px 8px rgba(99,102,241,.25), inset 0 1px 0 rgba(255,255,255,.2);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -6px rgba(99,102,241,.45), inset 0 1px 0 rgba(255,255,255,.25);
    filter: brightness(1.1);
}
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.75rem;
    background: rgba(99,102,241,.05);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #6366f1;
    font-weight: 600;
    font-size: .9375rem;
    border-radius: .875rem;
    border: 1px solid rgba(99,102,241,.2);
    cursor: pointer;
    text-decoration: none;
    transition: all .35s var(--ease-out-expo);
}
.btn-secondary:hover {
    background: rgba(99,102,241,.1);
    border-color: rgba(99,102,241,.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px -6px rgba(99,102,241,.15);
}
.dark .btn-secondary {
    color: #c7d2fe;
    background: rgba(165,180,252,.05);
    border-color: rgba(165,180,252,.18);
}
.dark .btn-secondary:hover {
    background: rgba(165,180,252,.1);
    border-color: rgba(165,180,252,.4);
    box-shadow: 0 8px 20px -6px rgba(99,102,241,.2);
}
.btn-white {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: .8rem 1.75rem;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #4338ca;
    font-weight: 600;
    font-size: .9375rem;
    border-radius: .875rem;
    border: 1px solid rgba(255,255,255,.4);
    cursor: pointer;
    text-decoration: none;
    transition: all .35s var(--ease-out-expo);
    box-shadow: 0 2px 8px rgba(255,255,255,.15), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -6px rgba(255,255,255,.3), inset 0 1px 0 rgba(255,255,255,.6);
}

/* ── CTA Glow ────────────────────────────────────────────────────── */
@keyframes pulseGlow {
    0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,.35); }
    50%      { box-shadow: 0 0 22px 4px rgba(99,102,241,.15); }
}
.cta-glow { animation: pulseGlow 3.5s ease-in-out infinite; }

/* ── Scroll Reveal ───────────────────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity .7s var(--ease-out-expo), transform .7s var(--ease-out-expo);
}
.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }
.reveal-d4 { transition-delay: .32s; }
.reveal-d5 { transition-delay: .40s; }
.reveal-d6 { transition-delay: .48s; }

/* ── Section Divider ─────────────────────────────────────────────── */
.section-divider {
    height: 1px;
    background: linear-gradient(to right, transparent, #e5e7eb, transparent);
}
.dark .section-divider {
    background: linear-gradient(to right, transparent, #374151, transparent);
}

/* ── Social Proof Logos ──────────────────────────────────────────── */
.logo-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 2.5rem;
    opacity: .4;
}
.logo-bar span {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -.02em;
    white-space: nowrap;
}

/* ── Footer ──────────────────────────────────────────────────────── */
.footer-link {
    font-size: .875rem;
    color: #6b7280;
    text-decoration: none;
    transition: color .2s;
}
.footer-link:hover { color: #6366f1; }
.dark .footer-link { color: #9ca3af; }
.dark .footer-link:hover { color: #a5b4fc; }

/* ── Floating Animation (decorative) ─────────────────────────────── */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-8px); }
}
.animate-float { animation: float 6s ease-in-out infinite; }

/* ── Stat Separator ──────────────────────────────────────────────── */
.stat-sep {
    width: 1px;
    height: 2rem;
    background: #d1d5db;
}
.dark .stat-sep { background: #4b5563; }

/* ── Language Switcher ───────────────────────────────────────────── */
.lang-toggle-btn {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .35rem .7rem;
    border-radius: .5rem;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: #6366f1;
    background: rgba(99,102,241,.08);
    border: 1px solid rgba(99,102,241,.15);
    cursor: pointer;
    transition: background .25s ease, border-color .25s ease, transform .25s ease;
    line-height: 1;
    white-space: nowrap;
}
.lang-toggle-btn:hover {
    background: rgba(99,102,241,.15);
    border-color: rgba(99,102,241,.35);
    transform: translateY(-1px);
}
.lang-toggle-btn svg {
    width: 1rem;
    height: 1rem;
    flex-shrink: 0;
}
.dark .lang-toggle-btn {
    color: #a5b4fc;
    background: rgba(165,180,252,.08);
    border-color: rgba(165,180,252,.18);
}
.dark .lang-toggle-btn:hover {
    background: rgba(165,180,252,.15);
    border-color: rgba(165,180,252,.4);
}

/* ═══════════════════════════════════════════════════════════════════
   Hero Glass Demo Panel — Floating URL Shortener Preview
   ═══════════════════════════════════════════════════════════════════ */
.hero-glass-demo {
    max-width: 28rem;
    margin-inline: auto;
    margin-top: 3rem;
    position: relative;
    z-index: 20;
}
.glass-demo-card {
    background: rgba(255,255,255,.38);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 1.25rem;
    padding: 1.25rem 1.5rem;
    box-shadow: 0 16px 40px -10px rgba(99,102,241,.1), inset 0 1px 0 rgba(255,255,255,.5);
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.dark .glass-demo-card {
    background: rgba(15,23,42,.42);
    border-color: rgba(148,163,184,.1);
    box-shadow: 0 16px 40px -10px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.04);
}
.glass-demo-row {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-family: 'SF Mono', 'Cascadia Code', 'Fira Code', ui-monospace, monospace;
    font-size: .75rem;
    line-height: 1;
    overflow: hidden;
}
.glass-demo-dot {
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    flex-shrink: 0;
}
.glass-demo-dot.red    { background: #ef4444; }
.glass-demo-dot.amber  { background: #f59e0b; }
.glass-demo-dot.green  { background: #22c55e; }
.glass-demo-long {
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dark .glass-demo-long { color: #64748b; }
.glass-demo-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}
.glass-demo-divider svg {
    width: 1rem;
    height: 1rem;
    color: #818cf8;
    animation: pulse-arrow 2s ease-in-out infinite;
}
@keyframes pulse-arrow {
    0%, 100% { opacity: .5; transform: translateY(0); }
    50%      { opacity: 1;  transform: translateY(2px); }
}
.glass-demo-short {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.glass-demo-short-url {
    font-size: .8125rem;
    font-weight: 600;
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.dark .glass-demo-short-url {
    background: linear-gradient(135deg, #a5b4fc 0%, #c4b5fd 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.glass-demo-badge {
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    padding: .15rem .5rem;
    border-radius: 9999px;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: rgba(34,197,94,.1);
    color: #16a34a;
    border: 1px solid rgba(34,197,94,.15);
}
.glass-demo-badge .live-dot {
    width: .45rem;
    height: .45rem;
    flex-shrink: 0;
    animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
    0%, 100% { opacity: 1; }
    50%      { opacity: .4; }
}
.dark .glass-demo-badge {
    background: rgba(34,197,94,.08);
    color: #4ade80;
    border-color: rgba(34,197,94,.12);
}

/* ── Noise texture overlay ───────────────────────────────────────── */
.noise-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: .03;
    mix-blend-mode: overlay;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 180px 180px;
}
.dark .noise-overlay { opacity: .04; }

/* ── Glass shimmer on hover ──────────────────────────────────────── */
@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
.glass-shimmer::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(
        110deg,
        transparent 20%,
        rgba(255,255,255,.08) 40%,
        rgba(255,255,255,.15) 50%,
        rgba(255,255,255,.08) 60%,
        transparent 80%
    );
    background-size: 200% 100%;
    opacity: 0;
    transition: opacity .4s ease;
    pointer-events: none;
}
.glass-shimmer:hover::after {
    opacity: 1;
    animation: shimmer 1.8s ease-in-out;
}

/* ── Feature icon refined ────────────────────────────────────────── */
.feature-icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: .875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: linear-gradient(135deg, rgba(238,242,255,.9), rgba(237,233,254,.9));
    color: #6366f1;
    border: 1px solid rgba(99,102,241,.08);
    box-shadow: 0 2px 8px rgba(99,102,241,.06);
}
.dark .feature-icon {
    background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.15));
    color: #a5b4fc;
    border-color: rgba(165,180,252,.08);
    box-shadow: 0 2px 8px rgba(99,102,241,.08);
}
.feature-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* ── Cursor Glow ─────────────────────────────────────────────────── */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.06) 0%, transparent 70%);
    pointer-events: none;
    z-index: 9998;
    will-change: transform;
}
.dark .cursor-glow {
    background: radial-gradient(circle, rgba(129,140,248,.10) 0%, transparent 70%);
}

/* ── 3D Tilt ─────────────────────────────────────────────────────── */
[data-tilt] {
    transition: transform .45s var(--ease-out-expo);
    will-change: transform;
    transform-style: preserve-3d;
}

/* ── Magnetic Buttons ────────────────────────────────────────────── */
[data-magnetic] {
    transition: transform .4s var(--ease-out-expo);
    will-change: transform;
}

/* ── Auth page layout helpers ────────────────────────────────────── */
.auth-top-bar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    justify-content: flex-end;
    padding: .75rem 1.25rem;
    pointer-events: none;
}
.auth-top-controls {
    display: flex;
    align-items: center;
    gap: .25rem;
    pointer-events: auto;
}
.auth-logo-link {
    text-decoration: none;
}
