@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-main: #0b1120;
    --bg-card: rgba(15, 23, 42, 0.6);
    --bg-card-hover: rgba(15, 23, 42, 0.8);
    --border-color: rgba(255, 255, 255, 0.08);
    --border-color-active: rgba(37, 99, 235, 0.4);
    
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --text-muted: #64748b;
    
    --color-primary: #2563eb;
    --color-primary-glow: rgba(37, 99, 235, 0.25);
    --color-secondary: #22c55e;
    --color-accent: #d946ef;
    --color-success: #22c55e;
    --color-success-bg: rgba(34, 197, 94, 0.1);
    
    --gradient-primary: linear-gradient(135deg, #2563eb 0%, #3b82f6 50%, #22c55e 100%);
    --gradient-glow: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(34, 197, 94, 0.2) 100%);
    --gradient-text: linear-gradient(135deg, #ffffff 40%, #93c5fd 100%);
    
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --transition-smooth: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg-main);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    position: relative;
}

/* Background Glowing Accents */
body::before {
    content: '';
    position: absolute;
    width: 800px;
    height: 800px;
    top: -300px;
    left: -200px;
    background: radial-gradient(circle, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    top: 600px;
    right: -200px;
    background: radial-gradient(circle, rgba(34, 197, 94, 0.08) 0%, rgba(34, 197, 94, 0) 70%);
    z-index: -1;
    pointer-events: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 1.5rem 2rem 1.5rem; /* top padding to account for fixed navbar */
}

/* Navigation Bar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(11, 17, 32, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: #fff;
    text-decoration: none;
}

.logo-img {
    height: 48px;
    width: 48px;
    border-radius: 8px;
    object-fit: cover;
}

.logo span {
    color: var(--color-secondary);
    background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.95rem;
    font-weight: 500;
    transition: var(--transition-smooth);
}

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

.nav-links a.nav-whatsapp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    color: #4ade80;
    border: 1px solid rgba(34, 197, 94, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.nav-links a.nav-whatsapp-btn:hover {
    background: rgba(34, 197, 94, 0.2);
    border-color: rgba(34, 197, 94, 0.4);
    transform: translateY(-1px);
}

.nav-links a.nav-cta-btn {
    background: var(--color-primary);
    color: #fff;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.nav-links a.nav-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 4rem 0 3rem 0;
}

.trial-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    padding: 0.5rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero h1 {
    font-size: 3.75rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 1.5rem;
    letter-spacing: -0.02em;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero h1 span {
    background: linear-gradient(135deg, #3b82f6 0%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 750px;
    margin: 0 auto 2.5rem auto;
}

.hero-ctas {
    display: flex;
    justify-content: center;
    gap: 1rem;
}

/* Buttons */
.cta-btn {
    display: inline-block;
    padding: 0.85rem 2rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition-smooth);
    border: 1px solid transparent;
}

.cta-btn-primary {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.25);
}

.cta-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.45);
}

.cta-btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
}

.cta-btn-whatsapp {
    background: #25d366;
    color: #fff;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.25);
    display: inline-flex;
    align-items: center;
}

.cta-btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.45);
    background: #22c35e;
}

/* Feature Highlights Grid */
.features-section {
    padding: 5rem 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2.5rem;
    backdrop-filter: blur(16px);
    transition: var(--transition-smooth);
    position: relative;
}

.feature-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-4px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(37, 99, 235, 0.03);
}

.feature-card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feature-card-icon {
    font-size: 2rem;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
}

.feature-card-icon.sales { background: rgba(37, 99, 235, 0.1); }
.feature-card-icon.inventory { background: rgba(34, 197, 94, 0.1); }
.feature-card-icon.compliance { background: rgba(239, 68, 68, 0.1); }
.feature-card-icon.decisions { background: rgba(245, 158, 11, 0.1); }

.feature-card h3 {
    font-size: 1.5rem;
    font-weight: 700;
}

.feature-bullets {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-bullets li {
    color: var(--text-secondary);
    font-size: 0.95rem;
    position: relative;
    padding-left: 1.5rem;
}

.feature-bullets li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Tabbed Screenshots Showcase */
.screenshots-section {
    padding: 4rem 0 6rem 0;
}

.section-subtitle {
    text-align: center;
    color: var(--text-secondary);
    font-size: 1.1rem;
    max-width: 600px;
    margin: -2.5rem auto 3rem auto;
}

.screenshots-tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.5rem;
}

.tab-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    padding: 0.65rem 1.25rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.tab-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.tab-btn.active {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
}

/* macOS Browser Frame Mockup */
.browser-mockup {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.7), 0 0 40px rgba(37, 99, 235, 0.05);
    position: relative;
}

.browser-header {
    background: #090d16;
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.browser-buttons {
    display: flex;
    gap: 6px;
    position: absolute;
    left: 1rem;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.dot.red { background: #ef4444; }
.dot.yellow { background: #f59e0b; }
.dot.green { background: #22c55e; }

.browser-address {
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.25rem 3rem;
    border-radius: 6px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: monospace;
}

.browser-content {
    background: #020617;
    position: relative;
    aspect-ratio: 16 / 9;
}

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

.screenshot-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 2;
    position: relative;
}

/* Fallback spinner state */
.screenshot-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(2, 6, 23, 0.9);
    gap: 1rem;
    z-index: 1;
    text-align: center;
    padding: 2rem;
}

.screenshot-fallback.hidden {
    display: none;
}

.fallback-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.05);
    border-top-color: var(--color-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Why Choose CredaERP Grid */
.why-us-section {
    padding: 5rem 0;
}

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

.why-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
}

.why-card:hover {
    border-color: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
}

.why-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.why-card h4 {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.why-card p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Pricing Section - Multi-Tier */
.pricing-section {
    padding: 5rem 0;
}

/* Controls Container */
.controls-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.toggle-group {
    position: relative;
    display: flex;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-color);
    border-radius: 9999px;
    padding: 4px;
}

.slider-indicator {
    position: absolute;
    top: 4px;
    left: 4px;
    width: calc(50% - 4px);
    height: calc(100% - 8px);
    background: var(--color-primary);
    border-radius: 9999px;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 0;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.4);
}

.toggle-group.annually .slider-indicator,
.toggle-group.usd .slider-indicator {
    transform: translateX(100%);
}

.toggle-btn {
    position: relative;
    z-index: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 0.45rem 1.1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: color 0.25s ease;
    font-family: var(--font-sans);
}

.toggle-btn.active {
    color: #fff;
}

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

.save-badge {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.3rem 0.85rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Pricing Grid */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 5rem;
}

/* Pricing Card */
.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    padding: 3rem 2.25rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: var(--transition-smooth);
    backdrop-filter: blur(16px);
}

.pricing-card:hover {
    transform: translateY(-8px);
    border-color: rgba(255, 255, 255, 0.15);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 0 0 40px rgba(37, 99, 235, 0.05);
}

/* Popular Badge & Highlight */
.pricing-card.popular {
    background: rgba(255, 255, 255, 0.03);
    border-color: var(--color-primary);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.1);
}

.pricing-card.popular:hover {
    box-shadow: 0 20px 50px rgba(37, 99, 235, 0.2), 0 0 30px rgba(217, 70, 239, 0.1);
}

.pricing-card.popular::before {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: 24px;
    padding: 1.5px;
    background: var(--gradient-primary);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.card-badge {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: var(--gradient-primary);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 1rem;
    border-radius: 9999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

/* Card Header */
.card-header {
    margin-bottom: 2rem;
}

.card-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.card-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* Card Pricing */
.card-pricing {
    margin-bottom: 2rem;
    display: flex;
    flex-direction: column;
    min-height: 90px;
    justify-content: center;
}

.original-price {
    font-size: 0.875rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-bottom: 0.2rem;
    display: block;
    min-height: 1.3em;
}

.price-value-container {
    display: flex;
    align-items: baseline;
}

.price-currency {
    font-size: 1.75rem;
    font-weight: 700;
    margin-right: 0.25rem;
}

.price-amount {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1;
    background: var(--gradient-text);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.price-period {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-left: 0.4rem;
    line-height: 1.4;
}

.price-trial-info {
    margin-top: 0.75rem;
    font-size: 0.8rem;
    color: #4ade80;
    font-weight: 600;
}

/* Feature List */
.features-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    margin-top: 2rem;
    flex-grow: 1;
}

.features-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.features-list li.unsupported {
    opacity: 0.4;
}

.feature-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.feature-icon.check {
    color: var(--color-secondary);
}

.feature-icon.cross {
    color: var(--text-muted);
}

.post-trial {
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-weight: 600;
}

/* Contact Channels grid */
.contact-channels {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.channel-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    text-decoration: none;
    text-align: left;
    transition: var(--transition-smooth);
}

.channel-icon {
    font-size: 1.5rem;
}

.channel-label {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
    text-transform: uppercase;
}

.channel-val {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.whatsapp-channel {
    background: rgba(34, 197, 94, 0.03);
}

.whatsapp-channel:hover {
    border-color: rgba(34, 197, 94, 0.3);
    background: rgba(34, 197, 94, 0.07);
    transform: translateY(-1px);
}

.email-channel {
    background: rgba(37, 99, 235, 0.03);
}

.email-channel:hover {
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.07);
    transform: translateY(-1px);
}

/* Download Section */
.download-section {
    padding: 6rem 1.5rem;
    background: radial-gradient(circle at 50% 0%, rgba(37, 99, 235, 0.05) 0%, transparent 70%);
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.download-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.download-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.download-card:hover {
    transform: translateY(-4px);
    border-color: rgba(37, 99, 235, 0.3);
    background: rgba(37, 99, 235, 0.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2), 0 0 40px rgba(37, 99, 235, 0.05);
}

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

.download-card h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.5rem;
}

.download-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    flex-grow: 1;
}

.download-btn {
    width: 100%;
    text-decoration: none;
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.25s ease;
}

.btn-windows {
    background: var(--color-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-windows:hover {
    background: #1d4ed8;
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(37, 99, 235, 0.3);
}

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

.btn-macos:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: rgba(255, 255, 255, 0.25);
    transform: translateY(-1px);
}

/* FAQs */
.faq-section {
    max-width: 800px;
    margin: 4rem auto;
}

.faq-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.12);
}

.faq-question {
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    color: var(--text-secondary);
}

.faq-answer-inner {
    padding: 0 1.5rem 1.5rem 1.5rem;
    font-size: 0.95rem;
    line-height: 1.6;
}

.faq-icon {
    width: 20px;
    height: 20px;
    color: var(--text-muted);
    transition: transform 0.3s ease;
}

.faq-item.active {
    border-color: var(--border-color-active);
}

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

/* Footer */
footer {
    text-align: center;
    padding: 4rem 0 2rem 0;
    border-top: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    z-index: 1000;
}

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

.modal-content {
    background: #090d16;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    width: 90%;
    max-width: 480px;
    padding: 2.5rem;
    position: relative;
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

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

.modal-header h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.modal-header p {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

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

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

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: #fff;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-control:focus {
    outline: none;
    border-color: var(--color-primary);
    background: rgba(255, 255, 255, 0.05);
}

.form-submit-btn {
    width: 100%;
    padding: 0.85rem;
    background: var(--color-primary);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.2);
}

.form-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}

/* Watch Demo Videos (Playlist Player) */
.videos-section {
    padding: 5rem 0;
}

.playlist-container {
    max-width: 950px;
    margin: 0 auto;
}

.playlist-player-frame {
    background: #0f172a;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 45px rgba(37, 99, 235, 0.06);
    position: relative;
    transition: var(--transition-smooth);
}

.playlist-player-frame:hover {
    border-color: rgba(37, 99, 235, 0.25);
    box-shadow: 0 30px 70px -10px rgba(0, 0, 0, 0.9), 0 0 55px rgba(37, 99, 235, 0.1);
}

.video-ratio-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

.video-ratio-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Reviews Section */
.reviews-section {
    padding: 6rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

/* Carousel wrapper: positions prev/next buttons on the sides */
.reviews-carousel-wrapper {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-width: 1200px;
    margin: 3rem auto 0 auto;
}

/* Viewport: clips the overflowing track */
.reviews-carousel-viewport {
    flex: 1;
    overflow: hidden;
    border-radius: 24px;
}

/* Track: a flex row of all cards side-by-side */
.reviews-carousel-track {
    display: flex;
    gap: 1.5rem;
    transition: transform 0.55s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: transform;
}

/* Each card takes exactly 1/3 of the viewport (3-up on desktop) */
.reviews-carousel-track .review-card {
    flex: 0 0 calc(33.333% - 1rem);  /* 3 cards visible */
    min-width: 0;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.reviews-carousel-track .review-card::before {
    content: '\201C';
    position: absolute;
    top: 8px;
    right: 18px;
    font-size: 7rem;
    color: rgba(255, 255, 255, 0.035);
    font-family: Georgia, serif;
    line-height: 1;
    pointer-events: none;
}

.reviews-carousel-track .review-card:hover {
    transform: translateY(-5px);
    border-color: rgba(37, 99, 235, 0.4);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35), 0 0 24px rgba(37, 99, 235, 0.07);
}

/* Prev / Next arrow buttons */
.carousel-control-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-secondary);
    transition: all 0.25s ease;
}

.carousel-control-btn svg {
    width: 20px;
    height: 20px;
}

.carousel-control-btn:hover {
    background: rgba(37, 99, 235, 0.15);
    border-color: rgba(37, 99, 235, 0.45);
    color: #fff;
    transform: scale(1.08);
}

.carousel-control-btn:disabled {
    opacity: 0.25;
    cursor: not-allowed;
    transform: none;
}

/* Dot indicators */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 2rem;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.18);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.carousel-dot.active {
    background: var(--color-primary);
    width: 24px;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(37, 99, 235, 0.5);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.25rem;
}

.reviewer-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.reviewer-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
}

.reviewer-business {
    font-size: 0.85rem;
    color: var(--color-primary);
    font-weight: 600;
}

.reviewer-location {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.review-rating {
    color: #facc15;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.review-text {
    font-size: 0.925rem;
    line-height: 1.6;
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
    .why-us-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin-left: auto;
        margin-right: auto;
    }
    /* Carousel: show 2 cards on tablet */
    .reviews-carousel-track .review-card {
        flex: 0 0 calc(50% - 0.75rem);
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.75rem;
    }
    .why-us-grid {
        grid-template-columns: 1fr;
    }
    .contact-channels {
        grid-template-columns: 1fr;
    }
    .nav-links {
        display: none; /* simple burger menu or hide for simplicity */
    }
    .controls-container {
        flex-direction: column;
        gap: 1rem;
    }
    .pricing-grid {
        max-width: 100%;
    }
    .download-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    /* Carousel: show 1 card on mobile */
    .reviews-carousel-track .review-card {
        flex: 0 0 100%;
    }
    .carousel-control-btn {
        width: 38px;
        height: 38px;
    }
}
