/* ================================
   RESET AND BASE STYLES
   ================================ */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
}

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

/* ================================
   NAVIGATION
   ================================ */

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    font-size: 1.25rem;
    color: #007AFF;
}

/* Fix navigation logo size */
.nav-logo img {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    flex-shrink: 0;
    display: block;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 32px;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-menu a:hover {
    color: #007AFF;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #007AFF;
    transition: width 0.3s ease;
}

.nav-menu a:hover::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55); /* Updated transition */
}

/* Added active hamburger styles for X animation */
.hamburger.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

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

/* ================================
   HERO SECTION
   ================================ */

.hero {
    padding: 120px 0 80px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    animation: gradientShift 15s ease infinite;
    background-size: 200% 200%;
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="20" cy="20" r="1" fill="white" opacity="0.1"/><circle cx="80" cy="80" r="1" fill="white" opacity="0.1"/><circle cx="50" cy="10" r="1" fill="white" opacity="0.1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grain)"/></svg>');
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

.hero .container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 2;
    max-width: 1200px;
}

/* Better responsive behavior for hero section */
@media (max-width: 1024px) {
    .hero .container {
        gap: 40px;
        grid-template-columns: 1fr 0.8fr;
        max-width: 1024px;
    }
}

@media (max-width: 900px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 40px;
        max-width: 900px;
    }
    
    .hero-visual {
        /* Center and constrain on smaller screens */
        max-width: 100%;
        margin: 0 auto;
        justify-content: center;
    }
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    opacity: 0.9;
}

.hero-description {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.8;
    line-height: 1.7;
}

.hero-badges {
    display: flex;
    gap: 8px;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.hero-badges img {
    height: 28px;
}

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

.btn {
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-block;
    border: 2px solid transparent;
}

.btn-primary {
    background: white;
    color: #667eea;
}

.btn-primary:hover {
    background: #f8f9fa;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn-secondary {
    background: transparent;
    color: white;
    border-color: white;
}

.btn-secondary:hover {
    background: white;
    color: #667eea;
}

/* ================================
   PHONE MOCKUP
   ================================ */

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Ensure the visual doesn't overflow */
    min-height: 0;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
}

.phone-mockup {
    /* Responsive sizing based on viewport */
    width: min(300px, 80vw);
    height: min(600px, 70vh);
    max-width: 300px;
    max-height: 600px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    position: relative;
    box-sizing: border-box;
    /* Maintain aspect ratio */
    aspect-ratio: 1/2;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #000;
    border-radius: 32px;
    overflow: hidden;
    position: relative;
    /* Ensure content stays within bounds */
    contain: layout style paint;
}

.app-preview {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.app-screenshot {
    /* Force specific dimensions to prevent browser inconsistencies */
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    
    /* Multiple sizing strategies for cross-browser support */
    object-fit: cover;
    -webkit-object-fit: cover;
    -moz-object-fit: cover;
    -o-object-fit: cover;
    object-position: center;
    
    border-radius: 32px;
    display: block;
    
    /* Prevent image from breaking container */
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    
    /* Additional constraints for problematic browsers */
    transform-origin: center;
    transform: scale(1);
}

.status-bar {
    height: 44px;
    background: rgba(0, 0, 0, 0.1);
}

.tab-bar {
    display: flex;
    background: white;
    border-bottom: 1px solid #e1e5e9;
}

.tab {
    flex: 1;
    padding: 12px 8px;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: #f8f9fa;
}

.tab.active {
    background: #007AFF;
    color: white;
}

.content-area {
    padding: 20px;
    flex: 1;
}

.assistant-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.assistant-icon {
    font-size: 24px;
}

.assistant-info h4 {
    margin: 0 0 4px 0;
    font-size: 14px;
    color: #333;
}

.assistant-info p {
    margin: 0;
    font-size: 12px;
    color: #666;
}

/* ================================
   SECTIONS
   ================================ */

.section {
    padding: 80px 0;
}

.bg-light {
    background: #f8f9fa;
}

.section h2 {
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.section-intro {
    font-size: 1.2rem;
    text-align: center;
    margin-bottom: 3rem;
    color: #666;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Enhanced fallback for browsers that don't support object-fit */
@supports not (object-fit: cover) {
    .app-screenshot {
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
        /* Hide the img element and use background instead */
        font-size: 0;
        color: transparent;
    }
    
    .app-preview {
        background-image: url('ios-app-screenshot.png');
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}

/* Additional safety net for problematic browsers */
.app-screenshot {
    /* CSS Grid fallback for absolute positioning issues */
    grid-area: 1/1;
}

.app-preview {
    /* Create a grid container */
    display: grid;
    grid-template: 1fr / 1fr;
    align-items: center;
    justify-items: center;
}

/* ================================
   OVERVIEW GRID
   ================================ */

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

.overview-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.overview-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: rgba(0, 122, 255, 0.3);
}

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

.overview-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.overview-card p {
    color: #666;
    line-height: 1.6;
}

/* ================================
   FEATURES GRID
   ================================ */

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

.feature-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(0, 122, 255, 0.1);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(0, 122, 255, 0.3);
    box-shadow: 0 12px 35px rgba(0, 122, 255, 0.15);
}

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

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}

.feature-card p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.6;
}

.feature-card ul {
    list-style: none;
    padding: 0;
}

.feature-card li {
    padding: 4px 0;
    color: #666;
    position: relative;
    padding-left: 20px;
}

.feature-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

/* ================================
   ARCHITECTURE DIAGRAM
   ================================ */

.architecture-diagram {
    max-width: 800px;
    margin: 3rem auto;
    text-align: center;
}

.arch-layer {
    background: white;
    padding: 30px;
    border-radius: 16px;
    margin: 20px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.arch-layer h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.arch-layer p {
    color: #666;
    margin-bottom: 15px;
}

.arch-components {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.component {
    background: #007AFF;
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.arch-arrow {
    font-size: 2rem;
    color: #007AFF;
    margin: 10px 0;
}

/* ================================
   FLOW STEPS
   ================================ */

.flow-steps {
    max-width: 800px;
    margin: 3rem auto;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 3rem;
    gap: 20px;
}

.step-number {
    width: 60px;
    height: 60px;
    background: #007AFF;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: bold;
    flex-shrink: 0;
}

.step-content h3 {
    color: #2c3e50;
    margin-bottom: 10px;
    font-size: 1.4rem;
}

.step-content p {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.6;
}

.code-snippet {
    background: #f8f9fa;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 12px 16px;
    font-family: 'SF Mono', 'Monaco', 'Cascadia Code', monospace;
    font-size: 0.9rem;
    overflow-x: auto;
}

.code-snippet code {
    color: #e83e8c;
}

/* ================================
   TECHNICAL GRID
   ================================ */

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

.tech-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: transform 0.3s ease;
}

.tech-card:hover {
    transform: translateY(-5px);
}

.tech-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.tech-card p {
    color: #666;
    line-height: 1.6;
}

/* ================================
   CTA SECTION
   ================================ */

.cta-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
                radial-gradient(circle at 70% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    animation: pulse 4s ease-in-out infinite;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: white;
}

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

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.1rem;
}

.cta-note {
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .cta-content h2 {
        font-size: 1.8rem;
    }
    
    .cta-content p {
        font-size: 1rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-large {
        width: 100%;
        max-width: 300px;
    }
}

/* ================================
   FOOTER
   ================================ */

.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: white;
}

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

.social-links a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #bdc3c7;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

.footer-note {
    font-size: 0.85rem;
    margin-top: 10px;
    opacity: 0.8;
}

/* ================================
   UNIVERSAL ICON SIZE FIXES
   ================================ */

/* Prevent any image from being oversized in navigation */
.nav-logo img,
.nav-logo svg {
    width: 24px !important;
    height: 24px !important;
    max-width: 24px !important;
    max-height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    object-fit: contain !important;
    display: block !important;
    flex: none !important;
}

/* Firefox and Edge specific fixes */
@supports (-moz-appearance: none) {
    .nav-logo img {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Edge specific */
@supports (-ms-ime-align: auto) {
    .nav-logo img {
        width: 24px !important;
        height: 24px !important;
    }
}

/* Chrome/Safari fallback */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .nav-logo img {
        max-width: 24px !important;
        max-height: 24px !important;
    }
}

/* ================================
   MOBILE NAVIGATION IMPROVEMENTS
   ================================ */

/* Additional responsive breakpoints for better phone mockup control */
@media (max-width: 480px) {
    .phone-mockup {
        width: min(250px, 75vw);
        height: min(500px, 60vh);
        max-width: 250px;
        max-height: 500px;
    }
    
    .hero-content h1 {
        font-size: 2rem;
    }
}

@media (max-width: 360px) {
    .phone-mockup {
        width: min(220px, 70vw);
        height: min(440px, 55vh);
        max-width: 220px;
        max-height: 440px;
    }
}

/* Large desktop screens - prevent mockup from being too large */
@media (min-width: 1400px) {
    .phone-mockup {
        width: 350px;
        height: 700px;
        max-width: 350px;
        max-height: 700px;
    }
}

/* Ultra-wide screens */
@media (min-width: 1800px) {
    .phone-mockup {
        width: 380px;
        height: 760px;
        max-width: 380px;
        max-height: 760px;
    }
}

/* Enhanced hamburger menu for mobile */
@media (max-width: 768px) {
    .hamburger {
        display: flex;
        z-index: 1001;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s ease;
        box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 20px 0;
    }
    
    .nav-menu a {
        font-size: 1.2rem;
        font-weight: 600;
    }
    
    /* Enhanced hero section for mobile */
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 30px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .hero-description {
        font-size: 1rem;
    }
    
    .hero-buttons {
        justify-content: center;
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .hero-badges {
        justify-content: center;
    }
    
    /* Ensure all hero buttons are consistently sized on mobile */
    .btn {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: auto;
        max-width: 200px;
        text-align: center;
    }
    
    .phone-mockup {
        width: min(280px, 70vw);
        height: min(560px, 65vh);
        max-width: 280px;
        max-height: 560px;
        margin: 0 auto;
        /* Ensure aspect ratio is maintained */
        aspect-ratio: 1/2;
    }
    
    .phone-screen {
        aspect-ratio: 1/2;
        /* Additional containment for mobile */
        contain: layout style paint size;
    }
    
    .app-screenshot {
        /* Extra constraints for mobile browsers */
        width: 100% !important;
        height: 100% !important;
        transform: scale(1) !important;
    }
    
    /* Better section spacing on mobile */
    .section {
        padding: 60px 0;
    }
    
    .section h2 {
        font-size: 2rem;
    }
    
    /* Improved feature grid for mobile */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .overview-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    .tech-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }
    
    /* Better architecture diagram for mobile */
    .architecture-diagram {
        padding: 20px;
    }
    
    .arch-layer {
        padding: 20px;
    }
    
    .arch-components {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .component {
        font-size: 0.9rem;
        padding: 8px 12px;
    }
    
    /* Improved flow steps for mobile */
    .flow-steps {
        gap: 30px;
    }
    
    .flow-step {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }
    
    .step-number {
        margin-bottom: 20px;
    }
    
    .code-snippet {
        padding: 15px;
        font-size: 0.85rem;
    }
}

/* ================================
   ENHANCED ANIMATIONS & EFFECTS
   ================================ */

/* Smooth transitions for all interactive elements */

/* Enhanced loading animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Apply animations to key elements */
.overview-card,
.feature-card,
.tech-card {
    animation: fadeInUp 0.6s ease forwards;
    animation-delay: calc(var(--delay, 0) * 0.1s);
}

.architecture-diagram {
    animation: fadeInScale 0.8s ease forwards;
}

/* Enhanced hover effects */
.overview-card:hover,
.feature-card:hover,
.tech-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

/* Add shine effect on hover */
.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

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

/* Enhanced button animations */
.btn {
    position: relative;
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.btn:active {
    transform: translateY(0);
}

/* Stagger animations for grids */
.overview-grid .overview-card:nth-child(1) { animation-delay: 0.1s; }
.overview-grid .overview-card:nth-child(2) { animation-delay: 0.2s; }
.overview-grid .overview-card:nth-child(3) { animation-delay: 0.3s; }
.overview-grid .overview-card:nth-child(4) { animation-delay: 0.4s; }

.features-grid .feature-card:nth-child(1) { animation-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { animation-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { animation-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { animation-delay: 0.4s; }
.features-grid .feature-card:nth-child(5) { animation-delay: 0.5s; }
.features-grid .feature-card:nth-child(6) { animation-delay: 0.6s; }

/* ================================
   IMPROVED TYPOGRAPHY
   ================================ */

/* Better line heights and spacing */
h1, h2, h3, h4, h5, h6 {
    line-height: 1.3;
    margin-bottom: 0.75em;
}

p {
    line-height: 1.7;
    margin-bottom: 1.25em;
}

/* Enhanced code snippets */
.code-snippet {
    background: rgba(0, 0, 0, 0.05);
    border-left: 4px solid #007AFF;
    font-family: 'SF Mono', Monaco, 'Cascadia Code', 'Roboto Mono', Consolas, 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Better list styling */
ul {
    line-height: 1.6;
}

li {
    margin-bottom: 0.5em;
}

/* ================================
   ACCESSIBILITY IMPROVEMENTS
   ================================ */

/* Focus states for keyboard navigation */
a:focus,
button:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
    border-radius: 4px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .hero {
        background: linear-gradient(135deg, #000080 0%, #000040 100%);
    }
    
    .btn-primary {
        background: #000;
        color: #fff;
        border: 2px solid #fff;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ================================
   PRINT STYLES
   ================================ */

@media print {
    .navbar,
    .hero-visual,
    .hero-buttons,
    .footer {
        display: none;
    }
    
    .hero {
        background: none;
        color: black;
        padding: 20px 0;
    }
    
    .section {
        page-break-inside: avoid;
        padding: 20px 0;
    }
}

/* ================================
   FORM STYLES
   ================================ */

.contact-form-container {
    max-width: 600px;
    margin: 0 auto;
}

.contact-form {
    background: white;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 1rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e1e5e9;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007AFF;
    box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.contact-note {
    text-align: center;
    color: #666;
    font-style: italic;
    margin-top: 20px;
    padding: 16px;
    background: rgba(0, 122, 255, 0.05);
    border-radius: 8px;
    border-left: 4px solid #007AFF;
}

.btn-submit {
    background: #007AFF;
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 16px;
}

.btn-submit:hover {
    background: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 122, 255, 0.3);
}

.btn-submit:active {
    transform: translateY(0);
}

@media (max-width: 768px) {
    .contact-form {
        padding: 30px 20px;
    }
    
    .form-group input,
    .form-group textarea {
        padding: 14px 16px;
    }
}

/* ================================
   UNIVERSAL BROWSER COMPATIBILITY
   ================================ */

/* Prevent webkit zoom issues on mobile */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Force hardware acceleration for smoother animations */
.phone-mockup,
.app-screenshot,
.hero-visual {
    -webkit-transform: translateZ(0);
    -moz-transform: translateZ(0);
    -ms-transform: translateZ(0);
    -o-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-perspective: 1000;
    perspective: 1000;
}

/* Ensure images never exceed their containers */
img {
    max-width: 100%;
    height: auto;
    box-sizing: border-box;
}

/* Specific override for our screenshot */
.app-screenshot {
    /* Override the global img rule for our specific use case */
    height: 100% !important;
}

/* Safari-specific fixes */
@media screen and (-webkit-min-device-pixel-ratio: 0) {
    .app-screenshot {
        /* Safari sometimes ignores object-fit, use this fallback */
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        background-image: url('ios-app-screenshot.png');
    }
}

/* Firefox-specific fixes */
@-moz-document url-prefix() {
    .app-screenshot {
        object-fit: cover;
        object-position: center;
    }
}

/* ================================
   LEGAL & COMPLIANCE PAGES
   ================================ */

.legal-hero {
    padding: 120px 0 60px;
}

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

.legal-section {
    margin-bottom: 40px;
}

.legal-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 15px;
}

.legal-section p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.legal-list {
    list-style: none;
    padding-left: 0;
}

.legal-list li {
    padding-left: 30px;
    margin-bottom: 12px;
    position: relative;
    line-height: 1.8;
}

.legal-list li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #007AFF;
    font-size: 1.2rem;
    font-weight: bold;
}

.legal-list.ordered {
    counter-reset: legal-counter;
}

.legal-list.ordered li::before {
    content: counter(legal-counter) '.';
    counter-increment: legal-counter;
    color: #007AFF;
    font-weight: 600;
}

.legal-container code {
    background: #f8f9fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'SF Mono', 'Monaco', 'Courier New', monospace;
    font-size: 0.9em;
    color: #d63384;
}

/* ================================
   SUPPORT & COMPLIANCE PAGE
   ================================ */

.support-hero {
    padding: 120px 0 60px;
}

.support-status-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.status-tag {
    background: rgba(0, 122, 255, 0.1);
    color: #007AFF;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 122, 255, 0.2);
}

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

.contact-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.contact-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.contact-card p {
    margin-bottom: 20px;
    line-height: 1.7;
    color: #666;
}

.contact-card ul {
    list-style: none;
    padding: 0;
    margin: 20px 0;
}

.contact-card ul li {
    padding: 8px 0;
    line-height: 1.6;
    color: #555;
}

.contact-card ul li a {
    color: #007AFF;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-card ul li a:hover {
    color: #0051D5;
    text-decoration: underline;
}

.contact-card .btn {
    margin-top: 20px;
    display: inline-block;
}

.support-note {
    margin-top: 30px;
    padding: 20px;
    background: rgba(0, 122, 255, 0.05);
    border-left: 4px solid #007AFF;
    border-radius: 8px;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #555;
}

/* ================================
   RESPONSIVE ADJUSTMENTS
   ================================ */

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
    
    .support-status-badges {
        flex-direction: column;
    }
    
    .status-tag {
        text-align: center;
    }
    
    .legal-container {
        padding: 0 20px;
    }
}

