:root {
    --primary-color: #3b82f6;
    --primary-dark: #2563eb;
    --text-color: #333;
    --text-light: #666;
    --bg-light: #f9fafb;
    --bg-white: #ffffff;
    --accent-color: #10b981;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --radius: 12px;

    /* New variables for theme support */
    --bg-hero-gradient: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
    --bg-header: rgba(255, 255, 255, 0.9);
    --text-heading: #111;
    --bg-section-alt: #f8fafc;
    --bg-card: #ffffff; /* Explicit card bg if different from white */
    --border-card: #eee;
    --border-feature-img: white;
    --bg-footer: #1f2937;
    --border-problem: #ddd;
}

[data-theme="dark"] {
    --primary-color: #60a5fa; /* Lighter blue for dark mode */
    --primary-dark: #3b82f6;
    --text-color: #e5e7eb;
    --text-light: #9ca3af;
    --bg-light: #1f2937; /* Used for card bg in pain points */
    --bg-white: #111827; /* Main background */
    --bg-hero-gradient: linear-gradient(135deg, #111827 0%, #1f2937 100%);
    --bg-header: rgba(17, 24, 39, 0.9);
    --text-heading: #f9fafb;
    --bg-section-alt: #1f2937; /* Features section bg */
    --bg-card: #1f2937; /* Feature text card bg */
    --border-card: #374151;
    --border-feature-img: #374151;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --bg-footer: #0f172a;
    --border-problem: #4b5563;
}

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

html {
    scroll-behavior: smooth;
    -webkit-tap-highlight-color: transparent;
}

section[id] {
    scroll-margin-top: 90px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-white);
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

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

/* Header */
.header {
    background-color: var(--bg-header);
    backdrop-filter: blur(10px);
  
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav {
    display: flex;
    align-items: center;
}

.nav a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s;
}

.nav a:hover {
    color: var(--primary-color);
}

.nav .btn-primary {
    background-color: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
}

.nav .btn-primary:hover {
    background-color: var(--primary-dark);
    color: white;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 10px;
    color: var(--text-color);
    margin-left: 8px;
}

.nav-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nav-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.35);
    border: none;
    padding: 0;
    z-index: 999;
}

.nav-panel {
    display: flex;
    gap: 12px;
    align-items: center;
}

.nav-panel a {
    margin-left: 20px;
    font-weight: 500;
    color: var(--text-light);
    transition: color 0.3s;
}

.nav-panel a:hover {
    color: var(--primary-color);
}

/* Hero Section */
.hero {
    padding: clamp(44px, 8vw, 80px) 0;
    background: var(--bg-hero-gradient);
    overflow: hidden;

}

.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.hero-text {
    flex: 1;
}

.hero-text h1 {
    font-size: clamp(2.1rem, 6vw, 3rem);
    line-height: 1.2;
    margin-bottom: 20px;
    color: var(--text-heading);
}

.hero-subtitle {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 20px;
    font-weight: 600;
}

.hero-desc {
    font-size: 1.1rem;
    color: var(--text-light);
    margin-bottom: 40px;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}

.btn-lg {
    display: inline-block;
    padding: 12px 30px;
    background-color: var(--primary-color);
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 30px;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-lg:hover {
    transform: translateY(-2px);
    background-color: var(--primary-dark);
}

.btn-text {
    color: var(--text-light);
    font-weight: 500;
}

.btn-text:hover {
    color: var(--primary-color);
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    position: relative;
    border: 12px solid #2d3748; /* Dark sleek bezel */
    border-radius: 40px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    width: min(80vw, 360px);
    margin: 0 auto;
    background-color: #2d3748;
    z-index: 10;
}

/* Camera notch simulation */
.phone-frame::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 18px;
    background-color: #2d3748;
    border-bottom-left-radius: 12px;
    border-bottom-right-radius: 12px;
    z-index: 20;
}

.hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 28px; /* 40 - 12 = 28 to match curve */
    border: none;
    box-shadow: none;
}

/* Pain Points Section */
.pain-points {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
    color: var(--text-heading);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 60px;
    font-size: 1.2rem;
}

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

.card {
    background: var(--bg-light);
    padding: 30px;
    border-radius: var(--radius);
    transition: transform 0.3s, box-shadow 0.3s;
    border: 1px solid var(--border-card);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow);
}

.card .icon {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 1.4rem;
    margin-bottom: 15px;
    color: var(--text-heading);
}

.card .problem {
    color: var(--text-light);
    margin-bottom: 20px;
    font-style: italic;
    border-left: 3px solid var(--border-problem);
    padding-left: 15px;
}

.card .solution strong {
    display: block;
    color: var(--accent-color);
    margin-bottom: 5px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-section-alt);
}

.feature-row {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 60px;
    gap: 50px;
}

.feature-row.reverse {
    flex-direction: row-reverse; /* Usually for image+text, but here we just have text blocks for simplicity, keeping layout flexible */
}

.feature-text {
    max-width: 500px;
    background: var(--bg-card);
    padding: 40px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    width: 100%;
}

.feature-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0 20px;
}

.feature-image img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    border: 4px solid var(--border-feature-img);
}

.feature-text h3 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}

.feature-text ul {
    margin-top: 20px;
}

.feature-text li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.feature-text li::before {
    content: "•";
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

/* Story Section */
.story {
    padding: 80px 0;
    background-color: var(--bg-white);
    text-align: center;
}

.videos {
    padding: 80px 0;
    background-color: var(--bg-white);
}

.story-content {
    max-width: 700px;
    margin: 40px auto 0;
    text-align: left;
    line-height: 1.8;
}

.story-content p {
    margin-bottom: 20px;
    font-size: 1.1rem;
}

/* CTA Section */
.cta {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    text-align: center;
}

.cta h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

.btn-white {
    background-color: white;
    color: var(--primary-color);
    box-shadow: 0 4px 14px 0 rgba(0, 0, 0, 0.2);
}

.btn-white:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

/* Footer */
.footer {
    background-color: var(--bg-footer);
    color: #9ca3af;
    padding: 40px 0;
    text-align: center;
}

.footer a {
    color: #d1d5db;
    margin: 0 10px;
}

.footer a:hover {
    color: white;
}

.footer p {
    margin-top: 20px;
}

/* Theme Toggle Button */
.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    color: var(--text-color);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    margin-left: 20px;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .theme-toggle:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.theme-toggle svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.theme-toggle .moon-icon {
    display: block;
}

.theme-toggle .sun-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
    display: none;
}

[data-theme="dark"] .theme-toggle .sun-icon {
    display: block;
    color: #fbbf24; /* Yellow for sun */
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --radius: 16px; /* Larger radius for mobile app feel */
    }

    section[id] {
        scroll-margin-top: 80px;
    }

    .container {
        padding: 0 16px; /* Standard mobile padding */
    }

    /* Header Mobile */
    .header .container {
        flex-direction: row;
        height: 64px;
        padding: 10px 16px;
    }

    .logo {
        margin-bottom: 0;
    }

    .nav {
        margin-top: 0;
        width: auto;
    }
    
    .nav-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-panel {
        display: none;
        position: fixed;
        top: 74px;
        left: 16px;
        right: 16px;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 8px;
        background: var(--bg-header);
        border: 1px solid var(--border-card);
        border-radius: var(--radius);
        box-shadow: var(--shadow);
        z-index: 1000;
        backdrop-filter: blur(10px);
    }

    .nav-panel a {
        margin: 0;
        padding: 12px 14px;
        border-radius: 12px;
        color: var(--text-color);
    }

    .nav-panel a:hover {
        background: rgba(0, 0, 0, 0.05);
    }

    [data-theme="dark"] .nav-panel a:hover {
        background: rgba(255, 255, 255, 0.08);
    }

    .nav.is-open .nav-panel {
        display: flex;
    }

    .nav.is-open .nav-backdrop {
        display: block;
    }

    /* Hero Mobile */
    .hero {
        padding: 0.5em 0 60px; /* Reduced top padding */
        text-align: center;
    }

    .hero-content {
        flex-direction: column;
        gap: 30px;
    }

    .hero-text h1 {
        font-size: 2.2rem; /* Adjusted for mobile fit */
        margin-top: 10px;
    }

    .hero-desc {
        margin: 0 auto 24px;
        font-size: 1rem;
        padding: 0 10px;
    }

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

    .btn-lg {
        width: 100%; /* Full width buttons on mobile */
        padding: 14px 20px; /* Taller for touch */
        text-align: center;
    }

    .hero-image img {
        border-width: 0;
        box-shadow: none;
    }

    /* Pain Points Mobile */
    .pain-points {
        padding: 40px 0;
    }

    .grid-3 {
        grid-template-columns: 1fr; /* Single column */
        gap: 16px;
    }

    .card {
        padding: 20px;
    }
    
    .card .icon {
        font-size: 2rem;
        margin-bottom: 15px;
    }

    /* Features Mobile */
    .features {
        padding: 40px 0;
    }

    .feature-row, 
    .feature-row.reverse {
        flex-direction: column; /* Stack text and image */
        gap: 24px;
        margin-bottom: 40px;
    }

    .feature-text {
        padding: 0;
        background: transparent; /* Remove card bg on mobile */
        box-shadow: none; /* Remove shadow on mobile */
        max-width: 100%;
        text-align: left;
    }
    
    .feature-text h3 {
        font-size: 1.4rem;
        margin-bottom: 12px;
    }

    .feature-text ul {
        margin-top: 15px;
    }

    .feature-image {
        padding: 0;
        width: 100%;
        justify-content: center;
    }
    
    .feature-image img {
        max-height: 400px; /* Prevent images from taking up too much vertical space */
        width: auto; /* Allow natural width based on height limit */
        max-width: 100%; /* Ensure it doesn't overflow horizontally */
        margin: 0 auto; /* Center alignment */
        border-width: 2px; /* Thinner border for mobile */
    }

    /* CTA Mobile */
    .cta {
        padding: 60px 0;
    }

    .cta h2 {
        font-size: 1.8rem;
    }
    
    .cta .btn-lg {
        width: 100%;
    }

    /* Footer Mobile */
    .footer {
        padding: 30px 0;
    }
    
    .footer a {
        display: inline-block;
        padding: 10px; /* Touch target */
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        animation: none !important;
        transition: none !important;
    }
}
