/* ── Tokens (matched to cloud.flotive.ai) ──────────────── */
:root {
    --bg:            #f8fafc;
    --bg-white:      #ffffff;
    --bg-card:       #ffffff;
    --bg-elevated:   #f1f5f9;
    --border:        #e2e8f0;
    --border-hover:  #cbd5e1;
    --text:          #0f172a;
    --text-secondary:#475569;
    --text-muted:    #64748b;
    --text-faint:    #94a3b8;
    --brand:         #1a365d;
    --brand-hover:   #2c5282;
    --brand-light:   #e8edf4;
    --accent:        #3b82f6;
    --accent-hover:  #2563eb;
    --accent-light:  #eff6ff;
    --teal:          #0f766e;
    --teal-light:    #f0fdfa;
    --amber:         #b45309;
    --amber-light:   #fffbeb;
    --purple:        #7c3aed;
    --purple-light:  #f5f3ff;
    --radius:        10px;
    --radius-lg:     16px;
    --shadow-sm:     0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow:        0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md:     0 4px 6px rgba(0, 0, 0, 0.06), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-lg:     0 10px 15px rgba(0, 0, 0, 0.06), 0 4px 6px rgba(0, 0, 0, 0.04);
    --font:          -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
ul { list-style: none; }
img { display: block; max-width: 100%; }

/* ── Layout ─────────────────────────────────────────────── */
.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

.section {
    padding: 96px 0;
}

/* ── Buttons ────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font);
    font-weight: 500;
    font-size: 0.95rem;
    border-radius: 8px;
    padding: 12px 28px;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--brand);
    color: #ffffff;
}
.btn-primary:hover {
    background: var(--brand-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-ghost {
    background: var(--bg-white);
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-ghost:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border: 1px solid var(--border);
}
.btn-outline:hover {
    border-color: var(--border-hover);
    background: var(--bg-elevated);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 0.85rem;
}

/* ── Nav ────────────────────────────────────────────────── */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--brand);
    letter-spacing: -0.02em;
}

.nav-logo-img {
    height: 24px;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: color 0.2s;
}
.nav-links a:hover,
.nav-links a.nav-link--active {
    color: var(--text);
}

.nav-divider {
    width: 1px;
    height: 16px;
    background: var(--border);
    align-self: center;
}

.nav-link-page {
    font-weight: 500;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* ── Hero ───────────────────────────────────────────────── */
.hero {
    padding: 180px 0 100px;
    text-align: center;
    background: var(--bg-white);
    position: relative;
    overflow: hidden;
}

.hero-network {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero-title {
    font-size: clamp(2.4rem, 5.5vw, 3.8rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
    margin-bottom: 24px;
}

.hero-line {
    display: block;
    opacity: 0;
    transform: translateY(16px);
    animation: stagger-in 0.5s ease forwards;
}

.hero-line-1 { animation-delay: 0.1s; }
.hero-line-2 { animation-delay: 0.5s; }
.hero-line-3 { animation-delay: 0.9s; }

@keyframes stagger-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-accent {
    color: var(--brand);
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-secondary);
    max-width: 580px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-highlight {
    color: var(--brand);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

/* ── Section headers ────────────────────────────────────── */
.section-label {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 12px;
    text-align: center;
}

.section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: var(--text);
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 1.05rem;
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto 60px;
    line-height: 1.6;
}

/* ── Problem section ────────────────────────────────────── */
.problem {
    background: var(--bg-white);
}

.problem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.problem-card {
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

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

.problem-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fef2f2;
    border-radius: var(--radius);
    color: #ef4444;
    margin-bottom: 18px;
}

.problem-card h3 {
    font-size: 1.1rem;
    font-weight: 650;
    color: var(--text);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

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

.problem-vision {
    max-width: 640px;
    margin: 48px auto 0;
    text-align: center;
    padding: 28px 36px;
    background: var(--bg);
    border-left: 3px solid var(--brand);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.problem-vision p {
    font-size: 1.08rem;
    color: var(--text);
    line-height: 1.7;
    font-weight: 500;
    font-style: italic;
}

/* ── Capabilities: Option B+ (spotlight pills with graphics) ── */
.capabilities {
    background: var(--bg);
}

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

.spot-pills {
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 48px;
}

.spot-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--bg-white);
    color: var(--text-secondary);
    font-family: var(--font);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spot-pill:hover {
    border-color: var(--border-hover);
    color: var(--text);
}

.spot-pill--active {
    background: var(--brand);
    border-color: var(--brand);
    color: #ffffff;
}

.spot-pill--active:hover {
    background: var(--brand-hover);
    border-color: var(--brand-hover);
    color: #ffffff;
}

.spot-stage {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: 40px auto 0;
    aspect-ratio: 1156 / 720;
}

.spot-graphic {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.4s ease, transform 0.4s ease;
    pointer-events: none;
}

.spot-graphic--active {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.spot-graphic svg {
    width: 100%;
    height: 100%;
}

.spot-graphic video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

@keyframes spot-fade-in {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.spot-graphic--active .spot-anim-fade {
    animation: spot-fade-in 0.5s ease both;
}

@keyframes spot-pin-pop {
    0%   { r: 0; }
    60%  { r: 8; }
    100% { r: 6; }
}

.spot-graphic--active .spot-anim-pin {
    animation: spot-pin-pop 0.4s ease both;
}

@keyframes spot-ring-pulse {
    0%   { r: 6; opacity: 0.6; }
    100% { r: 18; opacity: 0; }
}

.spot-graphic--active .spot-anim-ring {
    animation: spot-ring-pulse 1.2s ease-out both;
}

@keyframes spot-draw {
    from { stroke-dashoffset: 100; }
    to   { stroke-dashoffset: 0; }
}

.spot-graphic--active .spot-anim-draw {
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    animation: spot-draw 0.8s ease both;
}

.spot-desc {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin: 24px auto 0;
    line-height: 1.6;
    min-height: 1.6em;
    transition: opacity 0.25s ease;
}

.spot-desc.fade-out {
    opacity: 0;
}

/* ── Technology flow animation ──────────────────────────── */
.tech-flow-wrap {
    max-width: 820px;
    margin: 48px auto 0;
}

.tech-flow-svg {
    width: 100%;
    height: auto;
    display: block;
}

@keyframes tf-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.tf-input {
    animation: tf-float 3.5s ease-in-out infinite;
    animation-delay: var(--tf-delay, 0s);
}

@keyframes tf-dash-flow {
    to { stroke-dashoffset: -18; }
}

.tf-path {
    animation: tf-dash-flow 1.5s linear infinite;
}

@keyframes tf-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.8; }
}

.tf-engine {
    animation: tf-pulse 2.5s ease-in-out infinite;
}

/* Mobile vertical layout */
.tech-flow-mobile {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    padding: 8px 0;
}

.tfm-label {
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #94a3b8;
    margin-bottom: 12px;
}

.tfm-sources {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tfm-source-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}

.tfm-source-card span {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
}

.tfm-connector {
    display: flex;
    justify-content: center;
    line-height: 0;
}

.tfm-engine {
    display: flex;
    align-items: center;
    gap: 14px;
    background: #e8edf4;
    border: 1.5px solid #1a365d;
    border-radius: 12px;
    padding: 16px 28px;
}

.tfm-engine-icon {
    flex-shrink: 0;
    line-height: 0;
}

.tfm-engine-text {
    display: flex;
    flex-direction: column;
}

.tfm-engine-text strong {
    font-size: 0.85rem;
    color: #1a365d;
}

.tfm-engine-text span {
    font-size: 0.7rem;
    color: #475569;
}

.tfm-graph-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.tfm-graph-node span {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748b;
}

.tfm-agents {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    max-width: 280px;
}

.tfm-agent {
    background: #eff6ff;
    border: 1.5px solid #3b82f6;
    border-radius: 10px;
    padding: 12px 20px;
    text-align: center;
    font-size: 0.82rem;
    font-weight: 600;
    color: #1a365d;
}

/* ── Articles section ───────────────────────────────────── */
.articles-section {
    background: var(--bg);
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.article-card {
    display: flex;
    flex-direction: column;
    padding: 28px 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.article-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow);
}

.article-title {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text);
    margin: 0 0 8px 0;
    line-height: 1.35;
}

.article-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 16px 0;
    flex: 1;
}

.article-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--accent);
    transition: color 0.2s;
}

.article-card:hover .article-link {
    color: var(--accent-hover);
}

/* ── CTA Banner ─────────────────────────────────────────── */
.cta-banner {
    background: var(--bg-elevated);
    text-align: center;
    padding: 80px 0;
}

.cta-banner-heading {
    font-size: clamp(1.3rem, 2.5vw, 1.75rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
    max-width: 600px;
    margin: 0 auto 28px;
    line-height: 1.45;
}

.cta-actions {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.contact-alt {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.contact-alt a {
    color: var(--accent);
    margin-left: 4px;
}
.contact-alt a:hover {
    text-decoration: underline;
}

/* ── Footer ─────────────────────────────────────────────── */
.footer {
    padding: 40px 0 28px;
    background: #0f172a;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    font-size: 1.05rem;
    color: #f1f5f9;
    letter-spacing: -0.02em;
}

.footer-logo {
    height: 22px;
    width: auto;
}

.footer-nav {
    display: flex;
    gap: 28px;
}

.footer-nav a {
    font-size: 0.88rem;
    color: #94a3b8;
    transition: color 0.2s;
}

.footer-nav a:hover {
    color: #f1f5f9;
}

.footer-social {
    color: #94a3b8;
    transition: color 0.2s;
    display: flex;
}

.footer-social:hover {
    color: #f1f5f9;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 20px 0 0;
}

.footer-copy {
    font-size: 0.8rem;
    color: #64748b;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-about {
    font-size: 0.8rem;
    color: #94a3b8;
    transition: color 0.2s;
    position: relative;
    padding-left: 24px;
}

.footer-about::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 14px;
    background: #334155;
}

.footer-about:hover {
    color: #f1f5f9;
}

/* ── Reveal animation ───────────────────────────────────── */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .section { padding: 72px 0; }

    .nav-links { display: none; }

    .hero { padding: 130px 0 72px; }
    .hero-actions { flex-direction: column; align-items: center; }

    .spot-pills {
        gap: 6px;
    }

    .spot-pill {
        padding: 8px 16px;
        font-size: 0.82rem;
    }

    .spot-stage {
        max-width: 320px;
    }

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

    .tech-flow-wrap {
        margin-top: 32px;
    }

    .tech-flow-desktop {
        display: none;
    }

    .tech-flow-mobile {
        display: flex;
    }

    .articles-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cta-banner {
        padding: 60px 0;
    }

    .footer-row {
        flex-direction: column;
        gap: 24px;
        align-items: center;
    }

    .footer-nav {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px 24px;
    }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }
}
