/* ==============================================
   USA Rolls - Consolidated Styles
   ============================================== */

/* ==============================================
   GLOBAL STYLES & RESETS
   ============================================== */

/* Improved Reset for Better Cross-Browser Compatibility */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Ensure consistent rendering across browsers */
html {
    -webkit-text-size-adjust: 100%;
    -ms-text-size-adjust: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

:root {
    --primary-blue: #0066cc;
    --primary-dark: #004499;
    --accent-orange: #ff6b35;
    --text-dark: #1a1a1a;
    --text-gray: #4a5568;
    --text-light: #718096;
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-light: #e2e8f0;
    --gradient-primary: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    --gradient-accent: linear-gradient(135deg, #ff6b35 0%, #e55a2b 100%);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #1a1a1a; /* Fallback */
    color: var(--text-dark);
    overflow-x: hidden;
    background: #ffffff; /* Fallback */
    background: var(--bg-white);
    min-height: 100vh;
    text-rendering: optimizeLegibility;
}

/* Ensure images and media are responsive */
img, video, iframe {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Fix for iOS button styling */
button, input, select, textarea {
    font-family: inherit;
    font-size: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

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

.nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    /* Fallback for browsers that don't support backdrop-filter */
    background: -webkit-linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98));
    background: linear-gradient(rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.98));
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid #e2e8f0; /* Fallback */
    border-bottom: 1px solid var(--border-light);
    z-index: 1000;
    -webkit-box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 2rem;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: justify;
    -ms-flex-pack: justify;
    justify-content: space-between;
    position: relative;
}

.logo {
    text-decoration: none;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
}

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

.mobile-menu-toggle {
    display: none;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    z-index: 999;
}

.mobile-menu-toggle:hover span {
    background: var(--primary-dark);
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background: #0066cc; /* Fallback */
    background: var(--primary-blue);
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    margin-top: 5px;
}

.mobile-menu-toggle span:first-child {
    margin-top: 0;
}

.nav-links {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    list-style: none;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    margin-left: auto;
    margin-right: 2rem;
}

.nav-links li {
    margin-left: 2rem;
}

.nav-links li:first-child {
    margin-left: 0;
}

.nav-links a {
    text-decoration: none;
    color: #4a5568; /* Fallback */
    color: var(--text-gray);
    font-weight: 500;
    -webkit-transition: color 0.3s ease;
    -o-transition: color 0.3s ease;
    transition: color 0.3s ease;
    position: relative;
}

.nav-links a:hover {
    color: #0066cc; /* Fallback */
    color: var(--primary-blue);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0066cc; /* Fallback */
    background: var(--primary-blue);
    -webkit-transition: width 0.3s ease;
    -o-transition: width 0.3s ease;
    transition: width 0.3s ease;
}

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

.cta-nav {
    background: #0066cc; /* Fallback */
    background: -webkit-gradient(linear, left top, right bottom, from(#0066cc), to(#004499));
    background: -webkit-linear-gradient(135deg, #0066cc 0%, #004499 100%);
    background: -o-linear-gradient(135deg, #0066cc 0%, #004499 100%);
    background: linear-gradient(135deg, #0066cc 0%, #004499 100%);
    background: var(--gradient-primary);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    -webkit-transition: all 0.3s ease;
    -o-transition: all 0.3s ease;
    transition: all 0.3s ease;
    -webkit-box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
    box-shadow: 0 4px 15px rgba(0, 102, 204, 0.3);
}

.cta-nav:hover {
    -webkit-transform: translateY(-2px);
    -ms-transform: translateY(-2px);
    transform: translateY(-2px);
    -webkit-box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.4);
}

/* ==============================================
   COMMON LAYOUT ELEMENTS
   ============================================== */

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

.section {
    padding: 4rem 0;
}

.section-alt {
    background: var(--bg-light);
}

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

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section-subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    max-width: 600px;
    margin: 0 auto;
}

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

.footer {
    background: var(--text-dark);
    color: white;
    padding: 3rem 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 2rem;
}

.footer-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--accent-orange);
}

.footer-section p,
.footer-section a {
    color: #a0aec0;
    text-decoration: none;
    line-height: 1.8;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid #2d3748;
    color: #a0aec0;
}

/* ==============================================
   MODAL STYLES
   ============================================== */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 3rem;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    position: relative;
    min-height: min-content;
}

.modal-close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.modal-close:hover {
    color: var(--text-dark);
}

.modal-content h2 {
    margin-bottom: 2rem;
    color: var(--primary-blue);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-light);
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

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

.submit-btn {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 102, 204, 0.4);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Form Message Styles */
.form-message {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-weight: 500;
    text-align: center;
    font-size: 1rem;
    line-height: 1.5;
    position: relative;
    z-index: 10;
}

.form-message-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* ==============================================
   HERO SECTIONS (COMMON)
   ============================================== */

.hero {
    background: var(--gradient-primary);
    color: white;
    padding: 8rem 2rem 4rem;
    text-align: center;
}

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

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.hero-description {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 700px;
    margin: 0 auto;
}

/* ==============================================
   HOME PAGE SPECIFIC STYLES
   ============================================== */

/* Hero Section (Home) */
.hero.home-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero.home-hero::before {
    content: '';
    position: absolute;
    top: 0;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    transform: rotate(15deg);
    z-index: 1;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1.gradient-title {
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    /* Fallback for browsers that don't support background-clip */
    color: #0066cc;
    color: var(--primary-blue);
    background: -webkit-gradient(linear, left top, right bottom, from(#0066cc), color-stop(100%, #ff6b35));
    background: -webkit-linear-gradient(135deg, #0066cc 0%, #ff6b35 100%);
    background: -o-linear-gradient(135deg, #0066cc 0%, #ff6b35 100%);
    background: linear-gradient(135deg, #0066cc 0%, #ff6b35 100%);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--accent-orange) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    /* Fallback for IE and Edge */
    @supports not (-webkit-background-clip: text) {
        background: none;
    }
}

.hero-content .subtitle {
    font-size: 1.25rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    font-weight: 500;
}

.hero-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    display: block;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    font-weight: 500;
}

.hero-cta {
    display: flex;
    gap: 1rem;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 25px rgba(0, 102, 204, 0.3);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 102, 204, 0.4);
}

.btn-secondary {
    background: transparent;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border: 2px solid var(--primary-blue);
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.btn-secondary:hover {
    background: var(--primary-blue);
    color: white;
    transform: translateY(-2px);
}

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dashboard-mockup {
    background: white;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
    max-width: 100%;
}

.mockup-header {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    align-items: center;
}

.mockup-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot-red { background: #ff5f57; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #28ca42; }

.mockup-title {
    margin-left: 1rem;
    font-size: 0.875rem;
    color: var(--text-gray);
    font-weight: 600;
}

.mockup-content {
    background: var(--bg-light);
    border-radius: 12px;
    padding: 1.5rem;
    height: 300px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.mockup-bar {
    height: 8px;
    background: var(--gradient-primary);
    border-radius: 4px;
    animation: pulse 2s infinite;
}

.mockup-row {
    display: flex;
    gap: 1rem;
}

.mockup-box {
    flex: 1;
    height: 60px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

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

/* Technology Section (Home) */
.technology {
    padding: 5rem 0;
    background: var(--bg-white);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.tech-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid var(--border-light);
}

.tech-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: block;
}

.tech-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.tech-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* Advantages Section (Home) */
.advantages {
    padding: 5rem 0;
    background: var(--bg-light);
}

.advantages-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.advantages-text h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
}

.advantages-text p {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    line-height: 1.8;
}

.advantages-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.advantage-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: white;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.advantage-item:hover {
    transform: translateX(10px);
}

.advantage-icon {
    font-size: 1.5rem;
    color: var(--accent-orange);
}

.advantage-text {
    font-weight: 600;
    color: var(--text-dark);
}

/* Quality Section (Home) */
.quality {
    padding: 5rem 0;
    background: var(--bg-white);
}

.quality-content {
    text-align: center;
}

.quality-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.quality-stat {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-light);
}

.quality-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.5rem;
}

.quality-label {
    color: var(--text-gray);
    font-weight: 600;
}

/* CTA Section */
.cta-section {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

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

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

.btn-white {
    background: white;
    color: var(--primary-blue);
    padding: 1rem 2rem;
    border: none;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

/* ==============================================
   TECHNOLOGY PAGE SPECIFIC STYLES
   ============================================== */

/* Feature Section Layout */
.feature-section {
    margin-bottom: 5rem;
}

.feature-header {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-number {
    display: inline-block;
    background: var(--gradient-primary);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    line-height: 50px;
    font-weight: 700;
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.feature-tagline {
    font-size: 1.25rem;
    color: var(--accent-orange);
    font-weight: 600;
}

/* Centered Layout */
.feature-content {
    max-width: 900px;
    margin: 0 auto;
}

.screenshot-column {
    margin-bottom: 3rem;
}

.screenshot-placeholder {
    background: linear-gradient(135deg, #e2e8f0 0%, #cbd5e0 100%);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    color: var(--text-gray);
    font-weight: 600;
    border: 2px dashed var(--border-light);
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.screenshot-placeholder::before {
    content: "📸";
    font-size: 4rem;
    display: block;
}

.benefits-column {
    text-align: center;
}

.benefits-column h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.benefit-item {
    margin-bottom: 2.5rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-label {
    font-weight: 700;
    color: var(--primary-blue);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.75rem;
}

.benefit-text {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 1.05rem;
}

.benefit-highlight {
    background: linear-gradient(135deg, rgba(0, 102, 204, 0.1) 0%, rgba(255, 107, 53, 0.05) 100%);
    padding: 2rem;
    border-radius: 12px;
    margin-top: 2.5rem;
    border: 2px solid var(--primary-blue);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-highlight-title {
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 0.75rem;
    font-size: 1.25rem;
}

/* Key Section Indicator */
.key-section .feature-number {
    background: var(--gradient-accent);
    position: relative;
}

.key-section .feature-number::after {
    content: "★";
    position: absolute;
    top: -10px;
    right: -10px;
    font-size: 1.5rem;
    color: var(--accent-orange);
}

/* Summary Section */
.summary-section {
    background: var(--gradient-primary);
    color: white;
    padding: 5rem 0;
    text-align: center;
}

.summary-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.stat-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stat-description {
    opacity: 0.9;
    font-size: 0.95rem;
}

.summary-message {
    font-size: 1.5rem;
    font-weight: 600;
    margin-top: 3rem;
    opacity: 0.95;
}

.cta-button {
    display: inline-block;
    background: white;
    color: var(--primary-blue);
    padding: 1rem 2.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    margin-top: 2rem;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.3);
}

.demo-cta-wrapper {
    text-align: center;
    margin-top: 3rem;
}

/* Scroll animations */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==============================================
   DEMO PAGE SPECIFIC STYLES
   ============================================== */

/* Video Section */
.video-section {
    padding: 5rem 2rem;
    background: var(--bg-white);
}

.video-container {
    max-width: 1000px;
    margin: 0 auto 3rem;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
}

.video-container video {
    width: 100%;
    height: auto;
    display: block;
}

.video-description {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.video-description h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
}

.video-description p {
    font-size: 1.1rem;
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* Features Grid (Demo) */
.features-section {
    padding: 5rem 2rem;
    background: var(--bg-light);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    text-align: center;
}

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

.feature-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-gray);
    line-height: 1.7;
}

/* ==============================================
   RESPONSIVE DESIGN
   ============================================== */

@media (max-width: 1200px) {
    .quality-stats {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 968px) {
    .mobile-menu-toggle {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        margin: 0;
        background: white;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
        -ms-flex-direction: column;
        flex-direction: column;
        padding: 1rem 0;
        -webkit-box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
        z-index: 998;
        border-top: 1px solid #e2e8f0;
        border-top: 1px solid var(--border-light);
    }

    .nav-links.active {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
    }

    .nav-links li {
        padding: 0.75rem 2rem;
        margin-left: 0;
    }

    /* Hide the standalone "Work With Us" button on mobile */
    .nav-container > .cta-nav {
        display: none;
    }

    .hero h1 {
        font-size: 2.25rem;
    }

    .feature-title {
        font-size: 1.75rem;
    }

    .hero-container {
        gap: 2rem;
    }

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

    .hero-visual {
        display: none;
    }

    .dashboard-mockup {
        max-width: 90%;
    }

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

    .advantages-content {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

@media (max-width: 768px) {
    .nav-container {
        padding: 1rem;
    }

    .hero {
        padding: 9rem 1rem 3rem;
        min-height: auto;
    }

    .hero.home-hero::before {
        right: -100%;
        width: 150%;
    }

    .section {
        padding: 3rem 0;
    }

    .feature-section {
        margin-bottom: 3rem;
    }

    .feature-title {
        font-size: 1.5rem;
    }

    .benefit-text {
        font-size: 1rem;
    }

    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quality-stats {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .screenshot-placeholder {
        min-height: 250px;
        padding: 2rem;
    }

    .modal-content {
        margin: 2rem auto;
        padding: 1.5rem;
        width: 95%;
    }

    .hero-container {
        grid-template-columns: 1fr;
        padding: 1rem;
    }

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

    .hero-content h1.gradient-title {
        font-size: 2rem;
    }

    .hero-content .subtitle {
        font-size: 1.1rem;
    }

    .hero-stats {
        flex-wrap: wrap;
        gap: 1rem;
        justify-content: center;
    }

    .stat {
        flex: 1;
        min-width: 100px;
    }

    .section-title {
        font-size: 2rem;
    }

    .video-section {
        padding: 3rem 1rem;
    }

    .features-section {
        padding: 3rem 1rem;
    }
}
