/* ===================================
   KaAni Landing Page Styles
   Matching the app's cyan/blue visual language
   =================================== */

/* CSS Custom Properties */
:root {
    /* Color Palette - Matching app's cyan/blue theme */
    --primary-hue: 195;
    --primary: hsl(195, 100%, 50%);
    /* Bright cyan like the app */
    --primary-dark: hsl(195, 100%, 40%);
    --primary-light: hsl(195, 100%, 65%);

    --accent-hue: 200;
    --accent: hsl(200, 100%, 55%);
    --accent-dark: hsl(200, 100%, 45%);

    --secondary: hsl(210, 100%, 60%);

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    --gradient-subtle: linear-gradient(135deg, hsl(200, 30%, 8%) 0%, hsl(210, 25%, 6%) 100%);
    --gradient-glow: radial-gradient(ellipse at center, hsla(195, 100%, 50%, 0.25) 0%, transparent 70%);

    /* Dark Theme Colors - Pure black like the app */
    --bg-primary: hsl(0, 0%, 0%);
    --bg-secondary: hsl(0, 0%, 5%);
    --bg-tertiary: hsl(0, 0%, 10%);
    --bg-card: hsla(200, 20%, 12%, 0.6);

    /* Text Colors */
    --text-primary: hsl(0, 0%, 98%);
    --text-secondary: hsl(200, 10%, 65%);
    --text-muted: hsl(200, 10%, 45%);

    /* Borders */
    --border-color: hsla(195, 50%, 30%, 0.25);
    --border-glow: hsla(195, 100%, 50%, 0.5);

    /* Shadows */
    --shadow-sm: 0 2px 8px hsla(0, 0%, 0%, 0.4);
    --shadow-md: 0 8px 30px hsla(0, 0%, 0%, 0.5);
    --shadow-lg: 0 20px 60px hsla(0, 0%, 0%, 0.6);
    --shadow-glow: 0 0 40px hsla(195, 100%, 50%, 0.35);

    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 6rem;

    /* Typography */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-size-sm: 0.875rem;
    --font-size-base: 1rem;
    --font-size-lg: 1.125rem;
    --font-size-xl: 1.5rem;
    --font-size-2xl: 2rem;
    --font-size-3xl: 3rem;
    --font-size-4xl: 4rem;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 32px;
    --radius-full: 9999px;

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

/* Reset & Base Styles */
*,
*::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: var(--font-size-base);
    line-height: 1.6;
    color: var(--text-primary);
    background: var(--bg-primary);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Background Effects */
.bg-gradient {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    z-index: -3;
}

.bg-gradient::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background:
        radial-gradient(ellipse 800px 800px at 20% 30%, hsla(195, 100%, 40%, 0.15) 0%, transparent 50%),
        radial-gradient(ellipse 600px 600px at 80% 60%, hsla(200, 80%, 35%, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 500px 500px at 50% 80%, hsla(210, 70%, 30%, 0.1) 0%, transparent 50%);
    animation: bgPulse 20s ease-in-out infinite;
}

@keyframes bgPulse {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(2%, 1%) scale(1.02);
    }

    66% {
        transform: translate(-1%, 2%) scale(0.98);
    }
}

.floating-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -2;
    overflow: hidden;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.05;
    filter: blur(60px);
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: 10%;
    left: -5%;
    animation: float1 25s ease-in-out infinite;
}

.shape-2 {
    width: 300px;
    height: 300px;
    background: var(--accent);
    top: 50%;
    right: -5%;
    animation: float2 20s ease-in-out infinite;
}

.shape-3 {
    width: 250px;
    height: 250px;
    background: var(--secondary);
    bottom: 10%;
    left: 30%;
    animation: float3 22s ease-in-out infinite;
}

.shape-4 {
    width: 200px;
    height: 200px;
    background: var(--primary-light);
    top: 30%;
    right: 30%;
    animation: float4 18s ease-in-out infinite;
}

@keyframes float1 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(50px, 30px) rotate(10deg);
    }
}

@keyframes float2 {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    50% {
        transform: translate(-40px, -50px) rotate(-15deg);
    }
}

@keyframes float3 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(30px, -40px);
    }
}

@keyframes float4 {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(-20px, 30px);
    }
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
}

/* ===================================
   Navigation
   =================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: var(--space-sm) 0;
    background: hsla(0, 0%, 0%, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    text-decoration: none;
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--text-primary);
    transition: var(--transition-fast);
}

.nav-logo:hover {
    transform: scale(1.02);
}

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

.logo-text {
    color: var(--primary);
    font-weight: 700;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: var(--space-lg);
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
    position: relative;
}

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

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

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

.nav-cta {
    padding: var(--space-xs) var(--space-md);
    background: var(--gradient-primary);
    color: white;
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-sm);
    border-radius: var(--radius-full);
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: calc(80px + var(--space-xl)) 0 var(--space-xl);
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--gradient-glow);
    opacity: 0.5;
    pointer-events: none;
}

.hero-content {
    flex: 1;
    max-width: 600px;
    padding: 0 var(--space-md);
    z-index: 1;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    margin-bottom: var(--space-md);
    backdrop-filter: blur(10px);
}

.badge-icon {
    font-size: 1.2em;
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, var(--font-size-4xl));
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: var(--space-md);
    letter-spacing: -0.02em;
}

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

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

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-xl);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-sm) var(--space-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-md);
    transition: var(--transition-base);
    cursor: pointer;
    border: none;
}

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

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

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

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

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary);
    transform: translateY(-2px);
}

.btn-arrow {
    width: 16px;
    height: 16px;
    transition: var(--transition-fast);
}

.btn-secondary:hover .btn-arrow {
    transform: translateX(4px);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

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

.stat-value {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
}

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

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

/* Hero Visual - Phone Mockup */
.hero-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: var(--space-lg);
}

.phone-mockup {
    position: relative;
    z-index: 1;
    animation: phoneFloat 6s ease-in-out infinite;
    /* Size of the mockup - adjust as needed */
    width: 290px;
    height: auto;
}

@keyframes phoneFloat {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-15px);
    }
}

/* The iPhone frame image sits on top */
.phone-frame-image {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 20px 60px hsla(0, 0%, 0%, 0.6)) drop-shadow(0 0 60px hsla(195, 100%, 50%, 0.15));
}

/* Screenshot goes behind the frame */
.phone-screenshot {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 88%;
    height: 93.8%;
    object-fit: cover;
    object-position: top;
    border-radius: 40px;
    z-index: 1;
}

.screen-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.screen-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary);
}

.screen-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-primary);
}

/* Anime Cards in Phone */
.anime-card {
    display: flex;
    gap: 12px;
    padding: 12px;
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.anime-poster {
    width: 50px;
    height: 70px;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.poster-1 {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
}

.poster-2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.poster-3 {
    background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
}

.anime-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.anime-title-placeholder {
    height: 14px;
    width: 85%;
    background: var(--text-secondary);
    border-radius: 4px;
    opacity: 0.3;
}

.anime-meta-placeholder {
    height: 10px;
    width: 50%;
    background: var(--text-muted);
    border-radius: 4px;
    opacity: 0.2;
}

.anime-progress {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-full);
    transition: width 1s ease;
}

.progress-text {
    font-size: 11px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Hero Glow */
.hero-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: var(--gradient-glow);
    filter: blur(80px);
    opacity: 0.6;
    z-index: 0;
}

/* ===================================
   Features Section
   =================================== */
.features {
    padding: var(--space-2xl) 0;
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--space-xl);
}

.section-badge {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--primary);
    margin-bottom: var(--space-sm);
}

.section-title {
    font-size: clamp(2rem, 4vw, var(--font-size-3xl));
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

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

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    backdrop-filter: blur(10px);
    transition: var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

.feature-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: var(--shadow-glow);
}

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

.feature-card-large {
    grid-column: span 2;
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
}

.feature-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
}

.feature-card h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-xs);
}

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

/* ===================================
   Preview Section
   =================================== */
.preview {
    padding: var(--space-2xl) 0;
    position: relative;
    overflow: hidden;
}

.preview-showcase {
    display: flex;
    justify-content: center;
    position: relative;
}

/* Tablet Mockup */
.tablet {
    animation: tabletFloat 8s ease-in-out infinite;
}

@keyframes tabletFloat {

    0%,
    100% {
        transform: translateY(0) rotate(-1deg);
    }

    50% {
        transform: translateY(-10px) rotate(1deg);
    }
}

.tablet-frame {
    width: 700px;
    max-width: 90vw;
    aspect-ratio: 4/3;
    background: linear-gradient(145deg, #1a1a1a 0%, #0a0a0a 100%);
    border-radius: 24px;
    padding: 16px;
    box-shadow:
        var(--shadow-lg),
        inset 0 1px 0 hsla(0, 0%, 100%, 0.08),
        0 0 0 1px hsla(195, 100%, 50%, 0.1);
}

.tablet-screen {
    width: 100%;
    height: 100%;
    background: var(--bg-primary);
    border-radius: 12px;
    display: flex;
    overflow: hidden;
}

.tablet-sidebar {
    width: 180px;
    background: var(--bg-secondary);
    padding: var(--space-md);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.sidebar-item.active {
    background: var(--gradient-primary);
    color: white;
}

.sidebar-icon {
    width: 18px;
    height: 18px;
    background: currentColor;
    border-radius: 4px;
    opacity: 0.5;
}

.sidebar-item.active .sidebar-icon {
    opacity: 0.8;
}

.tablet-content {
    flex: 1;
    padding: var(--space-md);
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.content-header {
    display: flex;
}

.search-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    font-size: 13px;
    color: var(--text-muted);
    width: 250px;
}

.search-icon {
    width: 14px;
    height: 14px;
    background: currentColor;
    border-radius: 50%;
    opacity: 0.5;
}

.anime-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    flex: 1;
}

.grid-card {
    background: var(--bg-card);
    border-radius: var(--radius-sm);
    overflow: hidden;
    aspect-ratio: 3/4;
}

.grid-poster {
    width: 100%;
    height: 100%;
}

/* Cyan-themed poster gradients */
.gp-1 {
    background: linear-gradient(135deg, #00b4db 0%, #0083b0 100%);
}

.gp-2 {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
}

.gp-3 {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.gp-4 {
    background: linear-gradient(135deg, #2193b0 0%, #6dd5ed 100%);
}

.gp-5 {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.gp-6 {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* ===================================
   Download Section
   =================================== */
.download {
    padding: var(--space-2xl) 0;
}

.download-card {
    position: relative;
    background: var(--gradient-subtle);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    overflow: hidden;
}

.download-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: var(--gradient-primary);
}

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

.download-title {
    font-size: clamp(1.75rem, 3vw, var(--font-size-2xl));
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.download-text {
    color: var(--text-secondary);
    font-size: var(--font-size-lg);
    max-width: 500px;
    margin: 0 auto var(--space-lg);
}

.btn-download {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-lg);
    background: white;
    color: #000;
    border-radius: var(--radius-md);
    text-decoration: none;
    transition: var(--transition-base);
}

.btn-download:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.download-icon {
    width: 28px;
    height: 28px;
}

.download-label {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-small {
    font-size: 10px;
    opacity: 0.7;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.download-big {
    font-size: 18px;
    font-weight: 700;
}

/* Sparkles - film strip themed */
.download-visual {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.sparkle {
    position: absolute;
    font-size: 24px;
    color: var(--primary);
    opacity: 0.3;
    animation: twinkle 3s ease-in-out infinite;
}

.sparkle-1 {
    top: 20%;
    left: 15%;
    animation-delay: 0s;
}

.sparkle-2 {
    top: 30%;
    right: 20%;
    animation-delay: 1s;
}

.sparkle-3 {
    bottom: 25%;
    left: 25%;
    animation-delay: 2s;
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.2;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.2);
    }
}

/* ===================================
   Footer
   =================================== */
.footer {
    padding: var(--space-xl) 0 var(--space-lg);
    border-top: 1px solid var(--border-color);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-lg);
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-xs);
    text-decoration: none;
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--text-primary);
}

.footer-logo img {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
}

.footer-tagline {
    color: var(--text-muted);
    font-size: var(--font-size-sm);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: var(--font-size-sm);
    transition: var(--transition-fast);
}

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

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

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

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-card-large {
        grid-column: span 1;
    }
}

@media (max-width: 900px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 120px;
    }

    .hero-content {
        max-width: 100%;
    }

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

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

    .hero-visual {
        margin-top: var(--space-xl);
    }

    .tablet-sidebar {
        display: none;
    }

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

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

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

    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }

    .footer-links {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }

    .phone-frame {
        width: 240px;
        height: 500px;
    }

    .download-card {
        padding: var(--space-xl) var(--space-md);
    }

    .stat-divider {
        display: none;
    }

    .hero-stats {
        gap: var(--space-lg);
    }
}

/* ===================================
   Improved Phone Mockup - Featured View
   =================================== */
.phone-screen {
    padding: 50px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.screen-header {
    margin-bottom: 4px;
}

.screen-title {
    font-size: 22px;
    font-weight: 700;
}

/* Hero Card in Phone */
.hero-card-mockup {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 0 2px;
}

.hero-label {
    font-size: 9px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.8px;
}

.hero-anime-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-primary);
}

.hero-studio {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.hero-image {
    width: 100%;
    height: 110px;
    background: linear-gradient(135deg, #1a1a3e 0%, #4a1942 50%, #0d0d1a 100%);
    border-radius: 14px;
    position: relative;
    overflow: hidden;
}

.hero-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 40%, rgba(138, 43, 226, 0.4) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(0, 191, 255, 0.3) 0%, transparent 40%);
}

.hero-image::after {
    content: '🎭';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 32px;
    opacity: 0.3;
}

/* Carousel Section in Phone */
.carousel-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 0 2px;
}

.carousel-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.carousel-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.carousel-see-all {
    font-size: 10px;
    color: var(--primary);
    font-weight: 500;
}

.carousel-row {
    display: flex;
    gap: 8px;
}

.carousel-poster {
    width: 70px;
    height: 95px;
    border-radius: 8px;
    flex-shrink: 0;
}

.cp-1 {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.cp-2 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.cp-3 {
    background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
}

/* Phone Tab Bar */
.phone-tabbar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-around;
    padding: 8px 0 20px;
    background: var(--bg-secondary);
    border-top: 1px solid var(--border-color);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    font-size: 9px;
    color: var(--text-muted);
}

.tab-item.active {
    color: var(--primary);
}

.tab-icon {
    font-size: 14px;
}

/* ===================================
   Improved Tablet Mockup - My List View
   =================================== */
.sidebar-icon {
    width: auto;
    height: auto;
    background: none;
    font-size: 14px;
    opacity: 1;
}

.tablet-nav-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.section-header-mockup {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    background: hsla(195, 100%, 50%, 0.1);
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    width: fit-content;
}

.section-icon {
    color: var(--primary);
    font-size: 10px;
}

.list-item {
    display: flex;
    gap: 10px;
    padding: 8px;
    background: var(--bg-card);
    border-radius: 10px;
    align-items: center;
}

.list-poster {
    width: 36px;
    height: 50px;
    border-radius: 6px;
    flex-shrink: 0;
}

.lp-1 {
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
}

.lp-2 {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
}

.lp-3 {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.list-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.list-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.list-progress {
    display: flex;
    align-items: center;
    gap: 8px;
}

.list-progress .progress-bar {
    flex: 1;
    height: 4px;
    max-width: 120px;
}

.list-progress span {
    font-size: 10px;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Responsive adjustments for mockups */
@media (max-width: 480px) {
    .hero-card-mockup {
        gap: 3px;
    }

    .hero-image {
        height: 80px;
    }

    .carousel-poster {
        width: 55px;
        height: 75px;
    }

    .phone-tabbar {
        padding: 6px 0 16px;
    }
}