/* ==========================================================================
   Optiotech Website - Unified CSS System
   Modern, maintainable, and scalable stylesheet
   Apple Design System Implementation
   ========================================================================== */


/* ==========================================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ========================================================================== */

:root {
    /* Apple color palette */
    --primary-color: #0071E3;
    --primary-hover: #0077ED;
    --secondary-color: #06B6D4;
    --accent-color: #8B5CF6;

    /* Backgrounds */
    --bg-white: #FFFFFF;
    --bg-light: #F5F5F7;
    --bg-lighter: #FBFBFD;
    --bg-gray: #F5F5F7;

    /* Text colors */
    --text-dark: #1D1D1F;
    --text-medium: #6E6E73;
    --text-light: #86868B;

    /* UI elements */
    --border-light: #E2E8F0;

    /* Shadows (Apple Style - subtle) */
    --shadow-none: none;
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-icon: 0 4px 8px rgba(0, 0, 0, 0.1), 0 0 0 0.5px rgba(0, 0, 0, 0.1);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-full: 980px;

    /* Spacing Scale (8px base) */
    --space-xs: 0.5rem;   /* 8px */
    --space-sm: 1rem;     /* 16px */
    --space-md: 1.5rem;   /* 24px */
    --space-lg: 2rem;     /* 32px */
    --space-xl: 3rem;     /* 48px */
    --space-2xl: 4rem;    /* 64px */
    --space-3xl: 5rem;    /* 80px */
    --space-4xl: 6rem;    /* 96px */
    --space-5xl: 8rem;    /* 128px */

    /* Apple-style easing functions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-in-out-smooth: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-spring: cubic-bezier(0.68, -0.55, 0.265, 1.55);

    /* Typography Scale */
    --font-size-xs: 0.75rem;      /* 12px */
    --font-size-sm: 0.875rem;     /* 14px */
    --font-size-base: 1rem;       /* 16px */
    --font-size-lg: 1.125rem;     /* 18px */
    --font-size-xl: 1.25rem;      /* 20px */
    --font-size-2xl: 1.5rem;      /* 24px */
    --font-size-3xl: 2rem;        /* 32px */
    --font-size-4xl: 2.5rem;      /* 40px */
    --font-size-5xl: 3rem;        /* 48px */

    /* Font Weights */
    --font-weight-normal: 400;
    --font-weight-medium: 500;
    --font-weight-semibold: 600;
    --font-weight-bold: 700;
    --font-weight-extrabold: 800;

    /* Letter Spacing (Apple Design) */
    --letter-spacing-tight: -0.022em;
    --letter-spacing-normal: -0.016em;
    --letter-spacing-relaxed: 0.011em;

    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-base: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);

    /* Z-Index Scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* ==========================================================================
   2. RESET & BASE STYLES
   ========================================================================== */

*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

/* Unstyled link wrapper */
.link-unstyled {
    text-decoration: none;
    color: inherit;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    /* Keep some subtle transitions for better UX */
    .btn,
    header nav a,
    .lang-switch {
        transition: color var(--transition-fast),
                    background-color var(--transition-fast),
                    opacity var(--transition-fast) !important;
    }
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", sans-serif;
    font-size: clamp(1.0625rem, 1rem + 0.25vw, 1.3125rem);
    line-height: 1.47;
    letter-spacing: 0.011em;
    color: var(--text-medium);
    background: var(--bg-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
    padding-top: 64px;
}

/* ==========================================================================
   3. ACCESSIBILITY
   ========================================================================== */

/* Remove default focus outline */
*:focus {
    outline: none;
}

/* Beautiful focus-visible for keyboard navigation */
*:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 3px;
    border-radius: 4px;
}

/* Visually hidden but accessible to screen readers */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-weight-bold);
    line-height: 1.05;
    letter-spacing: var(--letter-spacing-tight);
    color: var(--text-dark);
}

h1 {
    font-size: clamp(3rem, 5vw + 1rem, 5rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.05;
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 3rem);
    font-weight: var(--font-weight-bold);
    line-height: 1.08;
    letter-spacing: var(--letter-spacing-tight);
    margin-bottom: clamp(1.5rem, 3vw, 2rem);
}

h3 {
    font-size: clamp(1.5rem, 3vw + 0.25rem, 1.75rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.14;
    letter-spacing: var(--letter-spacing-normal);
    margin-bottom: var(--space-md);
}

h4 {
    font-size: clamp(1.25rem, 2vw + 0.25rem, 1.5rem);
    font-weight: var(--font-weight-semibold);
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

p {
    margin-bottom: var(--space-md);
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color var(--transition-base),
                opacity var(--transition-base);
}

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

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */

.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

/* Sections */
section {
    padding: clamp(4rem, 8vw, 6rem) 0;  /* 64px to 96px */
}

/* ==========================================================================
   6. COMPONENTS - Header
   ========================================================================== */

header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: var(--z-fixed);
    padding: var(--space-sm) 0;
    transition: transform var(--transition-slow);
    /* Hardware acceleration for smooth scrolling on iOS */
    -webkit-transform: translateZ(0) translateY(0);
    transform: translateZ(0) translateY(0);
    will-change: transform;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}


header.header-hidden {
    -webkit-transform: translateZ(0) translateY(-100%);
    transform: translateZ(0) translateY(-100%);
}

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

/* Logo */
header .logo-container {
    font-size: 22px;
    font-weight: var(--font-weight-bold);
    color: var(--text-dark);
    letter-spacing: -0.02em;
}

header .logo-container a {
    color: inherit;
    transition: color var(--transition-base);
}

header .logo-container a:hover {
    color: var(--primary-color);
}

header .logo-container .logo {
    height: 32px;
    width: auto;
    display: block;
}

/* Desktop Navigation */
header nav {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

header nav a {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    padding: 8px 12px;
    border-radius: 6px;
    transition: color var(--transition-base),
                background-color var(--transition-base);
}

header nav a:hover {
    color: var(--primary-color);
    background: transparent;
}

header nav a:active {
    background: rgba(0, 113, 227, 0.15);
    transform: scale(0.98);
}

/* Language Switcher */
.lang-switch {
    color: var(--text-dark);
    font-size: 15px;
    font-weight: var(--font-weight-medium);
    padding: 8px 16px;
    border: none;
    border-radius: var(--radius-full);
    box-shadow: inset 0 0 0 2px var(--text-dark);
    transition: color var(--transition-base),
                background-color var(--transition-base),
                box-shadow var(--transition-base);
}

.lang-switch:hover {
    color: var(--primary-color);
    background: transparent;
    box-shadow: inset 0 0 0 2px var(--primary-color);
}

.lang-switch:active {
    color: var(--primary-color);
}

/* Mobile Header */
.mobile-header-right {
    display: none;
    align-items: center;
    gap: var(--space-sm);
}

/* Hamburger Menu */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: space-around;
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 2000;
}

.hamburger span {
    width: 28px;
    height: 3px;
    background: var(--text-dark);
    border-radius: 3px;
    transition: all var(--transition-slow);
    transform-origin: center;
}

.hamburger:hover span {
    background: var(--primary-color);
}

.hamburger.active span:nth-child(1) {
    transform: translateY(10px) rotate(45deg);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
    transform: translateX(-20px);
}

.hamburger.active span:nth-child(3) {
    transform: translateY(-10px) rotate(-45deg);
}

/* Mobile Navigation Overlay */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: var(--z-modal-backdrop);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.mobile-nav {
    position: absolute;
    top: 0;
    right: 0;
    width: 280px;
    height: 100vh;
    background: var(--bg-white);
    box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-3xl) var(--space-lg) var(--space-lg);
    gap: 8px;
    transform: translateX(100%);
    transition: transform var(--transition-slow);
}

.mobile-nav-overlay.active .mobile-nav {
    transform: translateX(0);
}

.mobile-nav a {
    color: var(--text-dark);
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    padding: var(--space-sm) 20px;
    border-radius: var(--radius-sm);
    transition: background-color var(--transition-base),
                color var(--transition-base);
    display: block;
    text-align: left;
}

.mobile-nav a:hover,
.mobile-nav a:active {
    background: transparent;
    color: var(--primary-color);
}

/* ==========================================================================
   6. COMPONENTS - Hero
   ========================================================================== */

main {
    overflow-x: clip;
}

.hero {
    background: linear-gradient(135deg, #F0F9FF 0%, #E0F2FE 100%);
    padding: clamp(4rem, 8vw, 6rem) 0 clamp(5rem, 10vw, 8rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero.hero-animated {
    overflow-x: hidden;
    overflow-y: visible;
}

/* Keycap Pyramid Animation */
.keycap-pyramid {
    position: absolute;
    left: 50%;
    bottom: 100%;
    transform: translateX(-50%);
    z-index: 0;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: -30px;
    animation: keycapFadeOut 0.6s ease-out 2.5s forwards;
}

.keycap-row {
    display: flex;
    gap: 100px;
    justify-content: center;
    align-items: center;
    margin-top: -30px;
}

.keycap-row:first-child {
    margin-top: 0;
}

.keycap {
    width: 80px;
    height: 80px;
    background: linear-gradient(180deg, #fafafa 0%, #e8e8e8 100%);
    border: 1px solid #d1d1d1;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 500;
    color: #333;
    box-shadow:
        0 1px 0 1px #fff inset,
        0 -2px 0 0 #c4c4c4 inset,
        0 2px 4px rgba(0,0,0,0.15);
    opacity: 0;
    animation: keycapDrop 0.4s ease-out forwards;
}


/* Hero App Icon - appears after pyramid and stays */
.hero-app-icon {
    position: relative;
    text-align: center;
    margin-top: 60px;
    padding-bottom: 40px;
}

.hero-app-icon img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    animation: appIconFadeIn 0.4s ease-out 1.5s forwards, appIconGrow 0.5s ease-out 2.5s forwards;
}

@keyframes appIconFadeIn {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes appIconGrow {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.6);
    }
}

/* Staggered animation delays - Random-artiges schnelles Tippen */
.keycap-row:nth-child(1) .keycap:nth-child(1) { animation-delay: 0.02s; }
.keycap-row:nth-child(1) .keycap:nth-child(2) { animation-delay: 0.05s; }
.keycap-row:nth-child(1) .keycap:nth-child(3) { animation-delay: 0.03s; }
.keycap-row:nth-child(1) .keycap:nth-child(4) { animation-delay: 0.08s; }
.keycap-row:nth-child(1) .keycap:nth-child(5) { animation-delay: 0.04s; }
.keycap-row:nth-child(1) .keycap:nth-child(6) { animation-delay: 0.09s; }
.keycap-row:nth-child(1) .keycap:nth-child(7) { animation-delay: 0.01s; }
.keycap-row:nth-child(1) .keycap:nth-child(8) { animation-delay: 0.07s; }
.keycap-row:nth-child(1) .keycap:nth-child(9) { animation-delay: 0.06s; }
.keycap-row:nth-child(1) .keycap:nth-child(10) { animation-delay: 0.03s; }
.keycap-row:nth-child(1) .keycap:nth-child(11) { animation-delay: 0.08s; }
.keycap-row:nth-child(1) .keycap:nth-child(12) { animation-delay: 0.05s; }
.keycap-row:nth-child(1) .keycap:nth-child(13) { animation-delay: 0.02s; }

.keycap-row:nth-child(2) .keycap:nth-child(1) { animation-delay: 0.14s; }
.keycap-row:nth-child(2) .keycap:nth-child(2) { animation-delay: 0.11s; }
.keycap-row:nth-child(2) .keycap:nth-child(3) { animation-delay: 0.17s; }
.keycap-row:nth-child(2) .keycap:nth-child(4) { animation-delay: 0.13s; }
.keycap-row:nth-child(2) .keycap:nth-child(5) { animation-delay: 0.19s; }
.keycap-row:nth-child(2) .keycap:nth-child(6) { animation-delay: 0.12s; }
.keycap-row:nth-child(2) .keycap:nth-child(7) { animation-delay: 0.16s; }
.keycap-row:nth-child(2) .keycap:nth-child(8) { animation-delay: 0.10s; }
.keycap-row:nth-child(2) .keycap:nth-child(9) { animation-delay: 0.18s; }
.keycap-row:nth-child(2) .keycap:nth-child(10) { animation-delay: 0.15s; }
.keycap-row:nth-child(2) .keycap:nth-child(11) { animation-delay: 0.11s; }
.keycap-row:nth-child(2) .keycap:nth-child(12) { animation-delay: 0.14s; }

.keycap-row:nth-child(3) .keycap:nth-child(1) { animation-delay: 0.23s; }
.keycap-row:nth-child(3) .keycap:nth-child(2) { animation-delay: 0.26s; }
.keycap-row:nth-child(3) .keycap:nth-child(3) { animation-delay: 0.21s; }
.keycap-row:nth-child(3) .keycap:nth-child(4) { animation-delay: 0.28s; }
.keycap-row:nth-child(3) .keycap:nth-child(5) { animation-delay: 0.22s; }
.keycap-row:nth-child(3) .keycap:nth-child(6) { animation-delay: 0.27s; }
.keycap-row:nth-child(3) .keycap:nth-child(7) { animation-delay: 0.24s; }
.keycap-row:nth-child(3) .keycap:nth-child(8) { animation-delay: 0.20s; }
.keycap-row:nth-child(3) .keycap:nth-child(9) { animation-delay: 0.25s; }
.keycap-row:nth-child(3) .keycap:nth-child(10) { animation-delay: 0.29s; }
.keycap-row:nth-child(3) .keycap:nth-child(11) { animation-delay: 0.22s; }

.keycap-row:nth-child(4) .keycap:nth-child(1) { animation-delay: 0.34s; }
.keycap-row:nth-child(4) .keycap:nth-child(2) { animation-delay: 0.31s; }
.keycap-row:nth-child(4) .keycap:nth-child(3) { animation-delay: 0.38s; }
.keycap-row:nth-child(4) .keycap:nth-child(4) { animation-delay: 0.32s; }
.keycap-row:nth-child(4) .keycap:nth-child(5) { animation-delay: 0.36s; }
.keycap-row:nth-child(4) .keycap:nth-child(6) { animation-delay: 0.30s; }
.keycap-row:nth-child(4) .keycap:nth-child(7) { animation-delay: 0.37s; }
.keycap-row:nth-child(4) .keycap:nth-child(8) { animation-delay: 0.33s; }
.keycap-row:nth-child(4) .keycap:nth-child(9) { animation-delay: 0.39s; }
.keycap-row:nth-child(4) .keycap:nth-child(10) { animation-delay: 0.35s; }

.keycap-row:nth-child(5) .keycap:nth-child(1) { animation-delay: 0.44s; }
.keycap-row:nth-child(5) .keycap:nth-child(2) { animation-delay: 0.48s; }
.keycap-row:nth-child(5) .keycap:nth-child(3) { animation-delay: 0.41s; }
.keycap-row:nth-child(5) .keycap:nth-child(4) { animation-delay: 0.46s; }
.keycap-row:nth-child(5) .keycap:nth-child(5) { animation-delay: 0.42s; }
.keycap-row:nth-child(5) .keycap:nth-child(6) { animation-delay: 0.49s; }
.keycap-row:nth-child(5) .keycap:nth-child(7) { animation-delay: 0.43s; }
.keycap-row:nth-child(5) .keycap:nth-child(8) { animation-delay: 0.47s; }
.keycap-row:nth-child(5) .keycap:nth-child(9) { animation-delay: 0.45s; }

.keycap-row:nth-child(6) .keycap:nth-child(1) { animation-delay: 0.53s; }
.keycap-row:nth-child(6) .keycap:nth-child(2) { animation-delay: 0.57s; }
.keycap-row:nth-child(6) .keycap:nth-child(3) { animation-delay: 0.51s; }
.keycap-row:nth-child(6) .keycap:nth-child(4) { animation-delay: 0.58s; }
.keycap-row:nth-child(6) .keycap:nth-child(5) { animation-delay: 0.54s; }
.keycap-row:nth-child(6) .keycap:nth-child(6) { animation-delay: 0.50s; }
.keycap-row:nth-child(6) .keycap:nth-child(7) { animation-delay: 0.56s; }
.keycap-row:nth-child(6) .keycap:nth-child(8) { animation-delay: 0.52s; }

.keycap-row:nth-child(7) .keycap:nth-child(1) { animation-delay: 0.64s; }
.keycap-row:nth-child(7) .keycap:nth-child(2) { animation-delay: 0.61s; }
.keycap-row:nth-child(7) .keycap:nth-child(3) { animation-delay: 0.67s; }
.keycap-row:nth-child(7) .keycap:nth-child(4) { animation-delay: 0.62s; }
.keycap-row:nth-child(7) .keycap:nth-child(5) { animation-delay: 0.66s; }
.keycap-row:nth-child(7) .keycap:nth-child(6) { animation-delay: 0.60s; }
.keycap-row:nth-child(7) .keycap:nth-child(7) { animation-delay: 0.65s; }

.keycap-row:nth-child(8) .keycap:nth-child(1) { animation-delay: 0.73s; }
.keycap-row:nth-child(8) .keycap:nth-child(2) { animation-delay: 0.76s; }
.keycap-row:nth-child(8) .keycap:nth-child(3) { animation-delay: 0.70s; }
.keycap-row:nth-child(8) .keycap:nth-child(4) { animation-delay: 0.77s; }
.keycap-row:nth-child(8) .keycap:nth-child(5) { animation-delay: 0.72s; }
.keycap-row:nth-child(8) .keycap:nth-child(6) { animation-delay: 0.75s; }

.keycap-row:nth-child(9) .keycap:nth-child(1) { animation-delay: 0.84s; }
.keycap-row:nth-child(9) .keycap:nth-child(2) { animation-delay: 0.81s; }
.keycap-row:nth-child(9) .keycap:nth-child(3) { animation-delay: 0.86s; }
.keycap-row:nth-child(9) .keycap:nth-child(4) { animation-delay: 0.82s; }
.keycap-row:nth-child(9) .keycap:nth-child(5) { animation-delay: 0.85s; }

.keycap-row:nth-child(10) .keycap:nth-child(1) { animation-delay: 0.92s; }
.keycap-row:nth-child(10) .keycap:nth-child(2) { animation-delay: 0.95s; }
.keycap-row:nth-child(10) .keycap:nth-child(3) { animation-delay: 0.90s; }
.keycap-row:nth-child(10) .keycap:nth-child(4) { animation-delay: 0.94s; }

.keycap-row:nth-child(11) .keycap:nth-child(1) { animation-delay: 1.01s; }
.keycap-row:nth-child(11) .keycap:nth-child(2) { animation-delay: 1.04s; }
.keycap-row:nth-child(11) .keycap:nth-child(3) { animation-delay: 1.00s; }

.keycap-row:nth-child(12) .keycap:nth-child(1) { animation-delay: 1.10s; }
.keycap-row:nth-child(12) .keycap:nth-child(2) { animation-delay: 1.13s; }

@keyframes keycapDrop {
    0% {
        opacity: 0;
        transform: translate(var(--start-x, 0), var(--start-y, -30px)) rotate(0deg);
    }
    50% {
        opacity: 1;
        transform: translate(0, 0) rotate(calc(var(--wobble, 8deg) * 1));
    }
    70% {
        transform: translate(0, 0) rotate(calc(var(--wobble, 8deg) * -0.6));
    }
    85% {
        transform: translate(0, 0) rotate(calc(var(--wobble, 8deg) * 0.3));
    }
    100% {
        opacity: 1;
        transform: translate(0, 0) rotate(0deg);
    }
}

@keyframes keycapFadeOut {
    0% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

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

/* Hero animation only on product pages */
.hero.hero-animated .container {
    opacity: 0;
    animation: heroContentFadeIn 0.8s ease-out 3.0s forwards;
}

@keyframes heroContentFadeIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

    .hero.hero-animated .container {
        opacity: 1;
        animation: none;
    }

    .hero-app-icon img {
        opacity: 1;
        animation: none;
        transform: scale(1.6);
    }
}

/* Skip animation on language switch */
.skip-hero-animation .keycap-pyramid {
    display: none;
}

.skip-hero-animation .hero.hero-animated .container {
    opacity: 1;
    animation: none;
}

.skip-hero-animation .hero-app-icon img {
    opacity: 1;
    animation: none;
    transform: scale(1.6);
}

.hero .app-icon {
    width: 128px;
    height: 128px;
    margin: 0 auto var(--space-lg);
    border-radius: 28.5%;
    box-shadow: var(--shadow-icon);
    display: block;
}

@media (max-width: 768px) {
    .hero .app-icon {
        width: 96px;
        height: 96px;
    }
}

.hero h1 {
    font-size: clamp(2.5rem, 5vw + 1rem, 3.5rem);
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: clamp(1rem, 2vw, 1.5rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.hero .subtitle {
    font-size: clamp(1.25rem, 2.5vw + 0.5rem, 1.75rem);
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: clamp(1.25rem, 3vw, 2rem);
    letter-spacing: -0.015em;
    line-height: 1.2;
}

.hero .description {
    font-size: clamp(1.125rem, 2vw + 0.5rem, 1.375rem);
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    line-height: 1.47;
    letter-spacing: -0.01em;
}

.hero-buttons {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

/* ==========================================================================
   6. COMPONENTS - Buttons
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 12px var(--space-lg);
    font-size: 17px;
    font-weight: var(--font-weight-normal);
    letter-spacing: var(--letter-spacing-tight);
    line-height: 1.17;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: transform var(--transition-base) var(--ease-out-expo),
                background-color var(--transition-base),
                border-color var(--transition-base),
                box-shadow var(--transition-base);
    border: 2px solid transparent;
    cursor: pointer;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-primary:hover {
    background: var(--primary-hover);
    color: white;
    border-color: var(--primary-hover);
    transform: translateY(-1px);
}

.btn-primary:active {
    transform: translateY(0) scale(0.98);
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
}

.btn-secondary:active {
    transform: translateY(0) scale(0.98);
}

.btn:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 3px;
}

/* ==========================================================================
   6. COMPONENTS - Cards
   ========================================================================== */

.product-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    box-shadow: var(--shadow-sm);
    margin-bottom: var(--space-xl);
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    transition: transform var(--transition-base),
                box-shadow var(--transition-base);
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.product-card img {
    width: 128px;
    height: 128px;
    border-radius: 28.5%;
    box-shadow: var(--shadow-icon);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .product-card img {
        width: 96px;
        height: 96px;
    }
}

.product-info h3 {
    font-size: var(--font-size-3xl);
    margin-bottom: 12px;
    line-height: 1.15;
}

.product-info p {
    color: var(--text-light);
    font-size: var(--font-size-lg);
    margin-bottom: 20px;
}

/* Feature Cards */
.feature-card {
    background: var(--bg-lighter);
    border-radius: var(--radius-lg);
    padding: clamp(2.5rem, 3vw, 3.5rem);
    text-align: center;
    transition: transform var(--transition-base),
                background-color var(--transition-base),
                box-shadow var(--transition-base);
    border: none;
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
}

/* Apple App Store style backgrounds - Blue, Black, White pattern */
.feature-card:nth-child(3n+1) { background: #0071E3; }  /* Apple Blue */
.feature-card:nth-child(3n+2) { background: #000000; }  /* Pure Black */
.feature-card:nth-child(3n) { background: #FFFFFF; }    /* White */

/* Text color adjustments for colored cards */
.feature-card:nth-child(3n+1) h3,
.feature-card:nth-child(3n+1) p,
.feature-card:nth-child(3n+2) h3,
.feature-card:nth-child(3n+2) p {
    color: #FFFFFF !important;
}

/* Text color for white cards - all text should be same color */
.feature-card:nth-child(3n) h3,
.feature-card:nth-child(3n) p {
    color: #1D1D1F !important;
}

@media (min-width: 769px) {
    .feature-card:hover {
        transform: scale(1.02);
        box-shadow: var(--shadow-md);
        filter: brightness(1.05);
    }

    .feature-card:active {
        transform: scale(1.01);
    }
}

.feature-icon {
    font-size: clamp(56px, 8vw, 72px);
    display: flex;
    align-items: center;
    justify-content: center;
    height: clamp(56px, 8vw, 72px);
    line-height: 1;
    color: var(--text-medium);
}

.feature-icon-svg {
    width: clamp(56px, 8vw, 72px);
    height: clamp(56px, 8vw, 72px);
    color: var(--text-medium);
    fill: currentColor;
}

.feature-card h3 {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    margin: 0;
}

.feature-card p {
    color: var(--text-light);
    font-size: clamp(1.0625rem, 2.5vw + 0.25rem, 1.375rem);
    margin: 0;
}

/* ==========================================================================
   6. COMPONENTS - Pricing & Discounts
   ========================================================================== */

/* Discount Banner */
[data-discount-banner] {
    display: none;
    background: #10B981;
    color: white;
    padding: 12px var(--space-md);
    text-align: center;
    font-weight: var(--font-weight-semibold);
    font-size: clamp(0.875rem, 1.5vw + 0.25rem, 1rem);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Price Container */
.price-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.price-original {
    font-size: clamp(1rem, 2vw + 0.25rem, 1.25rem);
    color: var(--text-light);
    text-decoration: line-through;
    font-weight: var(--font-weight-medium);
}

.price-current {
    font-size: clamp(1.5rem, 3vw + 0.5rem, 2rem);
    color: var(--primary-color);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.price-row .price-current,
.price-row .price-badge {
    line-height: 1;
}

.price-badge {
    display: inline-flex;
    align-items: center;
    background: #10B981;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: clamp(0.75rem, 1.5vw + 0.125rem, 0.875rem);
    font-weight: var(--font-weight-bold);
    text-transform: none;
    letter-spacing: 0.5px;
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1) translateY(5px);
    }
    50% {
        transform: scale(1.05) translateY(5px);
    }
}

/* ==========================================================================
   6. COMPONENTS - Footer (Apple-Style)
   ========================================================================== */

footer {
    background: var(--bg-gray);
    padding: 0;
    font-size: 12px;
    line-height: 1.33337;
    color: #86868b;
}

.footer-container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 22px;
}

.footer-top {
    padding: 17px 0;
    border-bottom: 1px solid #d2d2d7;
}

.footer-top p {
    margin: 0;
    font-size: 12px;
    color: #86868b;
}

.footer-top a {
    color: #424245;
    text-decoration: underline;
}

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

.footer-links {
    padding: 17px 0;
    border-bottom: 1px solid #d2d2d7;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 20px;
    align-items: center;
}

.footer-links a {
    color: #424245;
    text-decoration: none;
    white-space: nowrap;
}

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

.footer-links .separator {
    color: #d2d2d7;
}

.footer-bottom {
    padding: 17px 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
}

.footer-copyright {
    color: #86868b;
    margin: 0;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 7px 20px;
}

.footer-legal a {
    color: #424245;
    text-decoration: none;
    white-space: nowrap;
}

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

@media (max-width: 768px) {
    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-links {
        gap: 5px 15px;
    }

    .footer-legal {
        gap: 5px 15px;
    }
}

/* ==========================================================================
   6. COMPONENTS - Video Section
   ========================================================================== */

.video-section {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-white);
}

.video-section h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.video-wrapper {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.video-wrapper video {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   6. COMPONENTS - Features Grid
   ========================================================================== */

.features {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-light);
}

.features h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-lg);
    max-width: 900px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .features-grid {
        display: flex;
        flex-direction: column;
        gap: var(--space-md);
    }

    .feature-card {
        position: sticky;
        top: 100px;
    }

    .feature-card:nth-child(1) { z-index: 1; }
    .feature-card:nth-child(2) { z-index: 2; }
    .feature-card:nth-child(3) { z-index: 3; }
    .feature-card:nth-child(4) { z-index: 4; }
    .feature-card:nth-child(5) { z-index: 5; }
    .feature-card:nth-child(6) { z-index: 6; }
    .feature-card:nth-child(7) { z-index: 7; }
    .feature-card:nth-child(8) { z-index: 8; }
    .feature-card:nth-child(9) { z-index: 9; }
    .feature-card:nth-child(10) { z-index: 10; }
}

@media (max-width: 480px) {
    .features-grid {
        gap: 20px;
    }

    .feature-card {
        padding: var(--space-md);
        gap: 12px;
        top: 90px;
    }

    .feature-icon {
        font-size: 42px;
        height: 42px;
    }

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

    .feature-card h3 {
        font-size: 20px;
    }

    .feature-card p {
        font-size: 15px;
    }
}

/* ==========================================================================
   6. COMPONENTS - Screenshots Gallery
   ========================================================================== */

.screenshots {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-white);
}

.screenshots-reverse {
    background: var(--bg-light);
}

.screenshot-header {
    text-align: center;
    padding: clamp(1.25rem, 3vw, 2rem) 0 clamp(2rem, 4vw, 3rem) 0;
    max-width: 900px;
    margin: 0 auto;
}

.screenshots h2 {
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
}

.screenshots-subtitle {
    text-align: center;
    font-size: clamp(1rem, 2vw + 0.25rem, 1.25rem);
    color: var(--text-light);
}

/* Horizontal Scroll Container */
.screenshot-scroll-wrapper {
    position: relative;
    min-height: 100vh;
}

.screenshot-scroll-wrapper-inner {
    position: sticky;
    top: 60px;
    z-index: 100;
    background: var(--bg-white);
    padding-bottom: var(--space-xl);
}

.screenshots-reverse .screenshot-scroll-wrapper-inner {
    background: var(--bg-light);
}

.screenshot-scroll-container {
    overflow-x: hidden;
    overflow-y: hidden;
    width: min(900px, calc(100vw - 48px));
    margin: 0 auto;
    border-radius: var(--radius-lg);
}

.screenshot-grid {
    display: flex;
    gap: var(--space-md);
    padding: 0;
    width: max-content;
}

.screenshot-item {
    flex: 0 0 auto;
    position: relative;
    width: min(900px, calc(100vw - 48px));
}

.screenshot-item img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    display: block;
    object-fit: cover;
    border-radius: var(--radius-lg);
    position: relative;
    z-index: 2;
}

.screenshot-caption {
    background: var(--bg-white);
    padding: 60px 20px 20px 20px;
    text-align: center;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    margin-top: -40px;
    position: relative;
    z-index: 1;
}

.screenshots-reverse .screenshot-caption {
    background: var(--bg-light);
}

.screenshot-caption h3 {
    font-size: clamp(1rem, 1.75vw + 0.25rem, 1.25rem);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin-bottom: clamp(0.5rem, 1vw, 0.75rem);
    letter-spacing: -0.01em;
}

.screenshot-caption p {
    font-size: clamp(0.875rem, 1.5vw + 0.125rem, 1.0625rem);
    color: var(--text-light);
}

/* Screenshot Pagination */
.screenshot-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding: 0;
    list-style: none;
}

.scroll-hint {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: var(--text-light);
    opacity: 0.8;
}

.screenshot-pagination-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #E2E8F0;
    transition: background var(--transition-base),
                width 0.3s var(--ease-out-expo),
                transform var(--transition-base);
    cursor: pointer;
}

.screenshot-pagination-dot.active {
    background: #64748B;
    width: 24px;
    border-radius: 4px;
}

.screenshot-pagination-dot:hover {
    background: #475569;
    opacity: 0.8;
    transform: scale(1.2);
}

/* ==========================================================================
   6. COMPONENTS - Download Section
   ========================================================================== */

.download {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: linear-gradient(135deg, #E0F2FE 0%, #F0F9FF 100%);
    text-align: center;
}

.download .download-app-icon {
    width: 128px;
    height: 128px;
    margin: 0 auto clamp(1.25rem, 3vw, 2rem);
    border-radius: 28.5%;
    box-shadow: var(--shadow-icon);
    display: block;
}

@media (max-width: 768px) {
    .download .download-app-icon {
        width: 96px;
        height: 96px;
    }
}

.download h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(0.75rem, 2vw, 1.25rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.download .price-tag {
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.375rem);
    color: var(--text-light);
    margin-bottom: clamp(2rem, 4vw, 3rem);
}

.download .btn-primary {
    font-size: 20px;
    padding: 18px 48px;
}

/* Requirements Box */
.requirements-box {
    max-width: 800px;
    margin: 60px auto 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-md);
}

.requirement-card {
    background: white;
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    text-align: left;
    box-shadow: var(--shadow-sm);
}

.requirement-card h3 {
    font-size: clamp(1.125rem, 2vw + 0.25rem, 1.375rem);
    margin-bottom: clamp(0.875rem, 2vw, 1.25rem);
}

.requirement-card ul {
    list-style: none;
}

.requirement-card li {
    padding: clamp(0.375rem, 1vw, 0.625rem) 0;
    color: var(--text-medium);
    font-size: clamp(0.9375rem, 1.5vw + 0.125rem, 1.0625rem);
    display: flex;
    align-items: flex-start;
}

.requirement-card li::before {
    content: "✓";
    color: var(--text-medium);
    font-weight: var(--font-weight-semibold);
    margin-right: 10px;
    font-size: var(--font-size-base);
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .requirements-box {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   6. COMPONENTS - Support Section
   ========================================================================== */

.support {
    padding: clamp(3.5rem, 7vw, 5rem) 0;
    background: var(--bg-light);
    text-align: center;
}

.support h2 {
    font-size: clamp(1.75rem, 3.5vw + 0.5rem, 2.25rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(0.875rem, 2vw, 1.25rem);
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.support p {
    font-size: clamp(1rem, 2vw + 0.25rem, 1.25rem);
    color: var(--text-light);
    margin-bottom: clamp(0.625rem, 1.5vw, 1rem);
}

.support a {
    padding: 4px 8px;
    border-radius: 4px;
    transition: opacity var(--transition-base),
                background-color var(--transition-base);
}

.support a:hover {
    text-decoration: underline;
    opacity: 0.8;
    background: rgba(0, 113, 227, 0.08);
}

/* ==========================================================================
   6. COMPONENTS - FAQ Section
   ========================================================================== */

.faq {
    padding: clamp(4rem, 8vw, 6rem) 0;
    background: var(--bg-white);
}

.faq h2 {
    font-size: clamp(2rem, 4vw + 0.5rem, 2.75rem);
    font-weight: 700;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: clamp(3rem, 6vw, 4.5rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-lighter);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    transition: box-shadow var(--transition-base);
}

.faq-item:hover {
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    padding: clamp(1.25rem, 3vw, 1.75rem) clamp(1.25rem, 3vw, 2rem);
    background: none;
    border: none;
    text-align: left;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--space-md);
    transition: background-color var(--transition-base);
}

.faq-question:hover {
    background: transparent;
}

.faq-question:hover h3,
.faq-question:hover .faq-icon {
    color: var(--primary-color);
}

.faq-question h3 {
    font-size: clamp(1.0625rem, 2vw + 0.25rem, 1.25rem);
    font-weight: var(--font-weight-semibold);
    color: var(--text-dark);
    margin: 0;
    flex: 1;
}

.faq-icon {
    font-size: 32px;
    color: var(--text-dark);
    transition: transform var(--transition-base), color var(--transition-base);
    flex-shrink: 0;
    font-weight: var(--font-weight-normal);
    line-height: 1;
}

.faq-item.active .faq-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    overflow-wrap: break-word;
    word-wrap: break-word;
    transition: max-height var(--transition-slow),
                padding var(--transition-slow);
    padding: 0 clamp(1.25rem, 3vw, 2rem);
}

.faq-item.active .faq-answer {
    max-height: 1000px;
    padding: 0 clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 1.75rem);
}

.faq-answer p {
    font-size: clamp(0.9375rem, 1.75vw + 0.125rem, 1.0625rem);
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: var(--space-sm);
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

.faq-answer ul {
    margin: var(--space-sm) 0;
    padding-left: var(--space-lg);
}

.faq-answer li {
    font-size: clamp(0.9375rem, 1.75vw + 0.125rem, 1.0625rem);
    color: var(--text-medium);
    line-height: 1.6;
    margin-bottom: var(--space-xs);
}

/* ==========================================================================
   6. COMPONENTS - Products Section
   ========================================================================== */

.products {
    padding: var(--space-3xl) 0;
    background: var(--bg-light);
}

.products h2 {
    text-align: center;
    margin-bottom: 60px;
}

/* ==========================================================================
   7. UTILITIES
   ========================================================================== */

/* Spacing Utilities */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-xs); }
.mt-2 { margin-top: var(--space-sm); }
.mt-3 { margin-top: var(--space-md); }
.mt-4 { margin-top: var(--space-lg); }

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-xs); }
.mb-2 { margin-bottom: var(--space-sm); }
.mb-3 { margin-bottom: var(--space-md); }
.mb-4 { margin-bottom: var(--space-lg); }

/* Text Utilities */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-primary { color: var(--primary-color); }
.text-dark { color: var(--text-dark); }
.text-light { color: var(--text-light); }

/* Display Utilities */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

/* Flex Utilities */
.justify-center { justify-content: center; }
.items-center { align-items: center; }
.flex-wrap { flex-wrap: wrap; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }

/* ==========================================================================
   8. RESPONSIVE BREAKPOINTS
   ========================================================================== */

/* Navigation Breakpoint: 1000px and below */
@media (max-width: 1000px) {
    .mobile-header-right {
        display: flex;
    }

    .hamburger {
        display: flex;
    }

    .desktop-nav {
        display: none;
    }
}

/* Tablet: 768px and below */
@media (max-width: 768px) {
    body {
        padding-top: 64px;
    }

    header .logo-container .logo {
        height: 28px;
    }

    /* Hero Adjustments */
    .hero h1 {
        font-size: 40px;
    }

    .hero .subtitle {
        font-size: 20px;
    }

    .hero .description {
        font-size: 18px;
    }

    .hero-buttons {
        gap: 12px;
    }

    /* Product Cards Stack */
    .product-card {
        flex-direction: column;
        text-align: center;
    }

    /* Section Headings */
    section h2 {
        font-size: var(--font-size-3xl);
    }
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero h1 {
        font-size: 32px;
    }

    .hero .app-icon {
        width: 120px;
        height: 120px;
    }

    .btn {
        padding: 12px var(--space-md);
        font-size: 15px;
    }

    .price-container {
        flex-direction: column;
        gap: 4px;
    }

    .price-badge {
        margin-top: 4px;
    }
}

/* Desktop: 1200px and above */
@media (min-width: 1200px) {
    .container {
        padding: 0;
    }
}

/* ==========================================================================
   DEMO VIDEO PAGES
   ========================================================================== */

.video-playback-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    padding-top: 64px;
}

.video-playback-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: var(--bg-light);
}

.video-playback-container {
    max-width: 1400px;
    width: 100%;
}

.video-playback-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    background: #000;
}

.video-playback-wrapper video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-playback-info {
    margin-top: 30px;
    text-align: center;
}

.video-playback-info h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-dark);
}

.video-duration {
    display: inline-block;
    background: var(--bg-gray);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.video-playback-info p {
    font-size: 18px;
    line-height: 1.6;
    color: var(--text-light);
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

@media (max-width: 768px) {
    .video-playback-info h1 {
        font-size: 24px;
    }
    .video-playback-info p {
        font-size: 16px;
    }
}
