:root {
    --bg: #0b0d10;
    --bg-elev: #111418;
    --bg-elev-2: #161a1f;
    --border: #232830;
    --text: #e6e8eb;
    --text-muted: #9aa3ad;
    --accent: #d6e3f0;
    --blue: #0000FF;
    --blue-glow: rgba(0, 0, 255, 0.45);
    --max-width: 1200px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    height: 100%;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "Chakra Petch", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 68px;
}

button, input, select, textarea {
    font-family: inherit;
}

a {
    color: var(--text);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--accent);
}

/* ---------- Topbar ---------- */
.topbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(11, 13, 16, 0.85);
    backdrop-filter: saturate(140%) blur(10px);
    -webkit-backdrop-filter: saturate(140%) blur(10px);
}

.topbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 16px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand-logo {
    height: 36px;
    width: auto;
    display: block;
}

/* ---------- Content ---------- */
.content {
    flex: 1;
    max-width: var(--max-width);
    width: 100%;
    margin: 0 auto;
    padding: 48px 24px;
}

/* ---------- Backdrop hero ---------- */
.hero-bg {
    position: relative;
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: -48px;
    min-height: calc(100vh - 80px);
    padding: 80px 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: blur(1px) saturate(0.85);
    opacity: 0.45;
}

.hero-bg-overlay {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, transparent 0%, rgba(11, 13, 16, 0.35) 65%, var(--bg) 100%),
        linear-gradient(to bottom, rgba(11, 13, 16, 0.2) 0%, rgba(11, 13, 16, 0.35) 50%, var(--bg) 100%);
}

.hero-bg-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 760px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 22px;
}

.hero-title {
    font-size: clamp(2.75rem, 6.5vw, 5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.05;
    color: var(--text);
}

.accent-blue {
    color: var(--blue);
}

.hero-subtitle {
    font-size: clamp(1rem, 1.4vw, 1.2rem);
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.6;
    margin: 0;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 9px 16px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid transparent;
    border-radius: 0;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-arrow {
    transition: transform 0.15s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(2px);
}

.btn-primary {
    background: var(--blue);
    color: var(--text);
    border-color: var(--blue);
}

.btn-primary:hover {
    background: #1a1aff;
    border-color: #1a1aff;
    color: var(--text);
}

.btn-secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.btn-secondary:hover {
    background: var(--bg-elev);
    border-color: var(--text-muted);
    color: var(--text);
}

/* ---------- Connectors banner ---------- */
.connectors {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 72px 0 40px;
}

.connectors-heading {
    text-align: center;
    margin-bottom: 40px;
}

.connectors-title {
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text);
}

.connectors-subtitle {
    margin-top: 12px;
    font-size: 14px;
    color: var(--text-muted);
    max-width: 580px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.marquee {
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

.marquee-track {
    display: flex;
    gap: 56px;
    width: max-content;
    animation: marquee 60s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

.connector-logo {
    flex: 0 0 auto;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.connector-logo img {
    height: 100%;
    width: auto;
    max-width: 180px;
    object-fit: contain;
}

/* ---------- Features ---------- */
.features {
    display: flex;
    flex-direction: column;
    gap: 96px;
    padding: 80px 0 16px;
}

.features-heading {
    text-align: center;
    margin-bottom: -32px;
}

.features-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text);
}

.feature-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: center;
    gap: 64px;
}

.feature-row:nth-child(even) .feature-copy {
    order: 2;
}

.feature-row:nth-child(even) .feature-visual {
    order: 1;
}

.feature-copy {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.feature-title {
    font-size: clamp(2rem, 3.4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--text);
}

.feature-text {
    font-size: 1.05rem;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 480px;
}

.feature-visual {
    overflow: hidden;
    cursor: zoom-in;
}

.feature-visual img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s ease;
}

.feature-visual:hover img {
    transform: scale(1.015);
}

/* ---------- Misc features grid ---------- */
.misc-features {
    padding: 72px 0 80px;
}

.misc-features-heading {
    text-align: center;
    margin-bottom: 40px;
}

.misc-features-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text);
}

.misc-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.misc-card {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.misc-card:hover {
    border-color: var(--text-muted);
}

.misc-card-image {
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: var(--bg);
    cursor: zoom-in;
}

.misc-card-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top left;
    transition: transform 0.35s ease;
}

.misc-card:hover .misc-card-image img {
    transform: scale(1.02);
}

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.lightbox.is-open {
    opacity: 1;
    pointer-events: all;
}

.lightbox-inner {
    position: relative;
    max-width: min(1200px, 100%);
    max-height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 80px);
    object-fit: contain;
    border: 1px solid var(--border);
    transform: scale(0.96);
    transition: transform 0.2s ease;
}

.lightbox.is-open img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: -16px;
    right: -16px;
    width: 32px;
    height: 32px;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.lightbox-close:hover {
    color: var(--text);
    border-color: var(--text-muted);
}

.misc-card-body {
    padding: 16px 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.misc-card-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.01em;
}

.misc-card-text {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .misc-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Pricing ---------- */
.pricing {
    padding: 40px 0 64px;
}

.pricing-heading {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-title {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.15;
    color: var(--text);
}

.period-toggle {
    display: inline-flex;
    margin: 0 auto 40px;
    border: 1px solid var(--border);
    background: var(--bg-elev);
    width: max-content;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

.period-btn {
    appearance: none;
    background: transparent;
    border: 0;
    color: var(--text-muted);
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 10px 22px;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.period-btn + .period-btn {
    border-left: 1px solid var(--border);
}

.period-btn.is-active {
    background: var(--text);
    color: var(--bg);
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.tier-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-elev);
    border: 1px solid var(--border);
    padding: 28px 24px 24px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.tier-card:hover {
    border-color: var(--text-muted);
}

.tier-card--featured {
    border-color: var(--blue);
    border-width: 1px;
    box-shadow: inset 0 0 0 1px var(--blue);
}

.tier-card--featured:hover {
    border-color: var(--blue);
}

.tier-header {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
}

.tier-name {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.price-strike {
    font-size: 12px;
    color: var(--text-muted);
    height: 16px;
    margin-bottom: 2px;
}

.price-strike.is-strike {
    text-decoration: line-through;
}

.price-row {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 4px;
}

.price-amount {
    font-size: 2.25rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1;
    letter-spacing: -0.01em;
}

.price-period {
    font-size: 13px;
    color: var(--text-muted);
}

.price-subtext {
    font-size: 12px;
    color: var(--text-muted);
    height: 16px;
}

.tier-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-size: 14px;
    color: var(--text-muted);
}

.tier-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
}

.tier-features li::before {
    content: "";
    flex: 0 0 6px;
    width: 6px;
    height: 6px;
    margin-top: 8px;
    background: var(--text-muted);
}

.tier-features strong {
    color: var(--text);
    font-weight: 600;
}

.tier-feature--highlight,
.tier-feature--highlight strong {
    color: var(--blue);
}

.tier-feature--highlight::before {
    background: var(--blue);
}

.tier-cta {
    width: 100%;
}

/* ---------- Final CTA ---------- */
.final-cta {
    width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-top: 64px;
    margin-bottom: -48px;
    padding: 80px 24px;
    background: var(--bg-elev);
    border-top: 1px solid var(--border);
}

.final-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.final-cta-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--text);
}

.final-cta-subtitle {
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 480px;
}

.final-cta .hero-cta {
    justify-content: center;
    margin-top: 8px;
}


/* ---------- Legal pages ---------- */
.legal-page {
    max-width: 760px;
    margin: 0 auto;
    padding: 48px 0 80px;
}

.legal-header {
    margin-bottom: 48px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.legal-title {
    font-size: clamp(2rem, 4vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 10px;
}

.legal-meta {
    font-size: 13px;
    color: var(--text-muted);
}

.legal-body {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--text);
    margin-bottom: 12px;
}

.legal-section h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 20px;
    margin-bottom: 8px;
}

.legal-section p,
.legal-section address {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.75;
    font-style: normal;
}

.legal-section p + p {
    margin-top: 12px;
}

.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 12px 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legal-section ul li {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.65;
    padding-left: 16px;
    position: relative;
}

.legal-section ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 11px;
    width: 5px;
    height: 5px;
    background: var(--text-muted);
}

.legal-section a {
    color: var(--text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-section a:hover {
    color: var(--accent);
}

/* ---------- Footer ---------- */
.footer {
    background: var(--bg-elev);
    margin-top: auto;
}

.footer-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 32px 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 24px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.footer-icon {
    height: 36px;
    width: 36px;
    object-fit: contain;
}

.footer-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.footer-tagline {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.footer-links a {
    font-size: 13px;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: var(--text);
}

.footer-copy {
    font-size: 12px;
    color: var(--text-muted);
    text-align: right;
}

/* ---------- Responsive ---------- */
@media (max-width: 768px) {
    body {
        padding-top: 52px;
    }

    .topbar-inner {
        padding: 12px 16px;
    }

    .brand-logo {
        height: 28px;
    }

    .content {
        padding: 32px 16px;
    }

    .hero-bg {
        margin-top: -32px;
        min-height: 78vh;
        padding: 64px 16px;
    }

    .connectors {
        padding: 16px 0 24px;
    }

    .connector-logo {
        height: 40px;
    }

    .marquee-track {
        gap: 40px;
        animation-duration: 45s;
    }

    .features {
        gap: 56px;
        padding: 56px 0 24px;
    }

    .feature-row {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .feature-row:nth-child(even) .feature-copy,
    .feature-row:nth-child(even) .feature-visual {
        order: initial;
    }

    .feature-text {
        max-width: none;
    }

    .pricing {
        padding: 56px 0 32px;
    }

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

    .final-cta {
        padding: 56px 16px;
        margin-top: 48px;
        margin-bottom: -32px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 16px;
        padding: 24px 16px;
    }

    .footer-brand {
        justify-content: center;
    }

    .footer-copy {
        text-align: center;
    }
}

/* ---------- Contact page ---------- */
.contact-page {
    max-width: 640px;
    margin: 0 auto;
    padding: 80px 24px 120px;
}

.contact-header {
    text-align: center;
    margin-bottom: 40px;
}

.contact-title {
    font-size: 36px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 12px;
}

.contact-lead {
    color: var(--text-muted);
    font-size: 15px;
}

.contact-status {
    margin-bottom: 24px;
    padding: 12px 16px;
    border: 1px solid var(--border);
    font-size: 14px;
}

.contact-status--success {
    border-color: var(--blue);
    color: var(--text);
    background: rgba(0, 0, 255, 0.08);
}

.contact-status--error {
    border-color: #b04848;
    color: #f1c4c4;
    background: rgba(176, 72, 72, 0.08);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.form-row {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-row label {
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-row input,
.form-row textarea {
    background: var(--bg-elev);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 10px 12px;
    font-size: 14px;
    border-radius: 0;
    transition: border-color 0.15s ease;
}

.form-row input:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--blue);
}

.form-row textarea {
    resize: vertical;
    min-height: 120px;
}

.form-honeypot {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.form-altcha {
    --altcha-border-width: 1px;
    --altcha-border-color: var(--border);
    --altcha-color-base: var(--bg-elev);
    --altcha-color-text: var(--text);
    --altcha-color-border-focus: var(--blue);
    --altcha-color-error-text: #f1c4c4;
    --altcha-color-footer-bg: var(--bg-elev-2);
}

.form-actions {
    display: flex;
    justify-content: flex-start;
    margin-top: 8px;
}
