/* ==========================================
   SpeedMag — styles.css
   Dark theme with teal/emerald/lime accents
   matching the SpeedMag logo palette
   ========================================== */

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

:root {
    --bg:           #060d0b;
    --bg-surface:   #0a1410;
    --bg-card:      rgba(255,255,255,0.03);
    --bg-card-hover:rgba(255,255,255,0.06);
    --border:       rgba(255,255,255,0.06);
    --border-hover: rgba(255,255,255,0.12);
    --text:         #f0f5f3;
    --text-secondary:#8a9e96;
    --accent-cyan:  #10B981;
    --accent-purple:#7CC24A;
    --accent-pink:  #3D6B7E;
    --gradient:     linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    --gradient-text: linear-gradient(135deg, var(--accent-pink) 0%, var(--accent-cyan) 40%, var(--accent-purple) 100%);
    --font-heading: 'Space Grotesk', system-ui, sans-serif;
    --font-body:    'Inter', system-ui, sans-serif;
    --radius-sm:    8px;
    --radius-md:    16px;
    --radius-lg:    24px;
    --radius-pill:  50px;
    --shadow-glow:  0 0 60px rgba(16,185,129,0.15), 0 0 120px rgba(124,194,74,0.1);
    --nav-height:   72px;
    --container:    1200px;
    --section-pad:  120px;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

img { max-width: 100%; display: block; }

ul { list-style: none; }

/* ----- Container ----- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

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

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

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}

.section-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--accent-cyan);
    border: 1px solid rgba(16,185,129,0.25);
    background: rgba(16,185,129,0.06);
    padding: 6px 16px;
    border-radius: var(--radius-pill);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    margin-bottom: 16px;
}

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

/* ----- Buttons ----- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    border-radius: var(--radius-pill);
    padding: 12px 28px;
    transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 4px 24px rgba(16,185,129,0.25);
}

.btn-primary:hover {
    box-shadow: 0 8px 40px rgba(16,185,129,0.4);
    transform: translateY(-2px);
}

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

.btn-ghost:hover {
    border-color: var(--border-hover);
    background: rgba(255,255,255,0.03);
}

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

.btn-outline:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.875rem;
    background: var(--gradient);
    color: #fff;
    box-shadow: 0 2px 16px rgba(16,185,129,0.2);
}

.btn-nav:hover {
    box-shadow: 0 4px 28px rgba(16,185,129,0.35);
    transform: translateY(-1px);
}

/* ----- Navbar ----- */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: var(--nav-height);
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    background: transparent;
}

.navbar.scrolled {
    background: rgba(6,6,15,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 101;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.logo-text {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text);
}

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

.nav-links {
    display: flex;
    gap: 36px;
}

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

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

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

.mobile-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
    z-index: 0;
    pointer-events: none;
}

.hero-glow-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    top: -200px;
    left: -100px;
    opacity: 0.08;
}

.hero-glow-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: -150px;
    right: -100px;
    opacity: 0.1;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 800px;
    padding: 60px 0 80px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    border: 1px solid var(--border);
    background: rgba(255,255,255,0.03);
    backdrop-filter: blur(10px);
    padding: 8px 20px;
    border-radius: var(--radius-pill);
    margin-bottom: 32px;
}

.badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(52,211,153,0.5); }
    50% { opacity: 0.8; box-shadow: 0 0 0 6px rgba(52,211,153,0); }
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 24px;
}

.hero-title .line {
    display: block;
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

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

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

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

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1;
}

.scroll-mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--border-hover);
    border-radius: 12px;
    display: flex;
    justify-content: center;
    padding-top: 8px;
}

.scroll-dot {
    width: 3px;
    height: 8px;
    border-radius: 3px;
    background: var(--accent-cyan);
    animation: scroll-bounce 2s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0; }
}

/* ----- Social Proof Bar ----- */
.social-proof {
    padding: 48px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.social-proof-label {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 24px;
}

.logo-ticker {
    overflow: hidden;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.logo-ticker-track {
    display: flex;
    gap: 60px;
    animation: ticker 25s linear infinite;
    width: max-content;
}

.company-logo {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 600;
    color: rgba(255,255,255,0.15);
    white-space: nowrap;
    user-select: none;
}

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

/* ----- Features ----- */
.features {
    padding: var(--section-pad) 0;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 36px 28px;
    transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

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

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16,185,129,0.08);
    border: 1px solid rgba(16,185,129,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-cyan);
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    background: rgba(16,185,129,0.12);
    box-shadow: 0 0 20px rgba(16,185,129,0.15);
}

.feature-card h3 {
    font-size: 1.15rem;
    margin-bottom: 10px;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ----- Speed Section ----- */
.speed-section {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.speed-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(124,194,74,0.08) 0%, transparent 70%);
    pointer-events: none;
}

.speed-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.speed-content .section-badge,
.speed-content .section-title,
.speed-content .section-subtitle {
    text-align: left;
    margin-left: 0;
}

.speed-content .section-subtitle {
    margin-bottom: 40px;
}

.speed-metrics {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.metric {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.metric-bar {
    height: 8px;
    background: rgba(255,255,255,0.05);
    border-radius: 4px;
    overflow: hidden;
}

.metric-fill {
    height: 100%;
    border-radius: 4px;
    width: 0;
    transition: width 1.5s cubic-bezier(0.25,0.46,0.45,0.94);
}

.metric-fill.speedmag {
    background: var(--gradient);
    box-shadow: 0 0 12px rgba(16,185,129,0.4);
}

.metric-fill.competitor-a {
    background: rgba(255,255,255,0.15);
}

.metric-fill.competitor-b {
    background: rgba(255,255,255,0.08);
}

.metric-fill.animated {
    width: var(--target-width) !important;
}

.metric-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
}

.metric-label {
    color: var(--text-secondary);
}

.metric-value {
    font-family: var(--font-heading);
    font-weight: 600;
}

.speedmag + .metric-info .metric-value {
    color: var(--accent-cyan);
}

/* Terminal */
.terminal {
    background: #0d0d1a;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 80px rgba(0,0,0,0.5);
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,0.02);
}

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

.terminal-dot.red { background: #ff5f57; }
.terminal-dot.yellow { background: #ffbd2e; }
.terminal-dot.green { background: #28c841; }

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-left: auto;
    margin-right: auto;
    padding-right: 36px;
}

.terminal-body {
    padding: 20px;
    font-family: 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;
    font-size: 0.85rem;
    line-height: 2;
}

.terminal-line {
    display: flex;
    gap: 10px;
}

.terminal-prompt {
    color: var(--accent-cyan);
    user-select: none;
}

.terminal-command {
    color: var(--text);
}

.terminal-output {
    color: var(--text-secondary);
    opacity: 0;
    animation: fadeInLine 0.3s forwards;
}

#terminal-output { animation-delay: 0.8s; }
#terminal-output-2 { animation-delay: 1.4s; }
#terminal-output-3 { animation-delay: 2.0s; }

@keyframes fadeInLine {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-success {
    color: #34d399;
}

.terminal-highlight {
    color: var(--accent-cyan);
    font-weight: 600;
}

.terminal-cursor {
    color: var(--accent-cyan);
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ----- Pricing ----- */
.pricing {
    padding: var(--section-pad) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    align-items: start;
}

.pricing-grid-two {
    grid-template-columns: repeat(2, 1fr);
    max-width: 800px;
    margin: 0 auto;
}

.pricing-single {
    max-width: 820px;
    margin: 0 auto;
}

.pricing-single .pricing-card.featured {
    transform: none;
}

.pricing-features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px 32px;
    margin-bottom: 32px;
}

.pricing-features-grid .pricing-features {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .pricing-features-grid {
        grid-template-columns: 1fr;
    }
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    position: relative;
    transition: all 0.3s;
}

.pricing-card.featured {
    background: rgba(16,185,129,0.03);
    border-color: rgba(16,185,129,0.2);
    box-shadow: var(--shadow-glow);
    transform: scale(1.04);
    z-index: 1;
}

.pricing-popular {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    padding: 6px 20px;
    border-radius: var(--radius-pill);
}

.pricing-tier {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
    margin-bottom: 8px;
}

.price-currency {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    align-self: flex-start;
    margin-top: 8px;
}

.price-amount {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
}

.price-cents {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
}

.price-period {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-left: 8px;
}

.pricing-desc {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 28px;
}

.pricing-features {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.pricing-features li strong {
    color: var(--text);
}

.pricing-guarantee {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-top: 16px;
}

/* ----- Testimonials ----- */
.testimonials {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 32px;
    transition: all 0.3s;
}

.testimonial-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-2px);
}

.testimonial-stars {
    color: #f59e0b;
    font-size: 1rem;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
}

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

.author-info strong {
    font-size: 0.9rem;
}

.author-info span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* ----- FAQ ----- */
.faq {
    padding: var(--section-pad) 0;
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: border-color 0.3s;
}

.faq-item[open] {
    border-color: var(--border-hover);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 24px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    list-style: none;
    transition: color 0.2s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary:hover {
    color: var(--accent-cyan);
}

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-secondary);
    transition: transform 0.3s;
}

.faq-item[open] .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 24px 20px;
}

.faq-answer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ----- Download Section ----- */
.download {
    padding: var(--section-pad) 0;
    background: var(--bg-surface);
    position: relative;
    overflow: hidden;
}

.download-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(16,185,129,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.download-content {
    text-align: center;
    position: relative;
    z-index: 1;
}

.download-content .section-subtitle {
    margin-bottom: 48px;
}

.platform-cards {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.platform-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 28px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    transition: all 0.3s;
    min-width: 160px;
}

.platform-card:hover {
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
    background: rgba(16,185,129,0.03);
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(16,185,129,0.1);
}

.platform-name {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--text);
}

.platform-detail {
    font-size: 0.75rem;
}

.featured-platform {
    border-color: var(--accent-cyan) !important;
    color: var(--accent-cyan) !important;
    background: rgba(16,185,129,0.03) !important;
    padding: 32px 48px;
}

.download-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.download-coming-soon {
    margin-top: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    text-align: center;
}

.meta-dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: var(--text-secondary);
}

/* ----- Footer ----- */
.footer {
    padding: 64px 0 32px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-tagline {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-top: 12px;
}

.footer-col h4 {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--text);
}

.footer-col a {
    display: block;
    font-size: 0.85rem;
    color: var(--text-secondary);
    padding: 4px 0;
    transition: color 0.2s;
}

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

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 32px;
    border-top: 1px solid var(--border);
}

.footer-bottom p {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    color: var(--text-secondary);
    transition: color 0.2s;
}

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

/* ----- Scroll Animations ----- */
.animate-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}

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

/* Staggered children */
.features-grid .animate-in:nth-child(1) { transition-delay: 0ms; }
.features-grid .animate-in:nth-child(2) { transition-delay: 80ms; }
.features-grid .animate-in:nth-child(3) { transition-delay: 160ms; }
.features-grid .animate-in:nth-child(4) { transition-delay: 240ms; }
.features-grid .animate-in:nth-child(5) { transition-delay: 320ms; }
.features-grid .animate-in:nth-child(6) { transition-delay: 400ms; }

.pricing-grid .animate-in:nth-child(1) { transition-delay: 0ms; }
.pricing-grid .animate-in:nth-child(2) { transition-delay: 100ms; }
.pricing-grid .animate-in:nth-child(3) { transition-delay: 200ms; }

.testimonials-grid .animate-in:nth-child(1) { transition-delay: 0ms; }
.testimonials-grid .animate-in:nth-child(2) { transition-delay: 100ms; }
.testimonials-grid .animate-in:nth-child(3) { transition-delay: 200ms; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
    :root {
        --section-pad: 80px;
    }

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

    .speed-layout {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .speed-content .section-badge,
    .speed-content .section-title,
    .speed-content .section-subtitle {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }

    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
    }

    .pricing-card.featured {
        transform: scale(1.02);
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

@media (max-width: 768px) {
    :root {
        --section-pad: 64px;
        --nav-height: 64px;
    }

    .nav-links, .nav-actions {
        display: none;
    }

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(6,6,15,0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        justify-content: center;
        align-items: center;
        gap: 24px;
        z-index: 100;
    }

    .nav-links.active a {
        font-size: 1.5rem;
        color: var(--text);
    }

    .mobile-toggle {
        display: flex;
    }

    .hero-title {
        font-size: clamp(2.5rem, 10vw, 4rem);
    }

    .hero-stats {
        gap: 20px;
    }

    .stat-number {
        font-size: 1.4rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
        margin: 0 auto;
    }

    .pricing-grid-two {
        max-width: 420px;
    }

    .pricing-card.featured {
        transform: none;
        order: -1;
    }

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

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

    .platform-cards {
        flex-direction: column;
        align-items: center;
    }

    .platform-card {
        width: 100%;
        max-width: 280px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }

    .hero-actions .btn {
        width: 100%;
        justify-content: center;
    }

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

    .stat-divider {
        width: 40px;
        height: 1px;
    }
}

/* ----- App Showcase Grid ----- */
.showcase {
    padding: var(--section-pad) 0;
    position: relative;
    overflow: hidden;
}

.showcase::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(16,185,129,0.06) 0%, transparent 70%);
    pointer-events: none;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 24px;
    margin-top: 60px;
}

.showcase-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.showcase-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 20px 60px rgba(0,0,0,0.3), 0 0 40px rgba(16,185,129,0.08);
}

.showcase-card--featured {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 0;
}

.showcase-card--featured .showcase-card__info {
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.showcase-card__image {
    position: relative;
    overflow: hidden;
    background: #080f0c;
}

.showcase-card--featured .showcase-card__image {
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.showcase-card__window-dots {
    display: flex;
    gap: 6px;
    padding: 12px 16px 8px;
    background: rgba(0,0,0,0.4);
    position: relative;
    z-index: 2;
}

.showcase-card__window-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.showcase-card__window-dots span:nth-child(1) { background: #ff5f57; }
.showcase-card__window-dots span:nth-child(2) { background: #febc2e; }
.showcase-card__window-dots span:nth-child(3) { background: #28c840; }

.showcase-card__image img {
    width: 100%;
    display: block;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-card:hover .showcase-card__image img {
    transform: scale(1.03);
}

.showcase-card__overlay {
    position: absolute;
    inset: 0;
    background: rgba(6,13,11,0.7);
    backdrop-filter: blur(4px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: var(--accent-cyan);
    z-index: 3;
}

.showcase-card__overlay span {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.showcase-card:hover .showcase-card__overlay {
    opacity: 1;
}

.showcase-card__info {
    padding: 24px;
}

.showcase-card__label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--accent-cyan);
    margin-bottom: 10px;
}

.showcase-card__title {
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
    line-height: 1.3;
}

.showcase-card--featured .showcase-card__title {
    font-size: 1.75rem;
}

.showcase-card__desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 16px;
}

.showcase-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.showcase-tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-pill);
    background: rgba(16,185,129,0.1);
    color: var(--accent-cyan);
    border: 1px solid rgba(16,185,129,0.15);
}

/* Lightbox */
.showcase-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    background: rgba(6,13,11,0.92);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.showcase-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    max-width: 1100px;
    width: 90%;
    transform: scale(0.92) translateY(20px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.showcase-lightbox.active .lightbox-content {
    transform: scale(1) translateY(0);
}

.lightbox-window {
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border-hover);
    box-shadow: 0 40px 100px rgba(0,0,0,0.5), 0 0 80px rgba(16,185,129,0.1);
    background: #080f0c;
}

.lightbox-window .showcase-card__window-dots {
    padding: 14px 18px 10px;
    background: rgba(0,0,0,0.5);
}

.lightbox-window img {
    width: 100%;
    display: block;
}

.lightbox-caption {
    text-align: center;
    padding: 28px 20px 0;
}

.lightbox-caption h3 {
    font-family: var(--font-heading);
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px;
}

.lightbox-caption p {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 28px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    font-size: 1.6rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--border-hover);
    transform: rotate(90deg);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: rgba(255,255,255,0.05);
    color: var(--text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: rgba(255,255,255,0.1);
    border-color: var(--accent-cyan);
    color: var(--accent-cyan);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Showcase responsive */
@media (max-width: 768px) {
    .showcase-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .showcase-card--featured {
        grid-template-columns: 1fr;
    }

    .showcase-card--featured .showcase-card__image {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }

    .showcase-card--featured .showcase-card__info {
        padding: 24px;
    }

    .showcase-card--featured .showcase-card__title {
        font-size: 1.35rem;
    }

    .lightbox-nav {
        display: none;
    }

    .lightbox-content {
        width: 95%;
    }
}

.download-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

/* ----- Reduced Motion ----- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animate-in {
        opacity: 1;
        transform: none;
    }

    .logo-ticker-track {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ----- Selection ----- */
::selection {
    background: rgba(16,185,129,0.25);
    color: #fff;
}
