:root {
    --bg: #000000;
    --bg-card: #050505;
    --bg-input: #0A0A0A;
    --fg: #FAFAFA;
    --fg-muted: #666666;
    --border: #222222;
    --border-active: #444444;

    --accent-green: #27C93F;
    --accent-red: #FF5F56;
    --accent-yellow: #FFBD2E;

    --font-primary: 'Satoshi', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    --font-heading: 'Power Grotesk', sans-serif;
}

@font-face {
    font-family: "Power Grotesk";
    src: url("/assets/fonts/PowerGrotesk-Regular.woff2") format("woff2"),
        url("/assets/fonts/PowerGrotesk-Regular.woff") format("woff"),
        url("/assets/fonts/PowerGrotesk-Regular.ttf") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}


* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font-family: var(--font-primary);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

::selection {
    background: var(--fg);
    color: var(--bg);
}

.grid-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    z-index: -1;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
}

.waitlist-container {
    width: 100%;
    max-width: 550px;
    padding: 20px;
}

.logo-area {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 1rem;
    opacity: 0.9;
    text-decoration: none;
    color: var(--fg);
    transition: opacity 0.3s ease;
    cursor: pointer;
    user-select: none;
}

.logo-area:hover {
    opacity: 1;
}

.logo-icon {
    width: 32px;
    height: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.sentra-window {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.02), 0 20px 50px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    transition: border-color 0.3s;
}

.sentra-window:hover {
    border-color: var(--border-active);
}

.window-header {
    background: #080808;
    border-bottom: 1px solid var(--border);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.red {
    background: var(--accent-red);
}

.yellow {
    background: var(--accent-yellow);
}

.green {
    background: var(--accent-green);
}

.window-title {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--fg-muted);
    opacity: 0.5;
}

.header-logo-fade {
    height: 14px;
    opacity: 0.2;
    filter: brightness(200%);
    pointer-events: none;
    user-select: none;
}

.window-body {
    padding: 2.5rem;
}

.header-text {
    margin-bottom: 2rem;
    text-align: center;
}

.header-text h1 {
    font-family: var(--font-primary);
    font-size: 2.5rem;
    line-height: 1.1;
    margin-bottom: 0.75rem;
    letter-spacing: -0.02em;
}

.header-text p {
    color: var(--fg-muted);
    font-size: 0.95rem;
    line-height: 1.5;
}


.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.input-group {
    margin-bottom: 1.5rem;
}

.input-group label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--fg-muted);
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}

.opt {
    color: #333;
}

input {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 12px;
    color: var(--fg);
    font-family: var(--font-mono);
    font-size: 0.9rem;
    transition: 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--fg-muted);
    background: #0F0F0F;
}


.phone-input-wrapper {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: 0.2s;
}

.phone-input-wrapper:focus-within {
    border-color: var(--fg-muted);
    background: #0F0F0F;
}

.phone-prefix {
    padding: 12px 0 12px 12px;

    color: var(--fg-muted);
    font-family: var(--font-mono);

    font-size: 0.9rem;
    font-weight: 600;
    user-select: none;
}

.phone-input-wrapper input {
    border: none;
    background: transparent;
    padding-left: 8px;

}

.phone-input-wrapper input:focus {
    background: transparent;
}


input.input-error,
.phone-input-wrapper.input-error {
    border-color: var(--accent-red);
    background: rgba(255, 95, 86, 0.05);
}


.interest-section {
    margin-bottom: 2rem;
}


.captcha-wrapper {
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: flex-start;

}


@media (max-width: 600px) {
    .captcha-wrapper {
        justify-content: center;

    }
}




.interest-section label {
    display: block;
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--fg-muted);
    margin-bottom: 12px;
}

.node-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.node-pill {
    background: var(--bg-input);
    border: 1px solid var(--border);
    color: var(--fg-muted);
    padding: 8px 10px;
    border-radius: 4px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.node-bracket {
    color: #333;
    transition: color 0.2s;
}

.node-pill:hover {
    border-color: var(--fg-muted);
    color: var(--fg);
}

.node-pill.active {
    background: rgba(39, 201, 63, 0.05);
    border-color: var(--accent-green);
    color: var(--fg);
}

.node-pill.active .node-bracket {
    color: var(--accent-green);
    opacity: 0.5;
}


.btn-terminal {
    width: 100%;
    padding: 14px;
    border: 1px solid var(--fg);
    border-radius: 4px;
    background: var(--fg);
    color: #000;
    font-family: var(--font-mono);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    text-transform: uppercase;
}

.btn-terminal:hover {
    background: transparent;
    color: var(--fg);
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
}

.btn-terminal:disabled {
    opacity: 0.5;
    cursor: wait;
}

.error-message {
    color: var(--accent-red);
    font-family: var(--font-mono);
    font-size: 0.75rem;
    text-align: center;
    margin-top: 15px;
    min-height: 15px;
    opacity: 0;
}


.mini-footer {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
}

.footer-links a {
    color: var(--fg-muted);

    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s;
    opacity: 0.7;
}

.footer-links a:hover {
    color: var(--fg);

    opacity: 1;
}

.sep {
    color: #333;

    font-weight: 300;
}

.status-ok {
    color: var(--accent-green);
}

.loading-spinner {
    display: none;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.btn-terminal:hover .loading-spinner {
    border-top-color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}

@keyframes spin {
    100% {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}



.success-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);

    backdrop-filter: blur(8px);

    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 999;
}

.success-overlay.visible {
    opacity: 1;
    pointer-events: all;
}


.success-card {
    text-align: center;
    background: #050505;
    border: 1px solid #222;
    padding: 3rem 2rem;
    border-radius: 12px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.9);
    max-width: 400px;
    width: 90%;
    transform: scale(0.95);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-overlay.visible .success-card {
    transform: scale(1);
}


.hero-success-title {
    font-family: var(--font-primary);
    font-size: 2.2rem;
    color: var(--fg);
    margin-bottom: 0.5rem;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-success-sub {
    font-family: var(--font-primary);
    color: var(--fg-muted);
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 2rem;
}


.success-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(39, 201, 63, 0.1);
    border: 1px solid rgba(39, 201, 63, 0.3);
    padding: 6px 12px;
    border-radius: 50px;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--accent-green);
    letter-spacing: 0.05em;
    font-weight: 600;
}


.success-icon-container {
    margin-bottom: 1.5rem;
}

.checkmark-svg {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;

    stroke: var(--accent-green);
    stroke-miterlimit: 10;
    margin: 0 auto;
    box-shadow: inset 0px 0px 0px var(--accent-green);
    animation: fill .4s ease-in-out .4s forwards, scale .3s ease-in-out .9s both;
}

.checkmark-circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: var(--accent-green);
    fill: none;
    animation: stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark-check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.6s forwards;
}


@keyframes stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes scale {

    0%,
    100% {
        transform: none;
    }

    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes fill {
    100% {
        box-shadow: inset 0px 0px 0px 50px rgba(39, 201, 63, 0.1);
    }
}


@media (max-width: 600px) {
    .waitlist-container {
        padding-top: 60px;
        padding-bottom: 10px;
        padding-left: 10px;
        padding-right: 10px;
        max-width: 100%;
    }

    .input-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .window-body {
        padding: 1.5rem;
    }

    .header-text h1 {
        font-size: 1.5rem;
    }

    .node-pill {
        padding: 10px 14px;
        font-size: 0.8rem;
    }

    .success-content {
        padding: 2rem;
        width: 90%;
    }

    .success-title {
        font-size: 1.8rem;
    }
}