/* CSS Variables & Theme Setup */
:root {
    --bg-main: bg-main#f8fafc;
    --bg-surface: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --primary:#0f172a;
    --primary-hover: #1e1b4b;
    --accent-primary: #059669;      /* Crisp professional emerald for actions/highlights */
    --accent-hover: #047857;        /* Darker hover state */
    --border-color: #e2e8f0;
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --container-max: 1200px;
}

/* Reset & Base Styles */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}
html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    line-height: 1.6;
}

.container {
    width: 85%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.6rem 1.25rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary);
    color: #ffffff;
    border: 1px solid var(--primary);
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

.btn-outline {
    background-color: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-color);
}

.btn-outline:hover {
    background-color: #f1f5f9;
}

.btn-light {
    background-color: #ffffff;
    color: var(--primary);
}

.btn-lg {
    padding: 0.85rem 1.75rem;
    font-size: 1.05rem;
}

/* Navigation */
.navbar {
    background: var(--bg-surface);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
}

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

/*
.brand-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
     */

.brand-mark {
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 -40px 16px auto;

}

.logo {
    display: flex;
    align-items: center;
    gap: -10px;
    /* Adjust this to pull the text closer to or further from the image */
    text-decoration: none;
    color: var(--accent);
    background:  #000;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}


.logo img {
    height: 50px;
    /* Adjust height as needed (e.g., 50px - 70px) */
    width: auto;
    object-fit: contain;
    z-index: -1;
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    font-family: 'JetBrains Mono', monospace;
}

.brand-name {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #000000;
    /* Or your variable color */
    margin-left: 5px;
}

.brand-sub {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: #a855f7;
    /* Matches the purple/blue neon vibe of your brand mark */
    margin-top: 2px;
    margin-left:20px;
}

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

.nav-links a:not(.btn) {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:not(.btn):hover {
    color: var(--text-main);
}

/* Hero Section */
.hero-section {
    padding: 5rem 0 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
}

.badge {
    display: inline-block;
    padding: 0.35rem 0.85rem;
    background-color: #dbeafe;
    color: #1e40af;
    font-size: 0.85rem;
    font-weight: 600;
    border-radius: 50px;
    margin-bottom: 1.25rem;
}

.hero-content h1 {
    font-size: 3rem;
    line-height: 1.15;
    margin-bottom: 1.25rem;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.preview-frame {
    background: var(--bg-surface);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.frame-header {
    background: #f1f5f9;
    padding: 0.75rem 1rem;
    display: flex;
    gap: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

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

.dot.red { background-color: #ef4444; }
.dot.yellow { background-color: #f59e0b; }
.dot.green { background-color: #10b981; }

.frame-body {
    padding: 2rem;
}

.skeleton-bar {
    height: 20px;
    background: #e2e8f0;
    border-radius: 4px;
    margin-bottom: 1.5rem;
    width: 60%;
}

.skeleton-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.skeleton-card {
    height: 100px;
    background: #f1f5f9;
    border-radius: var(--radius-sm);
}

/* Features Section */
.features-section {
    padding: 5rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.section-title {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3.5rem;
}

.section-title h2 {
    font-size: 2.25rem;
    margin-bottom: 0.75rem;
}

.section-title p {
    color: var(--text-muted);
    font-size: 1.1rem;
}

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

.feature-card {
    padding: 2rem;
    background: var(--bg-main);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
}

.feature-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
}

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

.feature-card p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
}

.cta-box {
    background: var(--primary);
    color: #ffffff;
    padding: 4rem 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.cta-box h2 {
    font-size: 2.25rem;
    margin-bottom: 1rem;
}

.cta-box p {
    font-size: 1.15rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Footer */
.site-footer {
    padding: 2.5rem 0;
    background: var(--bg-surface);
    border-top: 1px solid var(--border-color);
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

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

.footer-links a {
    color: var(--text-muted);
    text-decoration: none;
}

/* Responsive Styles */
@media (max-width: 900px) {
    .hero-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    .hero-content h1 {
        font-size: 2.25rem;
    }

    .nav-links a:not(.btn) {
        display: none;
    }
}

/* Hero visual*/
.screenshot-stack {
    position: relative;
    padding: 2rem 0;
}

.stack-card {
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 30px -10px rgba(15, 23, 42, 0.15);
    overflow: hidden;
    background: #ffffff;
}

.stack-card img {
    width: 100%;
    height: auto;
    display: block;
}

.primary-card {
    width: 90%;
    position: relative;
    z-index: 1;
}

.secondary-card {
    width: 65%;
    position: absolute;
    bottom: -10px;
    right: 0;
    z-index: 2;
    border: 2px solid #ffffff;
    box-shadow: 0 25px 40px -12px rgba(0, 0, 0, 0.25);
}

@media (max-width: 900px) {
    .secondary-card {
        display: none; /* Hide secondary float on mobile to avoid overcrowding */
    }
    .primary-card {
        width: 100%;
    }
}


/* Ambient Float Keyframes */
@keyframes ambientFloat {
    0%, 100% {
        transform: translateY(0px) rotate(-1deg);
    }
    50% {
        transform: translateY(-8px) rotate(0.5deg);
    }
}

.secondary-card {
    animation: ambientFloat 6s ease-in-out infinite;
}

/* Pause floating on hover so user can inspect details */
.hero-visual:hover .secondary-card {
    animation-play-state: paused;
}

.stats-container {
    display: flex;
    justify-content: center;
    margin-top: 3rem;
}

.hero-stats {
    display: inline-flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.85rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
}
.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.2;
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-divider {
    width: 1px;
    height: 28px;
    background-color: var(--border-color);
}

@media (max-width: 600px) {
    .hero-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        width: 100%;
    }
    
    .stat-divider {
        display: none;
    }
}

/* Billing Toggle Switch */
.billing-switch-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    margin-bottom: 50px;
}

.billing-switch {
    position: relative;
    display: inline-block;
    width: 56px;
    height: 30px;
    cursor: pointer;
}

.billing-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.billing-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-surface);
    border: 1px solid var(--border-color);
    transition: 0.3s ease;
    border-radius: 30px;
}

/* The Knob */
.billing-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 3px;
    bottom: 3px;
    background-color: var(--text-secondary);
    transition: 0.3s ease;
    border-radius: 50%;
}

/* Checked State (Yearly Selected) */
.billing-switch input:checked + .billing-slider {
    background-color: rgba(52, 211, 153, 0.15);
    border-color: #34d399;
}

.billing-switch input:checked + .billing-slider:before {
    transform: translateX(26px);
    background-color: #34d399;
}
