/* ========================================
   Koby Landing Page - Main Styles
   ======================================== */

/* CSS Variables */
:root {
    --color-primary: #8B39E3;
    --color-primary-dark: #6B2AB8;
    --color-primary-light: #A55FED;
    --color-secondary: #0a7ea4;
    --color-secondary-light: #0d9dc9;
    
    --color-text: #1a1a2e;
    --color-text-muted: #6b7280;
    --color-text-light: #9ca3af;
    
    --color-bg: #ffffff;
    --color-bg-soft: #f9fafb;
    --color-bg-muted: #f3f4f6;
    --color-bg-lavender: #DBC4F4;
    
    --color-border: #e5e7eb;
    
    --font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-purple: 0 10px 40px -10px rgba(139, 57, 227, 0.3);
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;
    
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);
    
    --container-max: 1200px;
    --container-padding: 24px;
}

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

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

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

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

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

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

/* ========================================
   Navigation
   ======================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 16px 0;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
}

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

.nav-brand {
    font-size: 24px;
    font-weight: 700;
    color: var(--color-primary);
    z-index: 1001;
    letter-spacing: -0.5px;
}

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

.nav-link {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text);
    transition: color var(--transition-fast);
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

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

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

.nav-link.cta-link {
    background: var(--color-primary);
    color: white;
    padding: 10px 24px;
    border-radius: var(--radius-full);
    font-weight: 600;
    transition: all var(--transition-base);
}

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

.nav-link.cta-link:hover {
    background: var(--color-primary-dark);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--shadow-purple);
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    z-index: 1001;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--color-text);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

.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 */
.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--color-bg);
    z-index: 999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 32px;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

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

.mobile-nav-link {
    font-size: 24px;
    font-weight: 600;
    color: var(--color-text);
    transition: color var(--transition-fast);
}

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

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

.hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.5;
    animation: float 20s ease-in-out infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: linear-gradient(135deg, var(--color-bg-lavender) 0%, rgba(139, 57, 227, 0.2) 100%);
    top: -200px;
    right: -100px;
    animation-delay: 0s;
}

.orb-2 {
    width: 400px;
    height: 400px;
    background: linear-gradient(135deg, rgba(10, 126, 164, 0.15) 0%, rgba(139, 57, 227, 0.1) 100%);
    bottom: -100px;
    left: -50px;
    animation-delay: -7s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, var(--color-bg-lavender) 0%, rgba(255, 255, 255, 0.5) 100%);
    top: 50%;
    left: 30%;
    animation-delay: -14s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    25% {
        transform: translate(30px, -30px) scale(1.05);
    }
    50% {
        transform: translate(-20px, 20px) scale(0.95);
    }
    75% {
        transform: translate(-30px, -20px) scale(1.02);
    }
}

.hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

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

.hero-title {
    font-size: clamp(36px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 24px;
    color: var(--color-text);
}

.hero-title .highlight {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 36px;
    max-width: 480px;
    line-height: 1.7;
}

.hero-cta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.app-store-badge {
    display: inline-block;
    transition: transform var(--transition-base);
}

.app-store-badge img {
    height: 52px;
    width: auto;
}

.app-store-badge:hover {
    transform: translateY(-3px);
}

.app-store-badge.large img {
    height: 60px;
}

.cta-note {
    font-size: 13px;
    color: var(--color-text-light);
}

/* Hero Phones */
.hero-phones {
    position: relative;
    height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 1s ease 0.3s forwards;
    opacity: 0;
}

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

.phone {
    position: absolute;
    transition: transform var(--transition-slow);
}

.phone-frame {
    background: #1a1a2e;
    border-radius: 40px;
    padding: 12px;
    box-shadow: var(--shadow-xl), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    overflow: hidden;
}

.phone-screen {
    border-radius: 30px;
    width: 260px;
    height: auto;
}

.phone-back {
    transform: translateX(60px) translateY(20px) rotate(8deg);
    z-index: 1;
}

.phone-front {
    transform: translateX(-40px) translateY(-20px) rotate(-5deg);
    z-index: 2;
}

.hero-phones:hover .phone-back {
    transform: translateX(80px) translateY(30px) rotate(12deg);
}

.hero-phones:hover .phone-front {
    transform: translateX(-60px) translateY(-30px) rotate(-8deg);
}

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    color: var(--color-text-light);
    font-size: 12px;
    animation: bounce 2s ease-in-out infinite;
}

.mouse {
    width: 24px;
    height: 38px;
    border: 2px solid var(--color-text-light);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--color-text-light);
    border-radius: var(--radius-full);
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s ease-in-out infinite;
}

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

@keyframes bounce {
    0%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    50% {
        transform: translateX(-50%) translateY(-8px);
    }
}

/* ========================================
   Trust Bar
   ======================================== */
.trust-bar {
    padding: 40px 0;
    background: var(--color-bg-soft);
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.trust-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.trust-icon {
    font-size: 24px;
}

.trust-text {
    font-size: 15px;
    font-weight: 500;
    color: var(--color-text-muted);
}

.trust-divider {
    width: 1px;
    height: 24px;
    background: var(--color-border);
}

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

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

.section-tag {
    display: inline-block;
    padding: 8px 16px;
    background: linear-gradient(135deg, rgba(139, 57, 227, 0.1) 0%, rgba(10, 126, 164, 0.1) 100%);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 16px;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 17px;
    color: var(--color-text-muted);
    line-height: 1.7;
}

/* ========================================
   Features Section
   ======================================== */
.features {
    padding: 100px 0;
    background: var(--color-bg);
}

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

.feature-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

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

.feature-card:hover {
    border-color: var(--color-primary);
    box-shadow: var(--shadow-lg), 0 0 0 1px rgba(139, 57, 227, 0.1);
    transform: translateY(-4px);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, rgba(139, 57, 227, 0.1) 0%, rgba(10, 126, 164, 0.08) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--color-primary);
    transition: all var(--transition-base);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: white;
    transform: scale(1.1);
}

.feature-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 10px;
}

.feature-description {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   How It Works Section
   ======================================== */
.how-it-works {
    padding: 100px 0px 0px 0px;
    background: linear-gradient(180deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
}

.steps-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    max-width: 900px;
    margin: 0 auto;
}

.step {
    flex: 1;
    text-align: center;
    padding: 0 24px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1), 
                transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.step-number {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: white;
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-purple);
    transition: transform var(--transition-spring);
}

.step:hover .step-number {
    transform: scale(1.1);
}

.step-connector {
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    margin-top: 32px;
    flex-shrink: 0;
    opacity: 0.3;
}

.step-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.step-description {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   Value Props Section
   ======================================== */
.value-props {
    padding: 100px 0;
    background: var(--color-bg);
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
}

.value-card {
    background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 36px;
    display: flex;
    gap: 20px;
    transition: all var(--transition-base);
    opacity: 0;
    transform: translateY(20px);
}

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

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

.value-icon-wrapper {
    flex-shrink: 0;
}

.value-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-bg-lavender) 0%, rgba(139, 57, 227, 0.2) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.value-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 8px;
}

.value-description {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.6;
}

/* ========================================
   App Showcase Section
   ======================================== */
.app-showcase {
    padding: 100px 0;
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
    overflow: hidden;
}

.app-showcase .section-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.showcase-content {
    opacity: 1;
    transform: none;
}

.showcase-content .section-tag {
    margin-bottom: 16px;
}

.showcase-content .section-title {
    text-align: left;
    margin-bottom: 20px;
}

.showcase-description {
    font-size: 16px;
    color: var(--color-text-muted);
    line-height: 1.7;
    margin-bottom: 28px;
}

.showcase-features {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.showcase-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 15px;
    color: var(--color-text);
    font-weight: 500;
}

.check-icon {
    width: 24px;
    height: 24px;
    color: var(--color-primary);
    flex-shrink: 0;
}

.showcase-phone {
    position: relative;
    display: flex;
    justify-content: center;
    opacity: 1;
    transform: none;
}

.phone-mockup {
    position: relative;
    z-index: 1;
}

.phone-frame.large {
    padding: 14px;
    border-radius: 48px;
}

.phone-frame.large .phone-screen {
    width: 300px;
    border-radius: 36px;
}

.showcase-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(139, 57, 227, 0.2) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1);
        opacity: 0.8;
    }
}

/* ========================================
   Download Section
   ======================================== */
.download-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

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

.download-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 50%, var(--color-secondary) 100%);
}

.download-section .section-container {
    position: relative;
    z-index: 1;
}

.download-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.download-title {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    line-height: 1.2;
}

.download-subtitle {
    font-size: 17px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 36px;
    line-height: 1.7;
}

.download-note {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 16px;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--color-text);
    padding: 48px 0 32px;
    color: white;
}

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

.footer-links-row {
    display: flex;
    justify-content: center;
    gap: 80px;
    padding-bottom: 32px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-link-group h4 {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.4);
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-link-items {
    display: flex;
    gap: 20px;
}

.footer-link-items a {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-link-items a:hover {
    color: white;
}

.footer-bottom {
    padding-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

.footer-divider {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}

.made-with {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
}

/* ========================================
   Responsive Styles
   ======================================== */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
    }
    
    .hero-content {
        order: 1;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-cta {
        align-items: center;
    }
    
    .hero-phones {
        order: 2;
        height: 400px;
    }
    
    .phone-screen {
        width: 200px;
    }
    
    .phone-back {
        transform: translateX(40px) translateY(15px) rotate(6deg);
    }
    
    .phone-front {
        transform: translateX(-30px) translateY(-15px) rotate(-4deg);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .app-showcase .section-container {
        grid-template-columns: 1fr;
        gap: 60px;
    }
    
    .showcase-content .section-title {
        text-align: center;
    }
    
    .showcase-content .section-tag {
        display: block;
        text-align: center;
    }
    
    .showcase-description {
        text-align: center;
    }
    
    .showcase-features {
        align-items: center;
    }
    
    .showcase-phone {
        order: -1;
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    :root {
        --container-padding: 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .mobile-menu {
        display: flex;
    }
    
    .hero {
        padding: 100px 0 60px;
        min-height: auto;
    }
    
    .hero-phones {
        height: 350px;
    }
    
    .phone-screen {
        width: 180px;
    }
    
    .phone-frame {
        border-radius: 32px;
        padding: 10px;
    }
    
    .phone-screen {
        border-radius: 24px;
    }
    
    .scroll-indicator {
        display: none;
    }
    
    .trust-container {
        gap: 20px;
    }
    
    .trust-divider {
        display: none;
    }
    
    .trust-item {
        flex: 0 0 calc(50% - 10px);
        justify-content: center;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .steps-container {
        flex-direction: column;
        gap: 0;
    }
    
    .step {
        padding: 24px 0;
    }
    
    .step-connector {
        width: 2px;
        height: 40px;
        margin: 0 auto;
    }
    
    .footer-links-row {
        flex-direction: column;
        align-items: center;
        gap: 32px;
    }
    
    .footer-link-group {
        text-align: center;
    }
    
    .footer-link-items {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 4px;
    }
    
    .footer-divider {
        display: none;
    }
    
    .phone-frame.large {
        padding: 10px;
        border-radius: 40px;
    }
    
    .phone-frame.large .phone-screen {
        width: 240px;
        border-radius: 32px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .hero-subtitle {
        font-size: 16px;
    }
    
    .hero-phones {
        height: 300px;
    }
    
    .phone-screen {
        width: 150px;
    }
    
    .phone-back {
        transform: translateX(30px) translateY(10px) rotate(5deg);
    }
    
    .phone-front {
        transform: translateX(-25px) translateY(-10px) rotate(-3deg);
    }
    
    .section-title {
        font-size: 26px;
    }
    
    .feature-card,
    .value-card {
        padding: 24px;
    }
    
    .value-card {
        flex-direction: column;
        text-align: center;
    }
    
    .value-icon-wrapper {
        display: flex;
        justify-content: center;
    }
    
}

/* ========================================
   Utility Classes
   ======================================== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Animation utilities for JS */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

.fade-in-up {
    animation: fadeInUp 0.6s ease forwards;
}

.slide-in-left {
    animation: slideInLeft 0.6s ease forwards;
}

.slide-in-right {
    animation: slideInRight 0.6s ease forwards;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   Legal Pages (Privacy Policy & Terms of Use)
   ======================================== */

/* Legal Page Body */
body.legal-page {
    background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg-soft) 100%);
}

/* Legal Hero Section */
.legal-hero {
    padding: 140px 0 60px;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.legal-hero-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.legal-hero-bg .gradient-orb {
    opacity: 0.35;
}

.legal-hero-bg .orb-1 {
    width: 500px;
    height: 500px;
    top: -150px;
    right: -50px;
}

.legal-hero-bg .orb-2 {
    width: 350px;
    height: 350px;
    bottom: -100px;
    left: -50px;
}

.legal-hero-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    position: relative;
    z-index: 1;
}

.legal-tag {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, rgba(139, 57, 227, 0.12) 0%, rgba(10, 126, 164, 0.12) 100%);
    color: var(--color-primary);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    border-radius: var(--radius-full);
    margin-bottom: 20px;
    animation: fadeInUp 0.6s ease forwards;
}

.legal-title {
    font-size: clamp(32px, 5vw, 52px);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: 12px;
    line-height: 1.15;
    animation: fadeInUp 0.6s ease 0.1s forwards;
    opacity: 0;
}

.legal-subtitle {
    font-size: 18px;
    color: var(--color-text-muted);
    margin-bottom: 28px;
    animation: fadeInUp 0.6s ease 0.2s forwards;
    opacity: 0;
}

.legal-meta {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease 0.3s forwards;
    opacity: 0;
}

.legal-meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--color-text-muted);
}

.legal-meta-item svg {
    width: 18px;
    height: 18px;
    color: var(--color-primary);
}

/* Legal Content Layout */
.legal-content {
    padding: 60px 0 100px;
}

.legal-container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--container-padding);
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 60px;
    align-items: flex-start;
}

/* Table of Contents Sidebar */
.legal-sidebar {
    position: sticky;
    top: 100px;
}

.toc-wrapper {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.toc-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--color-border);
}

.toc-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-height: calc(100vh - 240px);
    overflow-y: auto;
}

.toc-link {
    font-size: 13px;
    color: var(--color-text-muted);
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
    line-height: 1.4;
}

.toc-link:hover {
    color: var(--color-primary);
    background: rgba(139, 57, 227, 0.06);
}

.toc-link.active {
    color: var(--color-primary);
    background: rgba(139, 57, 227, 0.1);
    font-weight: 500;
}

/* Legal Article */
.legal-article {
    min-width: 0;
}

/* Legal Intro Card */
.legal-intro-card {
    display: flex;
    gap: 20px;
    background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    margin-bottom: 40px;
    animation: fadeInUp 0.6s ease 0.4s forwards;
    opacity: 0;
}

.intro-card-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.intro-card-icon svg {
    width: 24px;
    height: 24px;
}

.intro-card-content {
    flex: 1;
}

.intro-card-content p {
    font-size: 14px;
    color: var(--color-text-muted);
    margin-bottom: 6px;
    line-height: 1.6;
}

.intro-card-content p:last-child {
    margin-bottom: 0;
}

.intro-card-content a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.intro-card-content a:hover {
    color: var(--color-primary-dark);
}

/* Legal Sections */
.legal-section {
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
    animation: fadeInUp 0.5s ease forwards;
    opacity: 0;
}

.legal-section:last-of-type {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Staggered animation for sections */
.legal-section:nth-child(1) { animation-delay: 0.1s; }
.legal-section:nth-child(2) { animation-delay: 0.15s; }
.legal-section:nth-child(3) { animation-delay: 0.2s; }
.legal-section:nth-child(4) { animation-delay: 0.25s; }
.legal-section:nth-child(5) { animation-delay: 0.3s; }
.legal-section:nth-child(6) { animation-delay: 0.35s; }
.legal-section:nth-child(7) { animation-delay: 0.4s; }
.legal-section:nth-child(8) { animation-delay: 0.45s; }
.legal-section:nth-child(9) { animation-delay: 0.5s; }
.legal-section:nth-child(10) { animation-delay: 0.55s; }
.legal-section:nth-child(n+11) { animation-delay: 0.6s; }

.section-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 22px;
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: 20px;
    line-height: 1.3;
}

.section-number {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.subsection-heading {
    font-size: 17px;
    font-weight: 600;
    color: var(--color-text);
    margin: 28px 0 14px;
    padding-left: 16px;
    border-left: 3px solid var(--color-primary);
}

.subsubsection-heading {
    font-size: 15px;
    font-weight: 600;
    color: var(--color-text);
    margin: 20px 0 10px;
}

.legal-section p {
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 16px;
}

.legal-section p:last-child {
    margin-bottom: 0;
}

.legal-section a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

.legal-section a:hover {
    color: var(--color-primary-dark);
    text-decoration: underline;
}

.legal-section strong {
    color: var(--color-text);
    font-weight: 600;
}

/* Legal Lists */
.legal-list {
    list-style: none;
    margin: 16px 0;
    padding: 0;
}

.legal-list li {
    position: relative;
    padding-left: 28px;
    font-size: 15px;
    color: var(--color-text-muted);
    line-height: 1.75;
    margin-bottom: 10px;
}

.legal-list li::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 10px;
    width: 6px;
    height: 6px;
    background: var(--color-primary);
    border-radius: 50%;
}

.legal-list li:last-child {
    margin-bottom: 0;
}

.legal-list-nested {
    list-style: decimal;
    margin: 12px 0 12px 28px;
    padding: 0;
}

.legal-list-nested li {
    padding-left: 8px;
}

.legal-list-nested li::before {
    display: none;
}

/* Legal Notice Boxes */
.legal-notice {
    display: flex;
    gap: 16px;
    padding: 20px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
}

.legal-notice.info {
    background: linear-gradient(135deg, rgba(10, 126, 164, 0.08) 0%, rgba(10, 126, 164, 0.04) 100%);
    border: 1px solid rgba(10, 126, 164, 0.2);
}

.legal-notice.warning {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(245, 158, 11, 0.04) 100%);
    border: 1px solid rgba(245, 158, 11, 0.25);
}

.notice-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.legal-notice.info .notice-icon {
    color: var(--color-secondary);
}

.legal-notice.warning .notice-icon {
    color: #d97706;
}

.notice-icon svg {
    width: 22px;
    height: 22px;
}

.notice-content {
    flex: 1;
    font-size: 14px;
    color: var(--color-text-muted);
    line-height: 1.65;
}

.notice-content strong {
    color: var(--color-text);
}

/* Contact Card */
.contact-card {
    background: linear-gradient(135deg, var(--color-bg-soft) 0%, var(--color-bg) 100%);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    margin-top: 16px;
}

.contact-card p {
    margin-bottom: 8px !important;
}

.contact-card p:last-child {
    margin-bottom: 0 !important;
}

/* Back to Top */
.back-to-top-wrapper {
    margin-top: 60px;
    padding-top: 32px;
    border-top: 1px solid var(--color-border);
    text-align: center;
}

.back-to-top {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    color: var(--color-text-muted);
    transition: all var(--transition-base);
}

.back-to-top:hover {
    color: var(--color-primary);
    border-color: var(--color-primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.back-to-top svg {
    width: 18px;
    height: 18px;
}

/* Nav Brand Link */
.nav-brand-link {
    display: flex;
    align-items: center;
    text-decoration: none;
}

/* Legal Page Responsive Styles */
@media (max-width: 1024px) {
    .legal-container {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .legal-sidebar {
        position: static;
        order: -1;
    }
    
    .toc-wrapper {
        padding: 20px;
    }
    
    .toc-nav {
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }
    
    .toc-link {
        font-size: 12px;
        padding: 6px 10px;
    }
}

@media (max-width: 768px) {
    .legal-hero {
        padding: 120px 0 50px;
    }
    
    .legal-meta {
        gap: 20px;
    }
    
    .legal-meta-item {
        font-size: 13px;
    }
    
    .legal-content {
        padding: 40px 0 80px;
    }
    
    .toc-nav {
        grid-template-columns: 1fr;
    }
    
    .legal-intro-card {
        flex-direction: column;
        padding: 20px;
    }
    
    .intro-card-icon {
        width: 44px;
        height: 44px;
    }
    
    .section-heading {
        font-size: 19px;
        gap: 12px;
    }
    
    .section-number {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
    
    .subsection-heading {
        font-size: 16px;
        margin: 24px 0 12px;
    }
    
    .legal-section {
        margin-bottom: 36px;
        padding-bottom: 36px;
    }
    
    .legal-notice {
        flex-direction: column;
        gap: 12px;
        padding: 16px 20px;
    }
}

@media (max-width: 480px) {
    .legal-title {
        font-size: 28px;
    }
    
    .legal-subtitle {
        font-size: 16px;
    }
    
    .legal-meta {
        flex-direction: column;
        gap: 12px;
        align-items: center;
    }
    
    .section-heading {
        font-size: 17px;
    }
    
    .legal-section p,
    .legal-list li {
        font-size: 14px;
    }
    
    .contact-card {
        padding: 16px;
    }
}

