:root {
    --bg: #08123b;
    --bg-dark: #060c26;

    --surface: rgba(255,255,255,0.06);
    --surface-2: rgba(255,255,255,0.10);

    --primary: #ff3d5f;
    --secondary: #ff8a00;
    --accent: #ffbe2f;
    --purple: #c218b8;

    --gradient:
        linear-gradient(
            135deg,
            #c218b8 0%,
            #ff3d5f 35%,
            #ff6b00 70%,
            #ffbe2f 100%
        );

    --glow:
        0 0 30px rgba(255, 107, 0, 0.35);

    --white: #f5f7ff;

    --gray: rgba(255,255,255,0.72);
    --gray-dim: rgba(255,255,255,0.42);

    --border: rgba(255,255,255,0.08);

    --font-body: 'DM Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
}

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

body {
    background:linear-gradient(180deg, var(--bg) 0%, var(--bg-dark) 100%);

    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

/* Hero */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 50px;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: auto;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 900px;
    height: 900px;

    filter: blur(40px);

    pointer-events: none;
    z-index: -1;
}

@keyframes pulse {
    from { opacity: 0.4; transform: translateX(-50%) scale(1); }
    to { opacity: 0.7; transform: translateX(-50%) scale(1.1); }
}

.hero-logo {
    width: 220px;
    margin-bottom: 36px;

    filter:
        drop-shadow(0 0 30px rgba(255,138,0,0.35));

    animation: floatLogo 1.9s ease-in-out infinite;
}

@keyframes floatLogo {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.badge {
    font-family: var(--font-mono);
    font-size: 22px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--yellow);
    border: 1px solid var(--yellow);
    padding: 6px 16px;
    border-radius: 2px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.2s;
}

.hero h1 {
    font-size: clamp(48px, 8vw, 96px);
    font-weight: 700;
    text-align: center;
    line-height: 1.05;
    letter-spacing: -2px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.4s;
    position: relative;
    z-index: 0;
}

.hero h1 span {
    position: relative;
    display: inline-block;

    background: var(--gradient);

    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p.subtitle {
    font-size: clamp(16px, 2.5vw, 22px);
    color: var(--gray);
    text-align: center;
    max-width: 560px;
    line-height: 1.6;
    margin-bottom: 48px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.6s;
}

.cta-row {
    display: flex;
    gap: 16px;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 0.8s;
}

.cta-appstore {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    background: var(--gradient);

    color: white;
    font-weight: 700;
    font-size: 15px;

    padding: 16px 30px;

    border-radius: 18px;

    text-decoration: none;

    box-shadow: var(--glow);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        opacity 0.25s ease;
}

.cta-appstore:hover {
    transform: translateY(-3px) scale(1.02);

    box-shadow:
        0 0 40px rgba(255,138,0,0.35),
        0 0 80px rgba(255,61,95,0.18);
}

.cta-appstore svg { width: 22px; height: 22px; }

.cta-secondary {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gray);
    text-decoration: none;
    padding: 14px 20px;
    border: 1px solid var(--gray-dim);
    border-radius: 12px;
    transition: border-color 0.2s, color 0.2s;
}

.cta-secondary:hover {
    border-color: var(--white);
    color: var(--white);
}

.hero-price {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--gray-dim);
    margin-top: 16px;
    opacity: 0;
    animation: fadeUp 0.8s ease forwards 1s;
}


/* Features */

.features {
    padding: 120px 24px;
    max-width: 1100px;
    margin: 0 auto;
}

.feature {
    background: var(--surface);

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

    backdrop-filter: blur(14px);

    padding: 40px 32px;

    border-radius: 28px;

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

.features-label {
    font-family: var(--font-mono);
    font-size: 20px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--red);
    margin-bottom: 48px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
}

.feature {
    background: var(--surface);
    padding: 40px 32px;
    transition:
        transform 0.4s ease,
        background 0.2s ease,
        border-color 0.1s ease;
}

.feature:hover {
    transform: translateY(-6px) scale(1.03);
    background: var(--surface-2);
    border-color: rgba(255,255,255,0.18);
}

.feature-icon {
    font-size: 28px;
    margin-bottom: 20px;
    display: block;
}

.feature h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.3px;
}

.feature p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

/* Specs strip */
.specs {
    margin: 0 50px;
    border-radius: 32px;

    background: rgba(255,255,255,0.04);

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(12px);

    padding: 60px 24px;
}

.specs-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
}

.spec {
    text-align: center;
    flex: 1;
    min-width: 120px;
}

.spec-value {
    font-family: var(--font-mono);
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    letter-spacing: -1px;
    color: var(--white);
}

.spec-label {
    font-size: 12px;
    color: var(--gray-dim);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 8px;
}

/* Protocol section */
.protocol {
    padding: 120px 24px;
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.protocol h2 {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -1px;
    margin-bottom: 24px;
}

.protocol p {
    font-size: 17px;
    color: var(--gray);
    line-height: 1.8;
    max-width: 600px;
    margin: 0 auto 40px;
}

.protocol-badges {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.protocol-badge {
    background:var(--bg);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--gray);
    border: 1px solid var(--surface-2);
    padding: 8px 16px;
}

.protocol-badge:hover {
    border: 0.6px solid white;
    transform:
        scale(1.03);
    opacity:1;
    
    transition:
        transform 0.4s ease,
        opacity 0.4s ease,
        border 0.4s ease;
}

/* Tally section */
.tally {
    padding: 80px 24px 120px;
    max-width: 1100px;
    margin: 0 auto;
}

.tally-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tally-card {
    padding: 60px 40px;

    text-align: center;

    border-radius: 28px;

    background: rgba(255,255,255,0.05);

    border: 1px solid rgba(255,255,255,0.08);

    backdrop-filter: blur(12px);
}


.tally-card h3 {
    font-family: var(--font-mono);
    font-size: 14px;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.tally-card p {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.7;
}

.tally-card.program {
    border: 1px solid rgba(168, 54, 54, 0.72);
    box-shadow: 0 0 30px rgba(168, 54, 54, 0.32);
}

.tally-card.preview {
    border: 1px solid rgba(76, 186, 117, 0.72);
    box-shadow: 0 0 30px rgba(76, 186, 117, 0.32);
}

.program p span {
    color: rgba(168, 54, 54, 0.72);
}

.preview p span {
    color: rgba(76, 186, 117, 0.72);
}

.feature,
.specs,
.protocol-badge,
.cta-secondary,
.cta-appstore,
.tally-card {
    border-radius: 24px;
}

/* Footer CTA */
.footer-cta {
    padding: 120px 24px;
    text-align: center;
    position: relative;
}

.footer-cta::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(circle, var(--red-glow) 0%, transparent 70%);
    pointer-events: none;
    opacity: 0.3;
}

.footer-cta h2 {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -1.5px;
    margin-bottom: 20px;
}

.footer-cta p {
    color: var(--gray);
    font-size: 17px;
    margin-bottom: 40px;
}

/* Footer */
footer {
    border-top: 1px solid var(--surface-2);
    padding: 40px 24px;
    text-align: center;
}

footer p {
    font-size: 13px;
    color: var(--gray-dim);
}

.footer-links label,
footer a {
    color: var(--gray);
    text-decoration: none;
}

footer a:hover,
.footer-links label:hover {
    color: var(--white);
}

.modal-toggle {
    display: none;
}

.modal-overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(8, 18, 59, 0.88);
    backdrop-filter: blur(12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    z-index: 1000;
}

.modal-toggle:checked + .modal-overlay {
    opacity: 1;
    pointer-events: auto;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    cursor: pointer;
}

.modal {
    position: relative;
    width: min(100%, 540px);
    background: rgba(8, 18, 59, 0.96);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    z-index: 1;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.modal-header h3 {
    margin: 0;
    font-size: clamp(20px, 3vw, 26px);
}

.modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.modal-close:hover {
    color: var(--white);
    transform: scale(1.05);
}

.contact-form label {
    display: block;
    margin-bottom: 18px;
    font-size: 14px;
    color: var(--white);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-top: 8px;
    padding: 14px 16px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 15px;
}

.form-status {
    margin-bottom: 18px;
    min-height: 24px;
    font-size: 14px;
    color: var(--white);
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.form-status.visible {
    opacity: 1;
    transform: translateY(0);
}

.contact-form textarea {
    resize: vertical;
    min-height: 140px;
}

.modal-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: flex-end;
    align-items: center;
    margin-top: 16px;
}

.button-primary {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    padding: 14px 24px;
    margin-bottom: 0;
    cursor: pointer;
    border: none;
    color: white;
    background: var(--gradient);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 14px 40px rgba(255, 107, 0, 0.22);
}

/* Removed unused .button-secondary styles after Cancel button removal */

@media (max-width: 600px) {
    .modal {
        padding: 24px;
    }
    .modal-actions {
        flex-direction: column;
        align-items: stretch;
    }
}
.footer-links {
    display: flex;
    gap: 24px;
    justify-content: center;
    margin-bottom: 16px;
}

/* Animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive */
@media (max-width: 768px) {
    .tally-row { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}



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

body {
    background: var(--bg);
    color: var(--white);
    font-family: var(--font-body);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Grain overlay */
body::after {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
}

