:root {
    /* Stripe/Vercel Aesthetic Colors */
    --bg-base: #000000;
    --bg-surface: #0a0a0a;
    --border-color: #1a1a1a;
    --border-hover: #333333;
    
    --text-primary: #ededed;
    --text-secondary: #888888;
    
    --accent-glow-1: #00e1ff;
    --accent-glow-2: #8a2be2;
    
    --font-inter: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    
    --transition-smooth: 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    color: var(--text-primary);
    font-family: var(--font-inter);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    overflow-x: hidden;
    position: relative;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography Utilities */
.gradient-text {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.gradient-text.active, .hero-title .gradient-text, .glow-ai h3 {
    background: linear-gradient(to right, var(--accent-glow-1), var(--accent-glow-2));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section {
    padding: 120px 0;
    position: relative;
    z-index: 10;
}

.section-header {
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
    font-weight: 600;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 6px; /* Vercel uses slight border radius, not pills usually */
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: var(--text-primary);
    color: var(--bg-base);
}

.btn-primary:hover {
    background-color: #ffffff;
    box-shadow: 0 0 20px rgba(255,255,255,0.2);
}

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

.btn-secondary:hover {
    background-color: var(--bg-surface);
    border-color: var(--text-secondary);
}

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

.glow-btn {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.glow-btn::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(90deg, var(--accent-glow-1), var(--accent-glow-2), var(--accent-glow-1));
    z-index: -1;
    background-size: 200% auto;
    animation: flowGradient 3s linear infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 7px;
}

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

@keyframes flowGradient {
    0% { background-position: 0% 50%; }
    100% { background-position: 200% 50%; }
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    z-index: 100;
    border-bottom: 1px solid transparent;
    transition: background 0.3s ease, border 0.3s ease, backdrop-filter 0.3s ease;
}

.navbar.scrolled {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    text-decoration: none;
}

.logo { 
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none; 
}

.brand-logo {
    height: 40px;
    width: auto;
    object-fit: contain;
}

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

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

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

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 70px;
}

#tsparticles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1; /* Behind content */
    opacity: 0.6;
}

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 800px;
    padding: 0 24px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.dot-pulse {
    width: 6px;
    height: 6px;
    background: var(--accent-glow-1);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent-glow-1);
}

.hero-title {
    font-size: clamp(3rem, 7vw, 5rem);
    letter-spacing: -0.04em;
    line-height: 1.05;
    margin-bottom: 24px;
    font-weight: 700;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

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

/* Value Proposition (Stripe style big text) */
.value-prop {
    padding: 150px 0;
    border-top: 1px solid var(--border-color);
    background: linear-gradient(to bottom, transparent, var(--bg-surface));
}

.value-text {
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-secondary);
    max-width: 900px;
    margin: 0 auto;
    font-weight: 500;
}

.value-text .gradient-text {
    font-weight: 600;
}

/* Vercel-style Cards Grid */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
}

.v-card {
    background-color: var(--bg-base);
    border-radius: 8px;
    position: relative;
    padding: 1px; /* space for the gradient border */
    overflow: hidden;
    cursor: default;
}

/* The subtle border */
.v-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    padding: 1px;
    background: var(--border-color);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

/* The interactive glow injected via JS */
.card-border {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.3s;
    background: radial-gradient(600px circle at var(--mouse-x) var(--mouse-y), rgba(255,255,255,0.1), transparent 40%);
    z-index: 1;
}

.v-card:hover .card-border {
    opacity: 1;
}

.card-content {
    background-color: var(--bg-surface);
    padding: 32px;
    border-radius: 7px;
    height: 100%;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: background 0.3s;
}

.v-card:hover .card-content {
    background-color: #0d0d0d;
}

.icon-minimal {
    font-size: 1.5rem;
    color: var(--text-primary);
}

.card-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

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

/* How It Works (Visual Flow Line) */
.flow-container {
    position: relative;
    padding-left: 40px;
    max-width: 800px;
}

.flow-line-bg {
    position: absolute;
    left: 10px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--border-color);
}

.flow-line-progress {
    position: absolute;
    left: 10px;
    top: 0;
    width: 2px;
    height: 0%;
    background: linear-gradient(to bottom, var(--accent-glow-1), var(--accent-glow-2));
    box-shadow: 0 0 10px var(--accent-glow-2);
}

.flow-step {
    position: relative;
    padding-bottom: 60px;
}

.flow-step:last-child {
    padding-bottom: 0;
}

.step-dot {
    position: absolute;
    left: -34px;
    top: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--bg-base);
    border: 2px solid var(--border-hover);
    transition: var(--transition-smooth);
    z-index: 2;
}

.flow-step.active .step-dot {
    border-color: var(--accent-glow-1);
    background: var(--text-primary);
    box-shadow: 0 0 10px var(--accent-glow-1);
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.step-content p {
    color: var(--text-secondary);
}

/* Technology / Dashboard Abstract */
.tech-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
}

.tech-list {
    list-style: none;
    margin-top: 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tech-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.tech-list i {
    color: var(--text-primary);
    font-size: 0.9rem;
}

/* Dashboard Mockup - Minimal */
.mock-dashboard {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.mock-header {
    height: 30px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 16px;
}

.traffic-lights {
    display: flex;
    gap: 6px;
}

.traffic-lights span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--border-hover);
}

.mock-body {
    flex: 1;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
}

.data-row {
    display: flex;
    gap: 16px;
    height: 20%;
}

.data-block {
    flex: 1;
    background: rgba(255,255,255,0.03);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.data-block::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
    animation: sweep 3s infinite;
}

.data-block.b::after { animation-delay: 1.5s; }

.data-graph {
    flex: 1;
    background: rgba(255,255,255,0.01);
    border-radius: 4px;
    display: flex;
    align-items: flex-end;
}

.graph-line {
    fill: url(#gradient);
    stroke: var(--text-primary);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}

.data-pulse {
    position: absolute;
    bottom: 24px;
    right: 24px;
    width: 12px;
    height: 12px;
    background: var(--accent-glow-1);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-glow-1);
    animation: blink 2s infinite;
}

@keyframes sweep {
    100% { left: 200%; }
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Use Cases & Benefits */
.cases-benefits-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    padding-top: 64px;
    border-top: 1px solid var(--border-color);
}

.mini-title {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.benefit-item {
    margin-bottom: 24px;
}

.benefit-item h4 {
    font-size: 1.1rem;
    margin-bottom: 4px;
}

.benefit-item p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.tags-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tag {
    padding: 8px 16px;
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.tag:hover {
    color: var(--text-primary);
    border-color: var(--text-primary);
}

/* Final CTA */
.final-cta {
    text-align: center;
    padding: 150px 0;
}

.cta-wrapper h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    letter-spacing: -0.03em;
    margin-bottom: 40px;
}

/* Footer */
.footer {
    border-top: 1px solid var(--border-color);
    padding: 60px 0;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.brand .logo-text {
    font-size: 1.5rem;
}

.brand .brand-logo {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 8px;
}

.brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 8px;
}

.links {
    display: flex;
    gap: 24px;
}

.links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

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

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.98);
    z-index: 1000;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.mobile-menu.active {
    opacity: 1;
    pointer-events: all;
}

.mobile-close-btn {
    position: absolute;
    top: 24px;
    right: 24px;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

.mobile-nav-links {
    list-style: none;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.mobile-nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Responsive */
@media (max-width: 992px) {
    .tech-grid, .cases-benefits-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    
    .hero-cta {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
    }
    
    .btn { width: 100%; }
}

@media (max-width: 768px) {
    .section { padding: 80px 0; }
    .value-prop, .final-cta { padding: 100px 0; }
    
    .nav-links, .nav-actions { display: none; }
    .mobile-menu-btn { display: block; }
    
    .footer-grid {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }
    
    .links {
        flex-direction: column;
        gap: 16px;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: clamp(2.5rem, 8vw, 3rem);
    }
    
    .value-text {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }
    
    .flow-container {
        padding-left: 30px;
    }
    
    .flow-line-bg, .flow-line-progress {
        left: 0px;
    }
    
    .step-dot {
        left: -44px;
    }
}

@media (max-width: 480px) {
    .section { padding: 60px 0; }
    .value-prop, .final-cta { padding: 80px 0; }
    .container { padding: 0 16px; }
    
    .hero-title {
        font-size: 2.2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .card-content {
        padding: 24px;
    }
    
    .mock-body {
        padding: 16px;
    }
    
    .flow-step {
        padding-bottom: 40px;
    }

    .nav-container { padding: 0 16px; }
}
