/* ==========================================================================
   Design System & Variable Definitions
   ========================================================================== */
:root {
    --bg-primary: #03040c;
    --bg-secondary: #080916;
    --bg-card: #0f1126;
    --primary: #0202ff;
    --primary-light: #4d4dff;
    --primary-glow: rgba(2, 2, 255, 0.3);
    --text-main: #ffffff;
    --text-muted: #8c8fa3;
    --border-color: rgba(255, 255, 255, 0.08);
    --card-glow: rgba(2, 2, 255, 0.05);
    
    /* Font sizes */
    --fs-h1: 3.5rem;
    --fs-h2: 2.5rem;
    --fs-h3: 1.5rem;
    --fs-body: 1rem;
    
    /* Spacing */
    --container-padding: 2rem;
    --section-padding: 7rem;
}

/* Responsive adjustment for fonts */
@media (max-width: 992px) {
    :root {
        --fs-h1: 2.8rem;
        --fs-h2: 2rem;
    }
}

@media (max-width: 576px) {
    :root {
        --fs-h1: 2.2rem;
        --fs-h2: 1.8rem;
        --section-padding: 4rem;
    }
}

/* ==========================================================================
   Reset & Base Styles
   ========================================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-main);
    overflow-x: hidden;
}

body {
    line-height: 1.6;
    background-color: var(--bg-primary);
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.3s ease;
}

/* ==========================================================================
   Layout Helpers
   ========================================================================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    box-shadow: 0 4px 20px var(--primary-glow);
}

.btn-primary:hover {
    background-color: var(--primary-light);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(2, 2, 255, 0.5);
}

.btn-sm {
    padding: 0.5rem 1.2rem;
    font-size: 0.85rem;
}

/* Download Buttons (App/Google Play Store style) */
.download-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.download-buttons.center {
    justify-content: center;
}

.btn-download {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    color: #ffffff;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-download svg {
    color: #ffffff;
    transition: color 0.3s ease;
}

.btn-download:hover {
    background-color: #ffffff;
    color: #000000;
    border-color: #ffffff;
    transform: translateY(-2px);
}

.btn-download:hover svg {
    color: #000000;
}

.download-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.2;
}

.download-text span {
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 500;
    opacity: 0.7;
}

.download-text strong {
    font-size: 1rem;
    font-weight: 700;
}

/* Badge label */
.badge {
    display: inline-block;
    padding: 0.4rem 1rem;
    background-color: rgba(2, 2, 255, 0.1);
    border: 1px solid rgba(2, 2, 255, 0.2);
    color: var(--primary-light);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Header Styles
   ========================================================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background-color: rgba(3, 4, 12, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: background-color 0.3s ease;
}

.header-container {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-text {
    font-size: 1.4rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    background: linear-gradient(135deg, #ffffff 50%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo-icon {
    animation: rotateLogo 10s linear infinite;
}

@keyframes rotateLogo {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-muted);
}

.nav-link:hover {
    color: var(--text-main);
}

@media (max-width: 768px) {
    .nav {
        gap: 1rem;
    }
    .nav-link {
        display: none;
    }
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero {
    position: relative;
    padding-top: 160px;
    padding-bottom: var(--section-padding);
    min-height: 90vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

/* Interactive Parallax Background Glows */
.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 120%;
    height: 120%;
    z-index: -1;
    background: 
        radial-gradient(circle at 80% 20%, rgba(2, 2, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 20% 80%, rgba(77, 77, 255, 0.08) 0%, transparent 40%);
    pointer-events: none;
    transform: translate3d(0, 0, 0);
}

.hero-container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 4rem;
    align-items: center;
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 3rem;
    }
    
    .download-buttons {
        justify-content: center;
    }
}

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

.hero-title {
    font-size: var(--fs-h1);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.hero-title strong {
    color: var(--primary-light);
    background: linear-gradient(135deg, #ffffff 40%, var(--primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 550px;
}

@media (max-width: 992px) {
    .hero-subtitle {
        margin: 0 auto 2rem auto;
    }
}

.hero-image {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Mockups */
.phone-mockup {
    position: relative;
    width: 290px;
    height: 590px;
    border-radius: 40px;
    background-color: #0b0c10;
    border: 8px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 40px var(--primary-glow);
    overflow: hidden;
    transition: transform 0.5s ease;
}

.phone-mockup:hover {
    transform: scale(1.03) rotate(1deg);
}

.phone-mockup::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 140px;
    height: 25px;
    background-color: rgba(255, 255, 255, 0.1);
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    z-index: 2;
}

.app-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Tablet Mockup */
.tablet-mockup {
    position: relative;
    width: 480px;
    height: 320px;
    border-radius: 24px;
    background-color: #0b0c10;
    border: 10px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.7),
        0 0 40px var(--primary-glow);
    overflow: hidden;
    transition: transform 0.5s ease;
}

@media (max-width: 576px) {
    .tablet-mockup {
        width: 320px;
        height: 213px;
        border-radius: 16px;
    }
}

.tablet-mockup:hover {
    transform: scale(1.03) rotate(-1deg);
}

.tablet-screen {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* ==========================================================================
   Features Section
   ========================================================================== */
.features {
    position: relative;
}

.feature-item {
    padding: var(--section-padding) 0;
    border-bottom: 1px solid var(--border-color);
}

.feature-item.alt-bg {
    background-color: var(--bg-secondary);
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6rem;
    align-items: center;
}

.feature-container.reversed .feature-image {
    order: 2;
}

@media (max-width: 768px) {
    .feature-container {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    
    .feature-container.reversed .feature-image {
        order: 0;
    }
    
    .feature-image {
        display: flex;
        justify-content: center;
    }
}

.feature-content {
    display: flex;
    flex-direction: column;
}

.feature-number {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-light);
    margin-bottom: 0.5rem;
    font-family: monospace;
}

.feature-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    line-height: 1.25;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.feature-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
}

.feature-list li {
    position: relative;
    padding-left: 2rem;
    margin-bottom: 0.8rem;
    color: var(--text-main);
    font-weight: 500;
    text-align: left;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--primary-light);
    font-weight: 800;
}

/* ==========================================================================
   CTA & About Sections
   ========================================================================== */
.cta-about {
    padding: var(--section-padding) 0;
    background: radial-gradient(circle at 50% 100%, rgba(2, 2, 255, 0.1) 0%, transparent 60%);
}

.cta-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 4rem 2rem;
    border-radius: 24px;
    text-align: center;
    margin-bottom: 5rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.5),
        inset 0 0 20px rgba(255, 255, 255, 0.02);
    position: relative;
    overflow: hidden;
}

.cta-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, rgba(2, 2, 255, 0.03) 0%, transparent 60%);
    pointer-events: none;
}

.cta-title {
    font-size: var(--fs-h2);
    font-weight: 800;
    margin-bottom: 1rem;
}

.cta-subtitle {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.brand-relation {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    background-color: rgba(255, 255, 255, 0.01);
    border: 1px solid var(--border-color);
    padding: 3rem;
    border-radius: 16px;
}

.brand-relation h3 {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--text-main);
}

.brand-relation p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
    line-height: 1.7;
    text-align: justify;
}

.brand-relation p:last-child {
    margin-bottom: 0;
}

.brand-relation a {
    color: var(--primary-light);
    font-weight: 600;
    border-bottom: 1px dashed var(--primary-light);
}

.brand-relation a:hover {
    color: #ffffff;
    border-bottom: 1px solid #ffffff;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
    background-color: #020308;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
}

.footer-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.2rem;
    font-weight: 800;
    letter-spacing: 0.1em;
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-divider {
    border: 0;
    height: 1px;
    background-color: var(--border-color);
    margin: 2.5rem 0;
}

.footer-bottom {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 2rem;
    align-items: start;
}

@media (max-width: 768px) {
    .footer-bottom {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

.legal-info {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.8;
}

.legal-info p strong {
    color: var(--text-main);
}

.copyright {
    font-size: 0.8rem;
    color: rgba(140, 143, 163, 0.6);
    line-height: 1.6;
}

/* ==========================================================================
   Animations & Reveal Effects
   ========================================================================== */
/* Scroll reveal classes */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.fade-in-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), transform 1s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Visible states triggered by JS */
.fade-in.active,
.fade-in-up.active,
.fade-in-left.active,
.fade-in-right.active {
    opacity: 1;
    transform: translate(0);
}
