:root {
    --bg: #08070d;
    --bg-soft: #100e19;
    --surface: rgba(21, 18, 34, 0.82);
    --surface-solid: #171322;
    --surface-light: #211a31;
    --line: rgba(194, 160, 255, 0.19);
    --line-strong: rgba(194, 160, 255, 0.42);
    --text: #faf8ff;
    --muted: #bbb3cc;
    --purple: #9d6bff;
    --pink: #ee5dff;
    --cyan: #65d9ff;
    --green: #7be3ad;
    --max: 1180px;
    --radius: 24px;
    --radius-sm: 14px;
    --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--text);
    background:
        radial-gradient(circle at 6% 0%, rgba(157, 107, 255, 0.21), transparent 28rem),
        radial-gradient(circle at 100% 25%, rgba(238, 93, 255, 0.13), transparent 30rem),
        var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.65;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    content: "";
    opacity: 0.25;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 85%);
}

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

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

img {
    height: auto;
}

button,
input,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

:focus-visible {
    outline: 3px solid var(--cyan);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 1000;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    color: #100e19;
    background: var(--cyan);
    transform: translateY(-180%);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(var(--max), calc(100% - 2rem));
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(194, 160, 255, 0.12);
    background: rgba(8, 7, 13, 0.8);
    backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    min-height: 70px;
    align-items: center;
    gap: 1rem;
}

.brand {
    width: 168px;
    flex: 0 0 auto;
}

.brand img {
    width: 100%;
    height: auto;
    aspect-ratio: 640 / 184;
    object-fit: contain;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin-left: auto;
}

.site-nav a,
.language-link {
    padding: 0.48rem 0.64rem;
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.86rem;
    font-weight: 650;
    transition: color 160ms ease, background 160ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"],
.language-link:hover {
    color: var(--text);
    background: rgba(255, 255, 255, 0.055);
}

.language-link {
    border: 1px solid var(--line);
    color: var(--text);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface);
    cursor: pointer;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    border-radius: 2px;
    content: "";
    background: currentColor;
}

main {
    overflow: clip;
}

.hero {
    position: relative;
    padding: clamp(5rem, 10vw, 9rem) 0 clamp(4rem, 8vw, 7rem);
}

.hero::before,
.hero::after {
    position: absolute;
    z-index: -1;
    border-radius: 50%;
    content: "";
    filter: blur(3px);
}

.hero::before {
    top: 8%;
    right: -10rem;
    width: 32rem;
    height: 32rem;
    opacity: 0.56;
    background: radial-gradient(circle, rgba(157, 107, 255, 0.26), transparent 66%);
}

.hero::after {
    bottom: -9rem;
    left: -10rem;
    width: 25rem;
    height: 25rem;
    opacity: 0.46;
    background: radial-gradient(circle, rgba(101, 217, 255, 0.14), transparent 68%);
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
    align-items: end;
    gap: 3rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1.15rem;
    color: #e9dfff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.eyebrow::before {
    width: 1.65rem;
    height: 1px;
    content: "";
    background: linear-gradient(90deg, var(--pink), var(--cyan));
}

.hero h1,
.page-hero h1 {
    max-width: 13ch;
    margin: 0;
    font-size: clamp(3rem, 8vw, 6.7rem);
    line-height: 0.94;
    letter-spacing: -0.068em;
}

@media (min-width: 1025px) {
    .hero {
        padding-top: 5rem;
    }

    .hero h1 {
        font-size: clamp(3rem, 7vw, 5.8rem);
    }

    .hero .lead {
        margin-top: 1.15rem;
    }

    .hero .hero-actions {
        margin-top: 1.5rem;
    }
}

.page-hero h1 {
    max-width: 16ch;
    font-size: clamp(2.8rem, 7vw, 5.7rem);
}

.gradient-text {
    color: transparent;
    background: linear-gradient(100deg, #fff 0%, #d7b7ff 28%, var(--pink) 58%, var(--cyan) 100%);
    background-clip: text;
}

.lead {
    max-width: 64ch;
    margin: 1.5rem 0 0;
    color: var(--muted);
    font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 2rem;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.78rem 1.1rem;
    border: 1px solid transparent;
    border-radius: 13px;
    font-weight: 780;
    line-height: 1.2;
    transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
}

.button-primary {
    color: #fff;
    background: linear-gradient(115deg, #8b5cf6, #c85cf2);
    box-shadow: 0 12px 38px rgba(157, 107, 255, 0.27);
}

.button-primary:hover {
    box-shadow: 0 16px 46px rgba(157, 107, 255, 0.4);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.035);
}

.button-secondary:hover {
    border-color: var(--line-strong);
    background: rgba(255, 255, 255, 0.065);
}

.hero-aside {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(37, 28, 56, 0.88), rgba(14, 12, 24, 0.92));
    box-shadow: var(--shadow);
}

.hero-aside strong {
    display: block;
    margin-bottom: 0.55rem;
    font-size: 1.05rem;
}

.hero-aside p {
    margin: 0;
    color: var(--muted);
}

.signal-list {
    display: grid;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
    padding: 0;
    list-style: none;
}

.signal-list li {
    display: flex;
    gap: 0.65rem;
    color: #ddd6eb;
    font-size: 0.92rem;
}

.signal-list li::before {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    margin-top: 0.56rem;
    border-radius: 50%;
    content: "";
    background: var(--green);
    box-shadow: 0 0 18px var(--green);
}

.trust-strip {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.018);
}

.trust-inner {
    padding-block: 2.2rem;
}

.trust-inner p {
    margin: 0 0 1.2rem;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.client-logo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.client-logo-card {
    display: grid;
    min-height: 150px;
    margin: 0;
    padding: 1rem 1rem 0.75rem;
    align-content: center;
    border: 1px solid rgba(29, 22, 44, 0.12);
    border-radius: 16px;
    color: #292330;
    background: #f4f2f7;
}

.client-logo-card.is-dark {
    border-color: var(--line);
    color: #f4efff;
    background: linear-gradient(145deg, #20192d, #100d18);
}

.client-logo-card img {
    width: 100%;
    height: 86px;
    object-fit: contain;
}

.client-logo-card figcaption {
    margin-top: 0.2rem;
    color: inherit;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-align: center;
    text-transform: uppercase;
    opacity: 0.72;
}

.section {
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

.section-soft {
    border-block: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(22, 18, 35, 0.72), rgba(9, 8, 15, 0.82));
}

.section-head {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(260px, 0.52fr);
    align-items: end;
    gap: 2rem;
    margin-bottom: 2.5rem;
}

.section-head h2,
.content-head h2 {
    max-width: 15ch;
    margin: 0;
    font-size: clamp(2.25rem, 5vw, 4.6rem);
    line-height: 1;
    letter-spacing: -0.055em;
}

.section-head p,
.content-head p {
    margin: 0;
    color: var(--muted);
}

.card-grid,
.article-grid,
.scenario-grid,
.product-grid,
.contact-grid,
.split-grid {
    display: grid;
    gap: 1rem;
}

.card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scenario-grid,
.article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.product-grid,
.contact-grid,
.split-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card,
.scenario,
.article-card,
.product-card,
.content-card,
.contact-panel,
.contact-form,
.faq-item {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, rgba(29, 24, 44, 0.86), rgba(13, 11, 22, 0.94));
    box-shadow: var(--shadow);
}

.card,
.scenario,
.article-card,
.content-card,
.contact-panel,
.contact-form {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.card::after,
.article-card::after,
.product-card::after {
    position: absolute;
    right: -5rem;
    bottom: -6rem;
    width: 12rem;
    height: 12rem;
    border-radius: 50%;
    content: "";
    background: radial-gradient(circle, rgba(157, 107, 255, 0.16), transparent 68%);
}

.card-kicker,
.meta,
.article-meta {
    color: #d8c7fa;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.card h3,
.scenario h3,
.article-card h2,
.article-card h3,
.product-card h3,
.content-card h2,
.content-card h3 {
    margin: 0.5rem 0 0.7rem;
    line-height: 1.14;
    letter-spacing: -0.025em;
}

.card h3,
.scenario h3,
.article-card h2,
.article-card h3,
.product-card h3 {
    font-size: clamp(1.35rem, 2.6vw, 2rem);
}

.card p,
.scenario p,
.article-card p,
.product-card p,
.content-card p,
.contact-panel p,
.faq-item p,
.prose p,
.prose li {
    color: var(--muted);
}

.card-link {
    position: relative;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 1rem;
    color: #eadfff;
    font-weight: 760;
}

.card-link::after {
    content: "↗";
    color: var(--pink);
}

.scenario {
    min-height: 240px;
}

.scenario-number {
    color: var(--pink);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.82rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 1.2rem;
}

.tag {
    padding: 0.25rem 0.58rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: #d9d0e6;
    font-size: 0.73rem;
    font-weight: 700;
}

.product-card {
    display: grid;
    min-height: 390px;
    padding: 2rem;
    align-content: end;
}

.product-card .product-mark {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    max-width: 220px;
    max-height: 52px;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-card.docowling .product-mark {
    color: var(--cyan);
    font-size: 1.55rem;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.faq-list {
    display: grid;
    max-width: 900px;
    gap: 0.7rem;
    margin-inline: auto;
}

.faq-item {
    padding: 0;
}

.faq-item summary {
    padding: 1.2rem 1.35rem;
    cursor: pointer;
    font-weight: 800;
}

.faq-item p {
    margin: 0;
    padding: 0 1.35rem 1.35rem;
}

.contact-panel,
.contact-form {
    min-height: 100%;
}

.contact-list {
    display: grid;
    gap: 0.65rem;
    margin: 1.5rem 0 0;
    padding: 0;
    list-style: none;
}

.contact-list a {
    color: #eadfff;
}

.field {
    display: grid;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.field label {
    font-size: 0.84rem;
    font-weight: 750;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--text);
    background: rgba(7, 6, 12, 0.7);
    padding: 0.82rem 0.9rem;
}

.field textarea {
    min-height: 130px;
    resize: vertical;
}

.page-hero {
    padding: clamp(4.5rem, 9vw, 8rem) 0 3rem;
}

.page-hero .lead {
    max-width: 720px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 1.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.breadcrumb span:not(:last-child)::after,
.breadcrumb a::after {
    margin-left: 0.35rem;
    content: "/";
    color: #6d6479;
}

.content-stack {
    display: grid;
    gap: 1rem;
}

.content-stack.content-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.content-card ul,
.prose ul,
.prose ol {
    padding-left: 1.2rem;
}

.content-card li + li,
.prose li + li {
    margin-top: 0.45rem;
}

.content-card a,
.prose a {
    color: #e4cfff;
    text-decoration: underline;
    text-decoration-color: rgba(228, 207, 255, 0.35);
    text-underline-offset: 3px;
}

.article-grid .article-card {
    display: flex;
    min-height: 270px;
    flex-direction: column;
}

.article-card .card-link {
    margin-top: auto;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 290px;
    align-items: start;
    gap: 2rem;
}

.prose {
    min-width: 0;
}

.answer-box {
    margin-bottom: 2rem;
    padding: 1.4rem;
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    background: linear-gradient(135deg, rgba(157, 107, 255, 0.15), rgba(101, 217, 255, 0.05));
}

.answer-box strong {
    display: block;
    margin-bottom: 0.45rem;
    color: #eadfff;
}

.prose h2 {
    margin: 3rem 0 1rem;
    font-size: clamp(1.7rem, 4vw, 2.65rem);
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.prose h3 {
    margin: 2rem 0 0.7rem;
    font-size: 1.25rem;
}

.prose table {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
}

.prose th,
.prose td {
    padding: 0.8rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: rgba(157, 107, 255, 0.09);
}

.article-aside {
    position: sticky;
    top: 92px;
    padding: 1.25rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: var(--surface);
}

.article-aside h2 {
    margin: 0 0 0.8rem;
    font-size: 1rem;
}

.article-aside ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.article-aside a {
    color: var(--muted);
    font-size: 0.88rem;
}

.bio-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.bio-photo {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    object-fit: cover;
    box-shadow: var(--shadow);
}

.site-footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--line);
    background: rgba(7, 6, 12, 0.82);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 0.7fr);
    gap: 2rem;
}

.footer-brand img {
    width: min(220px, 100%);
    height: auto;
    aspect-ratio: 640 / 184;
    object-fit: contain;
}

.footer-brand p,
.footer-col a,
.footer-col li,
.footer-bottom {
    color: var(--muted);
}

.footer-col h2 {
    margin: 0 0 0.75rem;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-col ul {
    display: grid;
    gap: 0.45rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--line);
    font-size: 0.78rem;
}

.js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 500ms ease, transform 500ms ease;
}

.js [data-reveal].is-visible {
    opacity: 1;
    transform: none;
}

@media (max-width: 1040px) {
    .header-cta {
        display: none;
    }

    .site-nav a {
        padding-inline: 0.48rem;
    }
}

@media (max-width: 880px) {
    .header-inner {
        min-height: 68px;
    }

    .brand {
        width: 150px;
    }

    .menu-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.5rem);
        right: 1rem;
        left: 1rem;
        display: none;
        max-height: calc(100vh - 90px);
        padding: 0.75rem;
        overflow: auto;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        background: rgba(13, 11, 22, 0.98);
        box-shadow: var(--shadow);
    }

    .site-nav.is-open {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .site-nav a {
        padding: 0.72rem;
        border-radius: 10px;
    }

    .language-link {
        margin-left: 0.4rem;
    }

    .hero-grid,
    .section-head,
    .article-layout {
        grid-template-columns: 1fr;
    }

    .hero-aside {
        max-width: 600px;
    }

    .article-aside {
        position: static;
    }

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

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

@media (max-width: 680px) {
    .container {
        width: min(var(--max), calc(100% - 1.3rem));
    }

    .hero h1,
    .page-hero h1 {
        font-size: clamp(2.8rem, 15vw, 4.6rem);
    }

    .hero {
        padding-top: 4.5rem;
    }

    .hero-actions .button {
        width: 100%;
    }

    .scenario-grid,
    .article-grid,
    .product-grid,
    .contact-grid,
    .split-grid,
    .content-stack.content-grid,
    .bio-layout {
        grid-template-columns: 1fr;
    }

    .client-logo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .client-logo-card {
        min-height: 128px;
        padding: 0.75rem 0.65rem 0.6rem;
    }

    .client-logo-card img {
        height: 70px;
    }

    .bio-photo {
        max-width: 220px;
    }

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

    .footer-bottom {
        display: grid;
    }

    .prose table {
        display: block;
        overflow-x: auto;
    }
}

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

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
