/* Aviorso landing — dark theme aligned with app (gray-900 / gray-800 + blue-500) */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;

    /* App-aligned (Tailwind grays + blue accent) */
    --bg: #111827;
    --bg-elevated: #1f2937;
    --bg-deep: #0b0f19;
    --border: #374151;
    --text: #f9fafb;
    --text-soft: #e5e7eb;
    --muted: #9ca3af;
    --muted-dim: #6b7280;

    --line: rgba(55, 65, 81, 0.9);
    --line-subtle: rgba(55, 65, 81, 0.5);

    --surface: #1f2937;
    --surface-warm: #1a2332;
    --white: #ffffff;

    --accent: #3b82f6;
    --accent-hover: #2563eb;
    --accent-soft: rgba(59, 130, 246, 0.12);
    --accent-glow: rgba(59, 130, 246, 0.35);
    --accent-muted: #60a5fa;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
    --radius-full: 999px;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.45);
    --shadow-device: 0 24px 48px rgba(0, 0, 0, 0.5);

    --space-section: clamp(3.5rem, 8vw, 5.5rem);
    --container: 1120px;
    --narrow: 640px;

    color-scheme: dark;
}

html {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }
}

body {
    font-family: var(--font-sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 clamp(1.25rem, 4vw, 2rem);
}

.narrow {
    max-width: var(--narrow);
    margin-left: auto;
    margin-right: auto;
}

/* ——— Header ——— */
.header {
    position: sticky;
    top: 0;
    z-index: 200;
    background: rgba(17, 24, 39, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--border);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
}

.logo-link {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    z-index: 210;
}

.logo-img {
    height: 42px;
    width: auto;
    max-width: min(200px, 42vw);
    display: block;
    object-fit: contain;
}

.logo-link--footer {
    margin-bottom: 0.75rem;
}

.logo-img--footer {
    height: 34px;
    max-width: 170px;
    opacity: 0.95;
}

/* Nav */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    border-radius: var(--radius-sm);
    z-index: 210;
}

.nav-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.nav-toggle-bar {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 1px;
    transition: transform 0.2s, opacity 0.2s;
}

.header.is-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header.is-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.header.is-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

.nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem 1.5rem;
}

.nav a {
    text-decoration: none;
    color: var(--muted);
    font-weight: 500;
    font-size: 0.9375rem;
    padding: 0.35rem 0;
    transition: color 0.15s;
}

.nav a:hover {
    color: var(--accent-muted);
}

.nav a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

.nav-cta {
    background: var(--accent) !important;
    color: var(--white) !important;
    padding: 0.45rem 1.1rem !important;
    border-radius: var(--radius-full);
    font-weight: 600 !important;
}

.nav-cta:hover {
    background: var(--accent-hover) !important;
    color: var(--white) !important;
}

/* ——— Buttons ——— */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 0.9375rem;
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.15s;
}

.btn-lg {
    padding: 0.9rem 1.65rem;
    font-size: 1rem;
}

.btn-primary {
    background: var(--accent);
    color: var(--white);
    box-shadow: 0 2px 8px var(--accent-glow);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.18);
    border-color: rgba(255, 255, 255, 0.5);
}

.btn-outline-light {
    background: transparent;
    color: var(--white);
    border: 1.5px solid rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.12);
}

.btn--on-cta {
    background: var(--white);
    color: var(--accent);
    box-shadow: var(--shadow-md);
}

.btn--on-cta:hover {
    background: #e5e7eb;
    color: var(--accent-hover);
}

/* ——— Hero ——— */
.hero {
    position: relative;
    color: #e8ecf0;
    padding: clamp(4rem, 14vw, 7.5rem) 0 clamp(4.5rem, 10vw, 6rem);
    text-align: center;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 90% 70% at 50% -25%, rgba(59, 130, 246, 0.22), transparent 55%),
        radial-gradient(ellipse 50% 45% at 100% 40%, rgba(37, 99, 235, 0.12), transparent),
        linear-gradient(168deg, #0b0f19 0%, #111827 40%, #1f2937 100%);
    z-index: 0;
}

.hero-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    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='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    opacity: 0.5;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 720px;
    margin: 0 auto;
}

.hero-diff {
    margin-bottom: 1.35rem;
}

.hero-diff-inner {
    display: inline-block;
    padding: 0.45rem 1.15rem;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.06);
}

.hero-diff-inner strong {
    color: #fff;
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 5.5vw, 3.35rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 1.35rem;
    color: #fff;
}

.hero-br {
    display: none;
}

@media (min-width: 480px) {
    .hero-br {
        display: inline;
    }
}

.hero-lead {
    font-size: clamp(1.05rem, 2.2vw, 1.2rem);
    line-height: 1.65;
    color: rgba(232, 236, 240, 0.92);
    margin-bottom: 2rem;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.hero-lead strong {
    color: #fff;
    font-weight: 700;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
}

/* ——— Sections ——— */
.section {
    padding: var(--space-section) 0;
}

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

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

.section--tint {
    background: linear-gradient(180deg, var(--bg) 0%, var(--surface-warm) 50%, var(--bg) 100%);
    padding: clamp(2.5rem, 6vw, 3.5rem) 0;
}

.section--deep {
    background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
    color: var(--text-soft);
}

.section-head {
    margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head.center {
    text-align: center;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.section-head--light .section-heading--on-dark {
    color: #fff;
}

.section-kicker {
    font-size: 0.8125rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-muted);
    margin-bottom: 0.6rem;
}

.section-kicker--on-dark {
    color: #93c5fd;
}

.section-heading {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 3.5vw, 2.35rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    color: var(--text);
    margin-bottom: 0.65rem;
}

.section-heading--on-dark {
    color: #fff;
}

.section-lead {
    font-size: 1.0625rem;
    color: var(--muted);
    line-height: 1.55;
}

.section-lead--on-dark {
    color: #9ca3af;
}

/* Pain list */
.pain-list {
    list-style: none;
    margin: 1.5rem 0 0;
}

.pain-list__item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text-soft);
    font-size: 1rem;
}

.pain-list__item:last-child {
    border-bottom: none;
}

.pain-list__icon {
    flex-shrink: 0;
    width: 10px;
    height: 10px;
    margin-top: 0.45rem;
    border-radius: 50%;
    background: #e85d5d;
    box-shadow: 0 0 0 3px rgba(232, 93, 93, 0.2);
}

.callout-box {
    margin-top: 2rem;
    padding: 1.25rem 1.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: var(--radius-md);
    border: 1px solid rgba(59, 130, 246, 0.28);
    color: var(--text-soft);
    line-height: 1.6;
    font-size: 1.02rem;
}

/* Pillars */
.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.pillar-card {
    position: relative;
    background: var(--bg);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.5rem 1.85rem;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
    overflow: hidden;
}

.pillar-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
}

.pillar-card__accent {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.pillar-card__accent--b {
    background: linear-gradient(90deg, #2563eb, #818cf8);
}

.pillar-card__accent--c {
    background: linear-gradient(90deg, #6366f1, #a78bfa);
}

.pillar-card__icon {
    font-size: 1.75rem;
    line-height: 1;
    margin-bottom: 0.85rem;
}

.pillar-card__title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.pillar-card__text {
    font-size: 0.98rem;
    color: var(--muted);
    line-height: 1.6;
}

/* Steps */
.steps-flow {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: clamp(1.25rem, 3vw, 2rem);
    max-width: 960px;
    margin: 0 auto;
    counter-reset: step;
}

.steps-flow__step {
    position: relative;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.35rem;
    border: 1px solid var(--border);
    text-align: center;
}

.steps-flow__num {
    width: 48px;
    height: 48px;
    margin: 0 auto 1.1rem;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.steps-flow__title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.45rem;
    color: var(--text);
}

.steps-flow__text {
    font-size: 0.95rem;
    color: var(--muted);
    line-height: 1.55;
}

/* Scenario */
.scenario-card {
    margin-top: 1.5rem;
    padding: 1.65rem 1.75rem;
    background: var(--bg-elevated);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.scenario-card__meta {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text);
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--border);
}

.scenario-card__body {
    color: var(--muted);
    line-height: 1.65;
    font-size: 1.02rem;
}

/* Proof */
.proof-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(180, 195, 210, 0.85);
    margin-bottom: 0.75rem;
}

.proof-mock {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 1.5rem;
    align-items: stretch;
    max-width: 920px;
    margin: 0 auto;
}

.proof-col {
    min-width: 0;
}

.device-frame {
    border-radius: 28px;
    padding: 10px;
    background: linear-gradient(145deg, #2a3544 0%, #1a222d 100%);
    box-shadow: var(--shadow-device);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.device-frame__notch {
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
}

.device-frame__notch::before {
    content: "";
    width: 72px;
    height: 22px;
    background: #111827;
    border-radius: 12px;
}

.device-frame__body {
    background: #111827;
    border-radius: 20px;
    padding: 1rem 0.9rem 1.15rem;
    min-height: 200px;
}

.mock-chat-top {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.bubble {
    border-radius: 14px;
    padding: 0.65rem 0.85rem;
    font-size: 0.84rem;
    line-height: 1.45;
    margin-bottom: 0.65rem;
}

.bubble--user {
    background: rgba(59, 130, 246, 0.28);
    color: #f1f5f9;
    margin-left: 1.25rem;
    border: 1px solid rgba(59, 130, 246, 0.25);
}

.bubble--ai {
    background: rgba(255, 255, 255, 0.06);
    color: #e2e8f0;
    margin-right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.bubble__label {
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    opacity: 0.65;
    margin-bottom: 0.3rem;
}

.bubble__label--ai {
    color: #93c5fd;
    opacity: 0.95;
}

.proof-bridge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    color: rgba(180, 195, 210, 0.75);
    min-width: 4.5rem;
}

.proof-bridge__arrow {
    font-size: 1.6rem;
    color: var(--accent-muted);
    font-weight: 600;
}

.proof-bridge__cap {
    font-size: 0.65rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    text-align: center;
}

.plan-card {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-md);
    padding: 1.15rem 1.2rem;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    min-height: 200px;
}

.plan-card__title {
    font-weight: 700;
    font-size: 0.95rem;
    color: #fff;
    margin-bottom: 0.85rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.plan-card__list {
    margin: 0;
    padding-left: 1.15rem;
    color: rgba(210, 220, 228, 0.92);
    font-size: 0.9rem;
    line-height: 1.55;
}

.plan-meta {
    display: block;
    font-size: 0.78rem;
    color: rgba(180, 195, 210, 0.85);
    font-weight: 500;
    margin-top: 0.15rem;
}

.plan-check {
    color: #9ae6b4;
    font-weight: 600;
}

.proof-animate {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.proof-animate.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Vision */
.vision-quote {
    font-family: var(--font-display);
    font-size: clamp(1.2rem, 2.5vw, 1.45rem);
    font-style: italic;
    text-align: center;
    color: var(--muted);
    line-height: 1.5;
    max-width: 520px;
    margin: 0 auto;
}

/* CTA band */
.cta-band {
    background: linear-gradient(135deg, #111827 0%, #1e3a5f 45%, #111827 100%);
    color: #fff;
    text-align: center;
    padding: clamp(3.5rem, 8vw, 5rem) 0;
    border-top: 1px solid var(--border);
}

.cta-band__inner {
    max-width: 520px;
}

.cta-band__title {
    font-family: var(--font-display);
    font-size: clamp(1.85rem, 4vw, 2.35rem);
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: #fff;
}

.cta-band__text {
    font-size: 1.0625rem;
    color: rgba(230, 236, 242, 0.9);
    margin-bottom: 1.75rem;
    line-height: 1.55;
}

.cta-band__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.cta-band__note {
    font-size: 0.875rem;
    color: rgba(200, 210, 220, 0.75);
}

/* Footer */
.footer {
    background: var(--bg-deep);
    color: rgba(255, 255, 255, 0.75);
    padding: 3rem 0 0;
    border-top: 1px solid var(--border);
}

.footer .logo-img {
    filter: brightness(1.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 2.5rem 3rem;
    padding-bottom: 2.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-tagline {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.55);
    max-width: 280px;
    line-height: 1.5;
}

.footer-nav {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.footer-col__title {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.85rem;
}

.footer-col a {
    display: block;
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
    font-size: 0.9375rem;
    margin-bottom: 0.5rem;
    transition: color 0.15s;
}

.footer-col a:hover {
    color: #fff;
}

.footer-legal {
    padding: 1.25rem 0;
    text-align: center;
}

.footer-legal p {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.4);
}

/* Mobile nav */
@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.75rem 1.25rem 1.25rem;
        background: rgba(31, 41, 55, 0.98);
        backdrop-filter: blur(14px);
        border-bottom: 1px solid var(--border);
        box-shadow: var(--shadow-md);
    }

    .header.is-open .nav {
        display: flex;
    }

    .nav a {
        padding: 0.85rem 0;
        border-bottom: 1px solid var(--border);
        font-size: 1rem;
        color: var(--text-soft);
    }

    .nav a:last-child {
        border-bottom: none;
    }

    .nav-cta {
        margin-top: 0.35rem;
        text-align: center;
        border-radius: var(--radius-full) !important;
    }

    .pillar-grid {
        grid-template-columns: 1fr;
    }

    .steps-flow {
        grid-template-columns: 1fr;
    }

    .proof-mock {
        grid-template-columns: 1fr;
    }

    .proof-bridge {
        flex-direction: row;
        padding: 0.5rem 0;
    }

    .proof-bridge__arrow {
        transform: rotate(90deg);
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        width: 100%;
    }

    .cta-band__actions {
        flex-direction: column;
        align-items: stretch;
    }

    .cta-band__actions .btn {
        width: 100%;
    }
}
