/* Reset & Variables */
:root {
    /* New Dark Theme Colors from Screenshot */
    --bg-main: #0a0a14;         /* Very dark blue/black background */
    --bg-light: #151525;        /* Slightly lighter dark background for cards */
    --primary: #4f6cf6;         /* Bright blue from the button */
    --primary-dark: #3f5be0;
    --secondary: #9d72e8;       /* Purple from the gradient text */
    --text-main: #ffffff;       /* White text */
    --text-muted: #a1a1aa;      /* Light gray text */
    --border: #27273a;          /* Dark border color */
    
    --font-family: 'Inter', system-ui, -apple-system, sans-serif;
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    --radius: 0.5rem;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.5);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.4), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
}

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

body {
    font-family: var(--font-family);
    color: var(--text-main);
    background-color: var(--bg-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    /* Subtle radial gradient background */
    background-image: radial-gradient(circle at 50% 0%, #1a1a3a 0%, var(--bg-main) 50%);
    background-attachment: fixed;
}

img, svg {
    max-width: 100%;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 0.2s ease;
}

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

ul {
    list-style: none;
}

/* Typography */
h1, h2, h3, h4 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
    margin-bottom: var(--spacing-sm);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.01em; }
h3 { font-size: 1.5rem; }
p { margin-bottom: var(--spacing-sm); color: var(--text-muted); font-size: 1.125rem; }
.text-center { text-align: center; }
.text-white { color: white; }
.text-white-muted { color: var(--text-muted); }
.text-dark { color: var(--text-main); }
.text-small { font-size: 0.875rem; }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-4 { margin-top: var(--spacing-md); }

/* Gradient Text Utility */
.text-gradient {
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: transparent;
}

/* Utilities */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.bg-light { background-color: var(--bg-light); }
.bg-primary { background-color: var(--primary); }

/* Dot Grid Background */
.dot-grid {
    position: relative;
}
.dot-grid::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: -1;
}

.section-header {
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

section {
    padding: var(--spacing-xl) 0;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}
.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(79, 108, 246, 0.3);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-main);
}
.btn-secondary:hover {
    color: var(--primary);
}

.btn:disabled,
.btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

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

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background-color: rgba(10, 10, 20, 0.8);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    height: 32px;
}
.logo img {
    height: 100%;
    width: auto;
}

.nav-links {
    display: flex;
    gap: 2.5rem;
}

.nav-links a {
    color: var(--text-main);
    font-weight: 400;
    font-size: 1rem;
    opacity: 0.8;
}

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.hamburger {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    position: relative;
}
.hamburger::before, .hamburger::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 2px;
    background-color: var(--text-main);
    left: 0;
}
.hamburger::before { top: -6px; }
.hamburger::after { bottom: -6px; }

/* Hero Section */
.hero {
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    overflow: hidden;
    text-align: center;
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
}

.hero-content {
    width: 100%;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-md);
    justify-content: center;
}

.hero-trust {
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* Dashboard Mockup Placeholder */
.hero-image-wrapper {
    margin-top: var(--spacing-xl);
    width: 100%;
    max-width: 1000px;
    position: relative;
}

/* Add a glowing effect behind the mockup */
.hero-image-wrapper::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(79, 108, 246, 0.2) 0%, transparent 70%);
    z-index: -1;
    filter: blur(60px);
}

.hero-video {
    width: 100%;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: block;
}

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

.feature-card {
    background: var(--bg-light);
    padding: var(--spacing-md);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
    border-color: rgba(79, 108, 246, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, rgba(79, 108, 246, 0.2) 0%, rgba(157, 114, 232, 0.2) 100%);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: var(--spacing-sm);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Use Cases Tabs */
.tab-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-lg);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 1rem;
}

.tab-btn {
    background: none;
    border: none;
    padding: 0.5rem 1rem;
    font-size: 1.125rem;
    font-weight: 500;
    color: var(--text-muted);
    cursor: pointer;
    position: relative;
    transition: color 0.2s ease;
}

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

.tab-btn.active {
    color: var(--text-main);
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
}

.panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.panel-image {
    order: -1;
}

.panel-text {
    order: 1;
}

.check-list {
    margin-top: var(--spacing-sm);
}
.check-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-muted);
}
.check-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: bold;
}

.placeholder-gray {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
}

.placeholder-text {
    color: var(--text-muted);
    font-weight: 500;
}

/* Features Showcase */
.features-showcase .section-header {
    margin-bottom: var(--spacing-xl);
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    direction: rtl;
}

.feature-row.reverse > * {
    direction: ltr;
}

.feature-text h3 {
    font-size: 1.75rem;
    margin-bottom: 0.75rem;
}

.feature-text p {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--text-muted);
}

.feature-media-placeholder {
    aspect-ratio: 16 / 10;
    background: var(--bg-light);
    border: 1px dashed rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-media-placeholder span {
    color: var(--text-muted);
    font-weight: 500;
    font-size: 0.95rem;
}

.feature-media video,
.feature-media img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    display: block;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 15px 40px -10px rgba(0, 0, 0, 0.4);
}

/* Download Buttons */
.download-buttons {
    flex-wrap: wrap;
}

.download-btn {
    gap: 0.5rem;
    background-color: white;
    color: var(--bg-main);
    border-color: white;
}

.download-btn:hover {
    background-color: rgba(255, 255, 255, 0.85);
    color: var(--bg-main);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2);
}

.download-btn svg {
    flex-shrink: 0;
    fill: var(--bg-main);
}

/* Requirements Modal */
.requirements-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
}

.requirements-modal[hidden] {
    display: none;
}

.requirements-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.requirements-modal-content {
    position: relative;
    background: var(--bg-light);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 2rem;
    max-width: 480px;
    width: 90%;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

.requirements-modal-content h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.requirements-modal-content ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.requirements-modal-content li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    font-size: 0.95rem;
}

.requirements-modal-content li:last-child {
    border-bottom: none;
}

.requirements-modal-content li strong {
    color: var(--text-main);
    display: inline-block;
    min-width: 100px;
}

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

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

/* Download Platform Selector Modal */
.download-modal-sub {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin: -0.25rem 0 1.25rem 0;
}

.download-modal-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.download-modal-buttons .download-btn {
    width: 100%;
    justify-content: flex-start;
}

/* Pricing Section */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    align-items: stretch;
}

.pricing-card {
    background: var(--bg-light);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2rem 1.5rem;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 108, 246, 0.2);
}

.pricing-card.recommended {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(79, 108, 246, 0.15);
}

.pricing-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    background: rgba(79, 108, 246, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    margin-bottom: 1rem;
    width: fit-content;
}

.feature-tag {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #F5B544;
    background: rgba(245, 181, 68, 0.12);
    border: 1px solid rgba(245, 181, 68, 0.3);
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    vertical-align: middle;
    margin-left: 0.75rem;
}

.feature-tag-primary {
    color: var(--primary);
    background: rgba(79, 108, 246, 0.12);
    border-color: rgba(79, 108, 246, 0.3);
    margin-left: 0;
    margin-bottom: 1rem;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
}

.hero-subhead {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 640px;
    margin: 1rem auto 0;
}

.office-spotlight .feature-row {
    align-items: start;
}

.office-spotlight .feature-text {
    min-width: 0;
}

.spotlight-tags {
    overflow: hidden;
    position: relative;
    width: 100%;
    margin-bottom: 2.25rem;
    mask-image: linear-gradient(to right, transparent 0, black 2rem, black calc(100% - 2rem), transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0, black 2rem, black calc(100% - 2rem), transparent 100%);
}

.spotlight-tags-row {
    display: flex;
    width: fit-content;
}

.spotlight-tags-track {
    display: flex;
    gap: 0.75rem;
    padding-right: 0.75rem;
    flex-shrink: 0;
    animation: scroll-marquee 45s linear infinite;
}

.spotlight-tags .feature-tag-primary {
    margin-left: 0;
    margin-bottom: 0;
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 500;
    padding: 0.3rem 0.75rem;
    text-transform: none;
    letter-spacing: 0;
}

.office-spotlight {
    padding: var(--spacing-lg) 0;
    overflow: hidden;
}

.office-spotlight .feature-text h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.office-clip {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.pricing-card.recommended .pricing-badge {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.pricing-card-header {
    margin-bottom: 1.5rem;
}

.pricing-card-header h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1;
}

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

.pricing-credits {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

.pricing-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.pricing-features li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

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

.pricing-btn {
    width: 100%;
    text-align: center;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, rgba(79, 108, 246, 0.1) 0%, rgba(157, 114, 232, 0.1) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Legal Pages */
.legal-page {
    padding: 0 0 var(--spacing-xl);
}

.legal-page-body .navbar {
    position: sticky;
}

.legal-hero {
    padding: 5rem 0 2rem;
}

.legal-hero-content {
    max-width: 820px;
}

.legal-eyebrow {
    margin-bottom: 0.75rem;
    color: var(--primary);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.legal-intro {
    max-width: 760px;
}

.legal-effective-date {
    font-size: 1rem;
    color: var(--text-main);
}

.legal-content-section {
    padding: 0 0 var(--spacing-xl);
}

.legal-layout {
    display: grid;
    grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.legal-sidebar {
    position: sticky;
    top: 110px;
}

.legal-sidebar-card,
.legal-card {
    background: rgba(21, 21, 37, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.legal-sidebar-card {
    padding: 1.5rem;
}

.legal-sidebar-title {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-main);
}

.legal-toc {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.legal-toc a {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.4;
}

.legal-toc a:hover,
.legal-toc a:focus-visible {
    color: var(--text-main);
}

.legal-card {
    padding: 2rem;
}

.legal-card > p:first-child {
    font-size: 1.05rem;
}

.legal-section + .legal-section {
    margin-top: 2rem;
}

.legal-section h2 {
    font-size: clamp(1.5rem, 2vw, 2rem);
    margin-bottom: 1rem;
}

.legal-section h3 {
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.15rem;
}

.legal-card p,
.legal-card li {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.legal-card ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 0.75rem 0 0;
}

.legal-card li + li {
    margin-top: 0.5rem;
}

.legal-table-wrapper {
    overflow-x: auto;
    margin: 1.5rem 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
}

.legal-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 520px;
}

.legal-table th,
.legal-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.legal-table th {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.03);
    font-weight: 600;
}

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

/* Footer */
.footer {
    background-color: var(--bg-main);
    padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer h4 {
    font-size: 1rem;
    margin-bottom: 1rem;
    color: var(--text-main);
}

.footer-links ul li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: var(--text-muted);
}
.footer-links a:hover,
.footer-links a[aria-current="page"] {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: var(--spacing-sm);
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 992px) {
    .hero-container {
        text-align: center;
    }

    .panel-grid {
        grid-template-columns: 1fr;
    }

    .feature-row,
    .feature-row.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        gap: var(--spacing-md);
    }

    .feature-row.reverse > * {
        direction: ltr;
    }

    .legal-layout {
        grid-template-columns: 1fr;
    }

    .legal-sidebar {
        position: static;
    }
}

@media (max-width: 768px) {
    section {
        padding: var(--spacing-lg) 0;
    }

    .hero {
        padding: var(--spacing-lg) 0 var(--spacing-md);
    }

    .hero-image-wrapper {
        margin-top: var(--spacing-md);
    }

    .hero-video {
        border-radius: 8px;
    }

    .hero h1 {
        font-size: 2rem;
    }

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

    .download-buttons {
        align-items: stretch;
    }

    .feature-text h3 {
        font-size: 1.35rem;
    }

    .feature-media-placeholder {
        aspect-ratio: 16 / 9;
    }

    .legal-hero {
        padding-top: 4rem;
    }

    .legal-card,
    .legal-sidebar-card {
        padding: 1.5rem;
    }

    .legal-table {
        min-width: 100%;
    }

    .nav-links, .nav-actions {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    /* Open mobile menu: expand navbar inline instead of floating panels */
    .navbar.nav-active .nav-container {
        flex-wrap: wrap;
        row-gap: 0;
    }

    .navbar.nav-active .nav-links,
    .navbar.nav-active .nav-actions {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 10;
    }

    .navbar.nav-active .nav-links {
        gap: 0;
        margin-top: 0.75rem;
        padding-top: 0.25rem;
        border-top: 1px solid rgba(255, 255, 255, 0.05);
    }

    .navbar.nav-active .nav-links a {
        padding: 0.875rem 0.25rem;
        opacity: 1;
        font-size: 1rem;
        border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    }

    .navbar.nav-active .nav-links a:last-of-type {
        border-bottom: none;
    }

    .navbar.nav-active .nav-actions {
        gap: 0.5rem;
        padding: 0.75rem 0 0.25rem;
    }

    .navbar.nav-active .nav-actions .btn {
        width: 100%;
    }

    .navbar.nav-active .nav-container::after {
        content: "Runs on macOS and Windows \2014  open this page on your computer to install.";
        display: block;
        width: 100%;
        order: 11;
        color: var(--text-muted);
        font-size: 0.8rem;
        text-align: center;
        padding: 0.5rem 0.25rem 0.25rem;
        line-height: 1.4;
    }

    /* Hamburger → X animation */
    .hamburger,
    .hamburger::before,
    .hamburger::after {
        transition: transform 0.2s ease, background-color 0.2s ease, top 0.2s ease, bottom 0.2s ease;
    }

    .navbar.nav-active .hamburger {
        background-color: transparent;
    }

    .navbar.nav-active .hamburger::before {
        top: 0;
        transform: rotate(45deg);
    }

    .navbar.nav-active .hamburger::after {
        bottom: 0;
        transform: rotate(-45deg);
    }

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

    .tab-buttons {
        flex-direction: column;
        border-bottom: none;
        gap: 0.5rem;
    }
    .tab-btn.active::after {
        display: none;
    }
    .tab-btn {
        background: rgba(255, 255, 255, 0.05);
        border-radius: var(--radius);
    }
    .tab-btn.active {
        background: rgba(79, 108, 246, 0.2);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: 0 auto;
    }

    .section-header {
        margin-bottom: var(--spacing-md);
    }
}

.hero-mobile-note {
    display: none;
}

@media (max-width: 768px) {
    .hero-mobile-note {
        display: block;
        margin: 0.75rem auto 0;
        padding: 0.6rem 0.9rem;
        max-width: 420px;
        color: var(--text-muted);
        font-size: 0.85rem;
        line-height: 1.5;
        background: rgba(79, 108, 246, 0.08);
        border: 1px solid rgba(79, 108, 246, 0.25);
        border-radius: var(--radius);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.75rem;
    }

    .hero-video {
        border-radius: 6px;
    }

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

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

    .pricing-card {
        padding: 1.5rem 1.25rem;
    }

    .feature-row {
        margin-bottom: var(--spacing-lg);
    }
}

/* --- Animations --- */

/* Scroll Reveal Base Classes */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered reveals for grid items */
.features-grid .feature-card:nth-child(1) { transition-delay: 0.1s; }
.features-grid .feature-card:nth-child(2) { transition-delay: 0.2s; }
.features-grid .feature-card:nth-child(3) { transition-delay: 0.3s; }
.features-grid .feature-card:nth-child(4) { transition-delay: 0.4s; }

/* Floating Animation for Hero Image */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-15px); }
    100% { transform: translateY(0px); }
}

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

/* Pulse Animation for Hero Glow */
@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.05); }
    100% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
}

.hero-image-wrapper::before {
    animation: pulseGlow 4s ease-in-out infinite;
}

/* Gradient Text Shimmer */
@keyframes gradientShimmer {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.text-gradient {
    background-size: 200% auto;
    animation: gradientShimmer 4s linear infinite;
}

/* Infinite Scrolling Task Marquee */
.task-marquee-container {
    margin-top: var(--spacing-xl);
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    padding: 1rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Fading edges */
.task-marquee-container::before,
.task-marquee-container::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    width: 150px;
    z-index: 2;
    pointer-events: none;
}

.task-marquee-container::before {
    left: 0;
    background: linear-gradient(to right, var(--bg-main), transparent);
}

.task-marquee-container::after {
    right: 0;
    background: linear-gradient(to left, var(--bg-main), transparent);
}

.task-marquee {
    display: flex;
    width: fit-content;
}

.marquee-track {
    display: flex;
    gap: 2rem;
    padding-right: 2rem;
    animation: scroll-marquee 40s linear infinite;
}

.task-marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee-item {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    color: var(--text-muted);
    font-size: 1.125rem;
    font-weight: 500;
    padding: 0.5rem 1.5rem;
    background: var(--bg-light);
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: color 0.2s ease, border-color 0.2s ease;
    cursor: default;
}

.marquee-item:hover {
    color: var(--primary);
    border-color: rgba(79, 108, 246, 0.3);
}

.marquee-logo {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    margin-right: 0.75rem;
    border-radius: 4px;
}

@keyframes scroll-marquee {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-100%);
    }
}
