@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

/* ============================================
   Tesla Control - 2026 Premium Design System
   Clean, Trustworthy, Professional
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

*:focus {
    outline: none;
}

*:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

:root {
    /* Primary Colors */
    --primary: #e31937;
    --primary-dark: #c41528;
    --primary-light: #ff3d54;
    --primary-subtle: rgba(227, 25, 55, 0.08);

    /* Neutral Colors */
    --white: #ffffff;
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #eeeeee;
    --gray-300: #e0e0e0;
    --gray-400: #bdbdbd;
    --gray-500: #9e9e9e;
    --gray-600: #757575;
    --gray-700: #616161;
    --gray-800: #424242;
    --gray-900: #212121;

    /* Text Colors */
    --text-primary: #1a1a2e;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    --text-light: #555;

    /* Semantic Colors */
    --success: #10b981;
    --success-light: rgba(16, 185, 129, 0.1);
    --warning: #f59e0b;
    --warning-light: rgba(245, 158, 11, 0.1);
    --error: #ef4444;
    --error-light: rgba(239, 68, 68, 0.1);
    --info: #3b82f6;
    --info-light: rgba(59, 130, 246, 0.1);

    /* Glass Effects */
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.8);
    --glass-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);

    /* Shadows - very subtle */
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.02);
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 8px 24px rgba(0, 0, 0, 0.06);
    --shadow-glow: 0 0 12px rgba(227, 25, 55, 0.15);

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
    --space-20: 80px;

    /* Typography */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'SF Mono', 'Fira Code', monospace;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 350ms ease;

    /* Legacy compatibility */
    --dark: #171a20;
    --light: #f4f4f4;
    --gray: #f0f0f0;
    --gray-dark: #e0e0e0;
    --text: #333;
}

/* ============================================
   Base Styles
   ============================================ */

body {
    font-family: var(--font-sans);
    background-color: var(--white);
    color: var(--text-primary);
    line-height: 1.6;
    font-size: 16px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* ============================================
   Error and Success Messages
   ============================================ */

.error-message {
    background: var(--error-light);
    border: 1px solid var(--error);
    color: var(--error);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.success-message {
    background: var(--success-light);
    border: 1px solid var(--success);
    color: var(--success);
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-sm);
    margin-bottom: var(--space-4);
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

/* ============================================
   Navigation
   ============================================ */

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-5) var(--space-10);
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

nav.scrolled {
    padding: var(--space-3) var(--space-10);
    box-shadow: var(--shadow-sm);
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    transition: transform var(--transition-fast);
}

.logo:hover {
    transform: none;
}

.logo-img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    max-width: 40px;
    min-height: 40px;
    max-height: 40px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    box-shadow: var(--shadow-sm);
}

.logo, .logo span {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    list-style: none;
    margin-left: var(--space-12);
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition-base), opacity var(--transition-base);
    opacity: 0.85;
}

.nav-links a:hover {
    color: var(--primary);
    opacity: 1;
}

/* ============================================
   Language Selector
   ============================================ */

.lang-selector {
    position: fixed;
    bottom: var(--space-5);
    left: var(--space-5);
    z-index: 9999;
    list-style: none;
}

.lang-btn {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-size: 1.1rem;
    cursor: pointer;
    padding: var(--space-2) var(--space-3);
    line-height: 1;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-fast);
}

.lang-btn:hover {
    background: var(--white);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.lang-btn .lang-code {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.lang-dropdown {
    display: none;
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: var(--space-2);
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 10000;
    min-width: 110px;
    overflow: hidden;
}

.lang-dropdown.show {
    display: block;
    animation: slideUp 0.2s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.lang-dropdown button {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    width: 100%;
    padding: var(--space-3) var(--space-4);
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    text-align: left;
    transition: background var(--transition-fast);
}

.lang-dropdown button:hover {
    background: var(--gray-100);
}

.lang-dropdown .lang-code {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-links a.btn-primary {
    color: var(--white);
    opacity: 1;
}

.nav-links a.btn-primary:hover {
    color: var(--white);
    opacity: 0.9;
    transform: none;
}

/* ============================================
   Buttons
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    position: relative;
    overflow: hidden;
    text-align: center;
}

.btn svg,
.btn i {
    flex-shrink: 0;
}

.btn:focus {
    outline: none;
}

.btn-primary {
    background: linear-gradient(135deg, #e31937 0%, #b7142c 100%);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #e31937 0%, #b7142c 100%);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-outline {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-outline:hover {
    transform: translateY(-2px);
}

.btn-outline:active {
    transform: translateY(0);
}

/* Large button variant */
.btn-lg {
    padding: 14px 32px;
    font-size: 1rem;
}

/* Small button variant */
.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

/* ============================================
   Hero Section
   ============================================ */

.hero {
    min-height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: var(--space-16) var(--space-6) var(--space-12);
    background: var(--white);
    position: relative;
}

/* Hero with background image (first hero section) */
.hero-bg {
    position: relative;
    background: transparent;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: -80px;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.85) 0%, rgba(248, 250, 252, 0.9) 100%),
        url('/images/background_image.jpg');
    background-size: cover;
    background-position: center top;
    background-repeat: no-repeat;
    z-index: -1;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.home-page .hero {
    padding-top: var(--space-8);
}

.hero-companion-announcement {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: var(--space-10);
    padding: 4px 0 7px;
    color: var(--text);
    border-bottom: 2px solid rgba(227, 25, 55, 0.35);
    text-align: left;
    text-decoration: none;
    transition: color var(--transition-base), border-color var(--transition-base);
}

.hero-companion-announcement > svg:first-child {
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    color: var(--primary);
}

.hero-companion-copy {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.hero-companion-copy strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.hero-companion-copy > span {
    color: var(--text-secondary);
    font-size: 0.76rem;
    line-height: 1.3;
}

.hero-companion-arrow {
    width: 17px;
    height: 17px;
    flex: 0 0 auto;
    color: var(--primary);
    transition: transform var(--transition-base);
}

.hero-companion-announcement:hover {
    color: var(--primary-dark);
    border-color: var(--primary);
}

.hero-companion-announcement:hover .hero-companion-arrow {
    transform: translateX(3px);
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: var(--space-6);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-10);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
}

/* Download badge in hero */
.hero .download-badge {
    margin-top: var(--space-10);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    padding: var(--space-5) var(--space-12) var(--space-3);
    border-radius: var(--radius-xl);
    display: inline-block;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.4);
    transition: all var(--transition-base);
    min-width: 380px;
    position: relative;
    text-decoration: none;
    color: inherit;
    font: inherit;
    cursor: pointer;
}

@media (max-width: 768px) {
    .hero .download-badge {
        width: min(350px, calc(100vw - 32px));
        min-width: 0;
        padding: var(--space-5) var(--space-8);
    }
}



.hero .download-badge:hover {
    background: rgba(255, 255, 255, 0.25);
}

.hero .download-badge img {
    height: 60px;
}

.hero .download-badge p {
    margin: var(--space-2) 0 0;
    font-size: 0.9rem;
    font-weight: 800;
    margin-bottom: 0;
    color: var(--primary-dark);
    white-space: pre;
}

/* App stats strip */
.app-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    margin-top: var(--space-3);
    margin-bottom: var(--space-3);
    padding-bottom: var(--space-3);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.app-stats .stat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.app-stats .stat-divider {
    color: var(--text-light);
}

/* ============================================
   Features Section
   ============================================ */

.watch-faces-preview {
    padding: var(--space-16) var(--space-6);
    background: #ffffff;
    border-top: 1px solid #eef2f7;
}

.watch-faces-preview-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr);
    align-items: center;
    gap: clamp(48px, 8vw, 112px);
    max-width: 1040px;
}

.watch-faces-preview-copy {
    max-width: 520px;
}

.watch-faces-preview-copy h2 {
    display: grid;
    gap: 4px;
    margin-bottom: var(--space-5);
    color: var(--text-primary);
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    line-height: 1.05;
    letter-spacing: 0;
}

.watch-faces-preview-copy h2 span,
.watch-faces-preview-copy h2 strong {
    display: block;
}

.watch-faces-preview-copy h2 span {
    font-weight: 600;
}

.watch-faces-preview-copy h2 strong {
    color: var(--primary);
    font-weight: 800;
}

.watch-faces-preview-copy p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 600;
}

.watch-faces-download {
    margin-top: var(--space-6);
}

.watch-faces-carousel {
    width: min(100%, 380px);
    min-width: 0;
    justify-self: end;
}

.watch-faces-stage {
    position: relative;
    width: 100%;
    aspect-ratio: 800 / 1030;
    overflow: hidden;
    background: #ffffff;
}

.watch-face-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-slow), visibility var(--transition-slow);
}

.watch-face-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.watch-faces-arrow {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(26, 26, 46, 0.14);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-primary);
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.watch-faces-arrow:hover {
    color: var(--primary);
    border-color: rgba(227, 25, 55, 0.35);
}

.watch-faces-arrow:active {
    transform: scale(0.95);
}

.watch-faces-arrow svg {
    width: 22px;
    height: 22px;
}

.watch-faces-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 42px;
    margin-top: var(--space-3);
}

.watch-faces-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    min-height: 28px;
}

.watch-faces-dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c7cbd1;
    cursor: pointer;
    transition: width var(--transition-fast), border-radius var(--transition-fast), background var(--transition-fast);
}

.watch-faces-dot.is-active {
    width: 24px;
    border-radius: var(--radius-full);
    background: var(--primary);
}

.home-watch-key {
    padding: var(--space-16) var(--space-6);
    background: #ffffff;
    border-top: 1px solid #eef2f7;
    border-bottom: 1px solid #e5e7eb;
}

.home-watch-key-inner {
    display: grid;
    grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(40px, 7vw, 90px);
    max-width: 1040px;
}

.home-watch-key-visual {
    display: flex;
    justify-content: center;
    min-width: 0;
}

.home-watch-key-visual video {
    display: block;
    width: min(100%, 300px);
    height: auto;
}

.home-watch-key-copy {
    max-width: 580px;
}

.home-watch-key-copy h2 {
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    font-size: clamp(2rem, 4vw, 2.75rem);
    line-height: 1.1;
    letter-spacing: 0;
}

.home-watch-key-name {
    color: #2563eb;
}

.home-watch-key-copy > p {
    margin-bottom: var(--space-6);
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
}

.home-watch-key-points {
    display: grid;
    gap: 12px;
    margin-bottom: var(--space-8);
}

.home-watch-key-points > span {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-primary);
    font-weight: 600;
}

.home-watch-key-points svg {
    width: 19px;
    height: 19px;
    flex: 0 0 auto;
    color: var(--info);
}

.home-watch-key-copy .btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.home-watch-key-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.home-watch-key-copy .btn svg {
    width: 17px;
    height: 17px;
}

.features {
    padding: var(--space-12) var(--space-6) var(--space-20);
    background: linear-gradient(180deg, #f3f4f6 0%, #f3f4f6 40%, #ffffff 100%);
    position: relative;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.features .section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: var(--space-12);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--space-6);
    max-width: 1100px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: var(--space-8);
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.75);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.feature:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto var(--space-5);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(227, 25, 55, 0.15);
    backdrop-filter: blur(10px) saturate(180%);
    -webkit-backdrop-filter: blur(10px) saturate(180%);
    border-radius: var(--radius-md);
    border: 1px solid rgba(227, 25, 55, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3);
    color: var(--primary);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.feature h3 {
    margin-bottom: var(--space-3);
    color: var(--text-primary);
    font-size: 1.1rem;
    font-weight: 600;
}

.feature p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.features-disclaimer {
    text-align: center;
    color: #000000;
    font-weight: 700;
    font-size: 0.85rem;
    margin-top: var(--space-10);
    font-style: normal;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.features-disclaimer span {
    display: block;
}

.features-disclaimer span + span {
    margin-top: 4px;
}

.text-error {
    color: var(--primary);
    font-weight: 700;
}

/* ============================================
   Footer
   ============================================ */

footer {
    padding: var(--space-12) var(--space-6);
    text-align: center;
    color: var(--text-secondary);
    background: #fcfcfc;
    border-top: 1px solid #f5f5f5;
}

.footer-logo {
    width: 32px;
    height: 32px;
    min-width: 32px;
    max-width: 32px;
    min-height: 32px;
    max-height: 32px;
    border-radius: var(--radius-sm);
    object-fit: cover;
    flex-shrink: 0;
    margin-top: var(--space-3);
}

footer p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin: var(--space-2) 0;
}

footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color var(--transition-fast);
}

footer a:hover {
    color: var(--primary);
}

.footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-6);
    flex-wrap: wrap;
    margin-top: var(--space-4);
}

.footer-links a {
    line-height: 1;
}

.footer-brand {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-5);
    margin-top: var(--space-6);
}

/* ============================================
   Mobile Hamburger Menu
   ============================================ */

.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: var(--space-3);
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.menu-toggle:hover {
    background: var(--gray-100);
}

.menu-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text-primary);
    border-radius: var(--radius-full);
    transition: all var(--transition-base);
}

/* ============================================
   Mobile Responsive
   ============================================ */

@media (max-width: 768px) {
    nav {
        padding: var(--space-4) var(--space-5);
        position: sticky;
        top: 0;
        z-index: 1000;
    }

    .menu-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-links {
        display: none !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin-left: 0;
        flex-direction: column;
        background: var(--white);
        padding: var(--space-5);
        gap: var(--space-3);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
        z-index: 999;
    }

    .nav-links.active {
        display: flex !important;
        animation: slideDown 0.3s ease;
    }

    @keyframes slideDown {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }



    .nav-links .btn {
        width: 100%;
        display: block;
    }

    .hero {
        min-height: auto;
        padding: var(--space-16) var(--space-5);
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero-companion-announcement {
        max-width: min(100%, 360px);
    }

    .hero-companion-copy strong {
        font-size: 0.82rem;
    }

    .hero-companion-copy > span {
        font-size: 0.7rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: auto;
        max-width: 100%;
        white-space: nowrap;
    }

    .home-watch-key {
        padding: var(--space-12) var(--space-5);
    }

    .watch-faces-preview {
        padding: var(--space-12) var(--space-5);
    }

    .watch-faces-preview-inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        text-align: center;
    }

    .watch-faces-preview-copy {
        margin: 0 auto;
    }

    .watch-faces-preview-copy h2 {
        font-size: 2.25rem;
    }

    .watch-faces-carousel {
        width: min(78vw, 330px);
        justify-self: center;
    }

    .home-watch-key-inner {
        display: grid;
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
    }

    .home-watch-key-visual {
        grid-row: 3;
        margin-bottom: var(--space-8);
    }

    .home-watch-key-visual video {
        width: min(72vw, 230px);
    }

    .home-watch-key-copy {
        display: contents;
        margin: 0 auto;
    }

    .home-watch-key-copy h2 {
        grid-row: 1;
        font-size: 1.9rem;
    }

    .home-watch-key-copy > p {
        grid-row: 2;
        margin-bottom: var(--space-8);
    }

    .home-watch-key-points {
        grid-row: 4;
        width: fit-content;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        text-align: left;
    }

    .home-watch-key-actions {
        grid-row: 5;
        justify-content: center;
    }

    .features {
        padding: var(--space-10) var(--space-5) var(--space-16);
    }

    .features h2 {
        font-size: 1.8rem;
        margin-bottom: var(--space-8);
    }

    .features-grid {
        gap: var(--space-4);
    }

    .feature {
        padding: var(--space-6);
    }

    .feature-icon {
        width: 48px;
        height: 48px;
    }

    .feature-icon svg {
        width: 24px;
        height: 24px;
    }

    .lang-selector {
        bottom: var(--space-4);
        left: var(--space-4);
    }

    .footer-brand {
        margin-bottom: var(--space-4);
    }

}

/* ============================================
   Cookie Consent Banner
   ============================================ */

.cookie-banner {
    position: fixed;
    bottom: var(--space-5);
    left: var(--space-5);
    right: var(--space-5);
    max-width: 600px;
    background: var(--white);
    color: var(--text-primary);
    padding: var(--space-6);
    z-index: 9998;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
}

.cookie-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.cookie-text {
    font-size: 0.9rem;
    line-height: 1.6;
    color: var(--text-secondary);
}

.cookie-text a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.cookie-text a:hover {
    text-decoration: underline;
}

.cookie-buttons {
    display: flex;
    gap: var(--space-3);
    flex-shrink: 0;
}

.cookie-btn {
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    border: none;
    transition: all var(--transition-base);
}

.cookie-btn-accept {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    box-shadow: 0 4px 14px rgba(227, 25, 55, 0.3);
}

.cookie-btn-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(227, 25, 55, 0.4);
}

.cookie-btn-decline {
    background: var(--gray-100);
    color: var(--text-secondary);
}

.cookie-btn-decline:hover {
    background: var(--gray-200);
}

@media (max-width: 768px) {
    .cookie-banner {
        left: var(--space-4);
        right: var(--space-4);
        bottom: var(--space-4);
        padding: var(--space-5);
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   CTA Section (Ready to Get Started)
   ============================================ */

.cta-section {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, rgba(227, 25, 55, 0.06) 100%);
    position: relative;
}

.cta-section::before,
.cta-section::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.8) 20%, rgba(255, 255, 255, 0.9) 50%, rgba(255, 255, 255, 0.8) 80%, transparent 100%);
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6), 0 0 2px rgba(0, 0, 0, 0.1);
}

.cta-section::before {
    top: 0;
}

.cta-section::after {
    bottom: 0;
}

.cta-section h2 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-4);
    color: var(--text-primary);
}

.cta-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
}

/* ============================================
   Contact Section (Public)
   ============================================ */

.contact-section {
    padding: var(--space-20) var(--space-6);
    background: linear-gradient(180deg, rgba(227, 25, 55, 0.06) 0%, rgba(227, 25, 55, 0.02) 100%);
}

.contact-header {
    text-align: center;
    margin-bottom: var(--space-10);
}

.contact-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-2);
    letter-spacing: -0.02em;
}

.contact-header p {
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.contact-form {
    max-width: 520px;
    width: 100%;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .contact-form {
        max-width: none !important;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: var(--space-5);
        border-radius: 0;
    }

    .contact-section {
        padding-left: 0;
        padding-right: 0;
    }
}

.contact-form .form-group {
    margin-bottom: var(--space-5);
}

.contact-form .form-group label {
    display: block;
    margin-bottom: var(--space-2);
    font-weight: 500;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
    width: 100%;
    padding: var(--space-3) var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    font-family: inherit;
    transition: all var(--transition-fast);
    background: var(--white);
}

.contact-form .form-group input:hover,
.contact-form .form-group textarea:hover {
    border-color: var(--gray-400);
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px var(--primary-subtle);
}

.contact-form .form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-form .btn {
    width: 100%;
    margin-top: var(--space-2);
}

.contact-status {
    text-align: center;
    margin-top: var(--space-4);
}

/* Keep reCAPTCHA attribution in the contact flow without covering hero content. */
.home-page .grecaptcha-badge {
    visibility: hidden !important;
}

.recaptcha-notice {
    margin: var(--space-3) 0 0;
    color: var(--text-secondary);
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: center;
}

.recaptcha-notice a {
    color: inherit;
    text-decoration: underline;
}

/* ============================================
   Usage Stats
   ============================================ */

.usage-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
}

.usage-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.usage-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
}

.usage-value {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
}

.usage-bar {
    width: 100%;
    height: 8px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.usage-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--success), #34d399);
    border-radius: var(--radius-full);
    transition: width var(--transition-base);
}

.usage-fill.warning {
    background: linear-gradient(90deg, var(--warning), #fbbf24);
}

.usage-fill.danger {
    background: linear-gradient(90deg, var(--error), #f87171);
}

.usage-note {
    font-size: 0.8rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: var(--space-3);
}

/* ============================================
   Utility Classes
   ============================================ */

.glass-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: var(--radius-lg);
}

.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

/* Icon styling */
.icon {
    width: 24px;
    height: 24px;
    stroke-width: 1.5;
}

.icon-sm {
    width: 16px;
    height: 16px;
}

.icon-lg {
    width: 32px;
    height: 32px;
}

/* Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 20px;
}

.modal-content {
    background: var(--white);
    border-radius: 16px;
    padding: 32px;
    max-width: 450px;
    width: 100%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 20px;
}

.modal-header .modal-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.modal-header .modal-icon.warning {
    color: #f59e0b;
}

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.modal-body {
    text-align: center;
    margin-bottom: 24px;
}

.modal-body p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-actions .btn {
    flex: 1;
    max-width: 180px;
}

/* App download chooser */
.download-app-modal[hidden] {
    display: none;
}

.download-app-modal {
    background: rgba(5, 8, 14, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.download-app-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #c41e22;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.download-app-modal .download-app-modal-content {
    position: relative;
    width: 100%;
    max-width: 620px;
    background: var(--white);
    border: 0;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 40px);
    padding: 32px;
    overflow-y: auto;
}

.download-app-modal-content .modal-header {
    margin-bottom: 24px;
}

.download-app-modal-content .modal-header h3 {
    margin-bottom: 0;
    color: var(--text-primary);
}

.download-app-modal-content .modal-icon {
    color: var(--primary);
}

.download-app-close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    padding: 0;
    color: var(--text-secondary);
    background: transparent;
    border: 0;
    cursor: pointer;
}

.download-app-close:hover {
    color: var(--text-primary);
}

.download-app-close svg {
    width: 22px;
    height: 22px;
}

.download-app-options {
    display: grid;
    gap: 12px;
}

.download-app-option {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 20px;
    gap: 14px;
    align-items: center;
    width: 100%;
    padding: 16px;
    color: var(--text-primary);
    text-decoration: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    transition: border-color var(--transition-base), background var(--transition-base), transform var(--transition-base);
}

.download-app-option:hover {
    background: #f1f5f9;
    border-color: #94a3b8;
    transform: translateY(-1px);
}

.download-app-option-primary {
    background: #fff7f7;
    border-color: rgba(229, 57, 53, 0.35);
}

.download-app-option-primary:hover {
    background: #fff0f0;
    border-color: var(--primary);
}

.download-app-option-bluetooth {
    background: #eff6ff;
    border-color: rgba(37, 99, 235, 0.35);
}

.download-app-option-bluetooth:hover {
    background: #dbeafe;
    border-color: #2563eb;
}

.download-app-option-bluetooth .download-app-option-icon {
    color: #2563eb;
}

.download-app-option-watch-face {
    background: #fff7ed;
    border-color: rgba(234, 88, 12, 0.35);
}

.download-app-option-watch-face:hover {
    background: #ffedd5;
    border-color: #ea580c;
}

.download-app-option-watch-face .download-app-option-icon {
    color: #ea580c;
}

.download-app-option-icon {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    color: var(--primary);
    background: var(--white);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.download-app-option-icon svg {
    width: 22px;
    height: 22px;
}

.download-app-option-copy {
    min-width: 0;
}

.download-app-option-copy strong,
.download-app-option-copy small {
    display: block;
    overflow-wrap: anywhere;
    letter-spacing: 0;
}

.download-app-option-copy strong {
    margin-bottom: 4px;
    font-size: 1rem;
    line-height: 1.3;
}

.download-app-option-copy small {
    color: var(--text-secondary);
    font-size: 0.875rem;
    line-height: 1.4;
}

.download-app-option-arrow {
    width: 18px;
    height: 18px;
    color: var(--text-secondary);
}

@media (max-width: 560px) {
    .download-app-modal .download-app-modal-content {
        padding: 28px 18px 20px;
    }

    .download-app-modal-content .modal-header h3 {
        padding: 0 28px;
        font-size: 1.25rem;
    }

    .download-app-option {
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        gap: 11px;
        padding: 13px;
    }

    .download-app-option-icon {
        width: 40px;
        height: 40px;
    }
}
