/* ============================================================ */
/* MARKS397 SOLUTION — PREMIUM 3D DARK THEME                    */
/* ============================================================ */

/* --- CSS VARIABLES --- */
:root {
    /* Dark Theme Colors */
    --bg-primary: #000000;
    --bg-secondary: #050508;
    --bg-tertiary: #0a0a0f;
    --bg-card: rgba(15, 15, 25, 0.8);
    --bg-glass: rgba(255, 255, 255, 0.03);
    
    /* Brand Colors from Logo */
    --color-red: #FF1744;
    --color-yellow: #FFD600;
    --color-blue: #00B0FF;
    --color-cyan: #00E5FF;
    --color-purple: #AA00FF;
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-red), var(--color-yellow), var(--color-blue));
    --gradient-accent: linear-gradient(135deg, var(--color-blue), var(--color-cyan));
    --gradient-glow: linear-gradient(135deg, var(--color-red), var(--color-purple));
    
    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.4);
    
    /* Typography */
    --font-display: 'Orbitron', sans-serif;
    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Rajdhani', sans-serif;
    
    /* Spacing */
    --container-max: 1280px;
    --section-padding: 120px;
    
    /* Effects */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    
    /* 3D */
    --perspective: 1000px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 400;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- PARTICLE BACKGROUND --- */
#particles-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(255, 23, 68, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(0, 176, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(170, 0, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

/* --- FLOATING SHAPES --- */
.floating-shapes {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: floatShape 20s ease-in-out infinite;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--color-red);
    top: -100px;
    right: -100px;
    animation-delay: 0s;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--color-blue);
    bottom: 20%;
    left: -50px;
    animation-delay: -5s;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--color-yellow);
    top: 40%;
    right: 10%;
    animation-delay: -10s;
}

.shape-4 {
    width: 350px;
    height: 350px;
    background: var(--color-purple);
    bottom: -100px;
    right: 30%;
    animation-delay: -15s;
}

@keyframes floatShape {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(30px, -30px) scale(1.05); }
    50% { transform: translate(-20px, 20px) scale(0.95); }
    75% { transform: translate(20px, 30px) scale(1.02); }
}

/* --- CONTAINER --- */
.container {
    width: 90%;
    max-width: var(--container-max);
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.1;
}

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

/* --- BUTTONS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem 2rem;
    border-radius: 12px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #000;
    box-shadow: 
        0 4px 15px rgba(255, 23, 68, 0.3),
        0 0 30px rgba(255, 23, 68, 0.2);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 
        0 8px 25px rgba(255, 23, 68, 0.4),
        0 0 50px rgba(255, 23, 68, 0.3);
}

.btn-disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.app-link.disabled {
    opacity: 0.5;
    cursor: not-allowed;
    pointer-events: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.btn-outline:hover {
    border-color: var(--color-cyan);
    color: var(--color-cyan);
    box-shadow: 0 0 20px rgba(0, 229, 255, 0.2);
}

.btn-glass {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
}

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

.btn-large {
    padding: 1.1rem 2.5rem;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
}

.btn-arrow {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.btn:hover .btn-arrow {
    transform: translateX(5px);
}

.play-icon {
    font-size: 0.8rem;
}

/* --- HEADER --- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition-normal);
}

.header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-img {
    height: 50px;
    width: auto;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-toggle span {
    width: 28px;
    height: 2px;
    background: var(--text-primary);
    transition: var(--transition-fast);
}

/* --- HERO SECTION --- */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 100px 0 60px;
    position: relative;
}

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 1.25rem;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-cyan);
    margin-bottom: 2rem;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-line {
    display: block;
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 520px;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-motto {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-style: italic;
    color: var(--text-muted);
    font-size: 0.95rem;
}

.motto-icon {
    color: var(--color-yellow);
}

/* --- HERO 3D CARD --- */
.hero-visual {
    position: relative;
    perspective: var(--perspective);
}

.hero-3d-card {
    position: relative;
    transform-style: preserve-3d;
    animation: float3D 6s ease-in-out infinite;
}

@keyframes float3D {
    0%, 100% { transform: rotateX(5deg) rotateY(-5deg) translateY(0); }
    50% { transform: rotateX(-5deg) rotateY(5deg) translateY(-20px); }
}

.card-glow {
    position: absolute;
    inset: -2px;
    background: var(--gradient-primary);
    border-radius: 24px;
    opacity: 0.5;
    filter: blur(20px);
    z-index: -1;
}

.card-content {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 1.5rem;
    backdrop-filter: blur(20px);
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 1.5rem;
}

.card-dots {
    display: flex;
    gap: 6px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red { background: var(--color-red); }
.dot.yellow { background: var(--color-yellow); }
.dot.green { background: #00E676; }

.card-title {
    font-family: var(--font-heading);
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.card-body {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.dashboard-widget {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.widget-icon {
    font-size: 1.5rem;
}

.widget-info {
    display: flex;
    flex-direction: column;
}

.widget-label {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.widget-value {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
}

.widget-bar {
    grid-column: 1 / -1;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    animation: fillBar 2s ease-out forwards;
}

@keyframes fillBar {
    from { width: 0; }
}

.card-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.status-indicator {
    width: 8px;
    height: 8px;
    background: #00E676;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

/* --- FLOATING ELEMENTS --- */
.floating-elements {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.float-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    animation: floatCard 4s ease-in-out infinite;
}

.float-1 {
    top: 10%;
    right: -20px;
    animation-delay: 0s;
}

.float-2 {
    bottom: 30%;
    left: -30px;
    animation-delay: -1.5s;
}

.float-3 {
    bottom: 10%;
    right: 10%;
    animation-delay: -3s;
}

@keyframes floatCard {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-15px); }
}

.float-icon {
    font-size: 1.2rem;
}

/* --- HERO SCROLL --- */
.hero-scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.scroll-indicator {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    position: relative;
}

.scroll-indicator::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 8px;
    background: var(--color-cyan);
    border-radius: 2px;
    animation: scrollDown 2s infinite;
}

@keyframes scrollDown {
    0% { opacity: 1; top: 8px; }
    100% { opacity: 0; top: 24px; }
}

/* --- SECTION STYLES --- */
section {
    padding: var(--section-padding) 0;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 1.5rem;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
}

.section-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* --- FEATURES SECTION --- */
.features {
    background: var(--bg-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    padding: 2.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 24px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-10px);
    border-color: rgba(255, 255, 255, 0.1);
}

.feature-card:hover::before {
    opacity: 0.03;
}

.feature-icon-wrap {
    position: relative;
    width: 70px;
    height: 70px;
    margin-bottom: 1.5rem;
}

.feature-icon {
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    position: relative;
    z-index: 1;
}

.icon-glow {
    position: absolute;
    inset: -5px;
    background: var(--gradient-primary);
    border-radius: 20px;
    opacity: 0;
    filter: blur(15px);
    transition: opacity 0.4s ease;
}

.feature-card:hover .icon-glow {
    opacity: 0.4;
}

.feature-title {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
}

.feature-desc {
    color: var(--text-secondary);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.feature-link {
    color: var(--color-cyan);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-fast);
}

.feature-link:hover {
    color: var(--color-blue);
}

/* --- TECHNOLOGY SECTION --- */
.technology {
    background: var(--bg-primary);
}

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

.tech-visual {
    position: relative;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tech-sphere {
    position: relative;
    width: 250px;
    height: 250px;
}

.sphere-ring {
    position: absolute;
    inset: 0;
    border: 2px solid transparent;
    border-radius: 50%;
}

.ring-1 {
    border-top-color: var(--color-red);
    border-right-color: var(--color-red);
    animation: spin 8s linear infinite;
}

.ring-2 {
    inset: 20px;
    border-bottom-color: var(--color-yellow);
    border-left-color: var(--color-yellow);
    animation: spin 6s linear infinite reverse;
}

.ring-3 {
    inset: 40px;
    border-top-color: var(--color-blue);
    animation: spin 4s linear infinite;
}

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

.sphere-core {
    position: absolute;
    inset: 60px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: #000;
    box-shadow: 0 0 60px rgba(255, 23, 68, 0.5);
}

.tech-nodes {
    position: absolute;
    inset: 0;
}

.tech-node {
    position: absolute;
    padding: 0.75rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    white-space: nowrap;
}

.node-1 { top: 10%; left: 0; }
.node-2 { top: 30%; right: 0; }
.node-3 { bottom: 30%; left: 5%; }
.node-4 { bottom: 10%; right: 10%; }

.tech-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.tech-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.tech-item {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.25rem;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.tech-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.tech-item-icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--color-cyan);
    color: #000;
    border-radius: 50%;
    font-weight: 800;
    font-size: 0.8rem;
    flex-shrink: 0;
}

.tech-item-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.tech-item-text strong {
    font-size: 1rem;
}

.tech-item-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- STATS SECTION --- */
.stats {
    background: var(--bg-tertiary);
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-card {
    text-align: center;
    padding: 2.5rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.stat-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-number {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    display: inline;
}

.stat-unit {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-cyan);
}

.stat-label {
    margin-top: 0.5rem;
    font-size: 1rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.stat-bar {
    margin-top: 1.5rem;
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.stat-fill {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: 2px;
    width: 0;
    transition: width 1.5s ease-out;
}

.stat-card.visible .stat-fill {
    width: 100%;
}

/* --- CTA SECTION --- */
.cta {
    padding: var(--section-padding) 0;
}

.cta-card {
    position: relative;
    padding: 4rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 32px;
    overflow: hidden;
}

.cta-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cta-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.3;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--color-red);
    top: -200px;
    right: -100px;
}

.orb-2 {
    width: 300px;
    height: 300px;
    background: var(--color-blue);
    bottom: -150px;
    left: -50px;
}

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
    text-align: center;
}

.cta-title {
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 1rem;
}

.cta-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
}

.cta-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.form-input {
    padding: 1rem 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: var(--transition-fast);
}

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

.form-input:focus {
    outline: none;
    border-color: var(--color-cyan);
    background: rgba(255, 255, 255, 0.08);
}

/* --- MODULES SECTION --- */
.modules {
    background: var(--bg-primary);
}

.modules-simple {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
}

.module-item {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.module-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.module-item .module-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 1rem;
}

.module-item h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
}

.module-item p {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.module-card {
    padding: 2rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.module-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-5px);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.module-icon {
    font-size: 2rem;
}

.module-header h3 {
    font-size: 1.2rem;
}

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

.module-list li {
    padding: 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.module-list li::before {
    content: "→";
    color: var(--color-cyan);
    font-size: 0.8rem;
}

/* --- TECHNOLOGY GRID --- */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1.5rem;
    margin-bottom: 4rem;
}

.tech-card {
    padding: 1.5rem;
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    transition: var(--transition-normal);
}

.tech-card:hover {
    border-color: var(--color-cyan);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.1);
}

.tech-card h4 {
    font-size: 0.9rem;
    color: var(--color-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tech-card ul {
    list-style: none;
}

.tech-card li {
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-secondary);
}

/* --- ARCHITECTURE DIAGRAM --- */
.architecture-diagram {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 2.5rem;
    overflow-x: auto;
}

.arch-title {
    text-align: center;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.arch-flow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.arch-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1.25rem 1.5rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 500;
    min-width: 100px;
    text-align: center;
}

.arch-node.highlight {
    background: linear-gradient(135deg, rgba(255, 23, 68, 0.1), rgba(0, 176, 255, 0.1));
    border-color: var(--color-cyan);
    box-shadow: 0 0 30px rgba(0, 229, 255, 0.2);
}

.arch-node.small {
    padding: 1rem;
    min-width: 80px;
}

.arch-node-group {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.arch-icon {
    font-size: 1.5rem;
}

.arch-arrow {
    color: var(--color-cyan);
    font-size: 1.5rem;
    font-weight: bold;
}

/* --- FOOTER --- */
.footer {
    background: var(--bg-secondary);
    padding: 80px 0 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1rem;
}

.footer-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-motto {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.footer-links h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.75rem;
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-cyan);
}

.footer-contact h4 {
    font-size: 1.1rem;
    margin-bottom: 1.25rem;
}

.footer-contact p {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.footer-contact a {
    color: var(--color-cyan);
    text-decoration: none;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* --- COMMUNITY SECTION --- */
.community {
    background: var(--bg-secondary);
}

.community-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    align-items: center;
}

.community-desc {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

.community-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.comm-feature {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.comm-feature:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.comm-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.comm-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.comm-text strong {
    font-size: 0.95rem;
}

.comm-text span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* --- PHONE MOCKUP --- */
.community-visual {
    display: flex;
    justify-content: center;
}

.phone-mockup {
    perspective: 1000px;
}

.community-app-screenshot {
    width: 280px;
    height: auto;
    border-radius: 40px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        0 0 0 2px rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    animation: phoneFloat 6s ease-in-out infinite;
}

.phone-frame {
    width: 280px;
    height: 580px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 12px;
    box-shadow: 
        0 50px 100px rgba(0, 0, 0, 0.5),
        inset 0 0 0 2px rgba(255, 255, 255, 0.1);
    transform: rotateY(-5deg) rotateX(5deg);
    animation: phoneFloat 6s ease-in-out infinite;
}

@keyframes phoneFloat {
    0%, 100% { transform: rotateY(-5deg) rotateX(5deg) translateY(0); }
    50% { transform: rotateY(5deg) rotateX(-5deg) translateY(-15px); }
}

.phone-notch {
    width: 120px;
    height: 25px;
    background: #000;
    border-radius: 0 0 15px 15px;
    margin: 0 auto 10px;
}

.phone-screen {
    background: var(--bg-darker);
    border-radius: 28px;
    height: calc(100% - 35px);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.app-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.app-logo {
    height: 28px;
    width: auto;
}

.app-header span {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
}

.app-feed {
    flex: 1;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
}

.feed-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.feed-avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-glass);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.feed-content {
    flex: 1;
    min-width: 0;
}

.feed-content strong {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
}

.feed-content p {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feed-time {
    font-size: 0.65rem;
    color: var(--text-muted);
}

.app-nav {
    display: flex;
    justify-content: space-around;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.03);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.nav-item {
    font-size: 1.25rem;
    opacity: 0.5;
    cursor: pointer;
    transition: var(--transition-fast);
}

.nav-item.active {
    opacity: 1;
}

/* --- ABOUT SECTION --- */
.about {
    background: var(--bg-tertiary);
}

.about-layout {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 4rem;
    align-items: center;
}

.about-desc {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.7;
}

.about-values {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.value-item {
    display: flex;
    gap: 1rem;
    padding: 1.25rem;
    background: var(--bg-glass);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    transition: var(--transition-fast);
}

.value-item:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.value-icon {
    font-size: 1.5rem;
}

.value-text {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.value-text strong {
    font-size: 1rem;
}

.value-text span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.about-card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 3rem;
    text-align: center;
}

.quote-mark {
    line-height: 1;
}

.quote-logo {
    width: 120px;
    height: auto;
}

.quote-text {
    font-size: 1.5rem;
    font-style: italic;
    font-weight: 500;
    margin: 1rem 0 2rem;
    line-height: 1.4;
}

.quote-author strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.quote-author span {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* --- CTA BUTTONS --- */
.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* --- APP LINK --- */
.app-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-cyan);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
}

.app-link:hover {
    color: var(--color-blue);
}

/* --- RESPONSIVE --- */
@media (max-width: 1200px) {
    .tech-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-description {
        margin: 0 auto 2.5rem;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .hero-motto {
        justify-content: center;
    }
    
    .hero-visual {
        display: none;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modules-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .community-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .community-features {
        grid-template-columns: 1fr;
    }
    
    .community-visual {
        order: -1;
    }
    
    .about-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .tech-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .arch-flow {
        flex-direction: column;
    }
    
    .arch-arrow {
        transform: rotate(90deg);
    }
    
    .arch-node-group {
        flex-direction: row;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px;
    }
    
    .nav-menu, .nav-actions {
        display: none;
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .modules-simple {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid,
    .modules-grid {
        grid-template-columns: 1fr;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-card {
        padding: 2.5rem 1.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .phone-frame {
        width: 240px;
        height: 500px;
    }
}
