/* === BASE TOKENS === */
:root {
    --bg: #030305;
    --surface: #0a0a0e;
    --surface-glass: rgba(18, 18, 24, 0.55);
    --surface-elevated: rgba(25, 25, 35, 0.7);
    --text: #ffffff;
    --text-muted: #8b8b9e;
    --text-dim: #55556a;
    --accent: #ef4444;
    --accent-hover: #dc2626;
    --accent-glow: rgba(239, 68, 68, 0.25);
    --accent-subtle: rgba(239, 68, 68, 0.08);
    --border: rgba(255, 255, 255, 0.07);
    --border-hover: rgba(255, 255, 255, 0.14);
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --radius-full: 100px;
}

/* === RESET === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    font-family: 'Inter', system-ui, sans-serif;
    background: var(--bg);
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    line-height: 1.6;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }

/* === UTILITIES === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 120px 0; }
.section-label {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 2px; color: var(--accent);
    margin-bottom: 20px;
}
.section-label::before {
    content: ''; width: 24px; height: 2px;
    background: var(--accent); border-radius: 2px;
}
.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 800; letter-spacing: -1.5px; line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to bottom, #fff 30%, #777);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.section-subtitle {
    font-size: 18px; color: var(--text-muted);
    max-width: 560px; line-height: 1.7;
}
.text-center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }

/* === AMBIENT BACKGROUNDS === */
.ambient-orb {
    position: absolute; pointer-events: none; z-index: 0;
    border-radius: 50%; filter: blur(100px);
}
.orb-hero {
    width: 700px; height: 700px; top: -10%; left: 50%;
    transform: translateX(-50%);
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 65%);
    animation: orb-pulse 10s infinite alternate ease-in-out;
}
.orb-mid {
    width: 500px; height: 500px; top: 50%; right: -10%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 65%);
    animation: orb-drift 14s infinite alternate ease-in-out;
}
@keyframes orb-pulse {
    0% { opacity: .4; transform: translateX(-50%) scale(1); }
    100% { opacity: .7; transform: translateX(-50%) scale(1.15); }
}
@keyframes orb-drift {
    0% { opacity: .3; transform: translate(0, 0); }
    100% { opacity: .5; transform: translate(-40px, -40px); }
}

/* === NAVBAR === */
.navbar {
    position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
    padding: 0 48px; height: 72px;
    display: flex; align-items: center; justify-content: space-between;
    background: rgba(3, 3, 5, 0.7); backdrop-filter: blur(20px) saturate(1.4);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}
.navbar.scrolled { background: rgba(3, 3, 5, 0.92); }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-logo { width: 36px; height: 36px; object-fit: contain; }
.nav-name {
    font-family: 'Outfit', sans-serif; font-weight: 700;
    font-size: 22px; letter-spacing: -0.5px;
}
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a {
    font-size: 14px; font-weight: 500; color: var(--text-muted);
    transition: color 0.25s; position: relative;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: ''; position: absolute; bottom: -4px; left: 0;
    width: 0; height: 2px; background: var(--accent);
    transition: width 0.3s ease; border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-github {
    width: 40px; height: 40px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); transition: all 0.25s;
    color: var(--text-muted);
}
.nav-github:hover { border-color: var(--border-hover); color: var(--text); }
.nav-github svg { width: 20px; height: 20px; }

/* === BUTTONS === */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 15px; border-radius: var(--radius-full);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer;
    border: none; font-family: inherit;
}
.btn-primary {
    background: var(--accent); color: #fff;
    padding: 14px 32px;
    box-shadow: 0 4px 24px var(--accent-glow), inset 0 1px 0 rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.1);
}
.btn-primary:hover {
    background: var(--accent-hover); transform: translateY(-2px);
    box-shadow: 0 8px 40px rgba(239, 68, 68, 0.35), inset 0 1px 0 rgba(255,255,255,0.2);
}
.btn-secondary {
    background: transparent; color: var(--text);
    padding: 14px 32px;
    border: 1px solid var(--border);
}
.btn-secondary:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.04);
}
.btn-sm { padding: 10px 22px; font-size: 13px; }
.btn svg { flex-shrink: 0; }

/* === HERO === */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center; padding: 140px 24px 80px;
    overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero-badge {
    display: inline-flex; align-items: center; gap: 8px;
    background: var(--surface-glass); backdrop-filter: blur(16px);
    border: 1px solid var(--border); border-radius: var(--radius-full);
    padding: 8px 20px; font-size: 13px; font-weight: 500;
    color: var(--text-muted); margin-bottom: 36px;
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s both;
}
.hero-badge .dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent-glow);
    animation: dot-pulse 2s infinite;
}
@keyframes dot-pulse {
    0%, 100% { opacity: 1; } 50% { opacity: 0.4; }
}
.hero-badge span { color: var(--accent); font-weight: 700; }
.hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(52px, 9vw, 100px);
    font-weight: 900; line-height: 1.02; letter-spacing: -3px;
    max-width: 900px; margin: 0 auto 28px;
    background: linear-gradient(180deg, #fff 20%, #666 100%);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s both;
}
.hero h1 .accent-text { -webkit-text-fill-color: var(--accent); }
.hero-desc {
    font-size: clamp(17px, 2vw, 20px); color: var(--text-muted);
    max-width: 540px; margin: 0 auto 48px; line-height: 1.7; font-weight: 400;
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.35s both;
}
.hero-cta {
    display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.5s both;
}
.hero-platforms {
    margin-top: 24px; font-size: 13px; color: var(--text-dim);
    animation: fade-up 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) 0.6s both;
}

/* === BROWSER SHOWCASE === */
.showcase {
    position: relative; padding: 0 24px 120px;
    animation: fade-up 1s cubic-bezier(0.2, 0.8, 0.2, 1) 0.7s both;
}
.showcase-frame {
    max-width: 1000px; margin: 0 auto;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,0.6),
                0 0 60px rgba(239, 68, 68, 0.06);
    background: var(--surface);
}
.showcase-frame img { width: 100%; display: block; }

/* === STATS BAR === */
.stats-bar {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 48px 0;
}
.stats-grid {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 32px; text-align: center;
}
.stat-item {}
.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 48px; font-weight: 800;
    background: linear-gradient(135deg, var(--accent), #f97316);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    line-height: 1.1;
}
.stat-label {
    font-size: 14px; color: var(--text-muted); margin-top: 8px;
    font-weight: 500;
}

/* === FEATURES GRID === */
.features-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.feature-card {
    position: relative; padding: 40px 32px;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    backdrop-filter: blur(12px);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}
.feature-card::before {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(135deg, var(--accent-subtle), transparent 60%);
    opacity: 0; transition: opacity 0.4s;
}
.feature-card:hover {
    border-color: rgba(239, 68, 68, 0.25);
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -15px rgba(0,0,0,0.5);
}
.feature-card:hover::before { opacity: 1; }
.feature-card.large { grid-column: span 2; }
.feature-icon {
    position: relative; z-index: 1;
    width: 52px; height: 52px;
    background: var(--accent-subtle);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 24px; color: var(--accent);
}
.feature-card h3 {
    position: relative; z-index: 1;
    font-size: 20px; font-weight: 700; margin-bottom: 12px;
    letter-spacing: -0.3px;
}
.feature-card p {
    position: relative; z-index: 1;
    color: var(--text-muted); line-height: 1.7; font-size: 15px;
}

/* === COMPARISON TABLE === */
.comparison { background: var(--surface); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); }
.comparison table { width: 100%; border-collapse: collapse; }
.comparison th, .comparison td { padding: 18px 28px; text-align: left; font-size: 15px; border-bottom: 1px solid var(--border); }
.comparison thead th { background: rgba(239, 68, 68, 0.04); color: var(--text-muted); font-weight: 600; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; }
.comparison thead th:first-child { border-radius: var(--radius-lg) 0 0 0; }
.comparison thead th:last-child { border-radius: 0 var(--radius-lg) 0 0; }
.comparison tbody tr:hover { background: rgba(255,255,255,0.02); }
.comparison td:first-child { font-weight: 600; }
.comparison .check { color: var(--accent); font-weight: 700; font-size: 18px; }
.comparison .cross { color: var(--text-dim); }
.comparison .highlight-col { background: rgba(239, 68, 68, 0.03); }

/* === BUILT WITH === */
.tech-grid {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
.tech-card {
    background: var(--surface-glass); border: 1px solid var(--border);
    border-radius: var(--radius-md); padding: 32px 24px;
    text-align: center; transition: all 0.3s ease;
}
.tech-card:hover { border-color: var(--border-hover); transform: translateY(-3px); }
.tech-card .tech-emoji { font-size: 32px; margin-bottom: 16px; display: block; }
.tech-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.tech-card p { font-size: 13px; color: var(--text-muted); }

/* === CTA SECTION === */
.cta-section {
    position: relative; text-align: center;
    padding: 100px 24px; overflow: hidden;
}
.cta-section::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse at center, var(--accent-glow), transparent 70%);
    filter: blur(60px); opacity: 0.4;
}
.cta-section .section-title { max-width: 700px; }
.cta-section .section-subtitle { margin-bottom: 40px; }

/* === FOOTER === */
.footer {
    border-top: 1px solid var(--border);
    padding: 64px 0 32px;
}
.footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px; margin-bottom: 48px;
}
.footer-brand p { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-top: 16px; max-width: 280px; }
.footer-col h4 {
    font-size: 13px; font-weight: 600; text-transform: uppercase;
    letter-spacing: 1.5px; color: var(--text-muted); margin-bottom: 20px;
}
.footer-col a {
    display: block; font-size: 14px; color: var(--text-dim);
    padding: 6px 0; transition: color 0.2s;
}
.footer-col a:hover { color: var(--text); }
.footer-bottom {
    border-top: 1px solid var(--border); padding-top: 24px;
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; color: var(--text-dim);
}

/* === ANIMATIONS === */
@keyframes fade-up {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: translateY(0); }
}
.reveal {
    opacity: 0; transform: translateY(30px);
    transition: all 0.7s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
    .features-grid { grid-template-columns: repeat(2, 1fr); }
    .feature-card.large { grid-column: span 1; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
    .tech-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
    .navbar { padding: 0 20px; }
    .nav-links { display: none; }
    .features-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .comparison { overflow-x: auto; }
    .footer-grid { grid-template-columns: 1fr; gap: 32px; }
    .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
}
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; width: 100%; }
    .btn { width: 100%; justify-content: center; }
    .stats-grid { grid-template-columns: 1fr; }
    .tech-grid { grid-template-columns: 1fr; }
    .nav-actions .btn span { display: none; }
}

/* === T&C MODAL === */
.tc-overlay {
    position: fixed; inset: 0; z-index: 9999;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 24px;
}
.tc-overlay.active { opacity: 1; visibility: visible; }
.tc-overlay.active .tc-modal { transform: translateY(0) scale(1); opacity: 1; }

.tc-modal {
    background: #0c0c10;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    max-width: 680px; width: 100%;
    max-height: 90vh;
    display: flex; flex-direction: column;
    transform: translateY(24px) scale(0.97);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) 0.1s;
    box-shadow: 0 40px 120px -20px rgba(0, 0, 0, 0.8),
                0 0 80px rgba(239, 68, 68, 0.06);
    overflow: hidden;
}

.tc-header {
    padding: 28px 32px 20px;
    border-bottom: 1px solid var(--border);
    display: flex; align-items: center; justify-content: space-between;
    flex-shrink: 0;
}
.tc-header h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 22px; font-weight: 700;
    letter-spacing: -0.5px;
}
.tc-header .tc-badge {
    font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 1.5px;
    color: var(--accent); background: var(--accent-subtle);
    padding: 5px 12px; border-radius: var(--radius-full);
    border: 1px solid rgba(239, 68, 68, 0.15);
}

.tc-body {
    padding: 24px 32px;
    overflow-y: auto; flex: 1;
    font-size: 13.5px; line-height: 1.8;
    color: var(--text-muted);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.tc-body::-webkit-scrollbar { width: 6px; }
.tc-body::-webkit-scrollbar-track { background: transparent; }
.tc-body::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

.tc-body h3 {
    font-size: 15px; font-weight: 700; color: var(--text);
    margin: 24px 0 10px; letter-spacing: -0.2px;
}
.tc-body h3:first-child { margin-top: 0; }
.tc-body p { margin-bottom: 12px; }
.tc-body ul { margin: 8px 0 16px 20px; }
.tc-body ul li { margin-bottom: 6px; }
.tc-body strong { color: var(--text); font-weight: 600; }
.tc-body .legal-warning {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: var(--radius-sm);
    padding: 16px 20px; margin: 20px 0;
    font-size: 13px; color: var(--accent);
    line-height: 1.7;
}

.tc-footer {
    padding: 20px 32px 28px;
    border-top: 1px solid var(--border);
    flex-shrink: 0;
}
.tc-checkbox-row {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 20px; cursor: pointer;
    user-select: none;
}
.tc-checkbox-row input[type="checkbox"] { display: none; }
.tc-checkmark {
    width: 22px; height: 22px; flex-shrink: 0;
    border: 2px solid var(--border-hover);
    border-radius: 6px; position: relative;
    transition: all 0.25s; margin-top: 1px;
}
.tc-checkbox-row input:checked + .tc-checkmark {
    background: var(--accent); border-color: var(--accent);
}
.tc-checkbox-row input:checked + .tc-checkmark::after {
    content: '✓'; position: absolute;
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    font-size: 14px; font-weight: 700; color: #fff;
}
.tc-checkbox-label {
    font-size: 13.5px; color: var(--text-muted); line-height: 1.5;
}
.tc-checkbox-label strong { color: var(--text); }

.tc-actions {
    display: flex; gap: 12px;
}
.tc-actions .btn { flex: 1; justify-content: center; }
.btn-accept {
    background: var(--accent); color: #fff; padding: 14px 24px;
    box-shadow: 0 4px 24px var(--accent-glow);
    border: 1px solid rgba(255,255,255,0.1);
    opacity: 0.4; pointer-events: none;
    transition: all 0.3s ease;
}
.btn-accept.enabled {
    opacity: 1; pointer-events: auto; cursor: pointer;
}
.btn-accept.enabled:hover {
    background: var(--accent-hover); transform: translateY(-1px);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.4);
}
.btn-decline {
    background: transparent; color: var(--text-muted);
    padding: 14px 24px;
    border: 1px solid var(--border);
}
.btn-decline:hover {
    border-color: var(--border-hover); color: var(--text);
    background: rgba(255,255,255,0.03);
}

@media (max-width: 580px) {
    .tc-modal { max-height: 95vh; border-radius: var(--radius-md); }
    .tc-header, .tc-body, .tc-footer { padding-left: 20px; padding-right: 20px; }
    .tc-actions { flex-direction: column; }
}

/* === MOBILE SECTION === */
.mobile-section { background: #030305; padding: 120px 24px; overflow: hidden; position: relative; }
.mobile-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 60px; align-items: center;
    max-width: 1200px; margin: 0 auto;
}
.mobile-features { margin-top: 48px; display: flex; flex-direction: column; gap: 28px; }
.m-feat { display: flex; gap: 20px; align-items: flex-start; }
.m-feat-icon {
    width: 60px; height: 60px; flex-shrink: 0;
    background: var(--surface-glass);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    display: flex; align-items: center; justify-content: center;
    font-size: 24px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.m-feat-text strong { display: block; font-size: 20px; margin-bottom: 6px; color: var(--text); font-family: 'Outfit', sans-serif; }
.m-feat-text p { font-size: 16px; color: var(--text-muted); line-height: 1.6; }

.mobile-visual { position: relative; display: flex; align-items: center; justify-content: flex-end; min-height: 600px; padding-right: 40px; }
.qr-container {
    position: absolute; left: 0; bottom: 80px; z-index: 10;
    background: #fff; padding: 24px; border-radius: var(--radius-md);
    text-align: center; box-shadow: 0 30px 60px rgba(0,0,0,0.5);
    transform: rotate(-4deg); border: 1px solid rgba(0,0,0,0.1);
}
.qr-frame { width: 150px; height: 150px; margin-bottom: 12px; overflow: hidden; }
.qr-frame img { width: 100%; height: 100%; display: block; }
.qr-container p { color: #000; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; }

.phone-mockup {
    width: 290px; height: 590px;
    background: #000; border: 12px solid #1f1f23;
    border-radius: 54px; position: relative;
    box-shadow: 0 50px 100px -20px rgba(0,0,0,0.8),
                0 0 50px var(--accent-glow);
    animation: phone-float 6s infinite ease-in-out;
}
@keyframes phone-float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
}
.phone-mockup::after {
    content: ''; position: absolute; top: 0; left: 50%;
    transform: translateX(-50%); width: 100px; height: 30px;
    background: #1f1f23; border-radius: 0 0 20px 20px; z-index: 2;
}
.phone-screen {
    position: absolute; inset: 0; overflow: hidden;
    border-radius: 42px; background: #080808;
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
    .mobile-grid { gap: 40px; }
    .mobile-visual { justify-content: center; padding-right: 0; }
}

@media (max-width: 900px) {
    .mobile-grid { grid-template-columns: 1fr; gap: 80px; text-align: center; }
    .m-feat { justify-content: center; text-align: left; }
    .mobile-content .hero-cta { justify-content: center !important; }
    .qr-container { display: none; }
    .phone-mockup { margin: 0 auto; }
    .mobile-visual { min-height: auto; padding-bottom: 60px; }
}
