/* ===== CSS Variables ===== */
:root {
    --blue: #2563EB;
    --purple: #5B21B6;
    --accent-blue: #4F8CFF;
    --accent-purple: #6C5CE7;
    --dark-bg: #0a0a0a;
    --dark-bg-alt: #111;
    --dark-bg-card: #161616;
    --dark-bg-card-hover: #1c1c1c;
    --light-bg: #f8fafc;
    --light-bg-card: #ffffff;
    --text-light: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dark: #1e293b;
    --text-dark-muted: #64748b;
    --border-dark: rgba(255,255,255,0.06);
    --border-light: rgba(0,0,0,0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.4);
    --nav-height: 64px;
    --max-width: 1200px;
    --transition: 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--dark-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img, svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Navigation ===== */
.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    background: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-dark);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: -0.01em;
}

.nav-logo .logo-blue {
    color: var(--blue);
    font-weight: 700;
}

.nav-logo .logo-purple {
    color: var(--purple);
    font-weight: 300;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color var(--transition);
    letter-spacing: 0.01em;
}

.nav-links a:hover {
    color: var(--text-light);
}

/* ===== Section Base ===== */
.section {
    padding: 100px 0;
}

.section-dark {
    background: var(--dark-bg);
}

.section-dark-alt {
    background: var(--dark-bg-alt);
}

.section-light {
    background: var(--light-bg);
    color: var(--text-dark);
}

.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.section-light .section-heading {
    color: var(--text-dark);
}

.section-subtext {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 640px;
}

.section-light .section-subtext {
    color: var(--text-dark-muted);
}

.section-center {
    text-align: center;
}

.section-center .section-subtext {
    margin: 0 auto;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding-top: var(--nav-height);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(37, 99, 235, 0.12) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 50%, rgba(91, 33, 182, 0.08) 0%, transparent 50%),
        var(--dark-bg);
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.08;
    margin-bottom: 28px;
    color: #fff;
}

.hero .hero-sub {
    font-size: 1.25rem;
    line-height: 1.7;
    color: var(--text-muted);
    max-width: 620px;
    margin-bottom: 44px;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-sm);
    border: none;
    cursor: pointer;
    transition: all var(--transition);
    letter-spacing: 0.01em;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
}

.btn-primary:hover {
    background: #1d4ed8;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.35);
}

.btn-outline {
    background: transparent;
    color: var(--text-light);
    border: 1px solid rgba(255,255,255,0.2);
}

.btn-outline:hover {
    border-color: rgba(255,255,255,0.4);
    background: rgba(255,255,255,0.04);
}

.btn-submit {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    color: #fff;
    width: 100%;
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-submit:hover {
    box-shadow: 0 4px 24px rgba(37, 99, 235, 0.4);
    transform: translateY(-1px);
}

/* ===== Problem Section ===== */
.pain-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.pain-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 32px;
    transition: all var(--transition);
}

.pain-card:hover {
    background: var(--dark-bg-card-hover);
    border-color: rgba(255,255,255,0.1);
}

.pain-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    color: var(--accent-blue);
}

.pain-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.pain-card p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== What Is It (Light) ===== */
.differentiator-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.diff-card {
    background: var(--light-bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
}

.diff-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    transform: translateY(-2px);
}

.diff-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 18px;
}

.diff-card h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.diff-card p {
    font-size: 0.95rem;
    color: var(--text-dark-muted);
    line-height: 1.65;
}

/* ===== Features Grid ===== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.feature-card {
    background: var(--dark-bg-card);
    border: 1px solid var(--border-dark);
    border-radius: var(--radius);
    padding: 36px 28px;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: rgba(79, 140, 255, 0.2);
    background: var(--dark-bg-card-hover);
}

.feature-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    color: var(--accent-purple);
}

.feature-card h3 {
    font-size: 1.05rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-light);
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.65;
}

/* ===== Integration Section ===== */
.integration-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.integration-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px 24px;
    background: var(--light-bg-card);
    border: 1px solid var(--border-light);
    border-radius: var(--radius);
    min-width: 140px;
    transition: all var(--transition);
}

.integration-item:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}

.integration-item span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dark);
    text-align: center;
}

.integration-connector {
    font-size: 1.5rem;
    color: var(--text-dark-muted);
    font-weight: 300;
}

.integration-center {
    background: linear-gradient(135deg, var(--blue), var(--purple));
    border-color: transparent;
    color: #fff;
}

.integration-center span {
    color: #fff;
    font-weight: 600;
}

.integration-tagline {
    text-align: center;
    margin-top: 32px;
    font-size: 1.05rem;
    font-weight: 500;
    color: var(--text-dark-muted);
    font-style: italic;
}

/* ===== How It Works ===== */
.timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin-top: 56px;
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
}

.timeline-step {
    display: flex;
    gap: 28px;
    padding: 28px 0;
    position: relative;
}

.timeline-step:not(:last-child) {
    border-bottom: 1px solid var(--border-dark);
}

.step-number {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--blue), var(--accent-purple));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.step-content h3 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-light);
}

.step-content p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ===== CTA / Contact Section ===== */
.section-cta {
    background: linear-gradient(135deg, var(--blue) 0%, var(--purple) 100%);
    color: #fff;
    text-align: center;
}

.section-cta .section-heading {
    color: #fff;
}

.section-cta .section-subtext {
    color: rgba(255,255,255,0.85);
    margin: 0 auto 48px;
}

.contact-form {
    max-width: 500px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    text-align: left;
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    font-family: inherit;
    font-size: 0.95rem;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: var(--radius-sm);
    color: #fff;
    outline: none;
    transition: all var(--transition);
}

.form-input::placeholder {
    color: rgba(255,255,255,0.5);
}

.form-input:focus {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.16);
}

textarea.form-input {
    resize: vertical;
    min-height: 120px;
}

/* ===== Footer ===== */
.site-footer {
    padding: 48px 0;
    background: var(--dark-bg);
    border-top: 1px solid var(--border-dark);
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.footer-logo .logo-blue {
    color: var(--blue);
    font-weight: 700;
}

.footer-logo .logo-purple {
    color: var(--purple);
    font-weight: 300;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    font-style: italic;
}

.footer-copy {
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ===== Blazor Error UI (hidden) ===== */
#blazor-error-ui {
    display: none;
}

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero h1 {
        font-size: 2.8rem;
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .differentiator-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section-heading {
        font-size: 2.1rem;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero .hero-sub {
        font-size: 1.1rem;
    }

    .section {
        padding: 72px 0;
    }

    .pain-grid,
    .features-grid,
    .differentiator-grid {
        grid-template-columns: 1fr;
    }

    .integration-flow {
        flex-direction: column;
    }

    .integration-connector {
        transform: rotate(90deg);
    }

    .section-heading {
        font-size: 1.8rem;
    }
}

/* ===== Partners Page ===== */

.partner-hero {
    padding: 140px 0 80px;
    background: linear-gradient(160deg, #0a0a0a 0%, #0f172a 50%, #1e1b4b 100%);
    text-align: center;
}

.partner-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-blue);
    border: 1px solid rgba(79, 140, 255, 0.3);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.partner-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 24px;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted-dark);
    max-width: 680px;
    margin: 0 auto 16px;
    line-height: 1.7;
}

.section-light, .section-dark, .section-gradient, .section-cta {
    padding: 80px 0;
}

.section-light {
    background: #f8f9fa;
    color: #111;
}

.section-dark {
    background: #0a0a0a;
    color: #e2e8f0;
}

.section-gradient {
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
    color: #e2e8f0;
}

.section-cta {
    background: linear-gradient(135deg, #2563EB 0%, #5B21B6 100%);
    color: #fff;
}

.section-cta h2 {
    color: #fff;
}

.section-cta .section-lead {
    color: rgba(255, 255, 255, 0.85);
}

.section-inner {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-light h2, .section-dark h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-dark h2 {
    color: #fff;
}

.section-lead {
    font-size: 1.0625rem;
    line-height: 1.7;
    max-width: 720px;
    margin-bottom: 16px;
}

.section-light .section-lead {
    color: #444;
}

.section-dark .section-lead, .section-gradient .section-lead {
    color: #94a3b8;
}

/* Opportunity grid */
.opportunity-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.opp-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 28px 24px;
}

.opp-icon {
    margin-bottom: 16px;
}

.opp-card h3 {
    font-size: 1.0625rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: #111;
}

.opp-card p {
    font-size: 0.875rem;
    color: #555;
    line-height: 1.6;
}

/* Steps grid */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.step-card {
    text-align: center;
}

.step-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 12px;
}

.step-card h3 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 8px;
}

.step-card p {
    font-size: 0.8125rem;
    color: #94a3b8;
    line-height: 1.6;
}

/* Benefits grid */
.benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.benefit-item {
    display: flex;
    gap: 14px;
    padding: 16px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
}

.benefit-check {
    flex-shrink: 0;
    margin-top: 2px;
}

.benefit-item strong {
    display: block;
    font-size: 0.9375rem;
    margin-bottom: 4px;
    color: #111;
}

.benefit-item p {
    font-size: 0.8125rem;
    color: #555;
    line-height: 1.5;
    margin: 0;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 12px 28px;
    background: var(--accent-blue);
    color: #fff;
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: 8px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.btn-primary:hover {
    background: #1d4ed8;
}

/* Partner CTA centered */
.partner-cta-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.partner-cta-inner .section-lead {
    margin-left: auto;
    margin-right: auto;
}

/* Nav active link */
.nav-links a.active {
    color: var(--accent-blue);
}

/* Responsive */
@@media (max-width: 768px) {
    .partner-hero h1 { font-size: 2rem; }
    .opportunity-grid { grid-template-columns: 1fr; }
    .steps-grid { grid-template-columns: 1fr 1fr; }
    .benefits-grid { grid-template-columns: 1fr; }
}
