:root {
    --bg: #060a12;
    --bg-elevated: #0c1220;
    --panel: rgba(12, 20, 36, 0.92);
    --panel-strong: rgba(16, 26, 46, 0.96);
    --line: rgba(148, 163, 184, 0.14);
    --text: #f1f5f9;
    --muted: #94a3b8;
    --accent: #3b82f6;
    --accent-soft: rgba(59, 130, 246, 0.12);

    --akhenaton: #22d3ee;
    --akhenaton-2: #4ade80;
    --akhenaton-glow: rgba(34, 211, 238, 0.18);

    --proteu: #f59e0b;
    --proteu-2: #fbbf24;
    --proteu-glow: rgba(245, 158, 11, 0.16);

    --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    --radius: 20px;
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "DM Sans", sans-serif;
    color: var(--text);
    background:
        radial-gradient(ellipse 80% 50% at 50% -10%, rgba(59, 130, 246, 0.08), transparent),
        linear-gradient(180deg, #04070d 0%, var(--bg) 40%, #08101c 100%);
    min-height: 100vh;
    line-height: 1.6;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

.site-shell {
    position: relative;
    overflow: hidden;
}

.site-shell::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.03) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.4), transparent 90%);
}

.topbar,
main,
.footer {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 32px), var(--max-width));
    margin: 0 auto;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.brand-name,
h1,
h2,
h3,
h4,
.menu a,
.button,
.price,
.step-number,
.menu-toggle,
.product-tab strong,
.compare-table th {
    font-family: "Instrument Sans", sans-serif;
}

.brand-name {
    display: block;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.brand-subtitle {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

.menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.menu a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
}

.menu a:hover,
.menu a:focus-visible {
    color: var(--text);
}

.menu-cta {
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    color: var(--text) !important;
}

.menu-toggle {
    display: none;
}

.section {
    padding: 56px 0;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 48px;
    align-items: center;
    padding: 48px 0 32px;
}

.eyebrow,
.section-tag {
    margin: 0 0 14px;
    color: var(--accent);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4.5vw, 3.6rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    margin: 0 0 14px;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h3 {
    margin: 0 0 10px;
    font-size: 1.45rem;
    line-height: 1.15;
    font-weight: 700;
}

h4 {
    margin: 0 0 10px;
    font-size: 1.2rem;
    font-weight: 700;
}

p {
    margin: 0;
    color: var(--muted);
}

.hero-text {
    margin-top: 18px;
    max-width: 56ch;
    font-size: 1.05rem;
}

.hero-actions,
.cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 600;
    border: 1px solid transparent;
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-1px);
}

.button-primary {
    color: #fff;
    background: var(--accent);
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.25);
}

.button-secondary,
.button-tertiary {
    border-color: var(--line);
    background: var(--panel);
    color: var(--text);
}

.button-tertiary {
    background: transparent;
}

.button-akhenaton {
    color: #042f2e;
    background: linear-gradient(135deg, var(--akhenaton), var(--akhenaton-2));
    box-shadow: 0 8px 24px var(--akhenaton-glow);
}

.button-proteu {
    color: #422006;
    background: linear-gradient(135deg, var(--proteu), var(--proteu-2));
    box-shadow: 0 8px 24px var(--proteu-glow);
}

.button-bingx {
    color: #fff;
    background: linear-gradient(135deg, #1a8cff, #0052cc);
    box-shadow: 0 8px 24px rgba(26, 140, 255, 0.22);
}

.partner-panel {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 32px;
    align-items: center;
    padding: 32px;
    border-color: rgba(26, 140, 255, 0.22);
    background: linear-gradient(135deg, var(--panel-strong), rgba(26, 140, 255, 0.06));
}

.partner-brand {
    display: grid;
    justify-items: center;
    gap: 12px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.03);
}

.partner-brand img {
    width: min(140px, 100%);
    height: auto;
    object-fit: contain;
}

.partner-label {
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.partner-copy .button {
    margin-top: 22px;
}

.partner-benefits {
    margin-top: 16px;
}

.partner-copy a:not(.button) {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.step-card a,
.faq-item a {
    color: #60a5fa;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.hero-visual {
    display: grid;
}

.hero-card,
.card,
.trust-bar,
.cta-panel,
.compare-table-wrap {
    position: relative;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.hero-card {
    padding: 12px;
}

.hero-card img {
    width: 100%;
    border-radius: calc(var(--radius) - 8px);
}

.trust-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 0 auto 12px;
}

.trust-bar > div {
    padding: 22px 20px;
    border-right: 1px solid var(--line);
}

.trust-bar > div:last-child {
    border-right: 0;
}

.trust-bar strong,
.metric-card strong {
    display: block;
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 700;
}

.trust-bar span,
.metric-card span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 0.9rem;
}

.section-heading {
    display: grid;
    gap: 10px;
    margin-bottom: 32px;
}

.section-heading.narrow {
    max-width: 720px;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.about-card,
.feature-card,
.media-card,
.checklist-card,
.faq-item,
.price-card,
.metric-card,
.step-card {
    padding: 24px;
}

.product-selector {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 28px;
}

.product-tab {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elevated);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.product-tab img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    flex-shrink: 0;
}

.product-tab strong {
    display: block;
    font-size: 1.1rem;
}

.product-tab small {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 0.82rem;
}

.product-tab.is-active[data-product="akhenaton"] {
    border-color: rgba(34, 211, 238, 0.45);
    background: linear-gradient(135deg, rgba(34, 211, 238, 0.08), rgba(74, 222, 128, 0.04));
}

.product-tab.is-active[data-product="proteu"] {
    border-color: rgba(245, 158, 11, 0.45);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(251, 191, 36, 0.04));
}

.product-panel {
    display: none;
}

.product-panel.is-active {
    display: block;
}

.product-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: center;
    margin-bottom: 24px;
    padding: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel-strong);
}

.product-hero--akhenaton {
    border-color: rgba(34, 211, 238, 0.2);
}

.product-hero--proteu {
    border-color: rgba(245, 158, 11, 0.2);
}

.audience-badge {
    display: inline-flex;
    margin-bottom: 14px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--akhenaton);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.audience-badge--proteu {
    background: rgba(245, 158, 11, 0.12);
    color: var(--proteu);
}

.product-hero-media img {
    width: 100%;
    border-radius: 14px;
}

.product-details {
    display: grid;
    gap: 20px;
}

.product-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.media-card img {
    width: 100%;
    border-radius: 12px;
}

.media-card figcaption {
    margin-top: 12px;
    color: var(--muted);
    font-size: 0.88rem;
}

.architecture-flow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 4px;
    margin: 16px 0;
}

.architecture-flow span {
    padding: 8px 12px;
    border: 1px solid rgba(245, 158, 11, 0.25);
    border-radius: 8px;
    background: rgba(245, 158, 11, 0.06);
    color: var(--text);
    font-size: 0.82rem;
}

.architecture-note {
    margin-top: 8px;
    font-size: 0.9rem;
}

.compare-table-wrap {
    padding: 0;
    overflow-x: auto;
}

.compare-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 640px;
}

.compare-table th,
.compare-table td {
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.compare-table thead th {
    background: var(--bg-elevated);
    color: var(--text);
    font-size: 1rem;
}

.compare-table thead th:nth-child(2) {
    color: var(--akhenaton);
}

.compare-table thead th:nth-child(3) {
    color: var(--proteu);
}

.compare-table tbody th {
    color: var(--text);
    font-weight: 600;
    width: 28%;
}

.compare-table tbody td {
    color: var(--muted);
    width: 36%;
}

.compare-table tbody tr:last-child th,
.compare-table tbody tr:last-child td {
    border-bottom: 0;
}

.showcase,
.split-panels,
.cta-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    align-items: center;
}

.showcase-media img,
.product-bg-card img {
    width: 100%;
    border-radius: 14px;
}

.check-list,
.price-card ul,
.footer-links,
.flow-list {
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.check-list,
.price-card ul {
    display: grid;
    gap: 10px;
}

.check-list li,
.price-card li {
    position: relative;
    padding-left: 22px;
    color: var(--text);
    font-size: 0.95rem;
}

.check-list li::before,
.price-card li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}

.check-list--proteu li::before {
    background: var(--proteu);
}

.flow-list {
    counter-reset: flow;
    display: grid;
    gap: 14px;
}

.flow-list li {
    position: relative;
    padding-left: 52px;
    min-height: 36px;
    color: var(--text);
}

.flow-list li::before {
    counter-increment: flow;
    content: counter(flow);
    position: absolute;
    left: 0;
    top: 0;
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    color: #042f2e;
    background: linear-gradient(135deg, var(--akhenaton), var(--akhenaton-2));
    font-family: "Instrument Sans", sans-serif;
    font-weight: 700;
    font-size: 0.9rem;
}

.pricing-product {
    margin-bottom: 32px;
}

.pricing-product-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.pricing-product-header img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.pricing-product-header h3 {
    margin: 0;
}

.pricing-product-header p {
    margin-top: 4px;
    font-size: 0.92rem;
}

.pricing-product--proteu .pricing-product-header img {
    width: 52px;
    height: 52px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.price-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.price-card--contact {
    max-width: 720px;
}

.price {
    font-size: 1.9rem;
    color: var(--text);
    line-height: 1.1;
    font-weight: 700;
}

.price span {
    display: block;
    margin-top: 6px;
    font-size: 0.92rem;
    color: var(--muted);
    font-family: "DM Sans", sans-serif;
    font-weight: 400;
}

.price-card .button {
    margin-top: auto;
}

.featured {
    border-color: rgba(34, 211, 238, 0.3);
}

.badge {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 6px;
    background: rgba(34, 211, 238, 0.12);
    color: var(--akhenaton);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.note-box {
    margin-top: 8px;
    padding: 18px 20px;
    border-left: 3px solid var(--accent);
    border-radius: 0 12px 12px 0;
    background: var(--bg-elevated);
}

.operation-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 14px;
}

.metric-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.metric-card {
    min-height: 160px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.metric-card strong {
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1;
    color: var(--accent);
}

.faq-list {
    display: grid;
    gap: 12px;
}

.faq-item summary {
    list-style: none;
    cursor: pointer;
    color: var(--text);
    font-family: "Instrument Sans", sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item p {
    margin-top: 12px;
    font-size: 0.95rem;
}

.cta-panel {
    padding: 32px;
    margin-bottom: 32px;
    background: linear-gradient(135deg, var(--panel-strong), rgba(59, 130, 246, 0.06));
}

.footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 24px 0 48px;
    border-top: 1px solid var(--line);
}

.footer p {
    margin-top: 6px;
    font-size: 0.88rem;
}

.footer-links {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin: 0;
}

.footer a {
    color: var(--muted);
    font-size: 0.9rem;
}

.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 1080px) {
    .hero,
    .about-grid,
    .product-hero,
    .product-gallery,
    .showcase,
    .split-panels,
    .cta-panel,
    .pricing-grid,
    .metric-grid,
    .trust-bar,
    .operation-grid,
    .partner-panel {
        grid-template-columns: 1fr;
    }

    .featured {
        transform: none;
    }

    .trust-bar > div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .trust-bar > div:last-child {
        border-bottom: 0;
    }
}

@media (max-width: 860px) {
    .topbar {
        align-items: flex-start;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 42px;
        padding: 0 16px;
        border: 1px solid var(--line);
        border-radius: 8px;
        background: var(--panel);
        color: var(--text);
        font-family: "Instrument Sans", sans-serif;
        font-size: 0.92rem;
        font-weight: 600;
        cursor: pointer;
    }

    .menu {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 12px;
        border: 1px solid var(--line);
        border-radius: var(--radius);
        background: var(--panel-strong);
    }

    .menu.is-open {
        display: flex;
    }

    .menu a {
        padding: 10px 8px;
    }

    .product-selector {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .topbar,
    main,
    .footer {
        width: min(calc(100% - 24px), var(--max-width));
    }

    .section {
        padding: 40px 0;
    }

    .hero {
        gap: 28px;
    }

    .about-card,
    .feature-card,
    .media-card,
    .checklist-card,
    .faq-item,
    .price-card,
    .metric-card,
    .step-card,
    .cta-panel,
    .product-hero,
    .partner-panel {
        padding: 18px;
    }

    .button,
    .hero-actions .button,
    .cta-actions .button {
        width: 100%;
    }

    .footer {
        flex-direction: column;
        align-items: flex-start;
    }
}
