/* ===== CSS Variables ===== */
:root {
    --primary: #9B59B6;
    --primary-dark: #7D3C98;
    --primary-light: #BB8FCE;
    --secondary: #C9A86C;
    --accent-cyan: #00D9C4;
    --accent-pink: #FF6B9D;
    --accent-purple: #8B5CF6;
    
    --bg-dark: #0D0D1A;
    --bg-darker: #080810;
    --bg-card: rgba(255, 255, 255, 0.03);
    --bg-card-hover: rgba(255, 255, 255, 0.06);
    
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    
    --border: rgba(255, 255, 255, 0.1);
    --border-focus: rgba(155, 89, 182, 0.5);
    
    --gradient-primary: linear-gradient(135deg, #9B59B6 0%, #C9A86C 50%, #00D9C4 100%);
    --gradient-hero: radial-gradient(ellipse at 50% 0%, rgba(155, 89, 182, 0.3) 0%, transparent 50%);
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(0, 0, 0, 0.5);
    --shadow-glow: 0 0 40px rgba(155, 89, 182, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    
    --transition: 0.3s ease;
    --transition-fast: 0.15s ease;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

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

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

/* ===== Container ===== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: var(--transition);
    white-space: nowrap;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 16px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--text-primary);
    box-shadow: var(--shadow-sm), var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md), 0 0 60px rgba(155, 89, 182, 0.4);
}

.btn-secondary {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
    padding: 14px 28px;
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--text-primary);
}

.btn .icon {
    width: 20px;
    height: 20px;
}

/* ===== Navigation ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    background: rgba(13, 13, 26, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    transition: var(--transition);
}

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

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

.logo-image {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
}

.logo-text {
    font-size: 24px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.nav-links a:not(.btn) {
    color: var(--text-secondary);
    font-weight: 500;
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    background: var(--bg-darker);
    padding: 24px;
    flex-direction: column;
    gap: 16px;
    border-bottom: 1px solid var(--border);
    z-index: 999;
}

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

.mobile-menu a {
    color: var(--text-secondary);
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

/* ===== Hero Section ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: -1;
}

.hero-gradient {
    position: absolute;
    inset: 0;
    background: var(--gradient-hero);
}

.floating-symbols {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.symbol {
    position: absolute;
    font-size: 40px;
    color: var(--primary);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out;
}

.s1 { top: 10%; left: 5%; animation-delay: 0s; }
.s2 { top: 20%; right: 10%; animation-delay: -3s; }
.s3 { top: 50%; left: 3%; animation-delay: -6s; }
.s4 { top: 70%; right: 5%; animation-delay: -9s; }
.s5 { top: 30%; left: 15%; animation-delay: -12s; color: var(--accent-cyan); }
.s6 { top: 60%; right: 15%; animation-delay: -15s; color: var(--accent-pink); }
.s7 { top: 80%; left: 20%; animation-delay: -18s; }
.s8 { top: 40%; right: 20%; animation-delay: -21s; color: var(--secondary); }

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(20px) rotate(-5deg); }
}

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

.hero-text {
    max-width: 560px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.badge-icon {
    font-size: 16px;
}

.hero-title {
    font-size: 56px;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
}

.hero-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 24px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    margin-bottom: 32px;
    height: 110px;
    overflow: hidden;
}

.demo-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    width: 200px;
    flex-shrink: 0;
}

.demo-box.cipher {
    width: 260px;
}

.demo-label {
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.demo-text {
    font-size: 20px;
    font-weight: 600;
    height: 28px;
    line-height: 28px;
    white-space: nowrap;
}

.demo-cipher {
    font-size: 24px;
    color: var(--secondary);
    height: 34px;
    line-height: 34px;
    white-space: nowrap;
}

.demo-arrow {
    font-size: 24px;
    color: var(--primary);
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

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

.stat {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 28px;
    font-weight: 700;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 14px;
    color: var(--text-muted);
}

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

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ===== 3D Carousel ===== */
.carousel-3d {
    position: relative;
    width: 340px;
    user-select: none;
}

.carousel-3d-scene {
    perspective: 1000px;
    perspective-origin: 50% 50%;
    width: 100%;
    height: 520px;
    overflow: visible;
}

.carousel-3d-track {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
}

.carousel-3d-card {
    position: absolute;
    top: 0;
    left: 50%;
    width: 240px;
    height: 520px;
    margin-left: -120px;
    border-radius: 24px;
    overflow: hidden;
    backface-visibility: hidden;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                filter 0.7s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, opacity, filter;
    cursor: pointer;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.carousel-3d-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* Active card (center) */
.carousel-3d-card[data-pos="0"] {
    transform: translateX(0) translateZ(60px) rotateY(0deg) scale(1);
    opacity: 1;
    filter: brightness(1);
    z-index: 5;
    box-shadow: 0 20px 60px rgba(155, 89, 182, 0.3),
                0 0 40px rgba(155, 89, 182, 0.15);
}

/* Left card */
.carousel-3d-card[data-pos="-1"] {
    transform: translateX(-170px) translateZ(-40px) rotateY(25deg) scale(0.85);
    opacity: 0.6;
    filter: brightness(0.55);
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Right card */
.carousel-3d-card[data-pos="1"] {
    transform: translateX(170px) translateZ(-40px) rotateY(-25deg) scale(0.85);
    opacity: 0.6;
    filter: brightness(0.55);
    z-index: 3;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

/* Far left */
.carousel-3d-card[data-pos="-2"] {
    transform: translateX(-280px) translateZ(-120px) rotateY(40deg) scale(0.7);
    opacity: 0.25;
    filter: brightness(0.35);
    z-index: 1;
    box-shadow: none;
}

/* Far right */
.carousel-3d-card[data-pos="2"] {
    transform: translateX(280px) translateZ(-120px) rotateY(-40deg) scale(0.7);
    opacity: 0.25;
    filter: brightness(0.35);
    z-index: 1;
    box-shadow: none;
}

/* Hidden cards */
.carousel-3d-card[data-pos="hidden"] {
    transform: translateX(0) translateZ(-200px) scale(0.5);
    opacity: 0;
    filter: brightness(0);
    z-index: 0;
    pointer-events: none;
}

/* Reflection/glow under center card */
.carousel-3d-scene::after {
    content: '';
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 60px;
    background: radial-gradient(ellipse, rgba(155, 89, 182, 0.2) 0%, transparent 70%);
    filter: blur(10px);
    pointer-events: none;
}

/* Dots */
.carousel-3d-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 40px;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--text-muted);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.35;
}

.carousel-dot:hover {
    opacity: 0.7;
    transform: scale(1.2);
}

.carousel-dot.active {
    width: 28px;
    border-radius: 4px;
    background: var(--primary);
    opacity: 1;
    box-shadow: 0 0 12px rgba(155, 89, 182, 0.5);
}

/* ===== Section Styles ===== */
section {
    padding: 120px 0;
}

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

.section-badge {
    display: inline-block;
    padding: 6px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-light);
    margin-bottom: 16px;
}

.section-title {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-secondary);
}

/* ===== Features Section ===== */
.features {
    background: var(--bg-darker);
}

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

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: var(--transition);
}

.feature-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--primary);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    font-size: 28px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

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

/* ===== How It Works Section ===== */
.how-it-works {
    position: relative;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 48px;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
}

.steps::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 48px;
    bottom: 48px;
    width: 2px;
    background: var(--border);
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 32px;
}

.step-number {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: 50%;
    font-size: 24px;
    font-weight: 700;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.step-content {
    flex: 1;
    padding-top: 8px;
}

.step-content h3 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
    font-size: 16px;
}

.step-visual {
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
}

.step-icon {
    font-size: 36px;
}

/* ===== Language Packs Section ===== */
.language-packs {
    background: var(--bg-darker);
}

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

.pack-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: var(--transition);
    text-decoration: none;
    display: block;
    color: inherit;
}

.pack-card:hover {
    border-color: var(--pack-color);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(var(--pack-color), 0.2);
}

.pack-preview {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(0,0,0,0.3), rgba(0,0,0,0.1));
    border-bottom: 1px solid var(--border);
}

.pack-symbols {
    font-size: 32px;
    color: var(--pack-color);
    letter-spacing: 4px;
}

.pack-info {
    padding: 20px;
}

.pack-info h3 {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--pack-color);
}

.pack-info p {
    font-size: 14px;
    color: var(--text-secondary);
}

.packs-cta {
    text-align: center;
    margin-top: 48px;
}

.packs-cta p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}

/* ===== Cipheus+ Pricing Section ===== */
.cipheus-plus {
    position: relative;
    background: var(--bg-darker);
}

.pricing-grid {
    display: flex;
    justify-content: center;
    gap: 32px;
    max-width: 880px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    flex: 1;
    max-width: 400px;
    min-width: 0;
    padding: 40px 32px;
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius-xl);
    position: relative;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

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

.pricing-card.featured {
    border-color: var(--primary);
    background: linear-gradient(160deg, rgba(155, 89, 182, 0.12) 0%, rgba(201, 168, 108, 0.06) 50%, rgba(0, 217, 196, 0.04) 100%);
    box-shadow: 0 0 60px rgba(155, 89, 182, 0.2), 0 4px 24px rgba(0, 0, 0, 0.3);
}

.pricing-card.featured:hover {
    border-color: var(--primary-light);
    box-shadow: 0 0 80px rgba(155, 89, 182, 0.25), 0 8px 32px rgba(0, 0, 0, 0.4);
}

.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 24px;
    background: var(--gradient-primary);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(155, 89, 182, 0.4);
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.pricing-header h3 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
}

.pricing-card.featured .pricing-header h3 {
    font-size: 28px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-size: 40px;
    font-weight: 800;
}

.pricing-card.featured .price-amount {
    font-size: 48px;
}

.price-period {
    font-size: 16px;
    color: var(--text-muted);
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    font-size: 15px;
    color: var(--text-secondary);
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features .check {
    color: var(--accent-cyan);
    font-size: 14px;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 217, 196, 0.1);
    border-radius: 50%;
}

.pricing-features .check.plus {
    color: var(--primary-light);
    background: rgba(155, 89, 182, 0.15);
}

.pricing-bonus {
    padding: 16px 20px;
    background: rgba(155, 89, 182, 0.1);
    border: 1px solid rgba(155, 89, 182, 0.25);
    border-radius: var(--radius-md);
    text-align: center;
    margin-top: auto;
}

.pricing-bonus p {
    font-size: 14px;
    color: var(--primary-light);
    line-height: 1.5;
    margin: 0;
}

/* ===== CTA Section ===== */
.cta-section {
    background: var(--gradient-hero);
    position: relative;
}

.cta-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 64px;
}

.cta-text {
    max-width: 500px;
}

.cta-text h2 {
    font-size: 40px;
    font-weight: 700;
    margin-bottom: 16px;
}

.cta-text > p {
    font-size: 18px;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.app-store-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    background: #000;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    transition: var(--transition);
}

.app-store-btn:hover {
    background: #1a1a1a;
    border-color: var(--text-secondary);
}

.app-store-btn svg {
    width: 28px;
    height: 28px;
}

.app-store-btn .small {
    display: block;
    font-size: 11px;
    color: var(--text-secondary);
}

.app-store-btn .large {
    display: block;
    font-size: 18px;
    font-weight: 600;
}

.coming-soon {
    font-size: 14px;
    color: var(--text-muted);
}

.cta-visual {
    flex-shrink: 0;
}

.app-icon-large {
    width: 200px;
    height: 200px;
    border-radius: 48px;
    overflow: hidden;
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.app-icon-large img {
    width: 100%;
    height: 100%;
}

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

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

.footer-brand {
    max-width: 280px;
}

.footer-brand .logo {
    margin-bottom: 16px;
}

.footer-tagline {
    color: var(--text-secondary);
    font-size: 14px;
}

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

.footer-column h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer-column a {
    display: block;
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 12px;
}

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

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

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

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 48px;
        text-align: center;
    }
    
    .hero-text {
        max-width: 100%;
    }
    
    .badge {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-title {
        font-size: 44px;
    }
    
    .hero-demo {
        flex-direction: column;
        text-align: center;
        height: 180px;
    }
    
    .demo-box {
        width: 180px;
    }
    
    .demo-box.cipher {
        width: 200px;
    }
    
    .demo-arrow {
        transform: rotate(90deg);
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .carousel-3d {
        width: 320px;
    }
    
    .carousel-3d-scene {
        height: 480px;
    }
    
    .carousel-3d-card {
        width: 220px;
        height: 480px;
        margin-left: -110px;
        border-radius: 22px;
    }
    
    .carousel-3d-card[data-pos="-1"] {
        transform: translateX(-150px) translateZ(-35px) rotateY(22deg) scale(0.84);
    }
    
    .carousel-3d-card[data-pos="1"] {
        transform: translateX(150px) translateZ(-35px) rotateY(-22deg) scale(0.84);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .packs-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        max-width: 720px;
        gap: 24px;
    }
    
    .cta-content {
        flex-direction: column;
        text-align: center;
    }
    
    .cta-buttons {
        justify-content: center;
    }
    
    .footer-content {
        flex-direction: column;
        gap: 48px;
    }
    
    .footer-brand {
        max-width: 100%;
        text-align: center;
    }
    
    .footer-brand .logo {
        justify-content: center;
    }
    
    .footer-links {
        justify-content: center;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        padding-top: 100px;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .section-title {
        font-size: 32px;
    }
    
    .features-grid,
    .packs-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-grid {
        flex-direction: column;
        align-items: center;
        max-width: 400px;
    }
    
    .pricing-card {
        max-width: 100%;
        width: 100%;
    }
    
    .steps::before {
        display: none;
    }
    
    .step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 16px;
    }
    
    .step-visual {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 16px;
    }
    
    .stat-divider {
        width: 40px;
        height: 1px;
    }
    
    .footer-links {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .hero-cta {
        flex-direction: column;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .carousel-3d {
        width: 280px;
    }
    
    .carousel-3d-scene {
        height: 440px;
    }
    
    .carousel-3d-card {
        width: 200px;
        height: 440px;
        margin-left: -100px;
        border-radius: 20px;
    }
    
    .carousel-3d-card[data-pos="-1"] {
        transform: translateX(-130px) translateZ(-30px) rotateY(20deg) scale(0.82);
    }
    
    .carousel-3d-card[data-pos="1"] {
        transform: translateX(130px) translateZ(-30px) rotateY(-20deg) scale(0.82);
    }
    
    .carousel-3d-card[data-pos="-2"],
    .carousel-3d-card[data-pos="2"] {
        opacity: 0;
    }
}

/* ===== Language Switcher ===== */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-left: 16px;
}

.lang-btn {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    color: var(--text-primary);
    background: var(--bg-card-hover);
}

.lang-btn.active {
    color: var(--text-primary);
    background: var(--primary);
}

/* Mobile language switcher */
.lang-switcher.mobile {
    margin-left: 0;
    margin-top: 16px;
    justify-content: center;
}

@media (max-width: 768px) {
    .nav-links .lang-switcher {
        display: none;
    }
    
    .mobile-menu .lang-switcher {
        display: flex;
    }
}

@media (min-width: 769px) {
    .mobile-menu .lang-switcher {
        display: none;
    }
}
