/* ---- Fonts ---- */
@font-face {
    font-family: 'Roboto';
    src: url('/marketing-assets/roboto-latin-400-normal.425c0713a8176f92.woff2') format('woff2');
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/marketing-assets/roboto-latin-500-normal.5bcc3aa180e7f26f.woff2') format('woff2');
    font-style: normal;
    font-weight: 500;
    font-display: swap;
}

@font-face {
    font-family: 'Roboto';
    src: url('/marketing-assets/roboto-latin-700-normal.b9d66d1708156f76.woff2') format('woff2');
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: 'JetBrains Mono';
    src: url('/marketing-assets/jetbrains-mono-latin-600-normal.400c6bfda18d5d14.woff2') format('woff2');
    font-style: normal;
    font-weight: 600;
    font-display: swap;
}

/* ---- Palette ----
   Mirrors the MudBlazor palettes in App.razor so the two origins look identical.
   Dark is the default; [data-theme="light"] overrides it. */
:root {
    --font-sans: 'Roboto', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --landing-radius: 16px;
    --landing-accent: #7C4DFF;

    --jt-primary: #42A5F5;
    --jt-bg: #121212;
    --jt-surface: #1E1E2E;
    --jt-text: rgba(255, 255, 255, 0.87);
    --jt-text-secondary: rgba(255, 255, 255, 0.6);
    --jt-lines: rgba(255, 255, 255, 0.12);
    --jt-success: #00C853;

    --jt-hero-gradient: linear-gradient(135deg, #1a237e 0%, #0d47a1 50%, #01579b 100%);
    --jt-alt-section: var(--jt-bg);
    --jt-cta-gradient: linear-gradient(135deg, #1a237e 0%, #311b92 100%);
}

[data-theme="light"] {
    --jt-primary: #1976D2;
    --jt-bg: #f5f5f5;
    --jt-surface: #ffffff;
    --jt-text: rgba(0, 0, 0, 0.87);
    --jt-text-secondary: rgba(0, 0, 0, 0.6);
    --jt-lines: rgba(0, 0, 0, 0.12);
    --jt-success: #00A045;

    --jt-hero-gradient: linear-gradient(135deg, #1565c0 0%, #1976d2 50%, #2196f3 100%);
    --jt-alt-section: #f5f5f5;
    --jt-cta-gradient: linear-gradient(135deg, #1565c0 0%, #1976d2 100%);
}

/* ---- Base ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--jt-text);
    background: var(--jt-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin-inline: auto;
    padding-inline: 1.5rem;
}

.container-narrow {
    max-width: 900px;
}

.icon {
    width: 1.5rem;
    height: 1.5rem;
    fill: currentColor;
    flex: none;
}

.icon-sm {
    width: 1.05rem;
    height: 1.05rem;
}

.icon-lg {
    width: 2rem;
    height: 2rem;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    border-radius: 4px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.02857em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.btn-lg {
    padding: 0.65rem 1.4rem;
    font-size: 0.9375rem;
}

.btn-block {
    width: 100%;
}

.btn-text {
    color: rgba(255, 255, 255, 0.85);
}
.btn-text:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.btn-filled {
    color: #fff;
    background: var(--landing-accent);
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14);
}
.btn-filled:hover {
    background: #6c3fff;
}

.btn-filled-primary {
    color: #fff;
    background: var(--jt-primary);
    box-shadow: 0 3px 5px -1px rgba(0, 0, 0, 0.2), 0 6px 10px 0 rgba(0, 0, 0, 0.14);
}
.btn-filled-primary:hover {
    filter: brightness(1.1);
}

.btn-outline-primary {
    color: var(--jt-primary);
    border-color: color-mix(in srgb, var(--jt-primary) 50%, transparent);
}
.btn-outline-primary:hover {
    border-color: var(--jt-primary);
    background: color-mix(in srgb, var(--jt-primary) 8%, transparent);
}

/* ---- Brand wordmark (developer-tool character via mono font) ---- */
.brand-wordmark {
    font-family: var(--font-mono);
    font-weight: 600;
    font-size: 1.25rem;
    letter-spacing: -0.02em;
    color: #fff;
}
.brand-wordmark-dark {
    color: var(--jt-text);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
}

/* ---- Hero ---- */
.landing-hero {
    min-height: 100vh;
    padding: 1rem 0 5rem 0;
    position: relative;
    overflow: hidden;
    background: var(--jt-hero-gradient);
}

.hero-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 55%;
    height: 70%;
    background: radial-gradient(circle, rgba(124, 77, 255, 0.35) 0%, rgba(124, 77, 255, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
    z-index: 0;
}

.landing-hero > .container {
    position: relative;
    z-index: 1;
}

.hero-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 0;
}

.hero-nav-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
}

.nav-outline {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.5);
}
.nav-outline:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.hero-content {
    padding-top: 3.5rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr));
    gap: 2rem;
    align-items: center;
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
}

.hero-eyebrow {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.7);
}

.hero-title {
    margin: 0;
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-size: clamp(2.1rem, 4.5vw, 3.4rem);
}

.hero-subtitle {
    margin: 0;
    color: rgba(255, 255, 255, 0.85);
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    line-height: 1.6;
    max-width: 34rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.trust-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    margin-top: 0.75rem;
}
.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.875rem;
}

.hero-image {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/* ---- Stylized app mockup ---- */
.mock-window {
    width: 100%;
    max-width: 460px;
    border-radius: var(--landing-radius);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: perspective(1400px) rotateY(-7deg) rotateX(3deg);
    transition: transform 0.4s ease;
}
.mock-window:hover {
    transform: perspective(1400px) rotateY(-3deg) rotateX(1deg);
}
.mock-titlebar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.75rem 1rem;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}
.mock-dot-r { background: #ff5f57; }
.mock-dot-y { background: #febc2e; }
.mock-dot-g { background: #28c840; }
.mock-title {
    margin-left: 0.75rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
}
.mock-body {
    padding: 1rem;
    background: rgba(20, 22, 40, 0.55);
}
.mock-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
    margin-bottom: 1rem;
}
.mock-stat {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 0.6rem 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.mock-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
}
.mock-stat-value {
    font-family: var(--font-mono);
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
}
.mock-board {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}
.mock-col {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 0.6rem;
    min-height: 120px;
}
.mock-col-title {
    display: block;
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 0.5rem;
}
.mock-card {
    height: 26px;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    background: rgba(255, 255, 255, 0.12);
}
.mock-card-a { border-left: 3px solid #7C4DFF; }
.mock-card-b { border-left: 3px solid #42A5F5; height: 38px; }
.mock-card-c { border-left: 3px solid #febc2e; height: 44px; }
.mock-card-d { border-left: 3px solid #28c840; opacity: 0.6; }
.mock-card-e { border-left: 3px solid #28c840; opacity: 0.6; }

/* ---- Sections ---- */
.landing-section {
    padding: 6rem 0;
}

.landing-section-alt {
    background: var(--jt-alt-section);
}

.section-head {
    text-align: center;
    max-width: 42rem;
    margin: 0 auto 4rem auto;
}
.section-eyebrow {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    color: var(--jt-primary);
    margin-bottom: 0.75rem;
}
.section-title {
    margin: 0 0 0.75rem 0;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
    color: var(--jt-text);
}
.section-subtitle {
    margin: 0;
    color: var(--jt-text-secondary);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
    line-height: 1.6;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr));
    gap: 2rem;
}

.card-grid-3 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
}

/* ---- Feature cards ---- */
.feature-card {
    height: 100%;
    padding: 1.5rem;
    border: 1px solid var(--jt-lines);
    border-radius: var(--landing-radius);
    background: var(--jt-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.18);
    border-color: var(--landing-accent);
}
.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 12px;
    margin-bottom: 1.25rem;
    background: rgba(124, 77, 255, 0.12);
    color: var(--landing-accent);
}
.feature-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
}
.feature-desc {
    margin: 0;
    color: var(--jt-text-secondary);
    font-size: 0.875rem;
    line-height: 1.6;
}

/* ---- How it works steps ---- */
.step-card {
    text-align: center;
    padding: 1rem;
}
.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin-bottom: 1rem;
    font-family: var(--font-mono);
    font-size: 1.5rem;
    font-weight: 600;
    color: #fff;
    background: var(--jt-primary);
    box-shadow: 0 0 0 6px rgba(124, 77, 255, 0.15);
}
.step-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 600;
    line-height: 1.6;
}

/* ---- Pricing ---- */
.pricing-card {
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding: 2rem;
    border-radius: var(--landing-radius);
    border: 1px solid var(--jt-lines);
    background: var(--jt-surface);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}
.pricing-card-featured {
    border: 2px solid var(--jt-primary);
    box-shadow: 0 20px 50px rgba(124, 77, 255, 0.25);
}
.pricing-badge {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    color: #fff;
    background: var(--jt-primary);
}
.pricing-name {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.334;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}
.pricing-amount {
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--jt-text);
}
.pricing-period {
    color: var(--jt-text-secondary);
    font-size: 0.9rem;
}
.pricing-tagline {
    color: var(--jt-text-secondary);
    font-size: 0.875rem;
    margin: 0.25rem 0 0 0;
}
.pricing-divider {
    height: 1px;
    border: 0;
    margin: 1.5rem 0;
    background: var(--jt-lines);
}
.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem 0;
    flex-grow: 1;
}
.pricing-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.35rem 0;
    color: var(--jt-text);
}
.pricing-list li .icon {
    color: var(--jt-success);
}
.pricing-action {
    margin-top: auto;
}

/* ---- CTA ---- */
.landing-cta {
    padding: 6rem 0;
    text-align: center;
    background: var(--jt-cta-gradient);
}
.cta-title {
    margin: 0 0 0.75rem 0;
    color: #fff;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: clamp(1.7rem, 3vw, 2.5rem);
}
.cta-subtitle {
    margin: 0 0 2rem 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: clamp(1rem, 1.3vw, 1.15rem);
}

/* ---- Footer ---- */
.landing-footer {
    padding: 4rem 0 2rem 0;
    background: var(--jt-surface);
    border-top: 1px solid var(--jt-lines);
    font-size: 0.875rem;
    color: var(--jt-text-secondary);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr repeat(4, 1fr);
    gap: 2rem;
}
.footer-tagline {
    margin: 1rem 0 0 0;
}
.footer-heading {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--jt-text);
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}
.footer-links a {
    color: var(--jt-text-secondary);
    text-decoration: none;
}
.footer-links a:hover {
    color: var(--jt-text);
    text-decoration: underline;
}
.footer-divider {
    height: 1px;
    border: 0;
    margin: 2rem 0;
    background: var(--jt-lines);
}
.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
}
.footer-social {
    display: flex;
    gap: 0.25rem;
}
.footer-social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: var(--jt-text-secondary);
}
.footer-social a:hover {
    color: var(--jt-text);
    background: var(--jt-lines);
}

/* ---- Responsive ---- */
@media (max-width: 960px) {
    .landing-hero {
        padding-bottom: 3.5rem;
    }
    .hero-content {
        padding-top: 2rem;
    }
    .hero-text {
        text-align: center;
        align-items: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-actions,
    .trust-badges {
        justify-content: center;
    }
    .hero-image {
        display: none;
    }
    .landing-section,
    .landing-cta {
        padding: 3.5rem 0;
    }
    .section-head {
        margin-bottom: 2.5rem;
    }
    .landing-footer {
        padding: 3rem 0 2rem 0;
    }
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hero-nav {
        justify-content: center;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .footer-bottom {
        justify-content: center;
        text-align: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
    .mock-window,
    .feature-card,
    .pricing-card,
    .btn {
        transition: none;
    }
}
