/* ===== CSS RESET & VARIABLES ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Colors */
    --color-primary: #6366F1;
    --color-primary-dark: #4F46E5;
    --color-secondary: #F97316;
    --color-accent: #8B5CF6;
    --color-success: #10B981;
    --color-bg-dark: #0F172A;
    --color-bg-darker: #020617;
    --color-surface: #1E293B;
    --color-surface-light: #334155;
    --color-text: #F1F5F9;
    --color-text-dim: #94A3B8;
    --color-text-muted: #64748B;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--color-primary), var(--color-accent));
    --gradient-secondary: linear-gradient(135deg, var(--color-secondary), #FBBF24);
    --gradient-hero: linear-gradient(180deg, var(--color-bg-darker) 0%, var(--color-bg-dark) 100%);

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;

    /* Typography */
    --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
    --font-mono: 'SF Mono', 'Monaco', 'Inconsolata', monospace;

    /* Effects */
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1);
    --shadow-glow: 0 0 30px rgba(99, 102, 241, 0.4);

    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

.section {
    padding: var(--spacing-2xl) 0;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--spacing-md);
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--color-text-dim);
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

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

/* ===== NAVIGATION ===== */
.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-lg);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-surface);
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

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

.logo-accent {
    color: var(--color-secondary);
}

.nav-links {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.nav-links a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color var(--transition-base);
    font-weight: 500;
}

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

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--color-text);
    transition: var(--transition-base);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    background: var(--gradient-hero);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    transform: translateX(-50%);
    pointer-events: none;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
    min-height: calc(100vh - 200px);
    padding: var(--spacing-2xl) var(--spacing-lg);
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--color-text-dim);
    margin-bottom: var(--spacing-xl);
}

.hero-cta {
    display: flex;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: 0.875rem 1.5rem;
    border-radius: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-lg);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--shadow-glow);
}

.btn-secondary {
    background: var(--color-surface);
    color: var(--color-text);
}

.btn-secondary:hover {
    background: var(--color-surface-light);
}

.btn-large {
    padding: 1.125rem 2rem;
    font-size: 1.125rem;
}

.cta-button {
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
}

.hero-badges {
    display: flex;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.badge {
    padding: 0.5rem 1rem;
    background: var(--color-surface);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--color-text-dim);
    border: 1px solid var(--color-surface-light);
}

/* Hero Image */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.phone-mockup {
    position: relative;
    width: 300px;
    z-index: 2;
}

.phone-screenshot {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

.floating-card {
    position: absolute;
    background: var(--color-surface);
    padding: var(--spacing-md);
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
    animation: float 3s ease-in-out infinite;
    border: 1px solid var(--color-surface-light);
}

.card-1 {
    top: 10%;
    right: 5%;
    animation-delay: 0s;
}

.card-2 {
    bottom: 30%;
    right: -5%;
    animation-delay: 1s;
}

.card-3 {
    top: 40%;
    left: -10%;
    animation-delay: 2s;
}

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

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

.card-title {
    font-weight: 600;
    font-size: 0.875rem;
}

.card-subtitle {
    font-size: 0.75rem;
    color: var(--color-text-dim);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--color-text-dim);
    border-radius: 20px;
    position: relative;
    animation: scroll 2s infinite;
}

.mouse::before {
    content: '';
    width: 4px;
    height: 8px;
    background: var(--color-primary);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 2px;
}

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

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    background: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: 20px;
    border: 1px solid var(--color-surface-light);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-xl);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
}

.feature-card p {
    color: var(--color-text-dim);
    margin-bottom: var(--spacing-md);
}

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

.feature-list li {
    padding: 0.5rem 0;
    color: var(--color-text-dim);
    padding-left: 1.5rem;
    position: relative;
}

.feature-list li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
}

/* ===== TECH SPECS SECTION ===== */
.tech-specs {
    background: var(--color-bg-darker);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-2xl);
}

.spec-category h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.spec-table {
    width: 100%;
    background: var(--color-surface);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--color-surface-light);
}

.spec-table tr {
    border-bottom: 1px solid var(--color-surface-light);
}

.spec-table tr:last-child {
    border-bottom: none;
}

.spec-table td {
    padding: 0.875rem 1rem;
    font-size: 0.9375rem;
}

.spec-table td:first-child {
    font-weight: 600;
    color: var(--color-text-dim);
    width: 40%;
}

.spec-table td:last-child {
    font-family: var(--font-mono);
    font-size: 0.875rem;
}

/* Architecture Diagram */
.architecture-diagram {
    background: var(--color-surface);
    padding: var(--spacing-xl);
    border-radius: 20px;
    border: 1px solid var(--color-surface-light);
}

.architecture-diagram h3 {
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-size: 1.75rem;
}

.pipeline {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.pipeline-section h4 {
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.pipeline-section.tx h4 {
    color: #EF4444;
}

.pipeline-section.rx h4 {
    color: #10B981;
}

.pipeline-flow {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    overflow-x: auto;
    padding: var(--spacing-md);
}

.pipeline-node {
    background: var(--color-bg-dark);
    padding: var(--spacing-md);
    border-radius: 12px;
    white-space: nowrap;
    font-size: 0.875rem;
    border: 1px solid var(--color-surface-light);
    min-width: 120px;
    text-align: center;
}

.pipeline-arrow {
    color: var(--color-primary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* License Tiers - 3 Cards Side by Side */
.license-tiers-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
}

.license-card {
    background: var(--color-surface);
    border: 2px solid var(--color-surface-light);
    border-radius: 16px;
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    transition: all var(--transition-base);
}

.license-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.tier-free {
    border-color: rgba(100, 116, 139, 0.3);
}

.tier-pro {
    border-color: rgba(99, 102, 241, 0.4);
}

.tier-advanced {
    border-color: rgba(249, 115, 22, 0.4);
}

.tier-header {
    text-align: center;
    margin-bottom: var(--spacing-md);
    padding-bottom: var(--spacing-md);
    border-bottom: 1px solid var(--color-surface-light);
}

.tier-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
}

.tier-free .tier-badge {
    background: linear-gradient(135deg, #64748B, #94A3B8);
    color: white;
}

.tier-pro .tier-badge {
    background: var(--gradient-primary);
    color: white;
}

.tier-advanced .tier-badge {
    background: linear-gradient(135deg, #F97316, #FBBF24);
    color: white;
}

.tier-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 0.25rem;
}

.tier-price {
    font-size: 0.9375rem;
    color: var(--color-text-dim);
    font-weight: 500;
}

.tier-features {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    flex: 1;
}

.tier-feature {
    color: var(--color-text-dim);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.tier-feature.tier-included {
    color: var(--color-text);
    font-weight: 600;
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.tier-feature.tier-highlight {
    color: var(--color-text);
    font-weight: 500;
}

.tier-feature.tier-limit {
    color: var(--color-text-muted);
}

.tier-feature.tier-support {
    color: var(--color-success);
    font-size: 0.875rem;
    font-style: italic;
}

.tier-separator {
    height: 1px;
    background: var(--color-surface-light);
    margin: 0.25rem 0;
}

.tier-activation {
    margin-top: var(--spacing-md);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-surface-light);
    text-align: center;
    font-size: 0.875rem;
    color: var(--color-text-dim);
}

.tier-activation strong {
    color: var(--color-text);
}

/* License Support Note */
.license-note {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(139, 92, 246, 0.08));
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.license-note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.license-note-text {
    color: var(--color-text-dim);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.license-note-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Usage Note */
.usage-note {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(99, 102, 241, 0.1));
    border-left: 4px solid var(--color-primary);
    border-radius: 12px;
    padding: var(--spacing-md) var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.usage-note-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.usage-note-text {
    color: var(--color-text-dim);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.usage-note-text strong {
    color: var(--color-text);
    font-weight: 600;
}

/* ===== SCREENSHOTS SECTION ===== */
.screenshots {
    background: var(--color-bg-dark);
}

.screenshot-carousel {
    position: relative;
    max-width: 400px;
    margin: 0 auto;
}

.carousel-track {
    position: relative;
    height: 800px;
}

.screenshot-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    opacity: 0;
    transform: scale(0.9);
    transition: opacity var(--transition-slow), transform var(--transition-slow);
    pointer-events: none;
}

.screenshot-item.active {
    opacity: 1;
    transform: scale(1);
    pointer-events: all;
}

.screenshot-item img {
    width: 100%;
    border-radius: 30px;
    box-shadow: var(--shadow-xl);
}

.screenshot-caption {
    text-align: center;
    margin-top: var(--spacing-md);
}

.screenshot-caption h4 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xs);
}

.screenshot-caption p {
    color: var(--color-text-dim);
    font-size: 0.9375rem;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--color-surface);
    border: 1px solid var(--color-surface-light);
    color: var(--color-text);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 2rem;
    cursor: pointer;
    transition: all var(--transition-base);
    z-index: 10;
}

.carousel-btn:hover {
    background: var(--color-surface-light);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn.prev {
    left: -60px;
}

.carousel-btn.next {
    right: -60px;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: var(--spacing-sm);
    margin-top: var(--spacing-lg);
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--color-surface);
    cursor: pointer;
    transition: all var(--transition-base);
}

.dot.active {
    background: var(--color-primary);
    width: 30px;
    border-radius: 5px;
}

/* ===== DOWNLOAD SECTION ===== */
.download {
    background: var(--gradient-hero);
}

.download-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: var(--spacing-2xl);
    align-items: center;
}

.download-text h2 {
    font-size: 2.5rem;
    margin-bottom: var(--spacing-md);
}

.download-text > p {
    color: var(--color-text-dim);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-lg);
}

.download-features {
    list-style: none;
    margin-bottom: var(--spacing-xl);
}

.download-features li {
    padding: 0.5rem 0;
    font-size: 1.125rem;
    color: var(--color-text-dim);
}

.download-note {
    margin-top: var(--spacing-md);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

.app-icon-large {
    width: 300px;
    height: 300px;
    border-radius: 60px;
    box-shadow: var(--shadow-xl);
}

/* ===== SUPPORT SECTION ===== */
.support {
    background: var(--color-bg-dark);
}

.support-content {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
    gap: var(--spacing-xl);
    align-items: center;
    background:
        linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(249, 115, 22, 0.08)),
        var(--color-surface);
    border: 1px solid var(--color-surface-light);
    border-radius: 20px;
    padding: var(--spacing-xl);
}

.support-kicker {
    color: var(--color-secondary);
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    margin-bottom: var(--spacing-xs);
    text-transform: uppercase;
}

.support-text h2 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.15;
    margin-bottom: var(--spacing-md);
}

.support-text > p:not(.support-kicker) {
    color: var(--color-text-dim);
    font-size: 1.125rem;
    max-width: 680px;
    margin-bottom: var(--spacing-lg);
}

.support-link svg {
    flex-shrink: 0;
}

.support-thanks {
    background: rgba(15, 23, 42, 0.72);
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-left: 4px solid var(--color-secondary);
    border-radius: 16px;
    padding: var(--spacing-lg);
}

.support-thanks h3 {
    color: var(--color-secondary);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
}

.support-thanks p {
    color: var(--color-text-dim);
    font-size: 1rem;
}

.support-thanks strong {
    color: var(--color-text);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--color-bg-darker);
    padding: var(--spacing-2xl) 0 var(--spacing-md);
    border-top: 1px solid var(--color-surface);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xl);
}

.footer-section h4 {
    margin-bottom: var(--spacing-md);
    color: var(--color-primary);
}

.footer-section p {
    color: var(--color-text-dim);
    font-size: 0.9375rem;
}

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

.footer-section ul li {
    margin-bottom: var(--spacing-xs);
}

.footer-section a {
    color: var(--color-text-dim);
    text-decoration: none;
    transition: color var(--transition-base);
}

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

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--color-surface);
    color: var(--color-text-muted);
    font-size: 0.875rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-cta {
        justify-content: center;
    }

    .hero-badges {
        justify-content: center;
    }

    .phone-mockup {
        width: 250px;
    }

    .floating-card {
        display: none;
    }

    .download-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .support-content {
        grid-template-columns: 1fr;
    }

    .app-icon-large {
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .hero-title {
        font-size: 2.5rem;
    }

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

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

    .carousel-btn.prev {
        left: 10px;
    }

    .carousel-btn.next {
        right: 10px;
    }

    .pipeline-flow {
        flex-direction: column;
    }

    .pipeline-arrow {
        transform: rotate(90deg);
    }

    /* License Tiers responsive - single column on tablets */
    .license-tiers-container {
        grid-template-columns: 1fr;
        gap: var(--spacing-md);
    }
}

@media (max-width: 480px) {
    .hero-cta {
        flex-direction: column;
    }

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

    .support-content {
        padding: var(--spacing-lg);
    }

    .phone-mockup {
        width: 200px;
    }

    .spec-table td {
        font-size: 0.8125rem;
        padding: 0.625rem;
    }
}
