/* Order4Scan Landing Page Design System */

:root {
    color-scheme: light dark;

    --accent-indigo: #6366f1;
    --accent-purple: #a855f7;

    --bg-primary: light-dark(#f8fafc, #08090f);
    --bg-secondary: light-dark(#f1f5f9, #11131f);
    --bg-tertiary: light-dark(#e2e8f0, #181b2c);
    
    --text-primary: light-dark(#0f172a, #f3f4f6);
    --text-secondary: light-dark(#475569, #9ca3af);
    --text-muted: light-dark(#94a3b8, #6b7280);
    
    --border-color: light-dark(rgba(15, 23, 42, 0.08), rgba(255, 255, 255, 0.08));
    --border-glow: rgba(99, 102, 241, 0.2);
    --border-focus: rgba(168, 85, 247, 0.6);
    
    --gradient-primary: linear-gradient(135deg, var(--accent-indigo) 0%, var(--accent-purple) 100%);
    --gradient-card: light-dark(
        linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%),
        linear-gradient(145deg, rgba(24, 27, 44, 0.7) 0%, rgba(17, 19, 31, 0.8) 100%)
    );
    --glass-bg: light-dark(rgba(255, 255, 255, 0.75), rgba(17, 19, 31, 0.65));
    
    --shadow-sm: light-dark(0 2px 8px rgba(15, 23, 42, 0.05), 0 2px 8px rgba(0, 0, 0, 0.3));
    --shadow-md: light-dark(0 8px 30px rgba(15, 23, 42, 0.06), 0 8px 30px rgba(0, 0, 0, 0.4));
    --shadow-lg: light-dark(0 16px 40px rgba(15, 23, 42, 0.08), 0 16px 40px rgba(0, 0, 0, 0.5));
    
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

    /* Dynamic specific components background */
    --bg-header: light-dark(rgba(248, 250, 252, 0.85), rgba(8, 9, 15, 0.8));
    --bg-input: light-dark(rgba(255, 255, 255, 0.7), rgba(8, 9, 15, 0.4));
    --bg-btn-secondary: light-dark(rgba(15, 23, 42, 0.05), rgba(255, 255, 255, 0.05));
    --bg-btn-secondary-hover: light-dark(rgba(15, 23, 42, 0.08), rgba(255, 255, 255, 0.1));
    --hero-glow-color: light-dark(rgba(99, 102, 241, 0.04), rgba(99, 102, 241, 0.08));
    --hero-bg-color: light-dark(rgba(248, 250, 252, 0), rgba(8, 9, 15, 0));
}

/* Explicit class-based selectors for browser fallback and pinning */
html.theme-light {
    color-scheme: light;
}

html.theme-dark {
    color-scheme: dark;
}

/* Fallback for browsers that do not support light-dark() */
@supports not (color: light-dark(red, blue)) {
    :root {
        --bg-primary: #f8fafc;
        --bg-secondary: #f1f5f9;
        --bg-tertiary: #e2e8f0;
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --text-muted: #94a3b8;
        --border-color: rgba(15, 23, 42, 0.08);
        --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
        --glass-bg: rgba(255, 255, 255, 0.75);
        --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
        --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
        --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
        --bg-header: rgba(248, 250, 252, 0.85);
        --bg-input: rgba(255, 255, 255, 0.7);
        --bg-btn-secondary: rgba(15, 23, 42, 0.05);
        --bg-btn-secondary-hover: rgba(15, 23, 42, 0.08);
        --hero-glow-color: rgba(99, 102, 241, 0.04);
        --hero-bg-color: rgba(248, 250, 252, 0);
    }
    
    @media (prefers-color-scheme: dark) {
        :root:not(.theme-light) {
            --bg-primary: #08090f;
            --bg-secondary: #11131f;
            --bg-tertiary: #181b2c;
            --text-primary: #f3f4f6;
            --text-secondary: #9ca3af;
            --text-muted: #6b7280;
            --border-color: rgba(255, 255, 255, 0.08);
            --gradient-card: linear-gradient(145deg, rgba(24, 27, 44, 0.7) 0%, rgba(17, 19, 31, 0.8) 100%);
            --glass-bg: rgba(17, 19, 31, 0.65);
            --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
            --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
            --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
            --bg-header: rgba(8, 9, 15, 0.8);
            --bg-input: rgba(8, 9, 15, 0.4);
            --bg-btn-secondary: rgba(255, 255, 255, 0.05);
            --bg-btn-secondary-hover: rgba(255, 255, 255, 0.1);
            --hero-glow-color: rgba(99, 102, 241, 0.08);
            --hero-bg-color: rgba(8, 9, 15, 0);
        }
    }
    
    html.theme-dark {
        --bg-primary: #08090f;
        --bg-secondary: #11131f;
        --bg-tertiary: #181b2c;
        --text-primary: #f3f4f6;
        --text-secondary: #9ca3af;
        --text-muted: #6b7280;
        --border-color: rgba(255, 255, 255, 0.08);
        --gradient-card: linear-gradient(145deg, rgba(24, 27, 44, 0.7) 0%, rgba(17, 19, 31, 0.8) 100%);
        --glass-bg: rgba(17, 19, 31, 0.65);
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
        --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.4);
        --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
        --bg-header: rgba(8, 9, 15, 0.8);
        --bg-input: rgba(8, 9, 15, 0.4);
        --bg-btn-secondary: rgba(255, 255, 255, 0.05);
        --bg-btn-secondary-hover: rgba(255, 255, 255, 0.1);
        --hero-glow-color: rgba(99, 102, 241, 0.08);
        --hero-bg-color: rgba(8, 9, 15, 0);
    }
    
    html.theme-light {
        --bg-primary: #f8fafc;
        --bg-secondary: #f1f5f9;
        --bg-tertiary: #e2e8f0;
        --text-primary: #0f172a;
        --text-secondary: #475569;
        --text-muted: #94a3b8;
        --border-color: rgba(15, 23, 42, 0.08);
        --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(241, 245, 249, 0.9) 100%);
        --glass-bg: rgba(255, 255, 255, 0.75);
        --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
        --shadow-md: 0 8px 30px rgba(15, 23, 42, 0.06);
        --shadow-lg: 0 16px 40px rgba(15, 23, 42, 0.08);
        --bg-header: rgba(248, 250, 252, 0.85);
        --bg-input: rgba(255, 255, 255, 0.7);
        --bg-btn-secondary: rgba(15, 23, 42, 0.05);
        --bg-btn-secondary-hover: rgba(15, 23, 42, 0.08);
        --hero-glow-color: rgba(99, 102, 241, 0.04);
        --hero-bg-color: rgba(248, 250, 252, 0);
    }
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    font-family: var(--font-body);
}

body {
    overflow-x: hidden;
    line-height: 1.6;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-smooth);
}

/* Typography & Helpers */
h1, h2, h3, h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.gradient-text {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-indigo);
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 9999px;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-height: 48px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.4);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.6);
}

.btn-secondary {
    background: var(--bg-btn-secondary);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-btn-secondary-hover);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Header & Nav */
.main-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: var(--bg-header);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-smooth);
}

.main-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.logo-icon {
    color: var(--accent-indigo);
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.nav-link:hover {
    color: var(--text-primary);
}

.cta-btn-nav {
    background: var(--gradient-primary);
    color: #fff;
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.cta-btn-nav:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(99, 102, 241, 0.5);
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* Hero Section */
.hero-section {
    padding: 180px 0 100px;
    background: radial-gradient(circle at 80% 20%, var(--hero-glow-color) 0%, var(--hero-bg-color) 60%);
    position: relative;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 4rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3.5rem;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.hero-media {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.media-glow {
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, rgba(99, 102, 241, 0) 70%);
    filter: blur(40px);
    z-index: 1;
}

.media-container {
    position: relative;
    z-index: 2;
    border-radius: 24px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.01) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: var(--shadow-lg);
}

.mockup-img {
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    display: block;
}

/* Features Section */
.features-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: var(--gradient-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-glow);
    box-shadow: 0 12px 30px rgba(99, 102, 241, 0.1);
}

.feature-icon-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--accent-indigo);
    margin-bottom: 1.75rem;
}

.feature-card-title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.feature-card-desc {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
}

.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.testimonial-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.quote-icon {
    font-size: 2rem;
    color: rgba(99, 102, 241, 0.2);
    margin-bottom: 1.5rem;
}

.testimonial-text {
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-size: 1rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid var(--border-color);
    padding-top: 1.25rem;
}

.author-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-purple);
    font-size: 1.25rem;
}

.author-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.author-role {
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background-color: var(--bg-primary);
    position: relative;
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 4rem;
}

.step-card {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    position: relative;
    transition: var(--transition-smooth);
}

.step-card:hover {
    transform: translateY(-5px);
    border-color: var(--border-glow);
    box-shadow: 0 10px 25px rgba(99, 102, 241, 0.08);
}

.step-number {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-family: var(--font-heading);
    font-size: 2.5rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.step-icon {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    background: rgba(168, 85, 247, 0.1);
    border: 1px solid rgba(168, 85, 247, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--accent-purple);
    margin-bottom: 1.5rem;
}

.step-title {
    font-size: 1.15rem;
    margin-bottom: 0.75rem;
}

.step-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Restaurant Owner Benefits Section */
.benefits-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
}

.benefits-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.benefits-media {
    position: relative;
    height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.benefits-glow {
    position: absolute;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(168, 85, 247, 0) 70%);
    filter: blur(30px);
}

.benefits-card-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 1.5rem;
    z-index: 2;
}

.benefit-overlay-card {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 1.5rem;
    display: flex;
    gap: 1.25rem;
    align-items: center;
    max-width: 420px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
}

.benefit-overlay-card:hover {
    transform: translateX(10px);
    border-color: rgba(99, 102, 241, 0.3);
}

.benefit-overlay-card i {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #10b981;
    flex-shrink: 0;
}

.benefit-overlay-card.second-card i {
    background: rgba(99, 102, 241, 0.1);
    border-color: rgba(99, 102, 241, 0.2);
    color: var(--accent-indigo);
}

.benefit-overlay-card.third-card i {
    background: rgba(168, 85, 247, 0.1);
    border-color: rgba(168, 85, 247, 0.2);
    color: var(--accent-purple);
}

.benefit-overlay-card h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.benefit-overlay-card p {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.benefits-content {
    display: flex;
    flex-direction: column;
}

.benefits-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.benefits-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 1.75rem;
}

.benefit-item {
    display: flex;
    gap: 1.25rem;
    align-items: flex-start;
}

.benefit-icon {
    font-size: 1.25rem;
    color: #10b981;
    margin-top: 0.15rem;
}

.benefit-text h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
}

.benefit-text p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Contact & Form Section */
.contact-section {
    padding: 100px 0;
    background-color: var(--bg-secondary);
    position: relative;
}

.contact-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    gap: 4rem;
    align-items: start;
}

.contact-info-panel {
    padding-top: 1rem;
}

.contact-info-title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.contact-info-desc {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 3rem;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-detail-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.detail-icon {
    width: 48px;
    height: 48px;
    border-radius: 10px;
    background: rgba(99, 102, 241, 0.08);
    border: 1px solid rgba(99, 102, 241, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-indigo);
    font-size: 1.2rem;
}

.detail-content h4 {
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.detail-content p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.detail-content a:hover {
    color: var(--accent-indigo);
}

/* Demo Form panel */
.contact-form-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 3rem;
    box-shadow: var(--shadow-lg);
}

.form-title {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
}

.form-subtitle {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

/* Inputs and Forms */
.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.02em;
}

.form-group label .required {
    color: #ef4444;
}

.input-wrapper {
    position: relative;
    width: 100%;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
    transition: var(--transition-smooth);
}

.textarea-icon {
    top: 1.25rem;
    transform: none;
}

.form-group input, 
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.75rem;
    background-color: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.95rem;
    outline: none;
    min-height: 48px;
    transition: var(--transition-smooth);
}

.form-group textarea {
    resize: vertical;
    min-height: 110px;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.15);
    background-color: light-dark(rgba(255, 255, 255, 0.95), rgba(8, 9, 15, 0.7));
}

@supports not (color: light-dark(red, blue)) {
    .form-group input:focus,
    .form-group textarea:focus {
        background-color: rgba(8, 9, 15, 0.7);
    }
    
    html.theme-light .form-group input:focus,
    html.theme-light .form-group textarea:focus {
        background-color: rgba(255, 255, 255, 0.95);
    }
}

.form-group input:focus + .input-icon,
.form-group textarea:focus + .input-icon {
    color: var(--accent-purple);
}

/* User interaction-based CSS native validation */
.form-group input:user-invalid,
.form-group textarea:user-invalid {
    border-color: #ef4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15);
}

.form-group input:user-valid,
.form-group textarea:user-valid {
    border-color: #10b981;
}

.field-error {
    font-size: 0.8rem;
    color: #ef4444;
    margin-top: 0.4rem;
    min-height: 1rem;
    display: block;
}

/* Alerts styling */
.alert {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    line-height: 1.4;
}

.alert-success {
    background-color: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #34d399;
}

.alert-error {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: #f87171;
}

.alert-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* Spinner and dynamic submit status */
.spinner {
    margin-left: 0.5rem;
}

.button-arrow {
    margin-left: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-primary:hover .button-arrow {
    transform: translateX(4px);
}

/* Footer Section */
.main-footer {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border-color);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-desc {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 1.5rem 0;
    max-width: 320px;
}

.social-links {
    display: flex;
    gap: 1rem;
}

.social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.social-links a:hover {
    color: var(--text-primary);
    background: var(--accent-indigo);
    border-color: var(--accent-indigo);
    transform: translateY(-2px);
}

.footer-links-group h4 {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.footer-links-group a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
}

.footer-links-group a:hover {
    color: var(--accent-indigo);
    padding-left: 2px;
}

.footer-bottom {
    border-top: 1px solid var(--border-color);
    padding-top: 2rem;
}

.footer-bottom-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.heart-icon {
    color: #ef4444;
    margin: 0 0.1rem;
}

/* Toast System */
.toast-container {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.toast {
    background-color: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-left: 4px solid var(--accent-indigo);
    border-radius: 8px;
    padding: 1rem 1.5rem;
    min-width: 300px;
    max-width: 450px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    box-shadow: var(--shadow-lg);
    animation: slideIn 0.3s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #ef4444;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
}

.toast-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1rem;
}

.toast-close:hover {
    color: var(--text-primary);
}

@keyframes slideIn {
    from {
        transform: translateY(1rem);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: center;
    }
    .hero-content {
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    .hero-actions {
        justify-content: center;
    }
    .hero-stats {
        justify-content: center;
    }
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .benefits-grid-layout {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .benefits-media {
        height: auto;
        min-height: 320px;
    }
    .benefits-card-wrapper {
        align-items: center;
    }
    .testimonials-slider {
        grid-template-columns: repeat(2, 1fr);
    }
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    .main-header .container {
        position: relative;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .navbar {
        position: absolute;
        top: 80px;
        left: 0;
        width: 100%;
        background-color: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        flex-direction: column;
        padding: 2rem 0;
        gap: 1.5rem;
        display: none;
    }
    .navbar.active {
        display: flex;
    }
    .hero-title {
        font-size: 2.75rem;
    }
    .features-grid {
        grid-template-columns: 1fr;
    }
    .steps-grid {
        grid-template-columns: 1fr;
    }
    .benefit-overlay-card {
        max-width: 100%;
    }
    .testimonials-slider {
        grid-template-columns: 1fr;
    }
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .contact-form-panel {
        padding: 2rem;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-bottom-flex {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .hero-actions {
        flex-direction: column;
        width: 100%;
        gap: 1rem;
    }
    .hero-actions .btn {
        width: 100%;
    }
    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

/* Theme Toggle Button Styles */
.theme-toggle-btn {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    outline: none;
    position: relative;
    overflow: hidden;
}

.theme-toggle-btn:hover {
    background: var(--bg-btn-secondary-hover);
    color: var(--text-primary);
    border-color: var(--border-glow);
    transform: scale(1.05);
}

.theme-toggle-btn:active {
    transform: scale(0.95);
}

.theme-toggle-icon {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.theme-toggle-btn:hover .theme-toggle-icon {
    transform: rotate(20deg);
}

/* Responsive Theme Toggle adjustments */
@media (max-width: 768px) {
    .theme-toggle-btn {
        margin: 0.5rem auto;
    }
}

/* View Transitions Custom Animations for Clip-Path Circle Reveal */
::view-transition-old(root),
::view-transition-new(root) {
    animation: none;
    mix-blend-mode: normal;
}

::view-transition-old(root) {
    z-index: 1;
}

::view-transition-new(root) {
    z-index: 9999;
}

.theme-dark::view-transition-old(root) {
    z-index: 9999;
}

.theme-dark::view-transition-new(root) {
    z-index: 1;
}
