/* ============================================
   ÇARDAK - Akıllı Yaşam Yönetim Platformu
   CSS Styles - cardak.app
   Optimized for SEO, Performance & Accessibility
   ============================================ */

/* ============================================
   Performance & Accessibility Optimizations
   ============================================ */

/* Reduce motion for users who prefer it */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    :root {
        --primary: #00ff7f;
        --text-secondary: #ffffff;
        --text-muted: #e0e0e0;
    }
}

/* Content-visibility for off-screen content (performance) */
section:not(#home):not(#faq) {
    content-visibility: auto;
    contain-intrinsic-size: 0 500px;
}

/* ============================================
   CSS Variables & Custom Properties
   ============================================ */
:root {
    /* Primary Colors */
    --primary: #00D26A;
    --primary-dark: #00B85C;
    --primary-light: #33DC88;
    --primary-glow: rgba(0, 210, 106, 0.3);

    /* Background Colors */
    --bg-dark: #0a1628;
    --bg-darker: #060f1d;
    --bg-card: #0f2033;
    --bg-card-hover: #142840;

    /* Text Colors */
    --text-primary: #ffffff;
    --text-secondary: #c0c8d4;
    --text-muted: #8a96a6;

    /* Accent Colors */
    --accent-blue: #3b82f6;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-orange: #f97316;

    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #00D26A 0%, #00B85C 100%);
    --gradient-hero: url('assets/images/hero-bg.webp') center/cover no-repeat;
    --gradient-card: linear-gradient(145deg, rgba(15, 32, 51, 0.8) 0%, rgba(20, 40, 64, 0.4) 100%);
    --gradient-text: linear-gradient(135deg, #00D26A 0%, #33DC88 50%, #00D26A 100%);

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 20px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.3);
    --shadow-glow: 0 0 40px var(--primary-glow);

    /* Border Radius - SQUIRCLE UPDATE */
    --radius-sm: 10px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-xl: 32px;
    --radius-full: 50%;
    /* Still needed for circles like icons */
    --radius-squircle: 16px;
    /* For badges and buttons */

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;

    /* Font */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Spacing */
    --section-padding: 80px;
    --container-max: 1280px;
}

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
    overflow-x: hidden;
    /* IMPORTANT: Prevent horizontal scroll */
}

body {
    font-family: var(--font-family);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    /* Double safety */
    width: 100%;
}

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

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

/* M2: CLS — reserve aspect-ratio for any img with width/height attrs so the
   browser allocates space before the bitmap loads (prevents reflow). */
img[width][height] {
    aspect-ratio: attr(width) / attr(height);
}

/* M2: CLS — Font Awesome late-load swap is the main remaining source of shift.
   Reserve a 1em square for icons until the icon font is parsed so text doesn't
   reflow when icons render. .fa-* classes get sized by FA after load. */
.fas, .far, .fab, .fa {
    display: inline-block;
    min-width: 1em;
    min-height: 1em;
    line-height: 1;
}

ul {
    list-style: none;
}

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

.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
    width: 100%;
}

/* ============================================
   Preloader - CENTER FIX
   ============================================ */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none; /* allow clicks through while fading */
}

#preloader:not(.hidden) {
    pointer-events: all;
}

#preloader.hidden {
    opacity: 0;
    visibility: hidden;
}

.loader {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.loader img {
    width: 80px;
    height: 80px;
    animation: pulse 1.5s ease-in-out infinite;
    margin-bottom: 24px;
}

.loader-bar {
    width: 200px;
    height: 4px;
    background: var(--bg-card);
    border-radius: var(--radius-squircle);
    overflow: hidden;
    position: relative;
}

.loader-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 40%;
    height: 100%;
    background: var(--gradient-primary);
    border-radius: var(--radius-squircle);
    animation: loading 1.2s ease-in-out infinite;
    will-change: transform;
}

@keyframes pulse {

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

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(350%);
    }
}

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

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

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

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

.logo img {
    width: 40px;
    height: 40px;
}

.logo span {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

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

.nav-links a {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
    position: relative;
    padding: 8px 0;
}

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

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

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

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

/* Buttons - SQUIRCLE STYLE */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 12px;
    /* Squircle */
    transition: var(--transition-normal);
}

.btn-primary {
    background: var(--gradient-primary);
    color: var(--bg-dark);
    box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 60px var(--primary-glow);
}

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

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

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

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

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

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-hero);
    opacity: 0.05;
    z-index: -2;
}

.hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
}

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

/* SQUIRCLE BADGES */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    /* Squircle */
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    margin-bottom: 24px;
}

.hero-text {
    z-index: 2;
}

.hero-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

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

.hero-text p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    max-width: 550px;
}

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

.hero-stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-item {
    text-align: left;
}

.stat-number {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.stat-suffix {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    display: block;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 8px;
    font-weight: 500;
}

/* ============================================
   Enterprise CTA
   ============================================ */
.enterprise-cta {
    padding: 0 0 24px;
}

.enterprise-banner {
    background: linear-gradient(135deg, rgba(0, 210, 106, 0.10), rgba(12, 28, 44, 0.96));
    border: 1px solid rgba(0, 210, 106, 0.22);
    border-radius: var(--radius-lg);
    padding: 48px;
    display: grid;
    gap: 36px;
    box-shadow: var(--shadow-md);
}

.enterprise-copy h2 {
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.enterprise-copy p {
    max-width: 760px;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.enterprise-points {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
}

.enterprise-point {
    background: rgba(8, 22, 40, 0.85);
    border: 1px solid rgba(0, 210, 106, 0.18);
    border-radius: var(--radius-md);
    padding: 28px 24px;
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.enterprise-point:hover {
    border-color: rgba(0, 210, 106, 0.45);
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

.enterprise-point i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(0, 210, 106, 0.14);
    color: var(--primary);
    font-size: 1.15rem;
    margin-bottom: 18px;
}

.enterprise-point h3 {
    font-size: 1.05rem;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.enterprise-point p {
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.55;
}

.enterprise-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* Hero Image & CSS Phone Mockup */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.css-phone-wrapper {
    position: relative;
    z-index: 2;
    transform: perspective(1000px) rotateY(-10deg) rotateX(5deg);
    transition: transform 0.5s ease;
}

.css-phone-wrapper:hover {
    transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.css-phone {
    width: 300px;
    height: 600px;
    /* ~9:18 aspect */
    background: #000;
    border-radius: 40px;
    border: 8px solid #333;
    position: relative;
    box-shadow:
        0 0 0 2px #555,
        var(--shadow-xl),
        0 20px 50px rgba(0, 0, 0, 0.5);
    overflow: hidden;
}

/* Notch */
.css-phone::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 25px;
    background: #000;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #0f0f0f;
    overflow: hidden;
    position: relative;
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Floating Cards - Squircle */
.floating-card {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 32, 51, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 16px;
    /* Squircle */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
    animation: float 4s ease-in-out infinite;
    will-change: transform;
    z-index: 5;
    min-width: 160px;
}

.floating-card i {
    color: var(--primary);
    font-size: 1.5rem;
}

.floating-card span {
    font-size: 0.9rem;
    font-weight: 600;
    color: #fff;
}

.card-1 {
    top: 15%;
    left: -30px;
    animation-delay: 0s;
}

.card-2 {
    top: 50%;
    right: -20px;
    animation-delay: 1.5s;
}

.card-3 {
    bottom: 10%;
    left: 0;
    animation-delay: 2.5s;
}

@keyframes float {

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

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    z-index: 5;
}

.mouse {
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 14px;
    position: relative;
}

.mouse::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 4px;
    height: 6px;
    background: var(--primary);
    border-radius: 2px;
    animation: scroll 1.5s ease-in-out infinite;
}

@keyframes scroll {

    0%,
    100% {
        transform: translateX(-50%) translateY(0);
        opacity: 1;
    }

    50% {
        transform: translateX(-50%) translateY(12px);
        opacity: 0;
    }
}

.scroll-indicator span {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

/* ============================================
   Section Layouts (Screenshot + Content)
   ============================================ */
.section-layout-left {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 48px;
    align-items: start;
}

.section-layout-right {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 48px;
    align-items: center;
}

.section-screenshot {
    width: 100%;
    max-width: 300px;
    border-radius: 24px;
    overflow: hidden;
    border: 2px solid rgba(0, 210, 106, 0.15);
    background: var(--bg-card);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 210, 106, 0.08);
    transition: var(--transition-normal);
    flex-shrink: 0;
}

.section-screenshot:hover {
    border-color: rgba(0, 210, 106, 0.4);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 210, 106, 0.15);
    transform: translateY(-6px);
}

.section-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.section-content {
    width: 100%;
    min-width: 0; /* Prevent grid blowout */
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--section-padding) 0;
    contain: layout style;
}

.section-header {
    text-align: left;
    margin-bottom: 32px;
}

.section-header p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 600px;
}

.section-badge {
    display: inline-block;
    background: rgba(0, 210, 106, 0.1);
    border: 1px solid rgba(0, 210, 106, 0.3);
    padding: 8px 16px;
    border-radius: 12px;
    /* Squircle */
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

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

.features-header {
    text-align: center;
    margin-bottom: 40px;
}

.features-header p {
    margin: 0 auto;
}

.features-tabs {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 28px;
    background: var(--bg-card);
    border: 1px solid transparent;
    border-radius: 12px;
    /* Squircle */
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
    transition: var(--transition-normal);
}

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

.tab-btn.active {
    background: rgba(0, 210, 106, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.feature-card {
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: rgba(0, 210, 106, 0.3);
    box-shadow: var(--shadow-glow);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 106, 0.1);
    border-radius: 10px;
    margin-bottom: 12px;
}

.feature-icon i {
    font-size: 1rem;
    color: var(--primary);
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.feature-card p {
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.feature-card.featured {
    grid-column: span 1;
    /* Reset to 1 col for better responsiveness default, override in large if needed */
}

@media (min-width: 992px) {
    .feature-card.featured {
        grid-column: span 2;
    }
}

.feature-image {
    margin-top: 20px;
    border-radius: 12px;
    max-height: 200px;
    object-fit: cover;
    width: 100%;
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    background: var(--bg-dark);
}

.steps-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 32px;
    background: var(--gradient-card);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    transition: var(--transition-normal);
}

.step:hover {
    transform: translateX(10px);
    border-color: rgba(0, 210, 106, 0.3);
}

.step-number {
    font-size: 3rem;
    font-weight: 800;
    color: var(--primary);
    opacity: 0.3;
    min-width: 80px;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-secondary);
}

.step-icon {
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 210, 106, 0.1);
    border-radius: 50%;
    /* Icon circle is fine */
}

.step-icon i {
    font-size: 1.5rem;
    color: var(--primary);
}

/* ============================================
   Technology Section - Updated
   ============================================ */
.technology {
    background: var(--bg-darker);
    position: relative;
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
    margin-bottom: 80px;
}

.tech-category {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tech-category h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    margin-bottom: 24px;
    color: var(--text-primary);
}

.tech-category h3 i {
    color: var(--primary);
}

.tech-items {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    /* Squircle */
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-fast);
}

.tech-item:hover {
    background: rgba(0, 210, 106, 0.1);
    border-color: rgba(0, 210, 106, 0.3);
    transform: translateY(-2px);
}

.tech-item i {
    color: var(--primary);
    font-size: 1.1rem;
}

.tech-item span {
    font-size: 0.9rem;
    font-weight: 500;
}

.tech-showcase {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.showcase-item {
    display: flex;
    align-items: center;
    gap: 60px;
}

.showcase-item.reverse {
    flex-direction: row-reverse;
}

.showcase-item img {
    width: 35%;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
}

.showcase-content {
    flex: 1;
}

.showcase-content h3 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 24px;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.showcase-content p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ============================================
   Stats Section
   ============================================ */
.stats {
    background: url('assets/images/world-map.png') no-repeat center center;
    background-size: contain;
    background-color: var(--bg-dark);
}

.stats-timeline {
    display: flex;
    justify-content: space-between;
    margin-bottom: 80px;
    position: relative;
    padding: 0 20px;
}

.stats-timeline::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 0;
    right: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.timeline-item {
    position: relative;
    z-index: 1;
    text-align: center;
    flex: 1;
}

.timeline-year {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 50px;
    height: 50px;
    background: var(--bg-dark);
    border: 2px solid var(--primary);
    border-radius: 50%;
    color: var(--primary);
    font-weight: 700;
    font-size: 0.8rem;
    margin-bottom: 20px;
}

.timeline-content {
    padding: 20px;
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 0 10px;
    transition: var(--transition-normal);
}

.timeline-content:hover {
    transform: translateY(-10px);
    border-color: var(--primary);
}

.timeline-content h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.timeline-content p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
}

.timeline-desc {
    display: block;
    font-size: 0.85rem;
    color: var(--primary);
    font-weight: 500;
}

.stats-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-top: 60px;
}

.stat-card {
    background: var(--gradient-card);
    padding: 32px;
    border-radius: 20px;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.stat-card .stat-icon {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 16px;
}

.stat-card .stat-value {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-card .stat-label {
    color: var(--text-secondary);
}



/* ============================================
   Download Section
   ============================================ */
.download {
    background: var(--bg-dark);
}

.download .section-layout-right .section-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.download-content {
    display: flex;
    align-items: center;
    gap: 60px;
    background: var(--gradient-primary);
    padding: 60px;
    border-radius: 32px;
    position: relative;
    overflow: hidden;
}

.download-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('assets/images/pattern.png');
    opacity: 0.1;
}

.download-text {
    flex: 1;
    z-index: 1;
    color: var(--bg-dark);
}

.download-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.download-text p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.download-buttons {
    display: flex;
    gap: 16px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--primary);
    color: var(--bg-dark);
    padding: 14px 28px;
    border-radius: 12px;
    border: 2px solid var(--primary);
    font-weight: 600;
    transition: var(--transition-normal);
}

.download-btn:hover {
    transform: translateY(-2px);
    background: transparent;
    color: var(--primary);
    box-shadow: 0 10px 30px rgba(0, 210, 106, 0.3);
}

.download-btn i {
    font-size: 2rem;
}

.download-btn div {
    display: flex;
    flex-direction: column;
}

.download-btn span {
    font-size: 0.75rem;
    opacity: 0.8;
}

.download-btn strong {
    font-size: 1rem;
    font-weight: 700;
}

.login-info {
    background: rgba(0, 0, 0, 0.1);
    padding: 20px;
    border-radius: 12px;
}

.login-info h4 {
    margin-bottom: 12px;
}

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

.credential code {
    background: rgba(255, 255, 255, 0.3);
    padding: 4px 8px;
    border-radius: 6px;
    font-family: monospace;
    font-weight: 600;
}

.download-image {
    flex: 1;
    display: flex;
    justify-content: center;
    z-index: 1;
}

.download-image img {
    max-width: 300px;
    transform: rotate(-10deg);
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.2));
}

/* Download Banner (New) */
.download-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.download-info {
    display: flex;
    flex-direction: column;
}

.download-info h2 {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 16px;
}

.download-info p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
    max-width: 450px;
}

.download-highlights {
    display: flex;
    gap: 24px;
    margin-bottom: 28px;
}

.download-highlight {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
}

.download-highlight i {
    color: var(--primary);
    font-size: 1.1rem;
}

.download-phone {
    display: flex;
    justify-content: center;
    align-items: center;
}

.download-phone img {
    max-width: 280px;
    border-radius: 24px;
    border: 2px solid rgba(0, 210, 106, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 210, 106, 0.08);
    transition: var(--transition-normal);
}

.download-phone img:hover {
    border-color: rgba(0, 210, 106, 0.4);
    transform: translateY(-6px);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5), 0 0 50px rgba(0, 210, 106, 0.15);
}

/* ============================================
   Contact Section & Form Notification
   ============================================ */
.contact {
    background: var(--bg-darker);
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-item i {
    width: 50px;
    height: 50px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: var(--primary);
    font-size: 1.25rem;
    flex-shrink: 0;
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.info-item p {
    color: var(--text-secondary);
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: auto;
}

.social-links a {
    width: 45px;
    height: 45px;
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--text-secondary);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary);
    color: var(--bg-dark);
    transform: translateY(-3px);
}

.contact-form {
    background: var(--bg-card);
    padding: 32px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background: var(--bg-dark);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    /* Squircle */
    color: var(--text-primary);
    font-family: inherit;
    font-size: 1rem;
    transition: var(--transition-normal);
}

.form-group textarea {
    resize: vertical;
}

.form-group label {
    position: absolute;
    left: 16px;
    top: 16px;
    color: var(--text-muted);
    transition: var(--transition-normal);
    pointer-events: none;
    background: var(--bg-dark);
    padding: 0 4px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group input:focus+label,
.form-group input:not(:placeholder-shown)+label,
.form-group textarea:focus+label,
.form-group textarea:not(:placeholder-shown)+label {
    top: -10px;
    left: 12px;
    font-size: 0.85rem;
    color: var(--primary);
}

/* ============================================
   Demo Page
   ============================================ */
.demo-main {
    padding: 140px 0 100px;
    background:
        radial-gradient(circle at top right, rgba(0, 210, 106, 0.12), transparent 30%),
        radial-gradient(circle at left center, rgba(59, 130, 246, 0.14), transparent 32%),
        var(--bg-dark);
}

.demo-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 32px;
    align-items: start;
}

.demo-hero {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.demo-hero h1 {
    font-size: clamp(2.4rem, 4vw, 4rem);
    line-height: 1.05;
    margin-bottom: 16px;
}

.demo-hero p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 62ch;
}

.demo-proof-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin-top: 28px;
}

.demo-proof-card {
    padding: 20px;
    border-radius: 20px;
    background: rgba(7, 15, 30, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.demo-proof-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.5rem;
    color: var(--text-primary);
}

.demo-proof-card span {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.demo-side-panel {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.demo-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 24px;
    padding: 28px;
}

.demo-panel h2,
.demo-form-wrap h2 {
    font-size: 1.35rem;
    margin-bottom: 10px;
}

.demo-checklist {
    display: grid;
    gap: 14px;
    margin-top: 18px;
}

.demo-checklist li {
    display: flex;
    gap: 12px;
    color: var(--text-secondary);
}

.demo-checklist i {
    color: var(--primary);
    margin-top: 4px;
}

.demo-form-wrap .contact-form {
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.demo-note {
    margin-top: 16px;
    color: var(--text-muted);
    font-size: 0.92rem;
}

@media (max-width: 960px) {
    .demo-layout {
        grid-template-columns: 1fr;
    }

    .demo-proof-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .demo-main {
        padding-top: 120px;
    }

    .demo-hero,
    .demo-panel,
    .demo-form-wrap .contact-form {
        padding: 24px;
    }
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--bg-dark);
    padding-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-with-screenshot {
    display: flex;
    justify-content: center;
    margin-bottom: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-screenshot {
    width: 100%;
    max-width: 260px;
    border-radius: 20px;
    overflow: hidden;
    border: 2px solid rgba(0, 210, 106, 0.15);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4), 0 0 30px rgba(0, 210, 106, 0.08);
    transition: var(--transition-normal);
}

.footer-screenshot:hover {
    border-color: rgba(0, 210, 106, 0.4);
    transform: translateY(-6px);
}

.footer-screenshot img {
    width: 100%;
    height: auto;
    display: block;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
    margin-bottom: 60px;
}

.footer-brand img {
    width: 50px;
    margin-bottom: 20px;
}

.footer-brand h2.footer-brand-title {
    font-size: 1.5rem;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.footer-brand p {
    color: var(--text-secondary);
}

.footer-links h3,
.footer-newsletter h3 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--primary);
    padding-left: 5px;
}

.newsletter-form {
    display: flex;
    margin-top: 16px;
}

.newsletter-form input {
    flex: 1;
    padding: 12px;
    border-radius: 12px 0 0 12px;
    /* Squircle half */
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
}

.newsletter-form button {
    background: var(--primary);
    color: var(--bg-dark);
    padding: 0 20px;
    border-radius: 0 12px 12px 0;
    transition: var(--transition-normal);
}

.newsletter-form button:hover {
    background: var(--primary-light);
}

/* Newsletter messages */
.newsletter-msg {
    font-size: 0.85rem;
    margin-top: 10px;
    min-height: 20px;
    transition: opacity 0.3s ease;
}

.newsletter-msg.newsletter-success {
    color: var(--primary);
}

.newsletter-msg.newsletter-error {
    color: #ef4444;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding: 32px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

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

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

.footer-badges span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* ============================================
   Image Viewer (Lightbox)
   ============================================ */
.image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 22, 40, 0.9);
    backdrop-filter: blur(8px);
    z-index: 11000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.image-viewer.active {
    opacity: 1;
    visibility: visible;
}

.viewer-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    justify-content: center;
    align-items: center;
}

.image-viewer.active .viewer-content {
    transform: scale(1);
}

.viewer-content img {
    max-width: 100%;
    max-height: 85vh;
    /* Keep some space vertical */
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    object-fit: contain;
}

.close-viewer {
    position: absolute;
    top: -50px;
    /* Position above image or top-right of screen */
    right: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.close-viewer:hover {
    background: var(--primary);
    border-color: var(--primary);
    transform: rotate(90deg);
}

@media (min-width: 768px) {
    .close-viewer {
        right: -60px;
        /* Move explicitly outside on desktop */
        top: 0;
    }
}

/* Update app-shot to show clickable */
.app-shot img {
    cursor: zoom-in;
}

/* ============================================
   MOBILE & RESPONSIVE (URGENT FIXES)
   ============================================ */
@media (max-width: 992px) {

    /* Section Layouts: Stack vertically */
    .section-layout-left,
    .section-layout-right {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .section-screenshot {
        max-width: 240px;
        margin: 0 auto;
    }

    .section-layout-right .section-screenshot {
        order: 2;
    }

    .section-layout-right .section-content {
        order: 1;
    }

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

    .download-banner {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .download-info {
        align-items: center;
    }

    .download-phone img {
        max-width: 240px;
    }

    /* Hero Section Fixes */
    .hero {
        padding-top: 120px;
        min-height: auto;
        /* Allow growth */
    }

    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 60px;
        display: flex;
        flex-direction: column;
        /* Force Stack */
    }

    .hero-text {
        order: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text h1 {
        font-size: 2.5rem;
    }

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

    .hero-stats {
        justify-content: center;
        width: 100%;
        flex-wrap: wrap;
    }

    .stat-item {
        text-align: center;
    }

    .hero-image {
        order: 1;
        /* Image below text */
        margin-top: 20px;
    }

    /* Avoid floating cards overlapping content on small height screens */
    .floating-card {
        padding: 10px 16px;
    }

    .card-1 {
        left: -10px;
    }

    .card-2 {
        right: -10px;
    }

    /* Technology Mobile */
    .showcase-item {
        flex-direction: column;
        text-align: center;
        gap: 32px;
    }

    .showcase-item.reverse {
        flex-direction: column;
    }

    .showcase-item img {
        width: 100%;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

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

    .stats-timeline {
        flex-direction: column;
        gap: 30px;
    }

    .stats-timeline::before {
        display: none;
    }

    .newsletter-form {
        max-width: 100%;
    }
}

@media (max-width: 768px) {

    #download {
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .download-info h2 {
        font-size: 2rem;
        margin-bottom: 12px;
    }

    .download-info p {
        font-size: 1rem;
        margin-bottom: 16px;
    }

    .download-highlights {
        margin-bottom: 14px;
    }

    .download-buttons {
        margin-bottom: 0;
    }

    .section-screenshot {
        max-width: 200px;
    }

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

    .download-banner {
        gap: 32px;
    }

    .download-highlights {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }

    .download-phone img {
        max-width: 180px;
    }

    .contact .section-screenshot {
        display: none;
    }

    .contact .section-layout-left {
        gap: 0;
    }

    .feature-card {
        padding: 20px;
    }

    .section-header h2 {
        font-size: 2rem;
    }

    .footer-with-screenshot {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .footer-screenshot {
        max-width: 200px;
    }

    /* Mobile Menu Logic */
    .nav-links {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background: rgba(10, 22, 40, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        padding: 40px;
        gap: 24px;
        clip-path: circle(0% at 100% 0%);
        transition: clip-path 0.5s ease-in-out;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    }

    .nav-links.active {
        clip-path: circle(150% at 100% 0%);
    }

    .nav-buttons {
        display: none;
        /* Hide buttons in nav on mobile, maybe add to menu if needed or rely on hero buttons */
    }

    .mobile-menu-btn {
        display: flex;
        z-index: 1001;
    }

    .download-content {
        flex-direction: column;
        padding: 40px 24px;
    }

    .features-tabs {
        flex-direction: column;
        width: 100%;
    }

    .tab-btn {
        width: 100%;
        justify-content: center;
    }

    .faq-question {
        padding: 16px;
    }

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

    .footer-with-screenshot {
        justify-content: center;
        padding-bottom: 32px;
    }

    .footer-screenshot {
        max-width: 240px;
    }

    .hero-text h1 {
        font-size: 2rem;
    }
}

/* Honeypot - hidden from users but visible to bots */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Particle Animation */
@keyframes particleFloat {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-100vh) rotate(720deg); opacity: 0; }
}

/* ============================================
   Additional Mobile Optimizations
   ============================================ */

/* Improved touch targets for mobile (min 44x44px) */
@media (max-width: 768px) {
    .btn,
    .nav-links a,
    .mobile-menu-btn,
    button,
    a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Improve tap highlight */
    a, button {
        -webkit-tap-highlight-color: rgba(0, 210, 106, 0.2);
    }
    
    /* Prevent text size adjustment on orientation change */
    html {
        -webkit-text-size-adjust: 100%;
        text-size-adjust: 100%;
    }
    
    /* Smoother scrolling on iOS */
    .nav-links {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Fix for iOS input zoom */
    input, select, textarea {
        font-size: 16px !important;
    }
}

/* Small screens (phones in portrait) */
@media (max-width: 480px) {
    :root {
        --section-padding: 40px;
    }

    #download {
        padding-top: 20px;
        padding-bottom: 20px;
    }

    .download-banner {
        gap: 20px;
    }

    .download-highlights {
        display: none;
    }

    .download-phone img {
        max-width: 160px;
    }
    
    .hero-text h1 {
        font-size: 1.75rem;
    }
    
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    
    .floating-card {
        display: none;
    }
    
    .feature-card {
        padding: 16px;
    }
    
    .download-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        justify-content: center;
    }
}

/* Landscape phones */
@media (max-width: 896px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding: 100px 0 40px;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: none;
    }
    
    .scroll-indicator {
        display: none;
    }
}

/* ============================================
   Focus & Accessibility Styles
   ============================================ */

/* Focus visible for keyboard navigation */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--primary);
    outline-offset: 2px;
    border-radius: var(--radius-sm);
}

/* Skip link for accessibility */
.skip-link {
    position: absolute;
    top: -100%;
    left: 0;
    padding: 12px 24px;
    background: var(--primary);
    color: var(--bg-dark);
    font-weight: 600;
    z-index: 10001;
    transition: top 0.3s ease;
}

.skip-link:focus {
    top: 0;
}

/* Screen reader only */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ============================================
   Print Styles
   ============================================ */
@media print {
    *,
    *::before,
    *::after {
        background: transparent !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    
    body {
        font-size: 12pt;
        line-height: 1.5;
    }
    
    a,
    a:visited {
        text-decoration: underline;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
    }
    
    #navbar,
    #preloader,
    .hero-particles,
    .floating-card,
    .scroll-indicator,
    .mobile-menu-btn,
    .nav-buttons,
    .back-to-top,
    #scroll-progress,
    .image-viewer {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 20px 0;
    }
    
    section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
    
    h1, h2, h3 {
        page-break-after: avoid;
    }
    
    img {
        max-width: 100% !important;
        page-break-inside: avoid;
    }
    
    .gradient-text {
        -webkit-text-fill-color: #000 !important;
        background: none !important;
    }
}

/* ============================================
   Performance: GPU Acceleration Hints
   ============================================ */
.css-phone,
.floating-card,
.feature-card,
.btn,
#navbar {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Lazy loading placeholder */
img[loading="lazy"] {
    background: var(--bg-card);
}

img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

.faq .section-header {
    text-align: center;
    margin-bottom: 48px;
}

.faq .section-header p {
    margin: 0 auto;
}

.faq-grid {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    transition: var(--transition-normal);
}

.faq-item:hover {
    border-color: rgba(0, 210, 106, 0.25);
}

.faq-item[open] {
    border-color: rgba(0, 210, 106, 0.3);
    box-shadow: 0 4px 24px rgba(0, 210, 106, 0.08);
}

.faq-item summary {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    list-style: none;
    user-select: none;
    transition: var(--transition-normal);
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary::marker {
    display: none;
    content: '';
}

.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    min-width: 40px;
    background: rgba(0, 210, 106, 0.1);
    border-radius: 12px;
    color: var(--primary);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.faq-item[open] .faq-icon {
    background: var(--primary);
    color: var(--bg-dark);
}

.faq-arrow {
    margin-left: auto;
    color: var(--text-muted);
    font-size: 0.85rem;
    transition: transform 0.3s ease;
    flex-shrink: 0;
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
    color: var(--primary);
}

.faq-answer {
    display: block;
    padding: 0 24px 20px 80px;
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
    animation: faqFadeIn 0.3s ease;
}

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

/* FAQ Mobile */
@media (max-width: 768px) {
    .faq-answer {
        padding-left: 24px;
    }
    
    .faq-icon {
        width: 36px;
        height: 36px;
        min-width: 36px;
    }
    
    .faq-item summary {
        padding: 16px 20px;
        font-size: 0.925rem;
        gap: 12px;
    }
}
