:root {
    --bg: #07111f;
    --bg-soft: #0d1b2e;
    --panel: #ffffff;
    --panel-soft: #f4f7fb;
    --text: #172033;
    --muted: #5c667a;
    --brand: #1aa7d9;
    --brand-dark: #0f6f96;
    --line: #dfe6f1;
    --shadow: 0 18px 45px rgba(8, 22, 40, 0.14);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    overflow-x: hidden;
}

body {
    margin: 0;
    font-family: "Segoe UI", Arial, Helvetica, sans-serif;
    line-height: 1.6;
    color: var(--text);
    background: #f7f9fc;
}

a {
    color: var(--brand-dark);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

.container {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.site-header {
    background: radial-gradient(circle at top left, rgba(26,167,217,0.28), transparent 34%), linear-gradient(135deg, #06101e 0%, #0d2440 62%, #102d48 100%);
    color: #ffffff;
}

.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    text-decoration: none;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 54px;
    height: 54px;
    filter: drop-shadow(0 10px 20px rgba(0,0,0,0.35));
}

.brand-title {
    display: block;
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.brand-tagline {
    display: block;
    color: rgba(255,255,255,0.72);
    font-size: 0.92rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.nav-links a {
    color: rgba(255,255,255,0.82);
    font-weight: 600;
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a.active {
    color: #ffffff;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
    gap: 44px;
    align-items: center;
    padding: 58px 0 72px;
}

.eyebrow {
    margin: 0 0 12px;
    color: #79d8f4;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    font-size: 0.78rem;
}

.hero h1,
.page-hero h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4.6vw, 4.15rem);
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.hero-lead,
.page-lead {
    margin: 22px 0 0;
    color: rgba(255,255,255,0.78);
    font-size: 1.18rem;
    max-width: 670px;
}

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

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border-radius: 999px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
}

.button:hover {
    text-decoration: none;
}

.button.primary {
    color: #06101e;
    background: linear-gradient(135deg, #60dcff, #1aa7d9);
    box-shadow: 0 18px 36px rgba(26, 167, 217, 0.28);
}

.button.secondary {
    color: #ffffff;
    border-color: rgba(255,255,255,0.28);
    background: rgba(255,255,255,0.08);
}

.button.light {
    color: #ffffff;
    background: var(--brand-dark);
}

.hero-card {
    border: 1px solid rgba(255,255,255,0.16);
    border-radius: 24px;
    padding: 12px;
    background: rgba(255,255,255,0.09);
    box-shadow: 0 28px 70px rgba(0,0,0,0.35);
}

.hero-card img {
    display: block;
    width: 100%;
    border-radius: 0;
}

.image-card img,
.screenshot-card img {
    display: block;
    width: 100%;
    border-radius: 15px;
}

.image-card img,
.screenshot-card img {
    height: 300px;
    object-fit: contain;
    background: #eef3f9;
    padding: 10px;
}

.image-card.featured img {
    height: 330px;
}

.screenshot-card img {
    height: 340px;
}

.trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 28px;
}

.trust-item {
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.11);
    color: rgba(255,255,255,0.78);
    font-size: 0.92rem;
}

.section {
    padding: 70px 0;
}

.section.compact {
    padding: 44px 0;
}

.section.alt {
    background: #ffffff;
}

.section.dark {
    background: linear-gradient(135deg, #07111f, #0f2840);
    color: #ffffff;
}

.section-header {
    max-width: 760px;
    margin-bottom: 30px;
}

.section-header.center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.section h2,
.page-section h2 {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 3vw, 2.4rem);
    letter-spacing: -0.03em;
    line-height: 1.15;
}

.section-header p,
.card p,
.feature-card p,
.screenshot-card p,
.page-section p,
.legal-note p {
    color: var(--muted);
}

.dark .section-header p,
.dark .card p,
.dark .feature-card p {
    color: rgba(255,255,255,0.72);
}

.grid {
    display: grid;
    gap: 22px;
}

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

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

.grid.four {
    grid-template-columns: repeat(4, 1fr);
}

.card,
.feature-card,
.image-card,
.screenshot-card,
.legal-note {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.card,
.feature-card,
.legal-note {
    padding: 24px;
}

.dark .card,
.dark .feature-card {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.12);
    box-shadow: none;
}

.card h3,
.feature-card h3,
.screenshot-card h3 {
    margin: 0 0 8px;
    font-size: 1.17rem;
}

.card p,
.feature-card p,
.screenshot-card p {
    margin: 0;
}

.feature-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 18px 0 0;
    list-style: none;
}

.feature-list li {
    padding-left: 26px;
    position: relative;
    color: var(--muted);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.64em;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--brand);
    box-shadow: 0 0 0 4px rgba(26,167,217,0.14);
}

.image-card,
.screenshot-card {
    overflow: hidden;
}

.image-card .caption,
.screenshot-card .caption {
    padding: 18px 20px 20px;
}

.image-card.featured {
    grid-column: span 2;
}

.download-panel {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    align-items: center;
    padding: 30px;
    background: #ffffff;
    border-radius: 24px;
    box-shadow: var(--shadow);
    border: 1px solid var(--line);
}

.note {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 14px;
    background: #fff8e6;
    border: 1px solid #f0dfad;
    color: #5d4a1d;
}

.page-hero {
    padding: 56px 0 64px;
    background: radial-gradient(circle at top left, rgba(26,167,217,0.24), transparent 32%), linear-gradient(135deg, #06101e, #0f2840);
    color: #ffffff;
}

.page-section {
    padding: 58px 0;
}

.doc-list {
    display: grid;
    gap: 16px;
    margin-top: 22px;
}

.doc-item {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    padding: 20px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.pdf-frame {
    width: 100%;
    height: 760px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #ffffff;
    box-shadow: var(--shadow);
}

.footer {
    padding: 32px 0;
    background: #06101e;
    color: rgba(255,255,255,0.72);
}

.footer .container {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer a {
    color: rgba(255,255,255,0.86);
    margin-left: 14px;
}

@media (max-width: 1024px) {
    .hero {
        gap: 32px;
    }

    .hero h1 {
        font-size: 2.2rem;
        letter-spacing: -0.04em;
    }

    .hero-lead {
        font-size: 1.08rem;
    }

    .image-card img,
    .image-card.featured img,
    .screenshot-card img {
        height: 300px;
    }
}

@media (max-width: 880px) {
    .navbar,
    .footer .container {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero,
    .grid.two,
    .grid.three,
    .grid.four,
    .download-panel {
        grid-template-columns: 1fr;
    }

    .image-card.featured {
        grid-column: auto;
    }

    .image-card img,
    .image-card.featured img,
    .screenshot-card img {
        height: 280px;
    }

    .trust-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .doc-item {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(100% - 28px, 1120px);
    }

    .nav-links {
        gap: 12px;
        justify-content: flex-start;
    }

    .trust-row {
        grid-template-columns: 1fr;
    }

    .section,
    .page-section {
        padding: 48px 0;
    }

    .image-card img,
    .image-card.featured img,
    .screenshot-card img {
        height: 240px;
    }

    .pdf-frame {
        height: 560px;
    }
}


/* Getting Started page additions */
.setup-steps {
    display: grid;
    gap: 16px;
    max-width: 900px;
    margin: 0 auto;
}

.setup-step {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    color: #06101e;
    background: linear-gradient(135deg, #60dcff, #1aa7d9);
    font-weight: 900;
}

.setup-step h3,
.config-card h3 {
    margin: 0 0 8px;
}

.setup-step p {
    margin: 0;
    color: var(--muted);
}

.diagram-box {
    margin: 16px 0;
    padding: 16px;
    border-radius: 14px;
    background: #eef7fb;
    border: 1px solid #cfe6f0;
    color: #17334a;
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
    line-height: 1.55;
    overflow-x: auto;
}

.diagram-box.stacked {
    white-space: nowrap;
}

.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.setup-table {
    width: 100%;
    border-collapse: collapse;
    background: #ffffff;
    border: 1px solid var(--line);
}

.setup-table th,
.setup-table td {
    padding: 15px 18px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.setup-table th {
    background: #eef3f9;
    color: #172033;
    font-weight: 800;
}

.setup-table tr:last-child td {
    border-bottom: 0;
}

@media (max-width: 560px) {
    .setup-step {
        grid-template-columns: 1fr;
    }
}

.setup-image-card {
    max-width: 900px;
    margin: 0 auto 24px;
}

.setup-image-card img {
    height: auto;
    max-height: 520px;
}


.top-gap {
    margin-top: 22px;
}

.large-diagram {
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 22px;
}


.guide-card .guide-thumb {
    width: 100%;
    height: 160px;
    object-fit: contain;
    border-radius: 14px;
    border: 1px solid rgba(130, 148, 168, 0.28);
    background: rgba(15, 23, 42, 0.04);
    margin-bottom: 1rem;
}


.guide-row-gap {
    margin-top: 22px;
}


/* Architecture diagrams */
.architecture-diagram {
    margin: 1.5rem auto 2rem;
    max-width: 1120px;
    background: #ffffff;
    border: 1px solid rgba(130, 148, 168, 0.35);
    border-radius: 18px;
    padding: 14px;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
}

.architecture-diagram img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.architecture-diagram figcaption {
    margin-top: 0.75rem;
    color: var(--muted);
    font-size: 0.95rem;
    line-height: 1.5;
}


/* Onboarding topology blocks */
.config-card .diagram-box {
    min-height: 64px;
    display: flex;
    align-items: center;
    white-space: normal;
}

.config-card .diagram-box.stacked {
    display: block;
    white-space: normal;
}

.large-diagram {
    white-space: normal;
}


/* Beta download form */
.beta-form-panel {
    max-width: 860px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.beta-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-top: 22px;
}

.beta-form-field.full {
    grid-column: 1 / -1;
}

.beta-form-field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
    color: var(--text);
}

.beta-form-field input,
.beta-form-field select,
.beta-form-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 12px;
    font: inherit;
    color: var(--text);
    background: #ffffff;
}

.beta-form-field textarea {
    min-height: 110px;
    resize: vertical;
}

.beta-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 24px;
}

.beta-form-note {
    margin-top: 18px;
    color: var(--muted);
    font-size: 0.95rem;
}

.beta-status {
    display: none;
    margin-top: 18px;
    padding: 14px 16px;
    border-radius: 14px;
    background: #eef7fb;
    border: 1px solid #cfe6f0;
    color: #17334a;
}

.beta-status.show {
    display: block;
}

@media (max-width: 700px) {
    .beta-form-grid {
        grid-template-columns: 1fr;
    }
}
