/* ---------- Tokens ---------- */
:root
{
    --ink-900: #0f2338;
    --ink-800: #16283b;
    --slate-700: #3b5866;
    --slate-600: #48636f;
    --slate-500: #546e7a;
    --slate-300: #9fb0b8;
    --slate-100: #e9edef;
    --teal-500: #159c80;
    --teal-600: #0e7d67;
    --teal-tint: #e3f6f0;
    --orange-500: #ef9d3d;
    --bg: #f6f7f7;
    --paper: #ffffff;
    --border: #e2e6e8;
    --text: #16283b;
    --text-soft: #4c5c66;
    --font-display: 'Space Grotesk', 'Inter', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 26px;
    --shadow-card: 0 12px 28px rgba(15,35,56,.08);
}

*
{
    box-sizing: border-box
}

html
{
    scroll-behavior: smooth
}

body
{
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

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

a
{
    color: inherit
}

h1, h2, h3
{
    font-family: var(--font-display);
    letter-spacing: -.01em;
    margin: 0
}

p
{
    margin: 0;
    color: var(--text-soft);
    line-height: 1.6
}

:focus-visible
{
    outline: 3px solid var(--teal-500);
    outline-offset: 2px
}

.material-symbols-outlined
{
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24
}

/* ---------- Layout shell ---------- */
.layout
{
    display: grid;
    grid-template-columns: 1fr 380px;
}

/* ---------- Header ---------- */
.site-header
{
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 20px 8%;
    background: var(--paper);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 20;
}

.brand
{
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    margin-right: auto
}

.brand-mark
{
    width: 32px;
    height: 32px
}

    .brand-mark.small
    {
        width: 22px;
        height: 22px
    }

.brand-name
{
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--ink-900);
    letter-spacing: -.01em;
}

.brand-suffix
{
    color: var(--teal-600);
    font-weight: 600;
    margin-left: 4px
}

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

    .site-nav a
    {
        text-decoration: none;
        font-size: .92rem;
        font-weight: 500;
        color: var(--text-soft);
        transition: color .15s ease;
    }

        .site-nav a:hover
        {
            color: var(--ink-900)
        }

.nav-cta
{
    display: none
}

/* ---------- Buttons ---------- */
.btn
{
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    padding: 12px 18px;
    transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
    border: 1px solid transparent;
}

.btn-sub
{
    font-size: .72rem;
    font-weight: 500;
    opacity: .75
}

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

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

.btn-outline-light
{
    border-color: rgba(255,255,255,.55);
    color: #fff
}

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

.btn-ghost
{
    border-color: var(--border);
    color: var(--ink-900);
    padding: 10px 16px;
    font-size: .9rem
}

    .btn-ghost:hover
    {
        border-color: var(--slate-500)
    }

.btn.primary, .btn.secondary
{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    padding: 16px 18px;
    border-radius: 14px;
    margin: 12px 0 0;
}

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

    .btn.primary:hover
    {
        background: var(--teal-600)
    }

.btn.secondary
{
    background: var(--slate-100);
    color: var(--ink-900)
}

    .btn.secondary:hover
    {
        background: #dfe6e8
    }

.btn.primary .btn-sub
{
    color: rgba(255,255,255,.8)
}

.btn.secondary .btn-sub
{
    color: var(--text-soft)
}

/* ---------- Hero ---------- */
.hero
{
    position: relative;
    min-height: 640px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--ink-900);
}

.hero-media
{
    position: absolute;
    inset: 0
}

    .hero-media img
    {
        width: 100%;
        height: 100%;
        object-fit: cover;
        opacity: .55
    }

.hero-media-gradient
{
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15,35,56,.55) 0%, rgba(15,35,56,.58) 55%, var(--ink-900) 100%);
}

.hero-content
{
    position: relative;
    padding: 100px 100px 64px;
    max-width: 900px;
    color: #fff;
    align-self: center;
}

.eyebrow
{
    display: inline-block;
    font-family: var(--font-mono);
    font-size: .72rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.25);
    color: #fff;
    padding: 8px 14px;
    border-radius: 10px;
    max-width: fit-content;
}

.eyebrow-dark
{
    background: var(--teal-tint);
    border: 1px solid transparent;
    color: var(--teal-600);
}

.hero h1
{
    font-size: clamp(2.4rem, 4.5vw, 3.6rem);
    margin: 22px 0 18px;
    line-height: 1.08;
}

.hero p
{
    color: rgba(255,255,255,.82);
    font-size: 1.08rem;
    max-width: 640px
}

.hero-actions
{
    display: flex;
    gap: 14px;
    margin-top: 32px;
    flex-wrap: wrap
}

.telemetry
{
    margin: 48px 0 0;
    display: flex;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(10,22,36,.55);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: var(--radius-md);
    backdrop-filter: blur(6px);
    overflow: hidden;
}

.telemetry-item
{
    padding: 16px 22px;
    border-right: 1px solid rgba(255,255,255,.14);
    flex: 1;
    min-width: 120px;
}

    .telemetry-item:last-child
    {
        border-right: none
    }

.telemetry dt
{
    font-family: var(--font-mono);
    font-size: .68rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: rgba(255,255,255,.55);
    margin-bottom: 6px;
}

.telemetry dd
{
    margin: 0;
    font-family: var(--font-mono);
    font-size: 1.15rem;
    color: #fff;
    display: flex;
    align-items: baseline;
    gap: 5px
}

.telemetry .unit
{
    font-size: .68rem;
    color: rgba(255,255,255,.55)
}

.status-ok dd
{
    font-family: var(--font-body);
    font-size: .95rem;
    font-weight: 600;
    color: #7fe3c2;
    gap: 8px
}

.dot
{
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #3fe0ab;
    box-shadow: 0 0 0 4px rgba(63,224,171,.22)
}

/* ---------- Section shells ---------- */
.content, .section-flow, .section-platform, .features
{
    padding: 88px 8%;
}

.section-flow
{
    background: var(--paper)
}

.section-platform
{
    background: var(--ink-900);
    color: #fff
}

.features
{
    background: var(--paper)
}

.section-head
{
    max-width: 680px;
    margin-bottom: 44px
}

    .section-head h2
    {
        font-size: clamp(1.6rem, 2.6vw, 2.1rem);
        margin-top: 14px;
        color: var(--ink-900)
    }

.section-platform .section-head h2
{
    color: #fff
}

.section-platform .section-head .lede
{
    color: rgba(255,255,255,.7)
}

.lede
{
    margin-top: 14px;
    font-size: 1.02rem
}

/* Cards */
.cards
{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(230px,1fr));
    gap: 20px
}

    .cards article
    {
        background: var(--paper);
        border: 1px solid var(--border);
        padding: 26px 24px;
        border-radius: var(--radius-md);
        box-shadow: var(--shadow-card);
        transition: transform .18s ease, box-shadow .18s ease;
    }

        .cards article:hover
        {
            transform: translateY(-3px);
            box-shadow: 0 18px 34px rgba(15,35,56,.12)
        }

.card-index
{
    font-family: var(--font-mono);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: var(--teal-600);
}

.cards h3
{
    margin: 10px 0 8px;
    font-size: 1.08rem
}

/* Flow / how it works */
.flow
{
    list-style: none;
    margin: 0 0 56px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 0;
    counter-reset: step;
    position: relative;
}

    .flow li
    {
        position: relative;
        padding: 28px 22px 0;
        border-top: 3px solid var(--slate-100);
    }

        .flow li::before
        {
            counter-increment: step;
            content: counter(step,decimal-leading-zero);
            position: absolute;
            top: -14px;
            left: 0;
            font-family: var(--font-mono);
            font-size: .75rem;
            background: var(--ink-900);
            color: #fff;
            padding: 3px 8px;
            border-radius: 20px;
        }

    .flow h3
    {
        font-size: 1.02rem;
        margin-bottom: 6px;
        color: var(--ink-900)
    }

    .flow p
    {
        font-size: .92rem
    }

.device-figure
{
    margin: 0;
    max-width: 420px;
    margin-left: auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--slate-100);
    box-shadow: var(--shadow-card);
}

    .device-figure img
    {
        width: 100%
    }

    .device-figure figcaption
    {
        padding: 14px 18px;
        font-size: .82rem;
        color: var(--text-soft);
        background: var(--paper);
        border-top: 1px solid var(--border);
    }

/* Platform shots */
.platform-shots
{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    align-items: start;
}

    .platform-shots figure
    {
        margin: 0;
        border-radius: var(--radius-md);
        overflow: hidden;
        background: #0c1c2c;
        border: 1px solid rgba(255,255,255,.12)
    }

    .platform-shots img
    {
        width: 100%;
        display: block
    }

    .platform-shots figcaption
    {
        padding: 12px 16px;
        font-size: .82rem;
        color: rgba(255,255,255,.65);
        font-family: var(--font-mono);
    }


/* Composants */
.zoom-composants
{
    display: flex;
    gap: 5rem;
    flex-wrap: wrap;
}

.composants-layout
{
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.composants-block
{
    display: flex;
    flex-direction: column;
}

.composants-header
{
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.4rem;
}

.composants-icon
{
    font-size: 2rem;
}

.composants-heading
{
    font-size: 1.02rem;
    margin-bottom: 6px;
    color: var(--ink-900);
    font-family: var(--font-display);
    letter-spacing: -.01em;
    margin: 0;
    font-weight: bold;
}

.composants-bullets
{
    margin: 0;
    padding-left: 1.5rem;
}

    .composants-bullets li
    {
        line-height: 1.5;
    }



.composants-layout .red
{
    color: #d04b4b;
}

.composants-layout .orange
{
    color: #d88a34;
}

.composants-layout .green
{
    color: #18a36f;
}

.composants-layout .blue
{
    color: #2f86a6;
}

/* Features */
.feature-grid
{
    display: grid;
    grid-template-columns: repeat(auto-fit,minmax(220px,1fr));
    gap: 24px
}

.feature
{
    padding: 0;
    border-top: 1px solid var(--border);
    padding-top: 18px
}

    .feature h3
    {
        font-size: 1rem;
        margin-bottom: 8px;
        color: var(--ink-900)
    }

    .feature p
    {
        font-size: .92rem
    }

/* ---------- Login panel ---------- */
.login-panel
{
    background: var(--paper);
    border-left: 1px solid var(--border)
}

.sticky
{
    position: sticky;
    top: 85px;
    padding: 44px 34px
}

    .sticky h2
    {
        font-size: 1.3rem;
        color: var(--ink-900)
    }

    .sticky > p
    {
        margin-top: 8px;
        font-size: .92rem
    }

.panel-divider
{
    height: 1px;
    background: var(--border);
    margin: 26px 0 16px
}

.panel-note
{
    font-size: .82rem;
    color: var(--slate-500)
}

.mobile-login-btn
{
    display: none;
    border: none;
    background: var(--teal-500);
    color: #fff;
    font-family: var(--font-body);
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 12px;
    cursor: pointer;
}

.mobile-overlay
{
    position: fixed;
    inset: 0;
    background: rgba(15,35,56,.55);
    opacity: 0;
    visibility: hidden;
    transition: .25s;
    z-index: 39;
}


/* ---------- Footer ---------- */
.site-footer
{
    padding: 32px 8% 28px;
    background: var(--ink-900);
    font-size: .85rem;
}

.footer-top
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px 28px;
    padding-bottom: 24px;
}

.footer-brand
{
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600
}

    .footer-brand img
    {
        filter: brightness(0) invert(1);
        opacity: .9
    }

.footer-bottom
{
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px 28px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,.25);
    color: rgba(255,255,255,.8);
}

.footer-meta, .footer-copy
{
    margin: 0;
    color: rgba(255,255,255,.8);
}

.footer-contact
{
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px 22px;
}

.footer-contact-name
{
    font-family: var(--font-display);
    font-weight: 600;
    font-size: .85rem;
    color: rgba(255,255,255,.8);
}

.footer-contact-link
{
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: .78rem;
    color: rgba(255,255,255,.8);
    text-decoration: none;
    transition: color .15s ease;
}

    .footer-contact-link:hover
    {
        color: var(--teal-500)
    }

    .footer-contact-link .material-symbols-outlined
    {
        font-size: 16px;
        color: var(--teal-500);
    }


/* ---------- Responsive ---------- */
@media (max-width:1080px)
{
    .layout
    {
        grid-template-columns: 1fr
    }

    .login-panel
    {
        border-left: none;
        border-top: 1px solid var(--border)
    }

    .sticky
    {
        position: static;
        padding: 36px 8%
    }

    .site-nav
    {
        display: none
    }

    .nav-cta
    {
        display: inline-flex
    }

    .flow
    {
        grid-template-columns: repeat(2,1fr);
        gap: 32px 22px
    }

    .platform-shots
    {
        grid-template-columns: 1fr
    }

    .mobile-login-btn
    {
        display: inline-flex;
    }

    .login-panel
    {
        position: fixed;
        top: 0;
        right: 0;
        width: min(380px,90vw);
        height: 100vh;
        background: var(--paper);
        border-left: 1px solid var(--border);
        border-top: none;
        z-index: 40;
        transform: translateX(100%);
        transition: transform .3s ease;
        overflow: auto;
    }

        .login-panel.open
        {
            transform: translateX(0);
        }

    .mobile-overlay.open
    {
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width:640px)
{
    .site-header
    {
        padding: 16px 6%
    }

    .hero-content
    {
        padding: 64px 6% 44px
    }

    .content, .section-flow, .section-platform, .features
    {
        padding: 56px 6%
    }

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

    .device-figure
    {
        margin-left: 0
    }

    .telemetry
    {
        flex-direction: column
    }

    .telemetry-item
    {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,.14)
    }

        .telemetry-item:last-child
        {
            border-bottom: none
        }

    .zoom-composants img
    {
        margin: auto;
    }
}

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

    .cards article, .btn
    {
        transition: none
    }
}
