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

/* CSS Custom Properties (Design Tokens) */
:root {
    /* Colors */
    --bg-start: #0B0A26;
    --bg-end: #2A0E5A;
    --surface: #0F1033;
    --surface-glass: rgba(16, 17, 56, 0.82);
    --text: #F5F7FF;
    --text-2: #C5C9F5;
    --muted: #9AA0D8;
    --accent-cyan: #22D3EE;
    --accent-magenta: #C026D3;
    --link: #2563EB;
    --border: #2A2F68;
    
    /* Shadows */
    --shadow-cyan: 0 8px 30px rgba(34, 211, 238, 0.25);
    --shadow-magenta: 0 8px 30px rgba(192, 38, 211, 0.25);
    --shadow-header: 0 4px 20px rgba(0, 0, 0, 0.3);
    
    /* Spacing (8px grid) */
    --space-xs: 8px;
    --space-sm: 16px;
    --space-md: 24px;
    --space-lg: 32px;
    --space-xl: 48px;
    --space-2xl: 64px;
    
    /* Typography */
    --font-size-base: 16px;
    --font-size-lg: 18px;
    --font-size-xl: 24px;
    --font-size-2xl: 32px;
    --font-size-3xl: 40px;
    --line-height: 1.5;
    
    /* Border radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    /* Transitions */
    --transition: 160ms ease-out;
    
    /* Layout */
    --max-width: 1200px;
    --header-height: 72px;
}

/* Highlight animation for app store buttons */
@keyframes highlight {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0.7);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(34, 211, 238, 0.3);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(34, 211, 238, 0);
    }
}

/* Base Styles */
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--text);
    background: 
        radial-gradient(80% 100% at 100% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
        linear-gradient(160deg, var(--bg-start), var(--bg-end));
    min-height: 100vh;
    font-synthesis: none;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Respect reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        transition: none !important;
        animation: none !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
    margin-bottom: var(--space-sm);
}

h1 {
    font-size: clamp(var(--font-size-2xl), 5vw, var(--font-size-3xl));
}

h2 {
    font-size: clamp(var(--font-size-xl), 4vw, 28px);
}

p {
    margin-bottom: var(--space-sm);
    line-height: 1.6;
}

/* Links and Buttons */
a {
    color: var(--link);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--accent-cyan);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm) var(--space-lg);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all var(--transition);
    min-height: 48px;
    min-width: 120px;
}

.btn.cta {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-magenta));
    color: #000;
    box-shadow: var(--shadow-cyan), var(--shadow-magenta);
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn.cta:hover {
    transform: translateY(-1px);
    box-shadow: 
        0 12px 40px rgba(34, 211, 238, 0.35),
        0 12px 40px rgba(192, 38, 211, 0.35);
}

.btn.cta:focus {
    outline: 2px solid var(--accent-cyan);
    outline-offset: 2px;
}

.btn.cta:active {
    transform: translateY(0);
    box-shadow: var(--shadow-cyan), var(--shadow-magenta);
}

/* Layout Containers */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--surface-glass);
    backdrop-filter: saturate(140%) blur(6px);
    border-bottom: 1px solid var(--border);
    height: var(--header-height);
    transition: box-shadow var(--transition);
}

.site-header.scrolled {
    box-shadow: var(--shadow-header);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}



/* Skip Link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 6px;
    background: var(--accent-cyan);
    color: #000;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: var(--radius-sm);
    z-index: 1000;
    transition: top var(--transition);
}

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

/* Hero Section */
.hero {
    padding: var(--space-xs) 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Hero background overlay removed for consistent background */

.hero-container {
    position: relative;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-sm);
}

.app-icon {
    margin-bottom: var(--space-lg);
}

.app-icon img {
    width: 120px;
    height: 120px;
    border-radius: 20%;
    box-shadow: var(--shadow-cyan);
    transition: transform var(--transition);
}

.app-icon img:hover {
    transform: scale(1.05);
}

.tagline {
    font-size: var(--font-size-xl);
    color: var(--accent-cyan);
    font-weight: 600;
    margin-bottom: var(--space-md);
}

.supporting-text {
    font-size: var(--font-size-lg);
    color: var(--text-2);
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

/* Supporting Text Section */
.supporting-text-section {
    padding: var(--space-xs) 0;
    text-align: center;
    margin-bottom: var(--space-md);
}

/* Testimonials */
.testimonials {
    padding: var(--space-xs) 0 var(--space-sm) 0;
    text-align: center;
}

.testimonials-grid {
    display: flex;
    gap: var(--space-sm);
    align-items: stretch;
    margin-top: 0;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    padding: 0;
}

/* Scrollbar styles moved to responsive.css */

/* Visual indicator dots removed - not needed for 2 testimonials */

/* Platform-specific hints */
.testimonials::after {
    content: '← Swipe to explore →';
    display: block;
    text-align: center;
    color: var(--muted);
    font-size: 12px;
    margin-top: var(--space-sm);
    opacity: 0.6;
    letter-spacing: 0.5px;
}

/* Platform-specific hints moved to responsive.css */

.testimonial-card {
    background: var(--surface-glass);
    backdrop-filter: blur(6px);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-md);
    transition: transform var(--transition), box-shadow var(--transition);
    min-width: 280px;
    max-width: 320px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

/* Ensure first testimonial is initially visible */
.testimonial-card:first-child {
    scroll-snap-align: start;
}

.testimonial-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.15);
}

.testimonial-quote {
    font-style: italic;
    color: var(--text-2);
    margin-bottom: var(--space-sm);
    font-size: 14px;
    line-height: 1.4;
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.name {
    font-weight: 600;
    color: var(--text);
    font-size: 14px;
}

.profession {
    font-size: 12px;
    color: var(--muted);
}

/* Screenshot Section */
.screenshot {
    padding: var(--space-xs) 0 var(--space-xs) 0;
    text-align: center;
}

.screenshot-frame {
    margin-bottom: var(--space-md);
    border-radius: var(--radius-lg);
    overflow: hidden;
    display: inline-block;
}

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



/* App Store Section */
.app-store-section {
    padding: var(--space-sm) 0;
    text-align: center;
}

/* App Store Buttons */
.app-store-buttons {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

.app-store-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-sm);
    background: transparent;
    border: none;
    text-decoration: none;
    transition: all var(--transition);
    min-width: 200px;
}

.app-store-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

.app-store-image {
    width: 200px;
    height: auto;
    max-width: 100%;
    transition: all var(--transition);
}

/* App store text styles removed - using images instead */

/* Back Link (for legal pages) */
.back-link {
    color: var(--text-2);
    text-decoration: none;
    transition: color var(--transition);
    font-size: var(--font-size-base);
}

.back-link:hover {
    color: var(--accent-cyan);
}

/* Footer */
.site-footer {
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: var(--space-sm) 0;
    margin-top: var(--space-sm);
}

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

.footer-link {
    color: var(--text-2);
    transition: color var(--transition);
}

.footer-link:hover {
    color: var(--accent-cyan);
}

.separator {
    color: var(--muted);
}

.copyright {
    color: var(--muted);
    font-size: 14px;
}

/* Utility Classes */
.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

/* Responsive styles moved to responsive.css */
