/* Fallback Inter font embedded */
@font-face {
    font-family: 'Inter Fallback';
    font-style: normal;
    font-weight: 200 500;
    font-display: swap;
    src: local('Arial'), local('Helvetica'), local('sans-serif');
    size-adjust: 107%;
    ascent-override: 90%;
    descent-override: 22%;
    line-gap-override: 0%;
}

:root {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --text-primary: #f5f5f7;
    --text-secondary: #86868b;
    --text-tertiary: #6e6e73;
    --accent: #2997ff;
    --border: rgba(255, 255, 255, 0.08);
    --card-bg: rgba(255, 255, 255, 0.03);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Inter Fallback', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}


/* Sections */
section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 120px 48px;
}

.section-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    padding: 120px 48px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 60px;
}

.hero-text-section {
    text-align: center;
    max-width: 900px;
    transform: translateY(-60px);
}

.hero-video-card {
    width: 100%;
    max-width: 1280px;
    max-height: 676px;
    background: var(--card-bg);
    border: 1px solid rgba(128, 128, 128, 0.3);
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16/9;
    margin-top: -80px;
}

.hero-video-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-canvas {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}


.video-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
    pointer-events: none;
}

.hero-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 400;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
    color: var(--text-primary);
    line-height: 1.1;
    text-transform: uppercase;
}

.hero-description {
    font-size: clamp(18px, 2vw, 20px);
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    letter-spacing: 0.01em;
    margin-bottom: 24px;
    line-height: 1.4;
}

.hero-features {
    font-size: clamp(14px, 1.5vw, 15px);
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.06em;
    margin-bottom: 32px;
}

.hero-supporting {
    font-size: clamp(15px, 1.5vw, 16px);
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    line-height: 1.5;
    position: absolute;
    bottom: 120px;
    left: 0;
    right: 0;
    z-index: 10;
    text-align: center;
    padding: 0 24px;
    max-width: 80%;
    margin: 0 auto;
}

.hero-supporting-mobile {
    display: none;
}

.hero-cta-mobile {
    display: none;
}

.hero-features span {
    margin: 0 12px;
    opacity: 0.7;
    font-size: 2.5em;
    vertical-align: middle;
}

.hero-cta {
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-radius: 980px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: absolute;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 10;
    white-space: nowrap;
    width: fit-content;
    margin: 0 auto;
}

.hero-cta:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Section Headers */
.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
    font-weight: 500;
}

.section-title {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 400;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: clamp(16px, 2vw, 21px);
    color: var(--text-secondary);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
}

/* How It Works Section */
.how-it-works-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
    margin-top: 48px;
}

.how-card {
    display: flex;
    flex-direction: column;
    text-align: center;
}

.how-card>div:first-child {
    min-height: 140px;
}

.how-card-image {
    margin-top: auto;
}

.how-card-title {
    font-size: clamp(24px, 3vw, 32px);
    font-weight: 400;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    line-height: 1.2;
}

.how-card-description {
    font-size: clamp(14px, 1.2vw, 16px);
    color: var(--text-secondary);
    line-height: 1.6;
    letter-spacing: 0.01em;
    font-weight: 300;
}

.how-card-image {
    aspect-ratio: 4/3;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.placeholder-text {
    font-size: 13px;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.6;
    max-width: 250px;
    font-style: italic;
}

/* Who Section */
.uppercase-title {
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.who-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    margin-top: 60px;
}

.who-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 0 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
    text-align: center;
}

.who-column:last-child {
    border-right: none;
}

.who-column-title {
    font-size: clamp(18px, 2vw, 22px);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
}

.who-column-text {
    font-size: clamp(14px, 1.2vw, 16px);
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
    letter-spacing: 0.01em;
    font-weight: 300;
}

/* Unlocks Section */
.unlocks-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.unlock-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: all 0.3s ease;
}

.unlock-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.05);
}

.unlock-number {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 400;
    letter-spacing: 0.1em;
}

.unlock-title {
    font-size: clamp(20px, 2.5vw, 24px);
    font-weight: 400;
    color: var(--text-primary);
    line-height: 1.3;
}

.unlock-description {
    font-size: clamp(14px, 1.2vw, 15px);
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.6;
    font-weight: 300;
}

/* CTA Section */
.cta-section {
    min-height: auto;
    padding: 120px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.cta-text {
    font-size: clamp(18px, 2.5vw, 24px);
    color: var(--text-primary);
    font-weight: 400;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 0;
}

.cta-button {
    display: inline-block;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    text-decoration: none;
    font-size: 15px;
    font-weight: 400;
    border-radius: 980px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    width: auto;
    max-width: fit-content;
}

.cta-button:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.modal {
    position: relative;
    background: #1c1c1e;
    border-radius: 20px;
    padding: 48px;
    max-width: 546px;
    width: 90%;
    border: 1px solid var(--border);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-overlay.active .modal {
    transform: translateY(0);
}

.modal-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.modal-subtitle {
    font-size: 15px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
}

.form-input::placeholder {
    color: var(--text-tertiary);
}

.form-select {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 15px;
    color: var(--text-primary);
    font-family: inherit;
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='8' viewBox='0 0 12 8' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1.5L6 6.5L11 1.5' stroke='%2386868b' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
}

.form-select:focus {
    outline: none;
    border-color: var(--accent);
}

.submit-btn {
    width: 100%;
    padding: 14px;
    background: var(--accent);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    margin-top: 24px;
    transition: all 0.2s ease;
}

.submit-btn:hover {
    background: #0077ed;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
}

.modal-close svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-secondary);
}

.modal-container {
    position: relative;
}

/* Form Section (System Selection) */
.form-section {
    margin-bottom: 20px;
}

.form-section-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 4px;
}

.form-section-micro {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-bottom: 14px;
}

/* System Cards */
.system-card {
    display: flex;
    gap: 14px;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 10px;
    transition: border-color 0.2s ease, background 0.2s ease;
}

.system-card.has-selection {
    border-color: rgba(41, 151, 255, 0.5);
    background: rgba(41, 151, 255, 0.05);
}

.system-card-image {
    width: 72px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.system-card-content {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.system-card-info {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.system-card-name {
    font-size: 14px;
    font-weight: 400;
    color: var(--text-primary);
}

.system-card-price {
    font-size: 11px;
    color: var(--text-tertiary);
}

/* Quantity Selector */
.quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.qty-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    padding: 0;
}

.qty-btn:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.25);
}

.qty-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.qty-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-primary);
    min-width: 18px;
    text-align: center;
}

/* Deposit Total */
.deposit-total-section {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 16px 18px;
    margin-bottom: 24px;
}

.deposit-total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.deposit-total-label {
    font-size: 13px;
    color: var(--text-secondary);
}

.deposit-total-amount {
    font-size: 22px;
    font-weight: 500;
    color: var(--text-primary);
}

.deposit-note {
    font-size: 12px;
    color: var(--text-tertiary);
    line-height: 1.5;
}

/* Modal loading overlay */
.modal-loading {
    display: none;
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.85);
    border-radius: inherit;
    z-index: 10;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    backdrop-filter: blur(2px);
}

.modal-loading.active {
    display: flex;
}

.modal-loading-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.75s linear infinite;
}

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

.modal-loading-text {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.02em;
}

/* Success / Confirmation State */
.success-icon {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(41, 151, 255, 0.1);
    border: 1px solid rgba(41, 151, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--accent);
    margin: 0 auto 20px;
}

.success-detail {
    font-size: 13px;
    color: var(--text-tertiary);
    margin-top: 10px;
    line-height: 1.6;
}

/* Conditional Business Fields */
.conditional-fields {
    display: none;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.3s ease, opacity 0.3s ease, margin 0.3s ease;
}

.conditional-fields.show {
    display: block;
    max-height: 500px;
    opacity: 1;
    margin-top: 0;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 12px;
    transition: all 0.2s ease;
}

.checkbox-label:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.15);
}

.checkbox-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
    cursor: pointer;
}

.checkbox-label span {
    font-size: 15px;
    color: var(--text-primary);
    font-weight: 400;
}

/* Trust Line & Bottom Line */
.trust-line {
    font-size: 12px;
    color: var(--text-tertiary);
    text-align: center;
    margin-top: 12px;
    line-height: 1.5;
}

.bottom-line {
    font-size: 13px;
    color: var(--text-secondary);
    text-align: center;
    margin-top: 16px;
    line-height: 1.5;
    font-weight: 300;
}

/* Success Container */
.success-container {
    text-align: center;
    padding: 24px 0;
}

.success-container .modal-title {
    margin-bottom: 16px;
}

.success-container .modal-subtitle {
    margin-bottom: 32px;
    line-height: 1.6;
}

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

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

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 {
    animation-delay: 0.1s;
    opacity: 0;
}

.delay-2 {
    animation-delay: 0.2s;
    opacity: 0;
}

.delay-3 {
    animation-delay: 0.3s;
    opacity: 0;
}

.delay-4 {
    animation-delay: 0.4s;
    opacity: 0;
}

/* Responsive */
@media (max-width: 968px) {
    section {
        padding: 80px 24px;
    }

    .hero {
        padding: 100px 24px 60px;
        gap: 40px;
    }

    /* Make video card a flex container to stack video, text, and button */
    .hero-video-card {
        aspect-ratio: auto;
        display: flex;
        flex-direction: column;
        overflow: visible;
        padding-bottom: 40px;
    }

    .hero-video-container {
        aspect-ratio: 16/9;
        position: relative;
        display: flex;
        overflow: hidden;
        border-radius: 16px 16px 0 0;
    }

    /* Hide desktop versions on mobile */
    .hero-supporting-desktop {
        display: none !important;
    }

    .hero-cta-desktop {
        display: none !important;
    }

    /* Show mobile versions below video */
    .hero-supporting-mobile {
        display: block;
        position: static;
        margin: 40px auto 0;
        max-width: 100%;
        padding: 0 24px;
        text-align: center;
    }

    .hero-cta-mobile {
        display: block;
        position: static;
        margin: 20px auto 0;
    }

    .how-it-works-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .who-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .who-column {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding: 0 0 32px 0;
    }

    .who-column:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }

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

    .cta-section {
        padding: 100px 24px;
    }

    .modal {
        padding: 32px 24px;
    }
}

@media (max-width: 600px) {
    .hero-features {
        display: none;
    }

    .hero-video-card {
        border-radius: 16px;
    }
}
