:root {
    /* Linear / Pitch inspired color palette */
    --bg-dark: #000000;
    --bg-card: #0c0c0c;
    --bg-border: #222222;
    --text-primary: #ffffff;
    --text-secondary: #888888;
    
    --primary-color: #5e6ad2;
    --primary-glow: rgba(94, 106, 210, 0.4);
    --secondary-color: #a4b1ff;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    
    --radius-lg: 24px;
    --radius-md: 12px;
    
    --transition-smooth: cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.5;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Background Gradients */
.mesh-bg {
    position: fixed;
    top: -20vh;
    left: -20vw;
    width: 140vw;
    height: 140vh;
    background: 
        radial-gradient(circle at 15% 50%, rgba(94, 106, 210, 0.15), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(164, 177, 255, 0.1), transparent 25%);
    z-index: -1;
    pointer-events: none;
    filter: blur(80px);
}

/* Typography Details */
h1, h2, h3 {
    font-weight: 600;
    letter-spacing: -0.04em;
}

.gradient-text {
    background: linear-gradient(135deg, #ffffff 0%, #a4b1ff 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Nav */
.nav-container {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 100;
    display: flex;
    justify-content: center;
    padding: 20px 0;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.navbar {
    width: 100%;
    max-width: 1200px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.1rem;
}

.logo-mark {
    width: 24px;
    height: 24px;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    border-radius: 6px;
    box-shadow: 0 0 15px var(--primary-glow);
}

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

.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.nav-actions {
    display: flex;
    gap: 16px;
}

/* Mobile Menu */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

.mobile-nav {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 99;
}

.mobile-nav.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 20px;
}

.mobile-nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255,255,255,0.05);
    transition: color 0.3s ease;
}

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

.mobile-nav-actions {
    padding: 0 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Buttons */
.btn-primary, .btn-secondary, .btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s var(--transition-smooth);
    border: none;
}

.btn-primary {
    background: var(--text-primary);
    color: var(--bg-dark);
    padding: 8px 16px;
}

.btn-primary:hover {
    background: #e2e2e2;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(255,255,255,0.1);
}

.btn-secondary {
    background: rgba(255,255,255,0.12);
    color: var(--text-primary);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 16px;
    backdrop-filter: blur(4px);
}

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

.btn-ghost {
    background: transparent;
    color: var(--text-primary);
    padding: 8px 16px;
}

.btn-ghost:hover {
    background: rgba(255,255,255,0.05);
}

.btn-primary.lg, .btn-secondary.lg {
    padding: 14px 28px;
    font-size: 1rem;
}

/* Hero Section */
.hero {
    padding: 180px 40px 100px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge {
    background: rgba(94, 106, 210, 0.1);
    border: 1px solid rgba(94, 106, 210, 0.3);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 99px;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 32px;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 5.5rem);
    line-height: 1.1;
    margin-bottom: 24px;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin-bottom: 40px;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 80px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-image-wrapper {
    width: 100%;
    position: relative;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px;
    background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
    box-shadow: 0 40px 100px -20px rgba(0,0,0,1);
}

.hero-mockup {
    width: 100%;
    height: auto;
    border-radius: calc(var(--radius-lg) - 10px);
    display: block;
}

/* Ticker Section */
.trusted-by {
    text-align: center;
    padding: 40px 0;
    border-block: 1px solid rgba(255,255,255,0.05);
}

.trusted-by p {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 30px;
}

.logo-ticker {
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.ticker-track {
    display: inline-block;
    animation: ticker 30s linear infinite;
}

.ticker-track span {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--text-secondary);
    opacity: 0.3;
    margin: 0 40px;
}

@keyframes ticker {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Features Bento Grid (Linear app style) */
.features {
    padding: 140px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    text-align: center;
    margin-bottom: 80px;
}

.section-header h2 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    background: linear-gradient(to right, #fff, #888);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    auto-rows: minmax(350px, auto);
}

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-lg);
    padding: 40px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.col-span-2 {
    grid-column: span 2;
}

.card-content {
    position: relative;
    z-index: 2;
}

.icon-box {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 24px;
}

.bento-card h3 {
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.bento-card p {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
}

/* Mouse Glow Effect (JS handled) */
.hover-glow::before {
    content: "";
    position: absolute;
    top: var(--y, 50%);
    left: var(--x, 50%);
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.08) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

.hover-glow:hover::before {
    opacity: 1;
}

/* Feature Visuals */
.visual-sync {
    position: absolute;
    bottom: -20px;
    right: -20px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, var(--primary-color) 0%, transparent 70%);
    opacity: 0.1;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.1; }
    50% { transform: scale(1.2); opacity: 0.2; }
}

.visual-chart {
    position: absolute;
    bottom: 20px;
    right: 40px;
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: 100px;
    z-index: 1;
}

.bar {
    width: 24px;
    background: rgba(255,255,255,0.1);
    border-radius: 4px 4px 0 0;
    transition: height 1s ease;
}

#active-bar {
    background: var(--primary-color);
    box-shadow: 0 0 20px var(--primary-glow);
}

/* CTA Box */
.cta-section {
    padding: 100px 40px;
}

.cta-box {
    max-width: 1000px;
    margin: 0 auto;
    background: radial-gradient(120% 120% at 50% -20%, #1e1b4b 0%, var(--bg-card) 100%);
    border: 1px solid rgba(94, 106, 210, 0.3);
    border-radius: var(--radius-lg);
    padding: 80px 40px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

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

.cta-box p {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.cta-box .hero-cta {
    justify-content: center;
    margin-bottom: 0;
}

/* Footer */
footer {
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 80px 40px 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 80px;
}

.footer-brand p {
    color: var(--text-secondary);
    margin-top: 20px;
    max-width: 300px;
}

.footer-links h4 {
    color: var(--text-primary);
    margin-bottom: 24px;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 16px;
    transition: color 0.3s;
}

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

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

/* Stats Banner */
.stats-banner {
    display: flex;
    justify-content: space-around;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

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

.stat-item h3 {
    font-size: 3rem;
    background: linear-gradient(135deg, #fff, var(--primary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
}

.stat-item p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* FAQ Section */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 40px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--bg-border);
    border-radius: var(--radius-md);
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s;
}

.faq-item[open] {
    border-color: rgba(94, 106, 210, 0.4);
}

.faq-item summary {
    font-weight: 600;
    font-size: 1.1rem;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-item summary::after {
    content: "+";
    color: var(--primary-color);
    font-size: 1.5rem;
    transition: transform 0.3s;
}

.faq-item[open] summary::after {
    transform: rotate(45deg);
}

.faq-item p {
    margin-top: 16px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Animations */
.target-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.target-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-fade {
    animation: fadeInDown 1s ease-out forwards;
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1024px) {
    .bento-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero {
        padding: 160px 20px 80px;
    }
    
    .features {
        padding: 100px 20px;
    }
    
    .section-header h2 {
        font-size: 2.5rem;
    }
    
    .stats-banner {
        padding: 40px 20px;
        flex-wrap: wrap;
        gap: 40px;
    }
    
    .stat-item h3 {
        font-size: 2.5rem;
    }
    
    .cta-section {
        padding: 80px 20px;
    }
    
    .cta-box {
        padding: 60px 20px;
    }
    
    .cta-box h2 {
        font-size: 2.5rem;
    }
    
    footer {
        padding: 60px 20px 30px;
    }
}

@media (max-width: 768px) {
    .hero-title { 
        font-size: 2.5rem; 
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .bento-grid { 
        grid-template-columns: 1fr; 
    }
    
    .col-span-2 { 
        grid-column: auto; 
    }
    
    .footer-grid { 
        grid-template-columns: 1fr; 
    }
    
    .nav-links, .nav-actions { 
        display: none; 
    }
    
    .mobile-menu-toggle {
        display: flex;
    }
    
    .showcase-split { 
        grid-template-columns: 1fr !important; 
        gap: 40px !important; 
    }
    
    .section-header h2 {
        font-size: 2rem;
    }
    
    .section-header p {
        font-size: 1.1rem;
    }
    
    .bento-card {
        padding: 30px;
    }
    
    .icon-box {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
    
    .bento-card h3 {
        font-size: 1.3rem;
    }
    
    .stats-banner {
        flex-direction: column;
        gap: 30px;
    }
    
    .stat-item h3 {
        font-size: 2rem;
    }
    
    .cta-box h2 {
        font-size: 2rem;
    }
    
    .cta-box p {
        font-size: 1.1rem;
    }
    
    .footer-links h4 {
        margin-bottom: 16px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 140px 16px 60px;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 30px;
    }
    
    .badge {
        font-size: 0.8rem;
        padding: 4px 12px;
        margin-bottom: 24px;
    }
    
    .hero-cta {
        margin-bottom: 60px;
    }
    
    .btn-primary.lg, .btn-secondary.lg {
        padding: 12px 24px;
        font-size: 0.95rem;
    }
    
    .features {
        padding: 80px 16px;
    }
    
    .section-header {
        margin-bottom: 60px;
    }
    
    .section-header h2 {
        font-size: 1.8rem;
    }
    
    .section-header p {
        font-size: 1rem;
    }
    
    .bento-card {
        padding: 24px;
    }
    
    .bento-card h3 {
        font-size: 1.2rem;
    }
    
    .bento-card p {
        font-size: 0.95rem;
    }
    
    .stats-banner {
        padding: 30px 16px;
    }
    
    .stat-item h3 {
        font-size: 1.8rem;
    }
    
    .stat-item p {
        font-size: 0.8rem;
    }
    
    .trusted-by p {
        font-size: 0.8rem;
        margin-bottom: 20px;
    }
    
    .ticker-track span {
        font-size: 1.2rem;
        margin: 0 20px;
    }
    
    .cta-section {
        padding: 60px 16px;
    }
    
    .cta-box {
        padding: 40px 16px;
    }
    
    .cta-box h2 {
        font-size: 1.8rem;
    }
    
    .cta-box p {
        font-size: 1rem;
    }
    
    footer {
        padding: 40px 16px 20px;
    }
    
    .footer-grid {
        gap: 30px;
        margin-bottom: 60px;
    }
    
    .footer-bottom {
        padding-top: 30px;
        font-size: 0.85rem;
    }
    
    .mobile-nav-links {
        padding: 16px;
        gap: 16px;
    }
    
    .mobile-nav-links a {
        font-size: 0.95rem;
        padding: 8px 0;
    }
    
    .mobile-nav-actions {
        padding: 0 16px 16px;
    }
}
