:root {
    --primary: #9d4edd;
    --primary-light: #c77dff;
    --primary-dark: #7b2cbf;
    --accent: #ff0054;
    --background: #0a0a0c;
    --surface: #121215;
    --surface-light: #1c1c21;
    --text: #ffffff;
    --text-muted: #a0a0ab;
    --border: rgba(255, 255, 255, 0.08);
    --glass: rgba(10, 10, 12, 0.85);
    --gradient: linear-gradient(135deg, var(--primary), var(--accent));
    --hdr-height: 80px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
.logo-text {
    font-family: 'Outfit', sans-serif;
}

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

.section {
    padding: 120px 0;
}

.text-center {
    text-align: center;
}

/* Premium Header */
.header {
    height: var(--hdr-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: transparent;
    transition: all 0.4s ease;
    border-bottom: 1px solid transparent;
}

.header.scrolled {
    background: var(--glass);
    backdrop-filter: blur(15px);
    border-bottom: 1px solid var(--border);
    height: 70px;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 24px;
    color: white;
    text-decoration: none;
    position: relative;
    z-index: 10;
}

.brand-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 40px;
    list-style: none;
}

.nav-list a {
    font-size: 15px;
    font-weight: 500;
    color: var(--text-muted);
    transition: color 0.3s;
    text-decoration: none;
}

.nav-list a:hover {
    color: white;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 24px;
    position: relative;
    z-index: 10;
}

/* Intense Hero */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    padding-top: var(--hdr-height);
    overflow: hidden;
}

.hero-bg-glow {
    position: absolute;
    top: -20%;
    right: -10%;
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.12) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 80px;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    padding: 6px 16px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 100px;
    color: var(--primary-light);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 32px;
}

.hero-title {
    font-size: 80px;
    line-height: 0.95;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -3px;
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    margin-bottom: 48px;
    max-width: 580px;
    line-height: 1.5;
}

.hero-ctas {
    display: flex;
    gap: 20px;
    margin-bottom: 64px;
}

.hero-stats {
    display: flex;
    align-items: center;
    gap: 32px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 32px;
    font-weight: 800;
    font-family: 'Outfit', sans-serif;
}

.stat-unit {
    font-size: 16px;
    color: var(--primary-light);
}

.stat-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-divider {
    width: 1px;
    height: 44px;
    background: var(--border);
}

/* iPhone 15 Pro Max Mockup CSS */
.iphone-mockup {
    position: relative;
    width: 320px;
    margin: 0 auto;
}

.iphone-frame {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 2.05;
    background: #1a1a1f;
    border-radius: 54px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.8),
        inset 0 0 4px 2px rgba(255, 255, 255, 0.05);
}

.iphone-frame::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 10;
}

.iphone-screen {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 42px;
    overflow: hidden;
}

.iphone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Buttons and Links */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
    text-decoration: none;
}

.btn-premium-glow {
    background: var(--gradient);
    color: white;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-premium-glow::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s;
}

.btn-premium-glow:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 30px rgba(157, 78, 221, 0.5);
}

.btn-premium-glow:hover::before {
    opacity: 1;
}

.btn-secondary-glass {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(5px);
    border: 1px solid var(--border);
    color: white;
}

.btn-secondary-glass:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 17px;
}

.btn-sm {
    padding: 10px 24px;
    font-size: 14px;
}

/* Sections General */
.section-header {
    margin-bottom: 80px;
}

.section-title {
    font-size: 54px;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: -1.5px;
}

.section-subtitle {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Vision Section */
.vision-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 100px;
    align-items: center;
}

.section-desc {
    font-size: 21px;
    color: var(--text-muted);
    margin-bottom: 48px;
    line-height: 1.6;
}

.vision-points {
    display: grid;
    gap: 40px;
}

.vision-item {
    display: flex;
    gap: 24px;
}

.vision-icon {
    width: 56px;
    height: 56px;
    background: rgba(157, 78, 221, 0.1);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    flex-shrink: 0;
}

.vision-text h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.vision-text p {
    color: var(--text-muted);
    font-size: 16px;
}

/* Architecture Grid */
.architecture-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.tech-card {
    background: var(--surface);
    padding: 48px;
    border-radius: 32px;
    border: 1px solid var(--border);
    transition: all 0.4s ease;
}

.tech-card:hover {
    border-color: var(--primary-light);
    transform: translateY(-12px);
    background: var(--surface-light);
}

.tech-icon {
    width: 64px;
    height: 64px;
    background: rgba(157, 78, 221, 0.1);
    border: 1px solid rgba(157, 78, 221, 0.2);
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-light);
    margin-bottom: 32px;
}

.tech-card h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.tech-card p {
    color: var(--text-muted);
    font-size: 16px;
    line-height: 1.7;
}

/* Security Section Refined */
.preview-trigger {
    cursor: pointer;
    position: relative;
    transition: transform 0.3s;
}

.preview-trigger:hover {
    transform: scale(1.02);
}

.frame-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(157, 78, 221, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s;
    border-radius: 20px;
    z-index: 5;
}

.preview-trigger:hover .frame-overlay {
    opacity: 1;
}

.frame-overlay i {
    color: white;
    width: 40px;
    height: 40px;
}

.security-intro {
    margin-bottom: 60px;
}

.security-proof {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 40px;
    padding: 48px;
    margin-bottom: 60px;
}

.proof-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
}

.proof-header i {
    color: var(--primary-light);
    width: 32px;
    height: 32px;
}

.proof-header h3 {
    font-size: 28px;
    font-weight: 700;
}

.proof-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 60px;
    align-items: flex-start;
}

.security-bullets {
    list-style: none;
    margin-top: 32px;
}

.security-bullets li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 17px;
}

.security-bullets li::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.proof-screens {
    display: grid;
    gap: 24px;
}

.proof-frame {
    background: #000;
    padding: 12px;
    border-radius: 20px;
    border: 1px solid var(--border);
}

.proof-frame img {
    width: 100%;
    border-radius: 12px;
    display: block;
}

.proof-caption {
    display: block;
    text-align: center;
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 10px;
    font-weight: 600;
    text-transform: uppercase;
}

/* Modal Styling */
.modal {
    display: none;
    position: fixed;
    z-index: 5000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background-color: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    border-radius: 20px;
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

#modal-caption {
    margin: 20px auto;
    width: 80%;
    text-align: center;
    color: #ccc;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 60px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

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

.architecture-expand {
    text-align: center;
    background: rgba(157, 78, 221, 0.05);
    padding: 60px;
    border-radius: 32px;
    border: 1px dashed rgba(157, 78, 221, 0.3);
}

.architecture-expand h3 {
    font-size: 28px;
    margin-bottom: 20px;
}

.architecture-expand p {
    font-size: 18px;
    color: var(--text-muted);
    max-width: 900px;
    margin: 0 auto;
}

/* Feature Showcase Refined */
.feat-btn {
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-muted);
    padding: 14px 32px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 700;
    font-size: 16px;
    transition: all 0.3s;
}

.feat-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    box-shadow: 0 10px 20px rgba(157, 78, 221, 0.2);
}

.feat-pane {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.feat-pane.active {
    display: grid;
}

.feat-icon-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(157, 78, 221, 0.1);
    color: var(--primary-light);
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 24px;
}

.feat-info h3 {
    font-size: 40px;
    margin-bottom: 24px;
}

.feat-info p {
    font-size: 19px;
    color: var(--text-muted);
    margin-bottom: 40px;
}

/* Platform CTA Refined */
.cta-card-premium {
    background: linear-gradient(135deg, #1a1a23 0%, #0a0a0c 100%);
    border-radius: 60px;
    padding: 100px 40px;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
}

.cta-card-premium::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(157, 78, 221, 0.1) 0%, transparent 70%);
}

.platform-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 60px 0;
    flex-wrap: wrap;
    position: relative;
    z-index: 5;
}

.store-link img {
    height: 60px;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.store-link img:hover {
    transform: translateY(-8px) scale(1.05);
    filter: drop-shadow(0 10px 20px rgba(157, 78, 221, 0.3));
}

.cta-web-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    margin-top: 40px;
    position: relative;
    z-index: 5;
}

.cta-web-option span {
    font-size: 18px;
    color: var(--text-muted);
    font-weight: 500;
}

/* Footer Section Refined */
.footer {
    background: #050507;
    padding: 120px 0 60px;
    border-top: 1px solid var(--border);
}

.footer-top {
    display: grid;
    grid-template-columns: 1.5fr 3.5fr;
    gap: 120px;
    margin-bottom: 100px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.footer-brand p {
    color: var(--text-muted);
    max-width: 350px;
    font-size: 16px;
    line-height: 1.6;
}

.footer-download {
    margin-top: 16px;
}

.download-badge {
    height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(157, 78, 221, 0.15));
    transition: transform 0.3s;
}

.download-badge:hover {
    transform: scale(1.02);
}

.footer-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 60px;
}

.footer-group h4 {
    font-size: 20px;
    margin-bottom: 32px;
    font-weight: 700;
}

.footer-list {
    list-style: none;
    /* No bullets */
    padding: 0;
}

.footer-list li {
    margin-bottom: 16px;
}

.footer-list li a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s;
}

.footer-list li a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 60px;
    border-top: 1px solid var(--border);
    color: var(--text-muted);
    font-size: 15px;
}

/* Mobile Nav Overlay */
.mobile-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 100%;
    height: 100vh;
    background: var(--background);
    z-index: 2000;
    padding: 40px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    visibility: hidden;
}

.mobile-nav.active {
    right: 0;
    visibility: visible;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 60px;
}

.mobile-nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.mobile-nav-list a:not(.btn) {
    font-size: 36px;
    font-weight: 800;
    text-decoration: none;
    color: white;
}

/* Mobile Fixes (Critical) */
@media (max-width: 1200px) {
    .section-title {
        font-size: 40px;
    }

    .hero-title {
        font-size: 64px;
    }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
    }

    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-stats {
        margin: 0 auto;
    }
}

@media (max-width: 1024px) {
    .architecture-grid {
        grid-template-columns: 1fr !important;
        /* Forces single column stacking */
    }

    .footer-top {
        grid-template-columns: 1fr;
        gap: 80px;
        text-align: center;
    }

    .footer-brand {
        align-items: center;
    }

    .footer-brand p {
        margin: 0 auto;
    }

    .footer-links-grid {
        gap: 40px;
    }

    .security-banner,
    .proof-content {
        grid-template-columns: 1fr;
        gap: 60px;
    }

    .vision-grid {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 80px;
    }

    .vision-points {
        text-align: left;
        max-width: 600px;
        margin: 0 auto;
    }

    .feat-pane {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .feat-pane .iphone-mockup {
        margin: 0 auto;
    }

    .platform-badges {
        gap: 20px;
    }

    .store-link img {
        height: 50px;
    }
}

@media (max-width: 768px) {
    .header {
        height: 70px;
        background: var(--background) !important;
    }

    .header-actions .desktop-only {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .nav {
        display: none;
    }

    .logo-text {
        font-size: 20px;
    }

    .brand-logo {
        width: 28px;
        height: 28px;
    }

    .hero {
        padding-top: 120px;
    }

    .hero-title {
        font-size: 48px;
        letter-spacing: -2px;
    }

    .hero-subtitle {
        font-size: 18px;
    }

    .hero-stats {
        gap: 20px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat-value {
        font-size: 24px;
    }

    .section {
        padding: 80px 0;
    }

    .section-title {
        font-size: 32px;
    }

    .tech-card {
        padding: 32px;
    }

    .cta-card-premium {
        padding: 80px 24px;
    }

    .footer-links-grid {
        grid-template-columns: repeat(1, 1fr);
        gap: 40px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 40px;
    }

    .hero-ctas {
        flex-direction: column;
        width: 100%;
    }

    .btn-lg {
        width: 100%;
    }

    .stat-divider {
        display: none;
    }

    .hero-stats {
        flex-direction: column;
        gap: 30px;
    }

    .store-link img {
        height: 44px;
    }
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.2, 1, 0.3, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}