/* Premium VisionOS & Apple Style Redesign */

:root {
    /* Dashboard Theme Colors */
    --bg-base: #090a0f;
    --accent-primary: #3b82f6; 
    --accent-glow: rgba(59, 130, 246, 0.5);
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    
    /* Glassmorphism Variables */
    --glass-bg: rgba(20, 24, 33, 0.45);
    --glass-border: rgba(255, 255, 255, 0.08);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    
    /* Typography */
    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-main);
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
    min-height: 100vh;
}

/* Dynamic Ambient Background */
.ambient-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
    background-color: var(--bg-base);
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
    animation: floatOrb 20s ease-in-out infinite alternate;
}

.glow-orb.primary {
    top: -20vh;
    left: -10vw;
    width: 60vw;
    height: 60vh;
    background: radial-gradient(circle, var(--accent-primary) 0%, transparent 70%);
}

.glow-orb.secondary {
    bottom: -10vh;
    right: -10vw;
    width: 50vw;
    height: 50vh;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.8) 0%, transparent 70%);
    animation-delay: -5s;
}

.ambient-noise {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url('data:image/svg+xml,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.03;
    pointer-events: none;
    z-index: -1;
}

/* Glass Panel Utility (VisionOS Style) */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    /* Subtle inner highlight */
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--glass-shadow);
}

.container {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 10;
}

/* Typography */
h1, h2, h3 {
    font-weight: 700;
    letter-spacing: -0.04em;
}

.section-title {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-align: center;
}

.section-desc {
    color: var(--text-secondary);
    font-size: 1.25rem;
    font-weight: 400;
    letter-spacing: -0.01em;
    margin-bottom: 3rem;
}

.center-desc {
    margin-left: auto;
    margin-right: auto;
    max-width: 600px;
    text-align: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.8rem 1.6rem;
    border-radius: 980px; 
    font-size: 1.05rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    text-align: center;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-base);
    box-shadow: 0 4px 14px rgba(255,255,255,0.1);
}

.btn-primary:hover {
    transform: scale(1.02);
    background-color: #ffffff;
    box-shadow: 0 6px 20px rgba(255,255,255,0.15);
}

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

.btn-outline:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.15);
}

.btn-link {
    background: transparent;
    color: var(--text-primary);
    padding: 0.8rem 1rem;
}

.btn-link:hover {
    color: var(--accent-primary);
}

.arrow {
    display: inline-block;
    transition: transform 0.2s ease;
}

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

.full-width {
    width: 100%;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1.2rem 0;
    background: transparent;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.navbar.scrolled {
    background: rgba(9, 10, 15, 0.7);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-bottom: 1px solid var(--glass-border);
}

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

.logo {
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    padding-top: 12rem;
    min-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1.2rem;
    border-radius: 50px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--glass-border);
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.animated-badge {
    background: transparent;
    border: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
    overflow: hidden;
}

.animated-badge::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.4), transparent);
    animation: scan-light 3s infinite linear;
}

.glitch-text {
    font-weight: 700;
    letter-spacing: 2px;
    background: linear-gradient(90deg, #fff, #3b82f6, #fff);
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine-text 3s linear infinite;
}

@keyframes scan-light {
    0% { left: -100%; }
    100% { left: 200%; }
}

@keyframes shine-text {
    to { background-position: 200% center; }
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: var(--accent-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-primary);
    animation: pulse 2s infinite;
}

.hero-title {
    font-size: 5.5rem;
    margin-bottom: 1rem;
    line-height: 1.1;
    background: linear-gradient(180deg, #fff 0%, #94a3b8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-desc {
    font-size: 1.35rem;
    color: var(--text-secondary);
    font-weight: 400;
    margin-bottom: 2.5rem;
    max-width: 650px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    align-items: center;
}

/* Marquee Section */
.marquee-wrapper {
    width: 100%;
    overflow: hidden;
    padding: 2rem 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.02) 20%, rgba(255,255,255,0.02) 80%, transparent);
    border-top: 1px solid var(--glass-border);
    border-bottom: 1px solid var(--glass-border);
    margin-bottom: 4rem;
}

.marquee {
    display: flex;
    white-space: nowrap;
    overflow: hidden;
}

.marquee-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    animation: scroll-marquee 30s linear infinite;
    padding-left: 3rem;
}

.marquee-content span {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.marquee-content span.dot {
    color: rgba(255,255,255,0.2);
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Live Counters */
.live-stats-section {
    padding: 2rem 0 5rem 0;
}

.stats-grid {
    display: flex;
    justify-content: space-around;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding-bottom: 3rem;
}

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

.stat-number {
    font-size: 3.5rem;
    font-weight: 700;
    font-family: var(--font-mono);
    color: var(--text-primary);
    background: linear-gradient(180deg, #fff 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    line-height: 1;
    letter-spacing: -2px;
}

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

/* Bento Grid */
.section {
    padding: 5rem 0;
}

.bento-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.bento-card {
    border-radius: 32px;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.bento-card:hover {
    transform: translateY(-4px);
    border-color: rgba(255,255,255,0.15);
}

.bento-card.large {
    grid-column: span 2;
    flex-direction: row;
    gap: 3rem;
    align-items: center;
}

.bento-header {
    flex: 1;
}

.icon-wrapper {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.bento-card h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* Mockups inside Bento Cards */
.mockup-terminal {
    flex: 1;
    background: rgba(0,0,0,0.6);
    border-radius: 16px;
    border: 1px solid var(--glass-border);
    overflow: hidden;
    min-width: 300px;
}

.terminal-header {
    background: rgba(255,255,255,0.05);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

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

.mac-dots span {
    width: 10px; height: 10px; border-radius: 50%;
}
.mac-dots span:nth-child(1) { background: #ef4444; }
.mac-dots span:nth-child(2) { background: #f59e0b; }
.mac-dots span:nth-child(3) { background: #10b981; }

.terminal-title {
    flex: 1;
    text-align: center;
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-right: 36px;
}

.terminal-body {
    padding: 1.5rem;
    font-family: var(--font-mono);
    font-size: 0.85rem;
    line-height: 1.6;
    color: #e2e8f0;
}

.terminal-body .kw { color: #c678dd; } 
.terminal-body .fn { color: #61afef; } 
.terminal-body .str { color: #98c379; } 
.terminal-body .comment { color: #5c6370; font-style: italic; }

.mockup-chart {
    margin-top: 2rem;
    height: 120px;
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.chart-line {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

.chart-line.active { background: var(--accent-primary); box-shadow: 0 0 20px var(--accent-glow); }

/* Discord Mockup */
.mockup-discord {
    margin-top: 2rem;
    background: rgba(49, 51, 56, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 1rem;
    display: flex;
    gap: 1rem;
    font-family: var(--font-main);
}
.discord-avatar {
    width: 40px; height: 40px; border-radius: 50%;
    background: var(--accent-primary);
    flex-shrink: 0;
}
.discord-content {
    flex: 1;
}
.discord-author {
    color: #fff; font-weight: 500; font-size: 0.95rem; margin-bottom: 0.2rem;
}
.discord-time {
    color: #949ba4; font-size: 0.75rem; font-weight: 400; margin-left: 0.5rem;
}
.discord-msg {
    color: #dbdee1; font-size: 0.9rem; line-height: 1.4;
}
.discord-msg .highlight { color: #5865F2; font-weight: 600; }
.discord-msg .highlight-red { color: #ed4245; font-weight: 600; }

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    border-radius: 16px;
    overflow: hidden;
    transition: background 0.3s ease;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    background: transparent;
    border: none;
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-main);
}

.faq-icon {
    transition: transform 0.3s ease;
    color: var(--accent-primary);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), padding 0.4s ease;
    padding: 0 1.5rem;
    color: var(--text-secondary);
}

.faq-item.active .faq-answer {
    padding-bottom: 1.5rem;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.pricing-plan {
    border-radius: 32px;
    padding: 3rem 2rem;
    text-align: left;
    position: relative;
    display: flex;
    flex-direction: column;
}

.pricing-plan.popular {
    transform: scale(1.03);
    border-color: var(--accent-primary);
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.15);
    z-index: 1;
}

.popular-badge {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-primary);
    color: #fff;
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 10px rgba(59, 130, 246, 0.3);
}

.price-header {
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.pricing-plan.popular .price-header {
    color: var(--accent-primary);
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    line-height: 1;
}

.price-amount .period {
    font-size: 1.25rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.price-period {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 0.5rem;
    margin-bottom: 2.5rem;
}

.pricing-features {
    list-style: none;
    margin-bottom: 2.5rem;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.pricing-features svg {
    width: 20px;
    height: 20px;
    color: var(--accent-primary);
    flex-shrink: 0;
}

/* Footer */
.footer {
    padding: 4rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--glass-border);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    font-weight: 600;
    color: var(--text-secondary);
}

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

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

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

.footer-bottom {
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: #090a0f;
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease, visibility 0.8s;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}
.preloader-text {
    font-family: var(--font-main);
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 4px;
    display: flex;
    gap: 15px;
    overflow: hidden;
}
.text-prox {
    color: #fff;
    transform: translateY(100%);
    animation: slideUpText 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.text-sent {
    color: var(--accent-primary);
    transform: translateY(100%);
    animation: slideUpText 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}
@keyframes slideUpText {
    to { transform: translateY(0); }
}

/* Modal */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    width: 90%;
    max-width: 450px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.95) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-close {
    position: absolute;
    top: 1rem; right: 1.5rem;
    background: transparent; border: none;
    color: var(--text-secondary);
    font-size: 2rem; cursor: pointer;
    transition: color 0.2s ease;
}
.modal-close:hover { color: #fff; }
.modal-title { font-size: 1.8rem; margin-bottom: 0.5rem; color: #fff; }
.modal-desc { color: var(--text-secondary); margin-bottom: 2rem; font-size: 0.95rem; }
.highlight-plan { color: var(--accent-primary); font-weight: 700; text-transform: uppercase; }
.form-group { margin-bottom: 1.5rem; text-align: left; }
.form-group label { display: block; margin-bottom: 0.5rem; font-size: 0.85rem; color: var(--text-secondary); }

.apple-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--glass-border);
    padding: 1rem 1.5rem;
    border-radius: 16px;
    color: #fff;
    font-family: var(--font-main);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.3s ease, background 0.3s ease;
}
.apple-input:focus {
    background: rgba(0,0,0,0.6);
    border-color: var(--accent-primary);
}

.success-icon {
    width: 64px; height: 64px;
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-radius: 50%;
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(16, 185, 129, 0.3);
}
.success-icon svg { width: 32px; height: 32px; }

/* Animations */
@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, -50px) scale(1.1); }
}

@keyframes pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(59, 130, 246, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(59, 130, 246, 0); }
}

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

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.delay-1 {
    transition-delay: 0.15s;
}

/* Team Grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-top: 3rem;
}

.team-card {
    border-radius: 24px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.team-card:hover {
    transform: translateY(-5px);
    border-color: rgba(59, 130, 246, 0.4);
}

.team-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(59, 130, 246, 0.1);
    color: var(--accent-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem auto;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.team-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.team-role {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Responsive */
@media (max-width: 900px) {
    .bento-grid {
        grid-template-columns: 1fr;
    }
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-plan.popular {
        transform: scale(1);
    }
    .bento-card.large {
        grid-column: span 1;
        flex-direction: column;
    }
    .hero-title {
        font-size: 3.5rem;
    }
    .nav-links {
        display: none;
    }
    .stats-grid {
        flex-direction: column;
        gap: 3rem;
    }
}
@media (max-width: 500px) {
    .team-grid {
        grid-template-columns: 1fr;
    }
}
