/* Base Styles & Variables */
:root {
    --bg-color: #0F172A;
    --bg-secondary: #1E293B;
    --bg-tertiary: #334155;
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --accent-main: #14B8A6; /* Teal */
    --accent-hover: #0D9488;
    --accent-gradient: linear-gradient(135deg, #14B8A6 0%, #3B82F6 100%);
    --border-color: rgba(255, 255, 255, 0.1);
    --card-bg: rgba(30, 41, 59, 0.7);
    --font-main: 'Outfit', sans-serif;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    box-sizing: border-box;
}

html, body {
    margin: 0;
    padding: 0;
    font-family: var(--font-main);
    background: #0F172A; /* Solid color to prevent gradient-related overflow edge cases */
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    width: 100%;
    -webkit-text-size-adjust: 100%;
}

body {
    background: linear-gradient(135deg, #0B1120 0%, #0F373A 100%);
    background-attachment: fixed;
}

h1, h2, h3, h4, p {
    margin: 0;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Typography */
h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 0.5em;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

h2 {
    font-size: clamp(1.8rem, 5vw, 3rem);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin-bottom: 0.5em;
}

h3 {
    font-size: clamp(1.3rem, 3vw, 1.5rem);
    font-weight: 700;
}

.highlight {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 1rem;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: var(--transition);
}

.btn-primary {
    background: var(--accent-main);
    color: #fff;
    box-shadow: 0 4px 14px rgba(20, 184, 166, 0.4);
}

.btn-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(20, 184, 166, 0.6);
}

.btn-outline {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--border-color);
}

.btn-outline:hover {
    border-color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.w-100 {
    width: 100%;
    box-sizing: border-box;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 5vw, 2rem);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.75rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.logo-accent {
    color: var(--accent-main);
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    font-weight: 500;
    color: var(--text-muted);
}

.nav-links a:hover {
    color: var(--text-main);
}

.btn-nav {
    padding: 10px 24px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-main);
}

.btn-nav:hover {
    background: var(--text-main);
    color: var(--bg-color);
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 2000;
}

.mobile-menu-btn span {
    width: 24px;
    height: 2px;
    background: var(--text-main);
    transition: var(--transition);
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.98);
    backdrop-filter: blur(20px);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(-10px);
}

.mobile-menu-overlay.active {
    opacity: 1;
    pointer-events: all;
    transform: translateY(0);
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(1.5rem, 5vh, 2.5rem);
    width: 100%;
    padding: 2rem;
}

.mobile-link {
    font-size: clamp(1.5rem, 8vw, 2rem);
    font-weight: 800;
    color: var(--text-main);
    transition: var(--transition);
}

.mobile-link:hover {
    color: var(--accent-main);
    transform: scale(1.05);
}

/* Form Styles */
.email-capture {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    width: 100%;
    max-width: 100%;
}

.email-capture input, 
.cta-form input {
    flex: 1;
    width: 100%;
    min-width: 0; /* Critical for flex containers */
    max-width: 100%;
    padding: 16px 24px;
    border-radius: 99px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    font-size: 1rem;
    font-family: var(--font-main);
    outline: none;
    transition: var(--transition);
    box-sizing: border-box;
}

.email-capture input:focus {
    border-color: var(--accent-main);
    background: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
    padding: clamp(100px, 15vh, 160px) clamp(1rem, 5vw, 2.5rem) 80px;
    position: relative;
    gap: clamp(2rem, 8vw, 6rem);
}

/* Background Glows */
.hero::before {
    content: '';
    position: absolute;
    top: 20%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(20, 184, 166, 0.15) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    z-index: -1;
    border-radius: 50%;
}

.hero-content {
    flex: 1;
    max-width: 600px;
}

.badge {
    display: inline-block;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-main);
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    margin-top: 24px;
    font-weight: 400;
}

.hero-guarantee {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-top: 12px;
    margin-left: 24px;
}

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

.mockup-container {
    position: relative;
    width: 100%;
}

.mockup-card {
    position: absolute;
    background: rgba(30, 41, 59, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.streak-card {
    top: 10%;
    right: 10%;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 3;
}

.streak-card .icon {
    font-size: 2rem;
    background: rgba(245, 158, 11, 0.2);
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}

.word-card {
    top: 40%;
    left: 5%;
    width: 280px;
    z-index: 2;
}

.word-card .word {
    font-size: 1.5rem;
    color: var(--accent-main);
}

.word-card .type {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 12px;
}

.word-card .meaning {
    font-size: 0.95rem;
    margin-bottom: 16px;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-color);
    border-radius: 99px;
    overflow: hidden;
}

.progress-bar .fill {
    height: 100%;
    background: var(--accent-gradient);
    border-radius: 99px;
}

.score-card {
    bottom: 10%;
    right: 20%;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 4;
}

.score-card .icon {
    font-size: 2rem;
}

.abstract-shape {
    position: absolute;
    border-radius: 50%;
    filter: blur(40px);
    z-index: 1;
}

.shape-1 {
    width: 200px;
    height: 200px;
    background: rgba(20, 184, 166, 0.2);
    top: 20%;
    left: 20%;
}

.shape-2 {
    width: 150px;
    height: 150px;
    background: rgba(139, 92, 246, 0.2);
    bottom: 20%;
    right: 30%;
}

/* Screenshot Placeholders */
.screenshot-placeholder {
    background: rgba(255, 255, 255, 0.02);
    border: 2px dashed rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(12px);
    box-shadow: inset 0 0 40px rgba(0,0,0,0.2);
}

.placeholder-text {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.screenshot-showcase {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
}

.screenshot-card {
    width: 100%;
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 40px 80px -20px rgba(0,0,0,0.6),
        0 0 60px rgba(20, 184, 166, 0.1);
}

.screenshot-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: block;
    z-index: 1;
    object-fit: cover;
}

/* First image defines the container height */
.screenshot-img:first-of-type {
    position: relative;
    height: auto;
}

.screenshot-img.active {
    opacity: 1;
    z-index: 2;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 24px;
    position: relative;
    z-index: 10;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--accent-main);
    transform: scale(1.2);
}

.phone-home-indicator {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    z-index: 6;
}

/* Cleanup old placeholder classes if needed, or keep for other sections */
.placeholder-hero {
    display: none;
}

/* Demo Section Layout */
.demo-showcase {
    padding: 120px 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.demo-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 60px;
}

.demo-text {
    flex: 1;
    max-width: 500px;
}

.demo-text h2 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 24px;
    line-height: 1.2;
}

.demo-text p {
    font-size: 1.2rem;
    color: var(--text-muted);
    line-height: 1.6;
}

.demo-visual {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.demo-screenshot-card {
    width: 100%;
    max-width: 440px; 
    position: relative;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 24px;
    overflow: hidden;
    transition: height 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 
        0 40px 80px -20px rgba(0,0,0,0.6),
        0 0 60px rgba(20, 184, 166, 0.1);
}

.demo-screenshot-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease-in-out;
    display: block;
    z-index: 1;
    object-fit: cover;
}

/* First image defines the container height */
.demo-screenshot-img:first-of-type {
    position: relative;
    height: auto;
}

.demo-screenshot-img.active {
    opacity: 1;
    z-index: 2;
}

/* Force second image to match the first image's aspect ratio */
.use-master-ratio .demo-screenshot-img {
    object-fit: cover !important;
    height: 100% !important;
}

.demo-dots {
    margin-top: 24px;
}

.progress-showcase {
    padding: 60px 24px 100px;
}

/* Trust Section */
.trust {
    padding: 40px 24px;
    text-align: center;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.02);
}

.trust-text {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 32px;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 60px;
    flex-wrap: wrap;
    opacity: 0.7;
}

.trust-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-muted);
}

/* Shared Section Styles */
section {
    padding: clamp(80px, 12vh, 120px) clamp(1rem, 5vw, 2rem);
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-top: 16px;
}

/* Features Section */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px 32px;
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(40, 53, 75, 0.8);
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 24px;
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
}

.feature-card h3 {
    margin-bottom: 12px;
}

.feature-card p {
    color: var(--text-muted);
}

/* Science Section */
.science {
    display: flex;
    align-items: center;
    gap: 60px;
}

.science-content {
    flex: 1;
}

.science-content p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 32px;
    margin-top: 16px;
}

.science-list li {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
}

.science-list .check {
    color: var(--accent-main);
    font-size: 1.2rem;
    font-weight: bold;
    background: rgba(20, 184, 166, 0.1);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    flex-shrink: 0;
}

.science-list p {
    margin: 8px 0 0;
    font-size: 0.95rem;
}

.science-visual {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 32px;
    padding: clamp(30px, 8vw, 60px) clamp(20px, 5vw, 40px);
    position: relative;
    height: 300px;
    width: 100%;
}

.graph-container {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 100%;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 20px;
}

.graph-bar {
    width: 50px;
    background: var(--bg-tertiary);
    border-radius: 8px 8px 0 0;
    position: relative;
    transition: var(--transition);
}

.graph-bar.highlight-bar {
    background: var(--accent-gradient);
}

.graph-bar span {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.85rem;
    color: var(--text-muted);
    white-space: nowrap;
}

/* Audience Section */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.audience-card {
    background: linear-gradient(180deg, var(--card-bg) 0%, rgba(15, 23, 42, 0) 100%);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: clamp(24px, 5vw, 40px);
    text-align: center;
}

.audience-card h3 {
    color: var(--accent-main);
    margin-bottom: 16px;
}

.audience-card p {
    color: var(--text-muted);
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    align-items: stretch;
    max-width: 1100px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
    position: relative;
}

.pricing-card.pro {
    background: rgba(30, 41, 59, 0.95);
    border-color: var(--accent-main);
    transform: scale(1.05);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    z-index: 2;
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent-main);
    color: white;
    padding: 4px 16px;
    border-radius: 99px;
    font-size: 0.8rem;
    font-weight: 700;
}

.plan-name {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.plan-price {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
}

.plan-price span {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
}

.plan-desc {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 32px;
    min-height: 45px;
}

.plan-features {
    margin-bottom: 40px;
}

.plan-features li {
    margin-bottom: 16px;
    padding-left: 28px;
    position: relative;
    font-size: 0.95rem;
}

.plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--accent-main);
    font-weight: bold;
}

/* Testimonials */
.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 40px;
}

.stars {
    color: var(--accent-tertiary);
    font-size: 1.2rem;
    margin-bottom: 24px;
    letter-spacing: 2px;
}

.testimonial-card p {
    font-size: 1.1rem;
    margin-bottom: 32px;
    font-style: italic;
}

.author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.avatar {
    width: 48px;
    height: 48px;
    background: var(--bg-tertiary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.2rem;
}

.author span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* FAQ Section */
.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
}

.faq-question {
    padding: 24px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    font-size: 1.1rem;
    font-weight: 500;
}

.toggle-icon {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: var(--transition);
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--text-muted);
}

/* CTA Section */
.cta-section {
    padding: 80px 24px 120px;
}

.cta-box {
    background: var(--accent-gradient);
    border-radius: 32px;
    padding: clamp(40px, 10vw, 80px) clamp(20px, 5vw, 40px);
    text-align: center;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    box-sizing: border-box;
    overflow: hidden;
    position: relative;
}

.cta-box h2 {
    margin-bottom: 16px;
}

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

.cta-form {
    max-width: 500px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cta-form input {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-form input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.cta-form .btn {
    background: #0F172A;
    color: white;
}

.secure-badges {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: clamp(10px, 2vw, 24px);
    margin-top: 32px;
    font-size: 0.85rem;
    font-weight: 500;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.9);
    width: 100%;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 80px 24px 40px;
    background: rgba(15, 23, 42, 0.5);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand p {
    color: var(--text-muted);
    margin-top: 16px;
    font-size: 0.95rem;
}

.footer-links {
    display: flex;
    gap: clamp(40px, 10vw, 80px);
    flex-wrap: wrap;
}

.link-column {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.link-column h4 {
    color: var(--text-main);
    margin-bottom: 8px;
}

.link-column a {
    color: var(--text-muted);
    font-size: 0.95rem;
}

.link-column a:hover {
    color: var(--accent-main);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid var(--border-color);
    padding-top: 24px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(8px);
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: var(--transition);
    padding: 20px;
    box-sizing: border-box;
}

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

.modal-content {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    width: 100%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    transform: translateY(20px);
    transition: var(--transition);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-content h2 {
    padding: 32px 32px 20px;
    border-bottom: 1px solid var(--border-color);
    font-size: 1.5rem;
}

.modal-close {
    position: absolute;
    top: 24px;
    right: 24px;
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    transition: var(--transition);
}

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

.modal-body {
    padding: 32px;
    overflow-y: auto;
}

.modal-body h3 {
    font-size: 1.1rem;
    margin: 24px 0 12px;
    color: var(--text-main);
}

.modal-body p {
    color: var(--text-muted);
    margin-bottom: 16px;
    font-size: 0.95rem;
}

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

.contact-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 24px;
    margin: 24px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--border-color);
}

.contact-card .icon {
    font-size: 2rem;
}

.email-link {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--accent-main);
}

.response-time {
    font-size: 0.85rem !important;
}

/* Animations */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }

.floating {
    animation: float 6s ease-in-out infinite;
}

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

/* Responsive Design Improvements */
@media (max-width: 1024px) {
    .pricing-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 992px) {
    .science {
        flex-direction: column;
        gap: 40px;
    }
    
    .science-content {
        order: 1;
    }
    
    .science-visual {
        order: 2;
        width: 100%;
        max-width: 600px;
        margin: 0 auto;
    }
    
    .demo-layout {
        gap: 40px;
    }
}

@media (max-width: 768px) {
    .nav-links, .btn-nav {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
    }
    
    .hero {
        flex-direction: column;
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-cta-group {
        width: 100%;
        max-width: 450px;
        margin: 0 auto;
    }
    
    .email-capture {
        flex-direction: column;
        gap: 10px;
        width: 100%;
    }
    
    .email-capture input, .email-capture button {
        width: 100%;
        border-radius: 99px;
    }
    
    .hero-guarantee {
        margin: 12px 0 0;
    }
    
    .hero-visual {
        width: 100%;
    }
    
    .screenshot-showcase {
        max-width: 100%;
    }

    .trust-logos {
        gap: clamp(1rem, 5vw, 2rem);
    }
    
    .footer-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }
    
    .footer-brand {
        max-width: 100%;
    }
    
    .footer-links {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
        gap: 30px;
    }

    .demo-layout {
        flex-direction: column;
        text-align: center;
    }

    .demo-text {
        max-width: 100%;
    }

    .demo-screenshot-card {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-visual {
        transform: scale(0.9);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .feature-card {
        padding: 24px 20px;
    }
    
    .cta-box {
        padding: 40px 20px;
        border-radius: 24px;
    }

    .cta-box h2 {
        font-size: 1.8rem;
    }

    .cta-box p {
        font-size: 1rem;
        margin-bottom: 24px;
    }

    .secure-badges {
        gap: 12px;
        font-size: 0.75rem;
    }

    .secure-badges span {
        background: rgba(255, 255, 255, 0.1);
        padding: 6px 12px;
        border-radius: 99px;
        display: inline-block;
        white-space: nowrap;
    }
}

@media (max-width: 360px) {
    .hero-title {
        font-size: 1.85rem;
    }
    
    .cta-box {
        padding: 30px 15px;
    }

    .cta-box h2 {
        font-size: 1.5rem;
    }

    .btn {
        padding: 12px 18px;
        font-size: 0.85rem;
    }
    
    .nav-container {
        padding: 0 16px;
    }
}

@media (max-width: 320px) {
    .hero-title {
        font-size: 1.6rem;
    }
    
    .badge {
        font-size: 0.75rem;
    }
    
    .secure-badges span {
        font-size: 0.7rem;
        padding: 4px 8px;
    }
}

@media (min-width: 1440px) {
    .nav-container, .hero, section {
        max-width: 1400px;
    }
}
