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

:root {
    --background: #07090d;
    --surface: #0c1017;
    --surface-light: #111721;

    --border: #202733;

    --text: #f5f7fa;
    --muted: #8993a3;
    --subtle: #5d6776;

    --white: #ffffff;
    --black: #080a0d;
}

html {
    scroll-behavior: smooth;
}

body {
    background:
        radial-gradient(ellipse 900px 560px at 50% -8%, rgba(120,140,255,.08), transparent 65%),
        radial-gradient(ellipse 700px 460px at 100% 30%, rgba(255,255,255,.035), transparent 70%),
        var(--background);
    background-attachment: fixed;
    color: var(--text);

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.5;
}

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

button {
    font: inherit;
}

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


/* =========================
   NAVBAR
========================= */

.navbar {
    height: 76px;

    border-bottom: 1px solid rgba(255,255,255,.06);
}

.nav-container {
    height: 100%;

    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 21px;
    font-weight: 750;
    letter-spacing: -0.7px;
}

.logo span {
    color: var(--muted);
}

.nav-links {
    display: flex;
    justify-content: center;
    gap: 30px;

    color: var(--muted);
    font-size: 14px;
}

.nav-links a {
    transition: color .2s ease;
}

.nav-links a:hover {
    color: var(--white);
}

.nav-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
}

.nav-toggle-input {
    display: none;
}

.nav-toggle-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 34px;
    height: 34px;
    cursor: pointer;
}

.nav-toggle-btn span {
    display: block;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
}

.modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    color: black;
}
.modal-box {
    background: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 320px;
    max-width: calc(100vw - 32px);
    text-align: center;
    position: relative;
}
.modal-close {
    position: absolute;
    top: .5rem; right: .75rem;
    border: none;
    background: none;
    font-size: 1.5rem;
    cursor: pointer;
}
#g_id_onload {
    display: none;
}

#google-btn-target {
    display: flex;
    justify-content: center;
    margin-top: 1.25rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 10px;

    margin: 18px 0;

    color: #9ca3af;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.btn-github {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    padding: 13px 20px;
    margin: 6px 0;

    border-radius: 999px;

    background: #24292f;
    color: #fff;

    font-size: 14px;
    font-weight: 600;

    transition: background .15s ease;
}

.btn-github:hover {
    background: #32383f;
}

.btn-github-large {
    display: inline-flex;
    padding: 15px 26px;
    margin: 8px 0;
    font-size: 15px;
}

.hero-note {
    margin-top: 16px;
    color: var(--subtle);
    font-size: 13px;
}

code {
    padding: 2px 6px;
    border-radius: 4px;
    background: var(--surface-light);
    color: var(--text);
    font-size: .92em;
}

#logout-btn {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
    color: white;
}

#logout-btn:hover {
    background: #f9fafb;
    border-color: #9ca3af;
    color: black;
}


/* =========================
   BUTTONS
========================= */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 10px 17px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: transparent;
    color: var(--text);

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease;
}

.btn:hover {
    transform: translateY(-1px);
    border-color: #3c4655;
}

.btn-primary {
    background: var(--white);
    border-color: var(--white);
    color: var(--black);
}

.btn-primary:hover {
    background: #e9ebee;
}

.btn-large {
    padding: 13px 21px;
}


/* =========================
   HERO
========================= */

.hero {
    position: relative;
    overflow: hidden;

    padding: 125px 0 100px;

    text-align: center;
}

.hero::before {
    content: "";

    position: absolute;

    width: 800px;
    height: 450px;

    left: 50%;
    top: 30px;

    transform: translateX(-50%);

    background:
        radial-gradient(
            ellipse,
            rgba(255,255,255,.075),
            transparent 70%
        );

    pointer-events: none;
}

.hero-container {
    position: relative;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 7px 12px;

    border: 1px solid var(--border);
    border-radius: 999px;

    background: rgba(255,255,255,.025);

    color: #aeb7c5;
    font-size: 13px;

    margin-bottom: 27px;
}

.hero-badge span {
    width: 6px;
    height: 6px;

    border-radius: 50%;
    background: white;
}

.hero h1 {
    max-width: 900px;
    margin: 0 auto;

    font-size: clamp(52px, 7vw, 82px);

    line-height: .96;
    letter-spacing: -4.5px;

    font-weight: 800;
}

.hero h1 span {
    color: #747f8e;
}

.hero-description {
    max-width: 610px;

    margin: 29px auto 35px;

    color: var(--muted);

    font-size: 18px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 11px;
}


/* =========================
   PRODUCT PREVIEW
========================= */

.preview-section {
    padding-bottom: 120px;
}

.product-preview {
    overflow: hidden;

    border: 1px solid var(--border);
    border-radius: 15px;

    background: var(--surface);

    box-shadow:
        0 40px 100px rgba(0,0,0,.35);
}

.preview-header {
    height: 45px;

    display: flex;
    align-items: center;

    border-bottom: 1px solid var(--border);

    padding: 0 16px;
}

.window-controls {
    display: flex;
    gap: 7px;
}

.window-controls span {
    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #303844;
}

.preview-url {
    margin: auto;

    color: #596372;

    font-size: 11px;
}

.preview-body {
    display: grid;
    grid-template-columns: 1.5fr .75fr;
}

.services-panel {
    padding: 35px;

    border-right: 1px solid var(--border);
}

.panel-heading {
    margin-bottom: 28px;
}

.eyebrow {
    color: #687383;

    font-size: 11px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.4px;
}

.panel-heading h3 {
    margin-top: 7px;

    font-size: 21px;
    letter-spacing: -.5px;
}

.panel-heading > p:last-child {
    margin-top: 5px;

    color: var(--muted);
    font-size: 13px;
}

.service-group {
    margin-bottom: 24px;
}

.group-title {
    margin-bottom: 9px;

    color: #626d7d;

    font-size: 10px;
    font-weight: 700;

    text-transform: uppercase;
    letter-spacing: 1.3px;
}

.service {
    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 12px 14px;

    margin-bottom: 7px;

    border: 1px solid var(--border);
    border-radius: 8px;

    background: rgba(255,255,255,.01);
}

.service.selected {
    background: rgba(255,255,255,.035);
    border-color: #303947;
}

.service-info {
    display: flex;
    align-items: center;
    gap: 11px;
}

.checkbox {
    width: 17px;
    height: 17px;

    display: flex;
    align-items: center;
    justify-content: center;

    border: 1px solid #47515f;
    border-radius: 4px;

    color: black;
    font-size: 10px;
}

.selected .checkbox {
    background: white;
    border-color: white;
}

.service strong {
    display: block;

    font-size: 13px;
}

.service small {
    display: block;

    color: #697484;

    font-size: 11px;
}

.service > span {
    color: #a9b2bf;
    font-size: 13px;
}


/* =========================
   QUOTE PANEL
========================= */

.quote-panel {
    display: flex;
    flex-direction: column;

    padding: 35px;

    background: #090c11;
}

.price {
    margin-top: 5px;

    font-size: 43px;
    font-weight: 750;

    letter-spacing: -2px;
}

.price-description {
    color: var(--muted);
    font-size: 12px;
}

.quote-divider {
    height: 1px;

    margin: 27px 0 13px;

    background: var(--border);
}

.quote-item {
    display: flex;
    justify-content: space-between;

    padding: 6px 0;

    color: #9ca6b4;

    font-size: 12px;
}

.quote-item strong {
    color: #d3d8df;
}

.quote-button {
    width: 100%;
    margin-top: auto;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;

    border-top: 1px solid rgba(255,255,255,.05);
}

.section-heading {
    max-width: 650px;

    margin-bottom: 55px;
}

.section-heading h2 {
    margin-top: 10px;

    font-size: clamp(36px, 5vw, 52px);

    line-height: 1.05;
    letter-spacing: -2.5px;
}

.section-heading h2 span {
    color: #727d8c;
}

.section-heading > p:last-child {
    max-width: 570px;

    margin-top: 18px;

    color: var(--muted);
}


/* =========================
   STEPS
========================= */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.step {
    padding: 27px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: var(--surface);
}

.step-number {
    display: block;

    margin-bottom: 50px;

    color: #596372;

    font-size: 12px;
}

.step h3 {
    margin-bottom: 9px;

    font-size: 18px;
}

.step p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   FEATURES
========================= */

.features-section {
    background: #080b10;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

.feature-card {
    padding: 27px;

    border: 1px solid var(--border);
    border-radius: 11px;

    background: #0b0f15;
}

.feature-icon {
    width: 34px;
    height: 34px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 40px;

    border: 1px solid var(--border);
    border-radius: 7px;

    color: #707b8b;

    font-size: 10px;
}

.feature-card h3 {
    margin-bottom: 9px;

    font-size: 18px;
}

.feature-card p {
    color: var(--muted);

    font-size: 14px;
    line-height: 1.7;
}


/* =========================
   CTA
========================= */

.cta {
    padding: 125px 20px;

    text-align: center;

    border-top: 1px solid rgba(255,255,255,.05);
}

.cta h2 {
    max-width: 720px;

    margin: 12px auto 17px;

    font-size: clamp(38px, 5vw, 58px);

    line-height: 1;
    letter-spacing: -3px;
}

.cta > p:not(.eyebrow) {
    max-width: 500px;

    margin: 0 auto 30px;

    color: var(--muted);
}


/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid rgba(255,255,255,.05);

    padding: 27px 0;
}

.footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-container p {
    color: #596372;
    font-size: 12px;
}


/* =========================
   RESPONSIVE
========================= */

@media (max-width: 850px) {

    .navbar {
        height: auto;
    }

    .nav-container {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        justify-content: space-between;
        padding: 16px 0;
    }

    .nav-toggle-btn {
        display: flex;
    }

    /* Scoped to pages that actually have the checkbox (i.e. also have a
       .nav-links list worth collapsing) — a page like public-profile.html
       only has a couple of nav-actions buttons and no toggle at all, so it
       must keep its normal always-visible layout, just wrapped below. */
    .nav-toggle-input ~ .nav-links,
    .nav-toggle-input ~ .nav-actions {
        display: none;
        flex-basis: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        justify-content: flex-start;
    }

    .nav-toggle-input ~ .nav-links {
        margin-top: 20px;
    }

    .nav-toggle-input ~ .nav-actions {
        margin-top: 16px;
        padding-top: 16px;
        border-top: 1px solid var(--border);
    }

    .nav-toggle-input:checked ~ .nav-links,
    .nav-toggle-input:checked ~ .nav-actions {
        display: flex;
    }

    .nav-actions {
        flex-wrap: wrap;
        justify-content: flex-end;
    }

    .hero {
        padding: 90px 0 75px;
    }

    .hero h1 {
        letter-spacing: -3px;
    }

    .preview-body {
        grid-template-columns: 1fr;
    }

    .services-panel {
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .quote-panel {
        min-height: 330px;
    }

    .steps,
    .feature-grid {
        grid-template-columns: 1fr;
    }
}


@media (max-width: 550px) {

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

    .hero {
        padding: 75px 0 65px;
    }

    .hero h1 {
        font-size: 48px;
        letter-spacing: -2.5px;
    }

    .hero-description {
        font-size: 16px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .services-panel,
    .quote-panel {
        padding: 24px;
    }

    .section {
        padding: 80px 0;
    }

    .footer-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 9px;
    }
}


/* =========================
   ERROR PAGE
========================= */

.error-page {
    padding: 130px 0;
    text-align: center;
}

.error-page-container {
    max-width: 480px;
}

.error-code {
    color: var(--subtle);
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 2px;
}

.error-page h1 {
    margin: 10px 0 12px;
    font-size: clamp(28px, 4vw, 38px);
    letter-spacing: -1px;
}

.error-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 28px;
}

@media (max-width: 550px) {
    .error-page {
        padding: 90px 0;
    }

    .error-actions {
        flex-direction: column;
    }
}


/* =========================
   LOADING SPINNER
========================= */

.spinner {
    width: 26px;
    height: 26px;

    border: 3px solid rgba(255,255,255,.12);
    border-top-color: var(--text);
    border-radius: 50%;

    animation: spin .7s linear infinite;
}

.loading-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;

    padding: 50px 0;
    color: var(--muted);
    font-size: 14px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}


/* =========================
   CONSENT CHECKBOX
========================= */

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;

    margin-top: 18px;

    color: #6b7280;
    font-size: 12.5px;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}

.consent-row input {
    margin-top: 2px;
    flex-shrink: 0;
}

.consent-row a {
    color: inherit;
    text-decoration: underline;
}

.form-message {
    min-height: 0;
    margin-top: 8px;
    font-size: 12.5px;
    color: #6fce85;
}

.form-message.error {
    color: #d64545;
}

.modal-footnote {
    margin-top: 16px;
    color: #9ca3af;
    font-size: 12.5px;
}

.modal-footnote a {
    color: inherit;
    font-weight: 600;
    text-decoration: underline;
}


/* =========================
   LEGAL PAGES
========================= */

.legal-page {
    padding: 60px 0 100px;
}

.legal-container {
    max-width: 680px;
}

.legal-container h1 {
    margin-top: 6px;
    font-size: 36px;
    letter-spacing: -1px;
}

.legal-container h2 {
    margin: 36px 0 12px;
    font-size: 19px;
    letter-spacing: -.3px;
}

.legal-container h3 {
    margin: 22px 0 10px;
    font-size: 16px;
    letter-spacing: -.2px;
    color: var(--muted);
}

.legal-divider {
    margin: 32px 0;
    border: none;
    border-top: 1px solid var(--border);
}

.legal-container p,
.legal-container li {
    color: var(--muted);
    line-height: 1.7;
    font-size: 14.5px;
}

.legal-container p {
    margin-bottom: 14px;
}

.legal-container ul {
    margin: 0 0 14px 20px;
}

.legal-container li {
    margin-bottom: 6px;
}

.legal-container strong {
    color: var(--text);
}

.legal-container a {
    text-decoration: underline;
    text-underline-offset: 2px;
}
