/* style.css - Elion Labs visual system (mobile-first) */
:root {
    --bg: var(--brand-paper);
    --surface: #ffffff;
    --surface-soft: #edf3f0;
    --foreground: var(--brand-ink);
    --muted: #5d6868;
    --accent: var(--brand-blue);
    --accent-bright: var(--brand-blue);
    --accent-soft: var(--brand-blue-light);
    --accent-strong: var(--brand-blue);
    --tint: #e8f3ec;
    --tint-secondary: #eaf3f0;
    --card: #ffffff;
    --border: rgba(23, 25, 27, 0.11);
    --border-strong: rgba(23, 25, 27, 0.18);
    --shadow: 0 18px 50px rgba(23, 25, 27, 0.1);
    --container-width: 1100px;
    --radius: 22px
}

[data-theme="dark"] {
    color-scheme: dark;
    --bg: var(--brand-ink);
    --surface: #1d2425;
    --surface-soft: #22292a;
    --foreground: var(--brand-paper);
    --muted: #b7c5c1;
    --accent: var(--brand-blue-light);
    --accent-bright: var(--brand-blue-light);
    --accent-soft: var(--brand-blue-light);
    --accent-strong: var(--brand-blue-light);
    --tint: #213631;
    --tint-secondary: #213631;
    --card: #22292a;
    --border: rgba(228, 247, 238, 0.13);
    --border-strong: rgba(228, 247, 238, 0.24);
    --shadow: 0 18px 50px rgba(0, 0, 0, 0.3)
}

* {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    min-height: 100%;
    margin: 0;
    font-family: var(--brand-font);
    background:
        radial-gradient(circle at 88% 3%, rgba(0, 107, 133, 0.14), transparent 27rem),
        radial-gradient(circle at 6% 22%, rgba(103, 212, 229, 0.14), transparent 24rem),
        linear-gradient(180deg, var(--surface) 0, var(--bg) 42rem);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased
}

::selection {
    background: rgba(103, 212, 229, 0.35);
    color: var(--foreground)
}

.container {
    width: min(100%, var(--container-width));
    margin: 0 auto;
    padding: 1.25rem
}

a:focus-visible,
button:focus-visible {
    outline: 3px solid #0085a3;
    outline-offset: 3px
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.86);
    border-bottom: 1px solid rgba(23, 25, 27, 0.07);
    backdrop-filter: blur(18px)
}

.site-header.scrolled {
    box-shadow: 0 10px 35px rgba(23, 25, 27, 0.09)
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.65rem 0
}

.header-actions {
    display: flex;
    gap: 0.55rem;
    align-items: center
}

.brand {
    display: inline-flex;
    align-items: center;
    overflow: hidden;
    border-radius: 9px;
    background: #fff
}

.logo {
    display: block;
    width: auto;
    height: 52px;
    object-fit: contain
}

.nav-list {
    display: flex;
    gap: 0.35rem;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none
}

.nav-list a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    padding: 0.55rem 0.8rem;
    border-radius: 999px;
    color: var(--foreground);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 600;
    transition: color .2s ease, background-color .2s ease
}

.nav-list a:hover,
.nav-list a:focus-visible,
.nav-list a[aria-current="page"] {
    color: var(--brand-blue);
    background: var(--tint)
}

.theme-toggle,
.menu-toggle {
    display: block;
    width: 44px;
    height: 44px;
    padding: 0.4rem;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--surface);
    color: var(--foreground);
    font-size: 1.35rem;
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease
}

.theme-toggle:hover,
.theme-toggle:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
    border-color: var(--border-strong);
    background: var(--tint)
}

.theme-toggle:active,
.menu-toggle:active {
    transform: scale(0.96)
}

.theme-icon::before {
    content: "☾";
    display: block;
    line-height: 1
}

[data-theme="dark"] .theme-icon::before {
    content: "☀"
}

.theme-toggle-floating {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 40
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    min-height: min(760px, calc(100vh - 80px));
    display: flex;
    align-items: center;
    padding: 5rem 0
}

.hero::before {
    content: "";
    position: absolute;
    width: min(82vw, 760px);
    aspect-ratio: 1;
    right: -18%;
    top: -34%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 107, 133, 0.15), rgba(103, 212, 229, 0.08) 42%, transparent 70%);
    pointer-events: none
}

.hero-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 2.75rem;
    align-items: flex-start
}

.hero-content {
    max-width: 700px
}

.eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.9rem;
    padding: 0.4rem 0.75rem;
    border: 1px solid rgba(0, 107, 133, 0.17);
    border-radius: 999px;
    background: rgba(232, 243, 236, 0.75);
    color: var(--brand-blue);
    font-size: 0.72rem;
    font-weight: 750;
    letter-spacing: 0.12em;
    text-transform: uppercase
}

.eyebrow::before,
.section-kicker::before {
    content: "";
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-bright));
    box-shadow: 0 0 0 4px rgba(103, 212, 229, 0.12)
}

.hero-title {
    max-width: 760px;
    margin: 0;
    color: var(--foreground);
    font-size: clamp(2.55rem, 8vw, 5rem);
    font-weight: 760;
    line-height: 0.98;
    letter-spacing: -0.052em
}

.hero-title::after {
    content: "";
    display: block;
    width: min(15rem, 55%);
    height: 0.42rem;
    margin-top: 1rem;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent-bright))
}

.hero-sub {
    max-width: 640px;
    margin-top: 1.25rem;
    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.72
}

.hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.65rem
}

.hero-note {
    margin: 0.9rem 0 0;
    color: var(--muted);
    font-size: 0.83rem
}

.btn {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0.72rem 1.15rem;
    border: 1px solid transparent;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 700;
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease, background-color .2s ease
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px)
}

.btn:active {
    transform: translateY(0)
}

.btn-primary {
    background: linear-gradient(110deg, var(--accent-soft), var(--brand-blue-light) 42%, var(--accent-bright));
    color: var(--brand-ink);
    box-shadow: 0 12px 30px rgba(0, 107, 133, 0.18)
}

.btn-primary:hover,
.btn-primary:focus-visible {
    box-shadow: 0 16px 36px rgba(0, 107, 133, 0.25)
}

.btn-outline {
    border-color: var(--border-strong);
    background: rgba(255, 255, 255, 0.72);
    color: var(--foreground)
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: rgba(0, 107, 133, 0.35);
    background: var(--tint-secondary)
}

.btn-large {
    min-height: 52px;
    padding: 0.92rem 1.35rem;
    font-size: 1rem
}

.hero-visual {
    width: 100%;
    display: grid;
    place-items: center
}

.intelligence-orbit {
    position: relative;
    width: min(76vw, 350px);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 32%, rgba(234, 243, 240, 0.55) 33% 48%, transparent 49%);
    filter: drop-shadow(0 26px 45px rgba(23, 25, 27, 0.12))
}

.hero-symbol {
    z-index: 2;
    width: 50%;
    border: 1px solid rgba(23, 25, 27, 0.08);
    border-radius: 24%;
    box-shadow: 0 18px 50px rgba(23, 25, 27, 0.16)
}

.orbit {
    position: absolute;
    inset: 9%;
    border: 1.5px solid rgba(0, 107, 133, 0.32);
    border-radius: 50%;
    transform: rotate(-24deg) scaleY(.58)
}

.orbit-two {
    inset: 0;
    border-color: rgba(103, 212, 229, 0.42);
    transform: rotate(42deg) scaleY(.72)
}

.signal {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: var(--accent-bright);
    box-shadow: 0 0 0 6px rgba(0, 107, 133, 0.12)
}

.signal-one { top: 17%; right: 20% }
.signal-two { bottom: 22%; left: 10%; background: var(--accent-soft); box-shadow: 0 0 0 6px rgba(103, 212, 229, 0.14) }
.signal-three { bottom: 8%; right: 26%; background: var(--brand-blue-light); box-shadow: 0 0 0 6px rgba(103, 212, 229, 0.14) }

section h2 {
    margin-top: 0;
    color: var(--foreground);
    font-size: clamp(1.9rem, 5vw, 2.9rem);
    line-height: 1.08;
    letter-spacing: -0.035em
}

.about,
.process,
.differentials {
    margin-top: 1rem;
    margin-bottom: 1rem;
    padding-top: 3.5rem;
    padding-bottom: 3.5rem
}

.about {
    width: min(calc(100% - 2rem), var(--container-width));
    border: 1px solid rgba(0, 107, 133, 0.12);
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(232, 243, 236, 0.78), rgba(234, 243, 240, 0.72));
    box-shadow: 0 18px 45px rgba(23, 25, 27, 0.06)
}

.about p:last-child,
.cta p:not(.section-kicker) {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.06rem;
    line-height: 1.75
}

.services {
    margin: 2.5rem 0;
    padding: 4rem 0;
    border-top: 1px solid rgba(23, 25, 27, 0.06);
    border-bottom: 1px solid rgba(23, 25, 27, 0.06);
    background: linear-gradient(180deg, rgba(234, 243, 240, 0.55), rgba(255, 255, 255, 0.82))
}

/* Cards */
.cards-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-top: 2rem
}

.card {
    position: relative;
    overflow: hidden;
    padding: 1.5rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 16px rgba(23, 25, 27, 0.04);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease
}

.card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-soft), var(--accent-bright))
}

.card:hover {
    transform: translateY(-6px);
    border-color: rgba(0, 107, 133, 0.28);
    box-shadow: var(--shadow)
}

.card h3 {
    margin: 0.2rem 0 0.6rem;
    color: var(--foreground);
    font-size: 1.15rem;
    letter-spacing: -0.015em
}

.card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6
}

/* Process */
.process-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.8rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
    counter-reset: steps
}

.process-steps li {
    position: relative;
    min-height: 108px;
    padding: 1.25rem 1.25rem 1.25rem 4.6rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: var(--card);
    counter-increment: steps
}

.process-steps li::before {
    content: "0" counter(steps);
    position: absolute;
    left: 1.2rem;
    top: 1.2rem;
    width: 2.55rem;
    height: 2.55rem;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-soft), var(--accent-bright));
    color: var(--brand-ink);
    font-size: 0.75rem;
    font-weight: 800
}

.process-steps li strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--foreground)
}

.process-steps li span {
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5
}

/* Differentials */
.diff-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none
}

.diff-list li {
    padding: 1rem 1.1rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    color: var(--foreground);
    font-weight: 600
}

.diff-list li::before {
    content: "✓";
    display: inline-grid;
    width: 1.45rem;
    height: 1.45rem;
    place-items: center;
    margin-right: 0.65rem;
    border-radius: 50%;
    background: var(--tint);
    color: var(--brand-blue);
    font-size: 0.78rem
}

/* CTA */
.cta {
    position: relative;
    overflow: hidden;
    width: min(calc(100% - 2rem), var(--container-width));
    margin-top: 2.5rem;
    margin-bottom: 2.5rem;
    padding: 5rem 1.5rem;
    border: 1px solid rgba(0, 107, 133, 0.16);
    border-radius: 36px;
    background:
        radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.72), transparent 28%),
        linear-gradient(125deg, rgba(103, 212, 229, 0.42), rgba(0, 107, 133, 0.3));
    text-align: center;
    box-shadow: 0 24px 60px rgba(23, 25, 27, 0.11)
}

.cta h2,
.cta p {
    position: relative;
    margin-left: auto;
    margin-right: auto
}

.cta .btn {
    position: relative;
    margin-top: 0.75rem
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(23, 25, 27, 0.08);
    background: rgba(237, 243, 240, 0.72)
}

.footer-inner {
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    align-items: center
}

.footer-links {
    display: flex;
    gap: 0.35rem 1rem;
    flex-wrap: wrap;
    justify-content: center
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 550
}

.footer-links a:hover,
.footer-links a:focus-visible {
    color: var(--accent)
}

.copyright {
    color: var(--muted);
    font-size: 0.9rem
}

/* Pages */
.page {
    min-height: 64vh;
    padding: 4rem 1.25rem
}

.page h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.3rem, 7vw, 4rem);
    line-height: 1;
    letter-spacing: -0.045em
}

.hidden {
    display: none
}

/* Dark theme component surfaces */
[data-theme="dark"] body {
    background:
        radial-gradient(circle at 88% 3%, rgba(103, 212, 229, 0.12), transparent 27rem),
        radial-gradient(circle at 6% 22%, rgba(103, 212, 229, 0.09), transparent 24rem),
        linear-gradient(180deg, var(--surface) 0, var(--bg) 42rem)
}

[data-theme="dark"] a:focus-visible,
[data-theme="dark"] button:focus-visible {
    outline-color: var(--brand-blue-light)
}

[data-theme="dark"] .site-header {
    border-bottom-color: rgba(228, 247, 238, 0.08);
    background: rgba(23, 25, 27, 0.88)
}

[data-theme="dark"] .site-header.scrolled {
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.3)
}

[data-theme="dark"] .nav-list a:hover,
[data-theme="dark"] .nav-list a:focus-visible,
[data-theme="dark"] .nav-list a[aria-current="page"] {
    color: var(--brand-blue-light);
    background: var(--tint)
}

[data-theme="dark"] .eyebrow,
[data-theme="dark"] .section-kicker {
    border-color: rgba(103, 212, 229, 0.25);
    background: rgba(33, 54, 49, 0.88);
    color: var(--brand-blue-light)
}

[data-theme="dark"] .btn-outline {
    background: rgba(34, 41, 42, 0.78)
}

[data-theme="dark"] .intelligence-orbit {
    background: radial-gradient(circle, rgba(34, 41, 42, 0.96) 0 32%, rgba(33, 54, 49, 0.55) 33% 48%, transparent 49%);
    filter: drop-shadow(0 26px 45px rgba(0, 0, 0, 0.28))
}

[data-theme="dark"] .about {
    border-color: rgba(103, 212, 229, 0.16);
    background: linear-gradient(135deg, rgba(33, 54, 49, 0.88), rgba(33, 54, 49, 0.76));
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.18)
}

[data-theme="dark"] .services {
    border-color: rgba(228, 247, 238, 0.07);
    background: linear-gradient(180deg, rgba(33, 54, 49, 0.44), rgba(23, 25, 27, 0.72))
}

[data-theme="dark"] .card,
[data-theme="dark"] .diff-list li {
    background: rgba(34, 41, 42, 0.94)
}

[data-theme="dark"] .diff-list li::before {
    color: var(--brand-blue-light)
}

[data-theme="dark"] .cta {
    border-color: rgba(103, 212, 229, 0.2);
    background:
        radial-gradient(circle at 10% 20%, rgba(103, 212, 229, 0.12), transparent 32%),
        linear-gradient(125deg, rgba(33, 54, 49, 0.94), rgba(33, 54, 49, 0.92));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25)
}

[data-theme="dark"] .site-footer {
    border-top-color: rgba(228, 247, 238, 0.08);
    background: rgba(29, 36, 37, 0.78)
}

@media(min-width:700px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr)
    }
}

@media(min-width:860px) {
    .hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 4rem
    }

    .hero-content {
        flex: 1 1 62%
    }

    .hero-visual {
        flex: 0 1 38%
    }

    .cards-grid {
        grid-template-columns: repeat(3, 1fr)
    }

    .cards-grid .card:last-child:nth-child(3n + 1) {
        width: calc((100% - 2rem) / 3);
        grid-column: 1 / -1;
        justify-self: center
    }

    .diff-list {
        grid-template-columns: repeat(3, 1fr)
    }

    .process-steps {
        grid-template-columns: repeat(5, 1fr)
    }

    .process-steps li {
        min-height: 190px;
        padding: 4.5rem 1.15rem 1.15rem
    }

    .process-steps li::before {
        left: 1.15rem
    }

    .footer-inner {
        flex-direction: row;
        justify-content: space-between
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important
    }
}
