/* Mobile-specific overrides - OpenAI Style */
/* Only applies when screen width is <= 768px */

:root {
    --mobile-padding: 24px;
}

/* Reset & Base */
body {
    font-size: 16px; /* Base size for readability */
    -webkit-text-size-adjust: 100%;
}

.container {
    padding: 0 var(--mobile-padding);
    width: 100%;
    max-width: 100%;
}

/* 1. Header & Navigation */
.site-header {
    padding: 16px 0;
    background: rgba(255,255,255,0.95); /* More opaque on mobile */
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo img {
    height: 32px; /* Smaller logo */
}

/* Hide PC Nav */
.main-nav, 
.header-actions {
    display: none !important;
}

/* Mobile Menu Trigger */
.mobile-menu-btn {
    display: block; /* Override styles.css */
    background: none;
    border: none;
    padding: 8px;
    cursor: pointer;
    z-index: 200;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: #000;
    margin: 5px 0;
    transition: all 0.3s ease;
}

/* Mobile Menu Overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: #fff;
    z-index: 150;
    padding: 80px 24px 40px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    display: flex;
    flex-direction: column;
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-links a {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    color: #000;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 16px;
}

.mobile-menu-actions {
    margin-top: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.mobile-menu-actions .btn {
    width: 100%;
    text-align: center;
    padding: 16px;
    font-size: 1rem;
}

/* 2. Typography */
h1.hero-title {
    font-size: 2.5rem !important;
    line-height: 1.2;
    margin-bottom: 20px;
}

h2 {
    font-size: 2rem !important;
    line-height: 1.3;
    margin-bottom: 20px;
}

h3 {
    font-size: 1.4rem !important;
    margin-top: 0;
}

p {
    font-size: 1.05rem !important;
    line-height: 1.65;
    color: #333 !important; /* Darker for better contrast outdoors */
}

.long-form-text {
    font-size: 1.1rem !important;
    margin-bottom: 30px;
}

/* 3. Sections & Layout */
section {
    padding: 60px 0 !important;
    border-top: none !important; /* Cleaner look */
}

.subsection-divider {
    margin: 40px 0 !important;
    width: 100% !important;
    background: #f0f0f0;
}

/* Flatten Grids */
.grid-2, 
.grid-3, 
.feature-detail-grid,
.speed-section-layout,
.bento-grid,
.customers-grid,
.stats-row,
.footer-top,
.footer-nav {
    display: flex !important;
    flex-direction: column !important;
    gap: 40px !important;
}

/* Reverse order for some sections (Image first vs Text first) */
/* Default: Text first (natural flow) */
.detail-image {
    order: -1; /* Image on top for visual engagement */
    margin-bottom: 20px;
    border: none !important; /* Remove border for cleaner look */
    background: transparent !important;
}

.detail-image img {
    border-radius: 4px;
}

/* 4. Components specific adjustments */

/* Hero */
.hero {
    padding: 60px 0 60px;
}

.hero-actions {
    flex-direction: column;
    width: 100%;
}

.hero-actions .btn {
    width: 100%;
    text-align: center;
    padding: 16px;
}

/* Speed Demo */
.speed-section-layout {
    gap: 40px !important;
}

.speed-demo-container {
    margin-top: 0 !important;
    box-shadow: none !important; /* Flat design */
    border: 1px solid #e5e5e5;
    border-radius: 8px;
}

.demo-terminal {
    height: 350px !important; /* Fixed height for mobile */
}

/* Tech List */
.tech-list li {
    padding-left: 16px;
    margin-bottom: 12px;
}

/* Bento Cards */
.bento-card {
    padding: 24px !important;
    border-radius: 12px !important;
    background: #f9f9f9 !important; /* Slightly lighter grey */
    border: none !important;
}

.big-stat {
    font-size: 3rem !important;
}

/* Stats Row */
.stat {
    text-align: left;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.stat:last-child {
    border-bottom: none;
}

/* Customers */
.card-media {
    height: auto !important;
    aspect-ratio: 16/9;
    border-radius: 8px;
}

.play-button {
    width: 48px;
    height: 48px;
    font-size: 16px;
}

/* Contact Form */
.contact-form-wrapper {
    margin-top: 20px;
}

.minimal-form .form-input {
    padding: 16px; /* Larger touch target */
    font-size: 16px; /* Prevent iOS zoom */
}

.minimal-form .btn {
    width: 100%;
    padding: 16px;
}

/* Footer */
.footer-nav {
    flex-direction: column;
    gap: 30px !important;
}

.footer-bottom {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
}

/* HIDE non-essential elements for mobile */
.visual-icon, 
.voice-shape, 
.persona-shape,
.device-flow-vertical { 
    /* Simplify complex diagrams */
    display: none !important; 
}

/* Animation for Menu Button */
.mobile-menu-btn.open span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}
.mobile-menu-btn.open span:nth-child(2) {
    opacity: 0;
}
.mobile-menu-btn.open span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -5px);
}

