/* SudoBuiltApps Landing Page Styles - Modernized Design System */

/* Design Tokens */
:root {
  /* Color Palette */
  --color-primary-50: #eff6ff;
  --color-primary-100: #dbeafe;
  --color-primary-200: #bfdbfe;
  --color-primary-300: #93c5fd;
  --color-primary-400: #60a5fa;
  --color-primary-500: #3b82f6;
  --color-primary-600: #2563eb;
  --color-primary-700: #1d4ed8;
  --color-primary-800: #1e40af;
  --color-primary-900: #1e3a8a;

  /* Semantic Colors */
  --color-success: #10b981;
  --color-warning: #f59e0b;
  --color-error: #ef4444;
  --color-info: #06b6d4;

  /* Neutral Palette */
  --color-white: #ffffff;
  --color-gray-50: #f8fafc;
  --color-gray-100: #f1f5f9;
  --color-gray-200: #e2e8f0;
  --color-gray-300: #cbd5e1;
  --color-gray-400: #94a3b8;
  --color-gray-500: #64748b;
  --color-gray-600: #475569;
  --color-gray-700: #334155;
  --color-gray-800: #1e293b;
  --color-gray-900: #0f172a;

  /* Spacing Scale (8pt grid) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Typography Scale */
  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 1.875rem;
  --font-size-4xl: 2.25rem;
  --font-size-5xl: 3rem;
  --font-size-6xl: 3.75rem;

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

  /* Line Heights */
  --line-height-tight: 1.25;
  --line-height-snug: 1.375;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.625;
  --line-height-loose: 2;

  /* Border Radius */
  --radius-sm: 0.125rem;
  --radius-base: 0.25rem;
  --radius-md: 0.375rem;
  --radius-lg: 0.5rem;
  --radius-xl: 0.75rem;
  --radius-2xl: 1rem;
  --radius-3xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.25);

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

  /* Container Sizes */
  --container-sm: 640px;
  --container-md: 768px;
  --container-lg: 1024px;
  --container-xl: 1200px;
  --container-2xl: 1400px;

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

/* Dark Mode Variables */
[data-theme="dark"] {
  /* Dark Color Palette */
  --color-primary-50: #1e3a8a;
  --color-primary-100: #1e40af;
  --color-primary-200: #2563eb;
  --color-primary-300: #3b82f6;
  --color-primary-400: #60a5fa;
  --color-primary-500: #93c5fd;
  --color-primary-600: #bfdbfe;
  --color-primary-700: #dbeafe;
  --color-primary-800: #eff6ff;
  --color-primary-900: #f8fafc;

  /* Dark Semantic Colors */
  --color-success: #34d399;
  --color-warning: #fbbf24;
  --color-error: #f87171;
  --color-info: #22d3ee;

  /* Dark Neutral Palette */
  --color-white: #0f172a;
  --color-gray-50: #1e293b;
  --color-gray-100: #334155;
  --color-gray-200: #475569;
  --color-gray-300: #64748b;
  --color-gray-400: #94a3b8;
  --color-gray-500: #cbd5e1;
  --color-gray-600: #e2e8f0;
  --color-gray-700: #f1f5f9;
  --color-gray-800: #f8fafc;
  --color-gray-900: #ffffff;

  /* Dark Shadows */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.3);
  --shadow-base: 0 1px 3px 0 rgb(0 0 0 / 0.4), 0 1px 2px -1px rgb(0 0 0 / 0.4);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.4), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.4), 0 8px 10px -6px rgb(0 0 0 / 0.4);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.6);
}

/* CSS Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--color-white);
    color: var(--color-gray-800);
    line-height: var(--line-height-relaxed);
    font-size: var(--font-size-base);
    font-weight: var(--font-weight-normal);
}

/* Performance: Enable GPU acceleration for key elements */
.app-card,
.modal-content,
.btn-primary,
.btn-secondary {
    will-change: transform;
    transform: translateZ(0);
}

/* Navigation */
.nav {
    position: fixed;
    height: 80px;
    display: flex;
    align-items: center;
    top: 0;
    width: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-gray-200);
    z-index: var(--z-fixed);
    padding: var(--space-4) 0;
    contain: layout style paint;
    transition: var(--transition-base);
}

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

.logo {
    display: flex;
    align-items: center;
    gap: 30rem;
}

.logo img {
    height: 200px;
    width: auto;
}

.logo-text {
    font-size: var(--font-size-2xl);
    font-weight: var(--font-weight-extrabold);
    color: var(--color-primary-600);
}

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

.nav-links a {
    text-decoration: none;
    color: var(--color-gray-700);
    font-weight: var(--font-weight-medium);
    font-size: var(--font-size-base);
    transition: var(--transition-base);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-lg);
    position: relative;
}

.nav-links a:hover {
    color: var(--color-primary-600);
    background: var(--color-primary-50);
}

/* Hero Banner Section */
.hero-banner {
    padding: calc(80px + var(--space-24)) var(--space-8) var(--space-24);
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-gray-100) 100%);
    text-align: center;
    border-bottom: 1px solid var(--color-gray-200);
    position: relative;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
    color: var(--color-white);
    padding: var(--space-3) var(--space-6);
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: var(--font-weight-semibold);
    margin-bottom: var(--space-8);
    animation: fadeInUp 0.6s ease-out;
    box-shadow: var(--shadow-md);
}

.hero h1 {
    font-size: clamp(var(--font-size-4xl), 5vw, var(--font-size-6xl));
    font-weight: var(--font-weight-extrabold);
    color: var(--color-gray-900);
    margin-bottom: var(--space-6);
    animation: fadeInUp 0.6s ease-out 0.1s both;
    line-height: var(--line-height-tight);
    letter-spacing: -0.025em;
}

.hero-subtitle {
    font-size: var(--font-size-xl);
    color: var(--color-gray-600);
    margin-bottom: var(--space-12);
    animation: fadeInUp 0.6s ease-out 0.2s both;
    line-height: var(--line-height-relaxed);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: var(--space-12);
}

.hero-buttons {
    display: flex;
    gap: var(--space-4);
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeInUp 0.6s ease-out 0.3s both;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
    color: var(--color-white);
    padding: var(--space-4) var(--space-8);
    border: none;
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: var(--shadow-xl);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translate3d(0, 0, 0);
    transition: var(--transition-fast);
}

.btn-secondary {
    background: var(--color-white);
    color: var(--color-primary-600);
    padding: var(--space-4) var(--space-8);
    border: 2px solid var(--color-primary-200);
    border-radius: var(--radius-xl);
    font-size: var(--font-size-lg);
    font-weight: var(--font-weight-semibold);
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
    background: var(--color-primary-50);
    border-color: var(--color-primary-300);
    box-shadow: var(--shadow-md);
    transform: translate3d(0, -1px, 0);
}

/* Product Showcase Section */
.product-showcase {
    padding: 6rem 2rem;
    background: white;
}

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

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.2rem;
    color: #64748b;
    max-width: 600px;
    margin: 0 auto;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.product-card {
    background: linear-gradient(135deg, var(--color-gray-50) 0%, var(--color-white) 100%);
    border-radius: var(--radius-3xl);
    padding: var(--space-10);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--color-gray-200);
    contain: layout style paint;
    box-shadow: var(--shadow-sm);
    position: relative;
    overflow: hidden;
}

.product-card:hover {
    transform: translate3d(0, -6px, 0);
    box-shadow: var(--shadow-xl);
    border-color: var(--color-primary-200);
}

.product-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    font-weight: bold;
}

.product-card h3 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.product-card p {
    color: #64748b;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
}

.coming-soon {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
}

.available {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

/* Features Section */
.features-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    margin-top: 4rem;
}

.feature-card {
    background: var(--color-white);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-gray-200);
    contain: layout style paint;
    transition: var(--transition-base);
    position: relative;
}

.feature-card:hover {
    transform: translate3d(0, -3px, 0);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary-200);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    color: white;
}

.feature-card h3 {
    font-size: 1.3rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.feature-card p {
    color: #64748b;
    line-height: 1.6;
}

/* App Gallery Section */
.app-gallery {
    padding: 6rem 2rem;
    background: white;
}

.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 4rem;
    justify-items: center;
}

.app-card {
    background: var(--color-white);
    border-radius: var(--radius-3xl);
    padding: var(--space-8);
    text-align: center;
    transition: var(--transition-base);
    border: 1px solid var(--color-gray-200);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    width: 100%;
    max-width: 320px;
    contain: layout style paint;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(8px);
}

.app-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.08), transparent);
    transition: var(--transition-slow);
    pointer-events: none;
    z-index: 1;
}

.app-card:hover::before {
    left: 100%;
}

.app-card:hover {
    transform: translate3d(0, -8px, 0);
    box-shadow: var(--shadow-2xl);
    border-color: var(--color-primary-300);
    background: linear-gradient(135deg, var(--color-white) 0%, var(--color-primary-50) 100%);
}

.app-card:focus {
    outline: 2px solid var(--color-primary-500);
    outline-offset: 4px;
}

.app-card .product-icon {
    margin-bottom: 1rem;
}

.app-card h3 {
    font-size: 1.75rem;
    color: #1e293b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.app-card p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.price-tag {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 16px;
    font-size: 0.9rem;
    font-weight: 600;
    display: inline-block;
    margin: 0.5rem 0;
}

.privacy-badge {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    display: inline-block;
    margin-top: 0.5rem;
}

.app-store-btn {
    background: #000;
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.app-store-btn:hover {
    background: #333;
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.app-store-btn::before {
    content: "📱";
    font-size: 1rem;
}

.coming-soon-btn {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1rem;
}

.coming-soon-btn:hover {
    background: linear-gradient(135deg, #d97706, #b45309);
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 5px 15px rgba(245, 158, 11, 0.3);
}

.coming-soon-btn::before {
    content: "🔔";
    font-size: 1rem;
}

/* App Tester Section */
.tester-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    text-align: center;
}

.tester-section .section-title {
    color: white;
}

.tester-section .section-subtitle {
    color: rgba(255,255,255,0.9);
}

.tester-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.tester-benefit {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 12px;
    padding: 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, background 0.3s ease;
}

.tester-benefit:hover {
    transform: translate3d(0, -5px, 0);
    background: rgba(255,255,255,0.15);
}

.tester-benefit-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tester-benefit h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tester-benefit p {
    opacity: 0.9;
    line-height: 1.6;
}

.tester-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 3rem;
    max-width: 600px;
    margin: 0 auto;
    border: 1px solid rgba(255,255,255,0.2);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: white;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 1rem;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 8px;
    background: rgba(255,255,255,0.1);
    color: #000000;
    font-size: 1rem;
}

.form-group input::placeholder {
    color: rgba(255,255,255,0.7);
}

.form-group select {
    cursor: pointer;
}

.form-group select option {
    background: #059669 !important;
    color: white !important;
}

/* Disable browser autofill styling */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active,
.form-group select:-webkit-autofill,
.form-group select:-webkit-autofill:hover,
.form-group select:-webkit-autofill:focus,
.form-group select:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px rgba(255,255,255,0.1) inset !important;
    -webkit-text-fill-color: #000000 !important;
    background-color: rgba(255,255,255,0.1) !important;
}

/* Ensure select dropdown maintains white text */
.form-group select {
    color: #000000 !important;
}

.form-group select:focus {
    color: #000000 !important;
}

/* Simple focus override */
.form-group input:focus,
.form-group select:focus {
    outline: none !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    background: rgba(255,255,255,0.1) !important;
    color: #000000 !important;
}

/* Modern focus-visible support with fallback */
@supports selector(:focus-visible) {
    .form-group input:focus:not(:focus-visible),
    .form-group select:focus:not(:focus-visible) {
        outline: none !important;
    }
}

/* 2025 Best Practice: Complete Autofill Disable */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active,
.form-group input:is(:-webkit-autofill, :autofill) {
    /* Override autofill background with box-shadow trick */
    -webkit-box-shadow: 0 0 0 50px rgba(255,255,255,0.1) inset !important;
    -webkit-text-fill-color: #000000 !important;
    -webkit-background-clip: text !important;
    background-color: rgba(255,255,255,0.1) !important;
    background-image: none !important;
    color: #000000 !important;
    font-size: 1rem !important;
    padding: 1rem !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    
    /* Animation to override autofill */
    -webkit-animation: autofillOverride 0s forwards;
    animation: autofillOverride 0s forwards;
}

/* Hide autofill dropdown buttons */
.form-group input::-webkit-contacts-auto-fill-button,
.form-group input::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Prevent any transform or animation changes */
.form-group input,
.form-group select {
    transition: none !important;
    transform: none !important;
}

/* Ensure consistent styling in all states */
.form-group input,
.form-group input:focus,
.form-group input:hover,
.form-group input:active {
    width: 100% !important;
    padding: 1rem !important;
    border: 1px solid rgba(255,255,255,0.3) !important;
    border-radius: 8px !important;
    background: rgba(255,255,255,0.1) !important;
    color: #000000 !important;
    font-size: 1rem !important;
    font-family: inherit !important;
    line-height: normal !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

/* Hide autofill dropdown suggestions */
.form-group input::-webkit-contacts-auto-fill-button,
.form-group input::-webkit-credentials-auto-fill-button {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Additional autofill prevention */
.form-group input:-webkit-autofill,
.form-group input:-webkit-autofill:hover,
.form-group input:-webkit-autofill:focus,
.form-group input:-webkit-autofill:active {
    -webkit-animation: autofill 0s forwards;
    animation: autofill 0s forwards;
}

@-webkit-keyframes autofillOverride {
    to {
        color: #000000 !important;
        background: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
    }
}

@keyframes autofillOverride {
    to {
        color: #000000 !important;
        background: rgba(255,255,255,0.1) !important;
        border: 1px solid rgba(255,255,255,0.3) !important;
    }
}

.submit-btn {
    background: white;
    color: #10b981;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 100%;
}

.submit-btn:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 10px 25px rgba(255,255,255,0.2);
}

/* Custom arrangement for iOS apps - 3 on top, 2 centered below */
.ios-apps .app-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    align-items: stretch;
}

.ios-apps .app-card {
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 380px;
}

.ios-apps .app-card:nth-child(4),
.ios-apps .app-card:nth-child(5) {
    flex: 0 1 calc(40% - 1rem);
    margin-top: 1rem;
}

.ios-apps .app-card:nth-child(6) {
    flex: 0 1 calc(33.333% - 1.5rem);
    min-width: 280px;
    max-width: 320px;
    margin-top: 1rem;
    min-height: 380px;
}

.app-card .app-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.app-card .app-buttons {
    margin-top: auto;
    padding-top: 1rem;
}

.web-apps {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
}

/* Trust Section */
.trust-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    color: white;
    text-align: center;
}

.trust-section .section-title {
    color: white;
}

.trust-section .section-subtitle {
    color: #cbd5e1;
}

.trust-grid {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 4rem;
    flex-wrap: wrap;
}

.trust-item {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    border: 1px solid rgba(255,255,255,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    min-width: 200px;
    flex: 1;
    max-width: 250px;
}

.trust-item:hover {
    transform: translate3d(0, -5px, 0);
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    background: rgba(255,255,255,0.15);
}

.trust-number {
    font-size: 3rem;
    font-weight: 800;
    color: #60a5fa;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(96, 165, 250, 0.3);
}

.trust-label {
    font-size: 1.1rem;
    color: #e2e8f0;
    font-weight: 500;
}

/* CTA Section */
.cta-section {
    padding: 6rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: white;
    text-align: center;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.2rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: var(--z-modal-backdrop);
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.75);
    backdrop-filter: blur(8px);
}

.modal-content {
    background: var(--color-white);
    margin: 3% auto;
    padding: var(--space-12);
    border-radius: var(--radius-3xl);
    width: 90%;
    max-width: 600px;
    position: relative;
    animation: modalSlideIn 0.3s ease-out;
    max-height: 90vh;
    overflow-y: auto;
    contain: layout style paint;
    box-shadow: var(--shadow-2xl);
    border: 1px solid var(--color-gray-200);
}

@keyframes modalSlideIn {
    from {
        transform: translate3d(0, -50px, 0);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.5rem;
    top: 1.5rem;
    color: #64748b;
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: #1e293b;
}

.modal h3 {
    color: #1e293b;
    font-size: 2rem;
    margin-bottom: 1rem;
    text-align: center;
    font-weight: 700;
}

.modal-description {
    color: #64748b;
    margin-bottom: 2rem;
    text-align: center;
    font-size: 1.1rem;
}

.features-list {
    list-style: none;
    margin: 2rem 0;
}

.features-list li {
    color: #475569;
    margin-bottom: 0.8rem;
    padding-left: 2rem;
    position: relative;
    font-weight: 500;
}

.features-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
    font-size: 1.2rem;
}

.download-btn {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 2rem auto 0;
    text-decoration: none;
    text-align: center;
}

.download-btn:hover {
    transform: translate3d(0, -2px, 0);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Footer */
.footer {
    background: #475569;
    color: #cbd5e1;
    padding: 4rem 2rem 2rem;
}

.footer-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 300px 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 1.5rem;
}

.footer-section h3 {
    color: white;
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.footer-section p {
    line-height: 1.6;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #cbd5e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #3b82f6;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #334155;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cbd5e1;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #3b82f6;
    color: white;
    transform: translate3d(0, -2px, 0);
}

.footer-bottom {
    border-top: 1px solid #334155;
    padding: 1rem 0;
    text-align: center;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-bottom-container {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo img {
    height: 200px;
    width: auto;
}

.footer-logo span {
    font-weight: 600;
    color: white;
}

.footer-legal {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
}

.footer-legal a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-legal a:hover {
    color: #3b82f6;
}

/* Animations & Micro-interactions */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes slideInFromLeft {
    from {
        opacity: 0;
        transform: translate3d(-30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translate3d(30px, 0, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Loading States */
.loading-skeleton {
    background: linear-gradient(90deg, var(--color-gray-200) 25%, var(--color-gray-100) 50%, var(--color-gray-200) 75%);
    background-size: 200% 100%;
    animation: loading-shimmer 1.5s infinite;
    border-radius: var(--radius-md);
}

@keyframes loading-shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Staggered animations for card grids */
.app-grid .app-card:nth-child(1) { animation-delay: 0s; }
.app-grid .app-card:nth-child(2) { animation-delay: 0.1s; }
.app-grid .app-card:nth-child(3) { animation-delay: 0.2s; }
.app-grid .app-card:nth-child(4) { animation-delay: 0.3s; }
.app-grid .app-card:nth-child(5) { animation-delay: 0.4s; }
.app-grid .app-card:nth-child(6) { animation-delay: 0.5s; }

/* Scroll-triggered animations */
@media (prefers-reduced-motion: no-preference) {
    .scroll-reveal {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
        transition: var(--transition-base);
    }
    
    .scroll-reveal.revealed {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

/* Accessibility Styles */
.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;
}

/* Focus indicators */
.app-card:focus,
.nav-links a:focus,
.close:focus,
button:focus,
input:focus,
select:focus {
    outline: 3px solid rgba(255, 255, 255, 0.8);
    outline-offset: 2px;
    border-color: rgba(255, 255, 255, 0.6);
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .app-card {
        border: 2px solid #000;
    }
    
    .btn-primary,
    .btn-secondary {
        border: 2px solid currentColor;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    .app-card,
    .feature-card,
    .product-card {
        transition: none;
    }
    
    .modal-content {
        animation: none;
    }
    
    .hero-badge,
    .hero h1,
    .hero-subtitle,
    .hero-buttons {
        animation: none;
    }
}

/* Form error styles */
#form-errors {
    background: #fef2f2;
    border: 1px solid #fca5a5;
    border-radius: 8px;
    padding: 1rem;
    color: #dc2626;
}

/* Modal focus styles */
.modal-content:focus {
    outline: none;
}

.modal-content {
    outline: 2px solid transparent;
}

/* Skip link for keyboard navigation */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: #3b82f6;
    color: white;
    padding: 8px;
    z-index: 1000;
    text-decoration: none;
    border-radius: 4px;
}

.skip-link:focus {
    top: 6px;
}

/* Performance: Image lazy loading placeholder */
.lazy-loading {
    background: linear-gradient(90deg, #f0f0f0 25%, transparent 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* Container styles for consistency */
.container,
.footer-content,
.hero-content,
.section-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .product-grid {
        grid-template-columns: 1fr;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }

    .ios-apps .app-grid {
        flex-direction: column;
        align-items: center;
    }

    .ios-apps .app-card {
        flex: none;
        width: 100%;
        max-width: 400px;
        margin-top: 0;
    }
    
    .trust-grid {
        flex-direction: column;
        align-items: center;
    }

    .trust-item {
        max-width: 300px;
        width: 100%;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 2rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .trust-grid {
        gap: 1rem;
    }
    
    .trust-item {
        padding: 2rem 1.5rem;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .nav {
        padding: 0.5rem 0;
    }
    
    .logo img {
        height: 150px;
    }
}