/* ===== Variables ===== */
:root {
    --bg-primary: #050508;
    --bg-secondary: #0a0a0f;
    --bg-card: rgba(255, 255, 255, 0.02);
    --bg-card-hover: rgba(255, 255, 255, 0.05);
    --text-primary: #ffffff;
    --text-secondary: #8a8a8a;
    --text-muted: #555;
    --accent: #3B82F6;
    --accent-secondary: #8B5CF6;
    --border: rgba(255, 255, 255, 0.06);
    --border-hover: rgba(255, 255, 255, 0.12);
    --gradient: linear-gradient(135deg, #3B82F6 0%, #8B5CF6 100%);
}

/* ===== Reset ===== */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

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

/* ===== 3D Geometric Network Background ===== */
.geo-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

#canvas {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* ===== Navigation ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 24px;
    background: rgba(5, 5, 8, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    height: 28px;
    width: auto;
}

.btn-nav {
    padding: 10px 20px;
    background: var(--gradient);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    color: white;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 24px 80px;
    background: transparent;
}

.hero-content {
    text-align: center;
    max-width: 700px;
}

.badge {
    display: inline-block;
    padding: 8px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 32px;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

h1 {
    font-size: clamp(36px, 6vw, 60px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -0.03em;
}

.subheadline {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    font-weight: 400;
}

.btn-primary {
    display: inline-block;
    padding: 16px 36px;
    background: var(--gradient);
    border: none;
    border-radius: 8px;
    color: white;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(59, 130, 246, 0.4);
}

/* ===== Sections ===== */
section {
    position: relative;
    padding: 120px 24px;
}

section h2 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 60px;
    font-size: 16px;
}

.section-lead {
    text-align: center;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto 60px;
    font-size: 18px;
    line-height: 1.7;
}

/* ===== Building Section ===== */
.building {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
}

.building h2 {
    margin-bottom: 20px;
}

.building-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 32px;
}

.building-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.building-card {
    padding: 36px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.3s;
}

.building-card:hover {
    border-color: var(--border-hover);
}

.card-label {
    display: inline-block;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
    margin-bottom: 16px;
}

.building-card h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.01em;
}

.building-card p {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
}

.building-side {
    display: flex;
    align-items: stretch;
}

.tech-stack {
    flex: 1;
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tech-item {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
}

.tech-item:last-child {
    border-bottom: none;
}

.tech-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 6px;
}

.tech-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== Problem ===== */
.problem {
    text-align: center;
    background: transparent;
}

.problem-content {
    max-width: 600px;
    margin: 0 auto;
}

.stat {
    font-size: clamp(72px, 15vw, 120px);
    font-weight: 700;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 20px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.problem-text {
    font-size: 24px;
    color: var(--text-primary);
    font-weight: 500;
    letter-spacing: -0.01em;
}

/* ===== Solutions Tabs ===== */
.solutions {
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
}

.solutions-tabs {
    max-width: 900px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.tab-btn {
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
}

.tab-btn:hover {
    color: var(--text-primary);
    border-color: var(--border-hover);
}

.tab-btn.active {
    background: var(--bg-card-hover);
    color: var(--text-primary);
    border-color: var(--accent);
}

.tab-progress {
    height: 2px;
    background: var(--border);
    border-radius: 2px;
    margin-bottom: 40px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--gradient);
    border-radius: 2px;
    transition: width 0.1s linear;
}

.tabs-content {
    position: relative;
    min-height: 320px;
}

.tab-panel {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.4s, transform 0.4s, visibility 0.4s;
}

.tab-panel.active {
    position: relative;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.panel-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    padding: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.panel-main h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.panel-description {
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.panel-features {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.panel-features li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 16px;
    position: relative;
}

.panel-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 8px;
    width: 4px;
    height: 4px;
    background: var(--accent);
    border-radius: 50%;
}

.panel-meta {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
}

.meta-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.meta-item:last-of-type {
    border-bottom: none;
}

.meta-label {
    display: block;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.meta-value {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

.panel-link {
    display: inline-block;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    margin-top: 8px;
    transition: color 0.2s;
}

.panel-link:hover {
    color: var(--accent-secondary);
}

/* ===== Early Access ===== */
.early-access {
    text-align: center;
    background: transparent;
}

.access-form {
    max-width: 560px;
    margin: 0 auto;
    text-align: left;
    padding: 40px;
    background: rgba(10, 10, 15, 0.6);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.form-group .optional {
    color: var(--text-muted);
    font-weight: 400;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--accent);
}

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

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
}

.form-group select option {
    background: var(--bg-secondary);
    color: var(--text-primary);
}

.btn-submit {
    width: 100%;
    margin-top: 8px;
}

/* ===== Footer ===== */
.footer {
    position: relative;
    padding: 48px 24px;
    border-top: 1px solid var(--border);
    background: rgba(5, 5, 8, 0.9);
    backdrop-filter: blur(10px);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.footer-brand {
    margin-bottom: 24px;
}

.footer-logo {
    height: 24px;
    width: auto;
    opacity: 0.7;
}

.footer-legal {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
}

.footer-legal a {
    color: var(--text-muted);
    font-size: 13px;
    transition: color 0.2s;
}

.footer-legal a:hover {
    color: var(--text-secondary);
}

.copyright {
    color: var(--text-muted);
    font-size: 13px;
}

/* ===== Modal ===== */
.modal {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1000;
}

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

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 48px 40px;
    text-align: center;
    max-width: 400px;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-size: 28px;
    color: white;
}

.modal-content h3 {
    font-size: 22px;
    margin-bottom: 12px;
}

.modal-content p {
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.btn-secondary {
    padding: 12px 32px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    font-weight: 500;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.btn-secondary:hover {
    background: var(--bg-card);
}

/* ===== Legal Modal ===== */
.modal-legal {
    max-width: 600px;
    max-height: 80vh;
    padding: 0;
    text-align: left;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.modal-legal h3 {
    padding: 24px 32px;
    margin: 0;
    border-bottom: 1px solid var(--border);
    font-size: 20px;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 28px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    transition: color 0.2s;
}

.modal-close:hover {
    color: var(--text-primary);
}

.legal-content {
    padding: 24px 32px 32px;
    overflow-y: auto;
    flex: 1;
}

.legal-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin: 24px 0 12px;
    color: var(--text-primary);
}

.legal-content h4:first-of-type {
    margin-top: 16px;
}

.legal-content p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.legal-content ul {
    margin: 12px 0;
    padding-left: 20px;
}

.legal-content li {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 8px;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .building-grid {
        grid-template-columns: 1fr;
    }
    
    .panel-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .panel-features {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .tabs-nav {
        gap: 6px;
    }
    
    .tab-btn {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    section {
        padding: 80px 24px;
    }
}

@media (max-width: 600px) {
    .nav {
        padding: 12px 16px;
    }
    
    .logo img {
        height: 24px;
    }
    
    .btn-nav {
        padding: 8px 16px;
        font-size: 13px;
    }
    
    .hero {
        padding: 100px 20px 60px;
    }
    
    section {
        padding: 60px 16px;
    }
    
    .access-form {
        padding: 24px;
    }
    
    .footer-links {
        flex-direction: column;
        gap: 12px;
    }
    
    .panel-content {
        padding: 24px;
    }
}
