/* ============================================
   MathPlot — App Store Landing Page
   Design System & Global Styles
   ============================================ */

:root {
    /* Colors - Matching the SwiftUI AppColors */
    --bg-primary: #0A0A1E;
    --bg-secondary: #14142E;
    --bg-card: rgba(20, 20, 46, 0.7);
    --bg-glass: rgba(255, 255, 255, 0.04);
    --border-glass: rgba(255, 255, 255, 0.08);
    
    --accent-cyan: #4DCCFF;
    --accent-pink: #FF66B3;
    --accent-gold: #FFD94D;
    --accent-green: #66FF99;
    --accent-purple: #B366FF;
    --accent-orange: #FF804D;
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.6);
    --text-muted: rgba(255, 255, 255, 0.35);
    
    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'SF Mono', monospace;
    
    /* Spacing */
    --section-padding: 120px 0;
    --container-width: 1200px;
    --border-radius: 20px;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

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

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

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

/* ============================================
   Background Effects
   ============================================ */
.bg-stars {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.bg-stars .star {
    position: absolute;
    width: 2px;
    height: 2px;
    background: white;
    border-radius: 50%;
    animation: twinkle var(--duration, 3s) ease-in-out infinite alternate;
    opacity: 0;
}

@keyframes twinkle {
    0% { opacity: 0; transform: scale(0.5); }
    100% { opacity: var(--max-opacity, 0.6); transform: scale(1); }
}

.bg-gradient-orbs {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.15;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-cyan);
    top: -200px;
    right: -200px;
    animation: orbFloat 20s ease-in-out infinite alternate;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-pink);
    bottom: -150px;
    left: -200px;
    animation: orbFloat 25s ease-in-out infinite alternate-reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-purple);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: orbFloat 18s ease-in-out infinite alternate;
}

@keyframes orbFloat {
    0% { transform: translate(0, 0); }
    33% { transform: translate(30px, -40px); }
    66% { transform: translate(-20px, 30px); }
    100% { transform: translate(10px, -20px); }
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.navbar.scrolled {
    background: rgba(10, 10, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-glass);
    padding: 12px 0;
}

.nav-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

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

.logo-text {
    font-size: 22px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: color 0.3s ease;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink));
    border-radius: 1px;
    transition: width 0.3s ease;
}

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

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

.nav-cta {
    color: var(--bg-primary) !important;
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    padding: 8px 20px;
    border-radius: 24px;
    font-weight: 600;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.nav-cta::after {
    display: none;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(77, 217, 255, 0.3);
    color: var(--bg-primary) !important;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

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

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

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

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

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(10, 10, 30, 0.97);
    backdrop-filter: blur(20px);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    display: flex;
    opacity: 1;
    pointer-events: all;
}

.mobile-link {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.mobile-link:hover {
    color: var(--text-primary);
}

/* ============================================
   Shared Components
   ============================================ */
.section-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

.section-header {
    text-align: center;
    margin-bottom: 72px;
}

.section-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--accent-cyan);
    background: rgba(77, 217, 255, 0.08);
    border: 1px solid rgba(77, 217, 255, 0.15);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.7;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-pink), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.title-gradient {
    background: linear-gradient(90deg, var(--accent-cyan), var(--accent-pink), var(--accent-gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-primary);
    font-weight: 600;
    font-size: 15px;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-green));
    color: var(--bg-primary);
    padding: 14px 28px;
    border-radius: 14px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(77, 217, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(77, 217, 255, 0.35);
}

.btn-secondary {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    color: var(--text-primary);
    padding: 14px 28px;
    border-radius: 14px;
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.btn-large {
    padding: 18px 36px;
    font-size: 17px;
    border-radius: 16px;
    gap: 14px;
}

.btn-large .btn-small-text {
    display: block;
    font-size: 11px;
    font-weight: 500;
    opacity: 0.7;
    text-align: left;
}

.btn-large .btn-main-text {
    display: block;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -0.3px;
    text-align: left;
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 1;
    padding: 120px 32px 80px;
    max-width: var(--container-width);
    margin: 0 auto;
}

.hero-content {
    max-width: 900px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-app-icon-small {
    width: 96px;
    height: 96px;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 30px rgba(77, 217, 255, 0.1);
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out;
}

.lumos-title {
    font-size: clamp(72px, 12vw, 140px);
    font-weight: 900;
    letter-spacing: -3px;
    line-height: 1;
    margin-bottom: 32px;
    animation: fadeInUp 0.8s ease-out 0.1s both;
}

.lumos-subtitle {
    font-size: clamp(20px, 3vw, 28px);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 56px;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.lumos-actions {
    margin-bottom: 24px;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.lumos-app-store-btn {
    display: inline-flex;
    align-items: center;
    background: #FFFFFF;
    color: #000000 !important;
    padding: 10px 24px;
    border-radius: 12px;
    gap: 12px;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.lumos-app-store-btn:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 24px rgba(255, 255, 255, 0.15);
}

.lumos-app-store-btn .btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.lumos-app-store-btn .small-text {
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    margin-bottom: 2px;
}

.lumos-app-store-btn .big-text {
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.3px;
}

.lumos-platforms {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.4);
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Floating Symbols in Hero */
.floating-symbols-hero {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}



.float-symbol {
    position: absolute;
    top: 50%;
    left: 50%;
    font-size: 28px;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.12);
    transform: translate(var(--x), var(--y));
    animation: floatSymbol 6s ease-in-out infinite alternate;
    animation-delay: var(--delay);
}

@keyframes floatSymbol {
    0% { transform: translate(var(--x), var(--y)) rotate(0deg); opacity: 0.08; }
    50% { opacity: 0.2; }
    100% { transform: translate(var(--x), calc(var(--y) - 20px)) rotate(10deg); opacity: 0.08; }
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ============================================
   Features Section
   ============================================ */
.features {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
}

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

.feature-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    opacity: 0;
    transform: translateY(30px);
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent, var(--accent-cyan)), transparent);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.feature-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

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

.feature-large {
    grid-column: span 3;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 32px;
    align-items: center;
}

.feature-icon-wrap {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover .feature-icon-wrap {
    transform: scale(1.05);
    box-shadow: 0 0 24px color-mix(in srgb, var(--accent) 20%, transparent);
}

.feature-large .feature-icon-wrap {
    margin-bottom: 0;
}

.feature-title {
    font-size: 19px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.feature-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.feature-formulas code {
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--accent-green);
    background: rgba(102, 255, 178, 0.06);
    border: 1px solid rgba(102, 255, 178, 0.12);
    padding: 6px 14px;
    border-radius: 8px;
    white-space: nowrap;
}

/* ============================================
   Categories Section
   ============================================ */
.categories {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
}

.category-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}

.category-card {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px 28px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 18px;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: default;
    opacity: 0;
    transform: translateX(30px);
}

.category-card.visible {
    opacity: 1;
    transform: translateX(0);
}

.category-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: color-mix(in srgb, var(--cat-color) 30%, transparent);
    transform: translateX(8px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 40px color-mix(in srgb, var(--cat-color) 8%, transparent);
}

.cat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--cat-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--cat-color) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.category-card:hover .cat-icon {
    transform: scale(1.08);
}

.cat-info h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 2px;
}

.cat-info code {
    font-family: var(--font-mono);
    font-size: 14px;
    font-weight: 600;
    color: var(--cat-color);
}

.cat-info p {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
}

.steps {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-width: 560px;
    margin: 0 auto;
}

.step {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    opacity: 0;
    transform: translateY(30px);
}

.step.visible {
    opacity: 1;
    transform: translateY(0);
}

.step-number {
    font-size: 48px;
    font-weight: 900;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    flex-shrink: 0;
    min-width: 60px;
}

.step-content {
    flex: 1;
}

.step-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--step-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--step-color) 20%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}

.step-content h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: -0.3px;
}

.step-content p {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.step-connector {
    display: flex;
    justify-content: center;
    padding: 8px 0;
    margin-left: 28px;
}

/* ============================================
   Screenshots Section
   ============================================ */
.screenshots {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
    overflow: hidden;
}

.screenshots-carousel {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.screenshot-item {
    flex: 0 0 auto;
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
}

.screenshot-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.screenshot-frame {
    width: 280px;
    border-radius: 32px;
    overflow: hidden;
    border: 3px solid rgba(255, 255, 255, 0.08);
    box-shadow:
        0 20px 50px rgba(0, 0, 0, 0.4),
        0 0 60px rgba(77, 217, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: var(--bg-secondary);
}

.screenshot-frame img {
    width: 100%;
    height: auto;
    display: block;
}

.screenshot-item:hover .screenshot-frame {
    transform: translateY(-8px) scale(1.02);
    box-shadow:
        0 30px 60px rgba(0, 0, 0, 0.5),
        0 0 80px rgba(77, 217, 255, 0.1);
    border-color: rgba(77, 217, 255, 0.2);
}

.screenshot-label {
    margin-top: 20px;
}

.screenshot-label h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.screenshot-label p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Equation Info Section
   ============================================ */
.equation-info {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
}

.equation-showcase {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.equation-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: var(--border-radius);
    padding: 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.equation-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.equation-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
}

.eq-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-glass);
}

.eq-formula {
    font-family: var(--font-mono);
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-green);
}

.eq-type {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--eq-color);
    background: color-mix(in srgb, var(--eq-color) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--eq-color) 20%, transparent);
    padding: 4px 12px;
    border-radius: 12px;
}

.eq-params {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.param {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.param-symbol {
    font-family: var(--font-mono);
    font-size: 20px;
    font-weight: 800;
    flex-shrink: 0;
    width: 28px;
    text-align: center;
}

.param-name {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.param-desc {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ============================================
   Download CTA Section
   ============================================ */
.download-cta {
    position: relative;
    z-index: 1;
    padding: 120px 0 80px;
}

.cta-content {
    text-align: center;
    position: relative;
    padding: 80px 40px;
    border-radius: 32px;
    background: linear-gradient(135deg, rgba(77, 217, 255, 0.05), rgba(255, 102, 178, 0.05));
    border: 1px solid var(--border-glass);
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(77, 217, 255, 0.12) 0%, transparent 70%);
    pointer-events: none;
}

.cta-title {
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 16px;
    position: relative;
}

.cta-subtitle {
    font-size: 17px;
    color: var(--text-secondary);
    max-width: 480px;
    margin: 0 auto 36px;
    line-height: 1.7;
    position: relative;
}

.cta-content .btn-large {
    margin: 0 auto;
    position: relative;
}

.cta-features {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 28px;
    position: relative;
}

.cta-features span {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-muted);
}

/* ============================================
   Support Section
   ============================================ */
.support {
    position: relative;
    z-index: 1;
    padding: var(--section-padding);
}

.support-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
    align-items: start;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 0;
    transform: translateY(20px);
}

.faq-item.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.faq-item.active {
    border-color: rgba(77, 204, 255, 0.2);
    background: rgba(77, 204, 255, 0.04);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-family: var(--font-primary);
    font-size: 15px;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s ease;
}

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

.faq-chevron {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94), color 0.3s ease;
}

.faq-item.active .faq-chevron {
    transform: rotate(180deg);
    color: var(--accent-cyan);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), padding 0.4s ease;
    padding: 0 24px;
}

.faq-item.active .faq-answer {
    max-height: 200px;
    padding: 0 24px 20px;
}

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

.support-contact-card {
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    border-radius: 20px;
    padding: 36px 28px;
    text-align: center;
    position: sticky;
    top: 100px;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.support-contact-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.support-contact-card:hover {
    border-color: rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
}

.contact-icon-wrap {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(77, 204, 255, 0.1), rgba(255, 102, 179, 0.1));
    border: 1px solid rgba(77, 204, 255, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.support-contact-card h3 {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin-bottom: 8px;
}

.support-contact-card p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 24px;
}

.support-email-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: linear-gradient(135deg, rgba(77, 204, 255, 0.12), rgba(255, 102, 179, 0.12));
    border: 1px solid rgba(77, 204, 255, 0.2);
    border-radius: 14px;
    color: var(--accent-cyan);
    font-size: 14px;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
    text-decoration: none;
}

.support-email-btn:hover {
    background: linear-gradient(135deg, rgba(77, 204, 255, 0.2), rgba(255, 102, 179, 0.2));
    border-color: rgba(77, 204, 255, 0.35);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(77, 204, 255, 0.15);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    position: relative;
    z-index: 1;
    border-top: 1px solid var(--border-glass);
    padding: 60px 0 32px;
}

.footer-container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 60px;
    margin-bottom: 48px;
}

.footer-tagline {
    font-size: 14px;
    color: var(--text-muted);
    margin-top: 12px;
}

.footer-links {
    display: flex;
    gap: 60px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.footer-col a {
    display: block;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 10px;
    transition: color 0.3s ease;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 32px;
    border-top: 1px solid var(--border-glass);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-muted);
}

/* ============================================
   Animations for Scroll
   ============================================ */
[data-animate] {
    transition: opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ============================================
   Responsive Design
   ============================================ */
@media (max-width: 1024px) {
    .hero {
        padding: 140px 24px 60px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .feature-large {
        grid-column: span 2;
    }
    
    .equation-showcase {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --section-padding: 80px 0;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero-title {
        letter-spacing: -1px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-large {
        grid-column: span 1;
        grid-template-columns: 1fr;
    }
    
    .feature-formulas {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .screenshots-carousel {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-top {
        flex-direction: column;
        gap: 40px;
    }
    
    .footer-links {
        gap: 40px;
        flex-wrap: wrap;
    }
    
    .cta-features {
        flex-direction: column;
        gap: 12px;
    }
    
    .support-content {
        grid-template-columns: 1fr;
    }
    
    .support-contact-card {
        position: static;
    }
    
    .steps {
        padding: 0 16px;
    }
    
    .step {
        gap: 16px;
    }
    
    .step-number {
        font-size: 36px;
        min-width: 44px;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-stats {
        gap: 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .section-header {
        margin-bottom: 48px;
    }
    
    .screenshot-frame {
        width: 240px;
    }
    
    .category-card {
        padding: 18px 20px;
        gap: 16px;
    }
    
    .cat-icon {
        width: 48px;
        height: 48px;
        border-radius: 14px;
    }
    
    .faq-question {
        padding: 16px 18px;
        font-size: 14px;
    }
    
    .faq-item.active .faq-answer {
        padding: 0 18px 16px;
    }
    
    .support-email-btn {
        font-size: 13px;
        padding: 12px 20px;
    }
}

/* ============================================
   Animated Wave for CTA Background
   ============================================ */
.cta-content::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: 
        repeating-linear-gradient(
            90deg,
            transparent,
            transparent 50px,
            rgba(77, 217, 255, 0.02) 50px,
            rgba(77, 217, 255, 0.02) 51px
        ),
        repeating-linear-gradient(
            0deg,
            transparent,
            transparent 50px,
            rgba(77, 217, 255, 0.02) 50px,
            rgba(77, 217, 255, 0.02) 51px
        );
    pointer-events: none;
    mask: linear-gradient(transparent, black);
    -webkit-mask: linear-gradient(transparent, black);
}
