/* Reset & Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #FF9500;
    --primary-dark: #E68600;
    --secondary: #C0C0C0;
    --accent: #FFA500;
    --dark: #0a0e1a;
    --dark-light: #121829;
    --dark-card: #161d30;
    --gray: #8B8B8B;
    --gray-light: #CBD5E1;
    --white: #FFFFFF;
    --gradient: linear-gradient(135deg, #FF9500 0%, #FFB347 100%);
    --gradient-dark: linear-gradient(135deg, #E68600 0%, #FF9500 100%);
    --gradient-subtle: linear-gradient(135deg, rgba(255, 149, 0, 0.08) 0%, rgba(255, 179, 71, 0.04) 100%);
    --border: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 149, 0, 0.4);
    --glow: 0 0 40px rgba(255, 149, 0, 0.15);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--dark);
    color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* ============================
   Navigation
   ============================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(10, 14, 26, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border-bottom: 1px solid var(--border);
}

.navbar.compact {
    background: rgba(10, 14, 26, 0.92);
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0;
    height: 70px;
}

.navbar.compact .nav-content {
    padding: 0.75rem 0;
}

.logo {
    display: flex;
    align-items: center;
    position: relative;
    z-index: 10;
    margin: -15px 0 -45px 0;
}

.logo svg {
    width: 120px;
    height: 120px;
}

.logo-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: var(--gray-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.3s;
    letter-spacing: 0.02em;
}

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

.nav-title {
    font-family: 'Space Mono', monospace;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: var(--white);
    text-transform: uppercase;
}

.nav-actions {
    display: flex;
    gap: 1rem;
}

.nav-actions .btn-primary {
    padding: 0.6rem 1.5rem;
    font-size: 0.9rem;
}

/* Logo image */
.logo-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    filter: drop-shadow(0 10px 30px rgba(255, 149, 0, 0.4));
    transition: transform 0.3s ease;
}

.logo-img:hover {
    transform: scale(1.05);
}

/* ============================
   Buttons
   ============================ */
.btn-primary,
.btn-secondary {
    padding: 0.75rem 1.5rem;
    border-radius: 0.625rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    font-size: 0.95rem;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 20px rgba(255, 149, 0, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(255, 149, 0, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.06);
    color: var(--white);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.btn-large {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-nav {
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
}

.btn-showcase {
    padding: 0.75rem 1.5rem;
    font-size: 0.95rem;
}

.btn-cta {
    padding: 0.875rem 1.75rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* ============================
   App Showcase Section
   ============================ */
.app-showcase {
    position: relative;
    padding: 5rem 0 4rem;
    padding-top: 4rem;
    overflow: hidden;
    text-align: center;
    margin-top: 70px;
}

.app-showcase.compact {
    padding: 4rem 0 2rem;
    padding-top: 3rem;
    margin-top: 70px;
}

.device-frame {
    max-width: 1200px;
    margin: 0 auto 1.5rem;
    animation: fadeInUp 0.8s 0.2s backwards;
    position: relative;
}

.app-showcase.compact .device-frame {
    max-width: 1400px;
    margin: 0 auto 1rem;
}

.device-screen {
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow:
        0 25px 60px rgba(0, 0, 0, 0.5),
        0 10px 25px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.08),
        0 0 80px rgba(255, 149, 0, 0.06);
}

.device-screen::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(10, 14, 26, 0.3) 0%,
            rgba(255, 149, 0, 0.05) 25%,
            rgba(255, 179, 71, 0.05) 75%,
            rgba(10, 14, 26, 0.3) 100%);
    z-index: 5;
    pointer-events: none;
}

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

.screenshot {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 1s ease-in-out;
}

.screenshot-light {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    z-index: 1;
}

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

.screenshot-container.show-light .screenshot-light {
    opacity: 1;
}

.screenshot-container.show-light .screenshot-dark {
    opacity: 0;
}

.mode-indicator {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s 0.3s backwards;
    position: relative;
    z-index: 15;
}

.mode-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    transition: all 0.3s;
    cursor: pointer;
}

.mode-dot.light {
    background: #f0f0f0;
    box-shadow: 0 0 0 2px transparent;
}

.mode-dot.dark {
    background: #1e293b;
    box-shadow: 0 0 0 2px transparent;
}

.mode-dot.active {
    box-shadow: 0 0 0 2px var(--primary);
    transform: scale(1.2);
}

.showcase-cta {
    animation: fadeInUp 0.8s 0.4s backwards;
    position: relative;
    z-index: 15;
}

/* ============================
   Hero Section
   ============================ */
.hero {
    position: relative;
    padding: 6rem 0;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.gradient-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.2;
    animation: float 20s infinite;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--primary);
    top: -200px;
    left: -200px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--secondary);
    top: 100px;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent);
    bottom: -100px;
    left: 50%;
    animation-delay: -10s;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }

    33% {
        transform: translate(30px, -30px) scale(1.1);
    }

    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    text-align: center;
    margin: 0 auto;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border);
    border-radius: 2rem;
    font-size: 0.875rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.6s;
}

.badge-icon {
    font-size: 1.25rem;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    animation: fadeInUp 0.6s 0.1s backwards;
    letter-spacing: -0.02em;
}

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

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--gray-light);
    margin-bottom: 2.5rem;
    line-height: 1.8;
    animation: fadeInUp 0.6s 0.2s backwards;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 4rem;
    animation: fadeInUp 0.6s 0.3s backwards;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
    animation: fadeInUp 0.6s 0.4s backwards;
}

.stat {
    text-align: center;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: var(--gray);
    font-size: 0.875rem;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================
   Section Styles
   ============================ */
section {
    padding: 6rem 0;
}

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

.section-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: rgba(255, 149, 0, 0.1);
    color: var(--primary);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 1rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
}

.section-subtitle {
    font-size: 1.15rem;
    color: var(--gray-light);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

/* ============================
   ROI Section
   ============================ */
.roi-section {
    background: var(--dark);
    padding: 5rem 0;
    position: relative;
}

.roi-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.2), transparent);
}

.roi-table-wrapper {
    max-width: 100%;
    margin: 0 auto;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.3);
}

.roi-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.roi-table thead {
    background: rgba(255, 255, 255, 0.04);
}

.roi-table th {
    padding: 1rem 1.25rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--gray);
    border-bottom: 1px solid var(--border);
}

.roi-table td {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    color: var(--gray-light);
    line-height: 1.5;
    font-size: 0.9rem;
}

.roi-table tbody tr:hover {
    background: rgba(255, 149, 0, 0.03);
}

.roi-table tbody tr:last-child td {
    border-bottom: none;
}

.roi-feature {
    font-weight: 600;
    color: var(--white);
    white-space: nowrap;
}

.roi-icon {
    margin-right: 0.5rem;
    font-size: 1.1rem;
}

.roi-savings {
    text-align: right;
    white-space: nowrap;
}

.roi-amount {
    font-weight: 700;
    color: #10B981;
    font-size: 0.95rem;
}

.roi-total-row {
    background: rgba(255, 149, 0, 0.06);
    border-top: 2px solid var(--primary);
}

.roi-total-row td {
    border-bottom: none;
    padding: 1.25rem 1.25rem;
}

.roi-total-label {
    font-weight: 700;
    color: var(--white);
    font-size: 1rem;
}

.roi-total {
    font-size: 1.3rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.roi-note {
    text-align: center;
    color: var(--gray);
    font-size: 0.8rem;
    margin-top: 1.25rem;
    font-style: italic;
}

/* ============================
   Features Grid — Modern
   ============================ */
.features {
    background: var(--dark-light);
    position: relative;
}

.features::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.2), transparent);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.feature-card {
    padding: 1.75rem;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--gradient);
    opacity: 0;
    transition: opacity 0.4s;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-hover);
    box-shadow: var(--glow);
}

.feature-card:hover::before {
    opacity: 1;
}

/* Inline icon + title layout */
.feature-icon-inline {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.feature-icon-inline h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    letter-spacing: -0.01em;
}

.feature-icon {
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon.blue {
    background: rgba(255, 149, 0, 0.15);
    color: var(--primary);
}

.feature-icon.purple {
    background: rgba(168, 85, 247, 0.15);
    color: #A855F7;
}

.feature-icon.green {
    background: rgba(16, 185, 129, 0.15);
    color: #10B981;
}

.feature-icon.orange {
    background: rgba(251, 146, 60, 0.15);
    color: #FB923C;
}

.feature-icon.pink {
    background: rgba(236, 72, 153, 0.15);
    color: #EC4899;
}

.feature-icon.cyan {
    background: rgba(6, 182, 212, 0.15);
    color: #06B6D4;
}

.feature-card h3 {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--gray-light);
    line-height: 1.7;
    font-size: 0.9rem;
}

/* ============================
   Pricing — 4-Column Tiered
   ============================ */
.pricing {
    background: var(--dark);
    position: relative;
}

.pricing::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 149, 0, 0.15), transparent);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-grid.four-col {
    grid-template-columns: repeat(4, 1fr);
}

.pricing-card {
    position: relative;
    padding: 2rem;
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.pricing-card:hover {
    transform: translateY(-6px);
    border-color: rgba(255, 149, 0, 0.3);
    box-shadow: var(--glow);
}

.pricing-card.featured {
    background: linear-gradient(135deg, rgba(255, 149, 0, 0.08), rgba(255, 179, 71, 0.04));
    border-color: var(--primary);
    transform: scale(1.03);
}

.pricing-card.featured:hover {
    transform: scale(1.03) translateY(-6px);
}

.pricing-card.enterprise {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.06), rgba(79, 70, 229, 0.04));
    border-color: rgba(168, 85, 247, 0.3);
}

.pricing-card.enterprise:hover {
    border-color: rgba(168, 85, 247, 0.5);
    box-shadow: 0 0 40px rgba(168, 85, 247, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.4rem 1rem;
    background: var(--gradient);
    border-radius: 2rem;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pricing-card h3 {
    font-size: 1.35rem;
    margin-bottom: 0.25rem;
    font-weight: 700;
}

.pricing-mechanic-count {
    font-size: 0.85rem;
    color: var(--gray);
    margin-bottom: 1rem;
    font-weight: 500;
}

.price {
    margin: 0.75rem 0 1.25rem;
}

.price-amount {
    font-size: 2.75rem;
    font-weight: 800;
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.price-period {
    color: var(--gray);
    font-size: 1rem;
}

.price-description {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.price-features {
    list-style: none;
    margin-bottom: 1.5rem;
    flex: 1;
}

.price-features li {
    padding: 0.5rem 0;
    color: var(--gray-light);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.price-features li:last-child {
    border-bottom: none;
}

/* ============================
   Migration Section
   ============================ */
.migration {
    background: var(--dark);
    padding: 4rem 0;
}

.migration-banner {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.06), rgba(6, 182, 212, 0.06));
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 1.25rem;
    position: relative;
    overflow: hidden;
}

.migration-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #10B981, #06B6D4, #10B981);
}

.migration-icon {
    font-size: 3rem;
    min-width: 60px;
    text-align: center;
}

.migration-content h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    letter-spacing: -0.01em;
}

.migration-content p {
    color: var(--gray-light);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.migration-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.migration-chip {
    padding: 0.35rem 0.85rem;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 2rem;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--gray-light);
    transition: all 0.3s;
}

.migration-chip:hover {
    border-color: rgba(16, 185, 129, 0.4);
    color: #10B981;
}

@media (max-width: 768px) {
    .migration-banner {
        flex-direction: column;
        padding: 2rem;
        text-align: center;
    }

    .migration-icon {
        min-width: auto;
    }

    .migration-platforms {
        justify-content: center;
    }

    .migration-content h2 {
        font-size: 1.4rem;
    }
}

/* ============================
   Footer
   ============================ */
.footer {
    background: var(--dark-light);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column h4 {
    margin-bottom: 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-light);
}

.footer-column a {
    display: block;
    color: var(--gray);
    text-decoration: none;
    margin-bottom: 0.75rem;
    transition: color 0.3s;
    font-size: 0.9rem;
}

.footer-column a:hover {
    color: var(--white);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
    color: var(--gray);
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--gray);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: var(--gray-light);
}

/* ============================
   Modal Styles
   ============================ */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    animation: fadeIn 0.2s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.modal-content {
    background: var(--dark-card);
    border: 1px solid var(--border);
    border-radius: 1.25rem;
    max-width: 480px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 2rem;
    animation: slideUp 0.3s ease-out;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: var(--gray-light);
    font-size: 1.5rem;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
}

.modal-header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.modal-header h2 {
    font-size: 1.75rem;
    margin: 0.75rem 0 0.5rem;
}

.modal-header p {
    color: var(--gray-light);
    font-size: 0.95rem;
}

/* Modal Form Styles */
.modal-content .demo-form {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-content .demo-form label {
    display: block;
    margin-top: 0.75rem;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
    color: var(--gray-light);
}

.modal-content .demo-form input {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-size: 1rem;
    transition: border-color 0.2s;
}

.modal-content .demo-form textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--white);
    font-size: 1rem;
    font-family: inherit;
    resize: vertical;
    min-height: 100px;
    transition: border-color 0.2s;
}

.modal-content .demo-form input:focus,
.modal-content .demo-form textarea:focus {
    outline: none;
    border-color: var(--primary);
}

.modal-content .demo-form input::placeholder,
.modal-content .demo-form textarea::placeholder {
    color: var(--gray);
}

.modal-content .captcha-box {
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 0.5rem;
}

.modal-content .captcha-box label {
    margin-top: 0;
}

.modal-content .demo-form button[type="submit"] {
    margin-top: 1.5rem;
}

/* Modal Success State */
.modal-success {
    text-align: center;
    padding: 2rem 1rem;
}

.modal-success .success-icon {
    width: 64px;
    height: 64px;
    background: var(--gradient);
    color: white;
    font-size: 2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.modal-success h3 {
    color: var(--primary);
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.modal-success p {
    color: var(--gray-light);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

/* Error message in modal */
.modal-content .error-message {
    color: #EF4444;
    background: rgba(239, 68, 68, 0.1);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ============================
   Responsive
   ============================ */
@media (max-width: 1200px) {
    .pricing-grid.four-col {
        grid-template-columns: repeat(2, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }

    .app-showcase.compact .device-frame {
        max-width: 90%;
    }

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

    .device-screen {
        border-radius: 8px;
    }
}

@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .nav-title {
        display: none;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-title.compact {
        font-size: 1.8rem;
    }

    .app-showcase {
        padding: 2.5rem 0 3rem;
    }

    .app-showcase.compact {
        padding: 2rem 0 2rem;
    }

    .device-screen {
        border-radius: 4px;
    }

    .hero-cta {
        flex-direction: column;
    }

    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }

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

    .features-grid,
    .pricing-grid,
    .pricing-grid.four-col {
        grid-template-columns: 1fr;
    }

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

    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .price-amount {
        font-size: 2.25rem;
    }

    /* ROI table mobile */
    .roi-table-wrapper {
        border-radius: 0.75rem;
    }

    .roi-table thead {
        display: none;
    }

    .roi-table tbody tr {
        display: flex;
        flex-direction: column;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }

    .roi-table tbody tr:last-child {
        border-bottom: none;
    }

    .roi-table td {
        padding: 0.25rem 0;
        border-bottom: none;
    }

    .roi-feature {
        white-space: normal;
        font-size: 0.95rem;
    }

    .roi-savings {
        text-align: left;
    }

    .roi-total-row {
        display: flex;
        flex-direction: column;
        padding: 1.25rem;
    }

    .roi-total-row td {
        padding: 0.25rem 0;
    }

    .roi-total-label {
        font-size: 0.9rem;
    }

    .roi-total {
        font-size: 1.1rem;
    }
}

/* Spinning animation for loading state */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
