/* Landing page — premium marketing */

@keyframes landingSlideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes landingFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.landing-hero {
    position: relative;
    min-height: calc(100vh - 4.25rem);
    padding-top: 5rem;
    padding-bottom: 5rem;
    overflow: hidden;
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(59, 130, 246, 0.12) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(99, 102, 241, 0.08) 0%, transparent 50%);
}
.dark .landing-hero {
    background:
        radial-gradient(ellipse 80% 60% at 70% 20%, rgba(59, 130, 246, 0.18) 0%, transparent 55%),
        radial-gradient(ellipse 60% 50% at 10% 80%, rgba(139, 92, 246, 0.12) 0%, transparent 50%);
}

.landing-hero__grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, black 20%, transparent 75%);
    pointer-events: none;
}
.dark .landing-hero__grid-bg {
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
}
.landing-hero__glow {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(80px);
}
.landing-hero__glow--1 {
    width: 520px;
    height: 520px;
    top: -120px;
    right: -80px;
    background: rgba(37, 99, 235, 0.18);
}
.landing-hero__glow--2 {
    width: 400px;
    height: 400px;
    bottom: 0;
    left: -100px;
    background: rgba(99, 102, 241, 0.12);
}
.dark .landing-hero__glow--1 { background: rgba(59, 130, 246, 0.22); }
.dark .landing-hero__glow--2 { background: rgba(139, 92, 246, 0.15); }

.landing-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    padding: 0.375rem 0.875rem 0.375rem 0.5rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.dark .landing-badge {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border-color: rgba(59, 130, 246, 0.25);
}

.landing-stat-pill {
    padding: 1rem 1.25rem;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}
.dark .landing-stat-pill {
    background: rgba(17, 24, 39, 0.6);
    border-color: rgba(255, 255, 255, 0.06);
}

/* Browser mockup */
.landing-mockup {
    position: relative;
    animation: landingFloat 6s ease-in-out infinite;
}.landing-mockup__frame {
    border-radius: 1rem;
    overflow: hidden;
    background: #0b1120;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.04),
        0 25px 60px -12px rgba(15, 23, 42, 0.35),
        0 0 80px rgba(37, 99, 235, 0.12);
}
.landing-mockup__chrome {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: #151d2e;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-mockup__dot {
    width: 0.625rem;
    height: 0.625rem;
    border-radius: 50%;
}
.landing-mockup__url {
    flex: 1;
    margin-left: 0.5rem;
    padding: 0.375rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.6875rem;
    color: #64748b;
    background: rgba(0, 0, 0, 0.25);
    font-family: ui-monospace, monospace;
}
.landing-mockup__body {
    display: grid;
    grid-template-columns: 140px 1fr;
    min-height: 280px;
}
.landing-mockup__sidebar {
    padding: 1rem 0.75rem;
    background: #0f172a;
    border-right: 1px solid rgba(255, 255, 255, 0.05);
}
.landing-mockup__nav-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.625rem;
    margin-bottom: 0.25rem;
    border-radius: 0.5rem;
    font-size: 0.6875rem;
    color: #64748b;
}
.landing-mockup__nav-item--active {
    color: #93c5fd;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.2);
}
.landing-mockup__main {
    padding: 1rem;
    background: linear-gradient(180deg, #111827 0%, #0b1120 100%);
}
.landing-mockup__metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
    margin-bottom: 1rem;
}
.landing-mockup__metric {
    padding: 0.625rem;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.landing-mockup__metric-val {
    font-size: 0.875rem;
    font-weight: 700;
    color: #f1f5f9;
}
.landing-mockup__metric-lbl {
    font-size: 0.5625rem;
    color: #64748b;
    margin-top: 0.125rem;
}
.landing-mockup__chart {
    height: 72px;
    border-radius: 0.625rem;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: flex-end;
    gap: 4px;
    padding: 0.5rem 0.75rem;
}
.landing-mockup__bar {
    flex: 1;
    border-radius: 3px 3px 0 0;
    background: linear-gradient(180deg, #3b82f6, #1d4ed8);
    opacity: 0.85;
}
.landing-mockup__float {
    position: absolute;
    bottom: -1.5rem;
    left: -1.5rem;
    padding: 0.875rem 1rem;
    border-radius: 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    animation: landingFloat 5s ease-in-out infinite 1s;
}.dark .landing-mockup__float {
    background: #111827;
    border-color: #1e293b;
}

/* Shortener section */
.landing-shortener {
    position: relative;
    margin-top: 0;
    padding-top: 1rem;
    z-index: 20;
}.landing-shortener__card {
    border-radius: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 24px 64px rgba(15, 23, 42, 0.08);
}
.dark .landing-shortener__card {
    background: #111827;
    border-color: #1e293b;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}
.landing-shortener__accent {
    height: 4px;
    border-radius: 1.25rem 1.25rem 0 0;
    background: linear-gradient(90deg, #3b82f6, #6366f1, #8b5cf6);
}

/* Dark stats band */
.landing-stats-band {
    background: linear-gradient(135deg, #0b1120 0%, #1e3a8a 55%, #2563eb 100%);
    position: relative;
    overflow: hidden;
}
.landing-stats-band::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

/* Steps */
.landing-step {
    position: relative;
    text-align: center;
    padding: 2rem 1.5rem;
}
.landing-step__num {
    width: 3rem;
    height: 3rem;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    font-size: 1.125rem;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #3b82f6, #2563eb);
    box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
}
.landing-steps-line {
    display: none;
}
@media (min-width: 768px) {
    .landing-steps-line {
        display: block;
        position: absolute;
        top: 3.5rem;
        left: 20%;
        right: 20%;
        height: 2px;
        background: linear-gradient(90deg, transparent, #bfdbfe, #93c5fd, #bfdbfe, transparent);
    }
    .dark .landing-steps-line {
        background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.3), rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.3), transparent);
    }
}

/* Bento features */
.landing-bento {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: 1fr;
}
@media (min-width: 768px) {
    .landing-bento {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: minmax(140px, auto);
    }
    .landing-bento__item--wide { grid-column: span 3; }
    .landing-bento__item--tall { grid-row: span 2; }
    .landing-bento__item--full { grid-column: span 2; }
}
.landing-bento__item {
    padding: 1.75rem;
    border-radius: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
}
.landing-bento__item:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 40px rgba(37, 99, 235, 0.1);
    border-color: rgba(59, 130, 246, 0.25);
}
.dark .landing-bento__item {
    background: #111827;
    border-color: #1e293b;
}
.dark .landing-bento__item:hover {
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    border-color: rgba(59, 130, 246, 0.3);
}
.landing-bento__icon {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}
.landing-bento__icon--blue { background: #eff6ff; color: #2563eb; }
.landing-bento__icon--green { background: #ecfdf5; color: #059669; }
.landing-bento__icon--purple { background: #f5f3ff; color: #7c3aed; }
.landing-bento__icon--red { background: #fef2f2; color: #dc2626; }
.landing-bento__icon--amber { background: #fffbeb; color: #d97706; }
.landing-bento__icon--indigo { background: #eef2ff; color: #4f46e5; }
.dark .landing-bento__icon--blue { background: rgba(37, 99, 235, 0.15); color: #60a5fa; }
.dark .landing-bento__icon--green { background: rgba(16, 185, 129, 0.12); color: #34d399; }
.dark .landing-bento__icon--purple { background: rgba(124, 58, 237, 0.12); color: #a78bfa; }
.dark .landing-bento__icon--red { background: rgba(239, 68, 68, 0.12); color: #f87171; }
.dark .landing-bento__icon--amber { background: rgba(245, 158, 11, 0.12); color: #fbbf24; }
.dark .landing-bento__icon--indigo { background: rgba(79, 70, 229, 0.12); color: #818cf8; }

/* Testimonials */
.landing-review {
    padding: 2rem;
    border-radius: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    height: 100%;
    display: flex;
    flex-direction: column;
}
.dark .landing-review {
    background: #111827;
    border-color: #1e293b;
}
.landing-review__quote {
    flex: 1;
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--text-muted);
}

/* FAQ */
.landing-faq-item {
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.landing-faq-item:hover,
.landing-faq-item.is-open {
    border-color: rgba(59, 130, 246, 0.35);
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.08);
}
.dark .landing-faq-item {
    background: #111827;
    border-color: #1e293b;
}

/* CTA band */
.landing-cta {
    background: linear-gradient(135deg, #0b1120 0%, #1e3a8a 50%, #2563eb 100%);
    position: relative;
    overflow: hidden;
}
.landing-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.landing-cta__glow {
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    filter: blur(60px);
    top: -100px;
    right: -50px;
    pointer-events: none;
}

/* Trust logos */
.landing-trust-logo {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    opacity: 0.6;
    transition: opacity 0.2s, color 0.2s;
}
.landing-trust:hover .landing-trust-logo {
    opacity: 1;
    color: #64748b;
}

/* Nav scroll */
#main-nav.is-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}
.dark #main-nav.is-scrolled {
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

/* Stagger animations — keyframes MUST exist or content stays invisible */
.landing-animate {
    animation: landingSlideUp 0.65s ease-out both;
}
.landing-animate--1 { animation-delay: 0.08s; }
.landing-animate--2 { animation-delay: 0.16s; }
.landing-animate--3 { animation-delay: 0.24s; }
.landing-animate--4 { animation-delay: 0.32s; }
.landing-animate--5 { animation-delay: 0.4s; }

@media (prefers-reduced-motion: reduce) {
    .landing-animate,
    .landing-mockup,
    .landing-mockup__float {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}

/* Hero quick form */
.landing-hero-form {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 0.5rem;
    border-radius: 1rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 16px 48px rgba(15, 23, 42, 0.1);
}
@media (min-width: 640px) {
    .landing-hero-form {
        flex-direction: row;
        align-items: stretch;
        padding: 0.375rem;
        border-radius: 1rem;
    }
}
.dark .landing-hero-form {
    background: #111827;
    border-color: #1e293b;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}
.landing-hero-form input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
    color: var(--text);
    outline: none;
    min-width: 0;
}
.landing-hero-form input::placeholder {
    color: #94a3b8;
}
html.dark .landing-hero-form input {
    color: #f1f5f9;
}
html.dark .landing-hero-form input::placeholder {
    color: #64748b;
}
.landing-hero-form .btn {
    white-space: nowrap;
    border-radius: 0.75rem;
}
@media (min-width: 640px) {
    .landing-hero-form .btn { border-radius: 0.625rem; }
}

.landing-hero-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 1.5rem;
}
.landing-hero-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #64748b;
}
.dark .landing-hero-feature { color: #94a3b8; }
.landing-hero-feature svg {
    width: 1rem;
    height: 1rem;
    color: #22c55e;
    flex-shrink: 0;
}

.landing-hero-visual {
    position: relative;
    padding-bottom: 2rem;
    padding-left: 0;
}
@media (min-width: 1024px) {
    .landing-hero-visual { padding-left: 1rem; padding-bottom: 3rem; }
}

.landing-hero-card-stack {
    position: absolute;
    top: -0.75rem;
    right: 0;
    z-index: 2;
    padding: 0.75rem 1rem;
    border-radius: 0.875rem;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.625rem;
    animation: landingSlideUp 0.65s ease-out 0.5s both, landingFloat 5s ease-in-out 1.2s infinite;
}
.dark .landing-hero-card-stack {
    background: #111827;
    border-color: #1e293b;
}

@media (max-width: 1023px) {
    .landing-mockup__body { grid-template-columns: 1fr; min-height: 220px; }
    .landing-mockup__sidebar { display: none; }
    .landing-hero { min-height: auto; padding-bottom: 3rem; }
    .landing-hero-card-stack { display: none; }
}