/* ========================================
   Syntho AI 
   ======================================== */

/* CSS Variables */
:root {
    /* Colors */
    --bg-dark: #09090b;
    --bg-card: #18181b;
    --bg-card-hover: #1f1f23;
    --bg-elevated: #27272a;

    --text-primary: #fafafa;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;

    --accent-primary: #6366f1;
    --accent-secondary: #8b5cf6;
    --accent-tertiary: #a855f7;
    --accent-gradient: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));

    --success: #22c55e;
    --border-color: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(255, 255, 255, 0.15);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;

    /* Spacing */
    --section-gap: 160px;
    --container-max: 1200px;

    /* Transitions */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 0.2s;
    --duration-normal: 0.4s;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 24px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    /* Prevent horizontal scroll */
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    max-width: 100vw;
    /* Constrain to viewport width */
}

/* Page wrapper to prevent horizontal overflow */
.page-wrapper {
    width: 100%;
    max-width: 100vw;
    overflow-x: clip;
    /* Modern way to hide overflow without affecting scroll */
    position: relative;
}

/* Noise Overlay */
.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1000;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Gradient Background */
.gradient-bg {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.4;
}

.orb-1 {
    width: 600px;
    height: 600px;
    background: var(--accent-primary);
    top: -300px;
    right: -200px;
    animation: float 20s ease-in-out infinite;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-secondary);
    bottom: -200px;
    left: -200px;
    animation: float 25s ease-in-out infinite reverse;
}

.orb-3 {
    width: 400px;
    height: 400px;
    background: var(--accent-tertiary);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 15s ease-in-out infinite;
}

@keyframes float {

    0%,
    100% {
        transform: translate(0, 0);
    }

    50% {
        transform: translate(40px, -40px);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }

    50% {
        opacity: 0.4;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

/* Container */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* Typography */
.gradient-text {
    background: var(--accent-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-label {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent-primary);
    margin-bottom: 16px;
}

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

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 16px;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto;
}

/* ========================================
   Buttons
   ======================================== */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: var(--accent-gradient);
    color: white;
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(99, 102, 241, 0.4);
}

.btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: 0.9375rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--duration-normal) var(--ease-out);
    text-decoration: none;
}

.btn-outline:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-body);
    font-weight: 500;
    font-size: 0.9375rem;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: color var(--duration-fast);
    text-decoration: none;
}

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

.btn-lg {
    padding: 16px 32px;
    font-size: 1rem;
}

.btn-full {
    width: 100%;
    justify-content: center;
}

/* ========================================
   Header / Navigation
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 16px 0;
    transition: background var(--duration-normal), backdrop-filter var(--duration-normal);
}

.header.scrolled {
    background: rgba(9, 9, 11, 0.8);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-color);
}

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

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

.logo-text {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 700;
    color: var(--text-primary);
}

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

.nav-links a {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--duration-fast);
}

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    min-width: 44px;
    /* Prevent shrinking */
    flex-shrink: 0;
    /* Don't compress */
    padding: 10px;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--duration-fast);
}

.mobile-toggle:hover {
    background: var(--bg-card);
    border-color: var(--border-hover);
}

.mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 1px;
    transition: all var(--duration-fast);
}

/* ========================================
   Hero Section
   ======================================== */
.hero {
    padding: 180px 0 100px;
    text-align: center;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px 6px 10px;
    background: rgba(99, 102, 241, 0.1);
    border: 1px solid rgba(99, 102, 241, 0.2);
    border-radius: 100px;
    font-size: 0.8125rem;
    color: var(--accent-primary);
    margin-bottom: 32px;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background: var(--success);
    border-radius: 50%;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

.hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

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

.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

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

/* Hero Visual - Dashboard */
.hero-visual {
    margin-top: 80px;
    perspective: 1000px;
}

.dashboard-preview {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.dashboard-glow {
    position: absolute;
    inset: -100px;
    background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.dashboard-frame {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transform: rotateX(5deg);
    box-shadow:
        0 50px 100px -20px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

.dashboard-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.window-controls {
    display: flex;
    gap: 8px;
}

.control {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.control.red {
    background: #ff5f57;
}

.control.yellow {
    background: #febc2e;
}

.control.green {
    background: #28c840;
}

.dashboard-url {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.dashboard-content {
    display: flex;
    min-height: 400px;
}

.dash-sidebar {
    width: 60px;
    background: var(--bg-dark);
    padding: 16px 12px;
    border-right: 1px solid var(--border-color);
}

.sidebar-logo {
    width: 36px;
    height: 36px;
    background: var(--accent-gradient);
    border-radius: var(--radius-sm);
    margin-bottom: 24px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.nav-item {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border-radius: var(--radius-sm);
    opacity: 0.5;
}

.nav-item.active {
    background: var(--accent-gradient);
    opacity: 1;
}

.dash-main {
    flex: 1;
    padding: 20px;
}

.dash-topbar {
    height: 40px;
    background: var(--bg-dark);
    border-radius: var(--radius-sm);
    margin-bottom: 20px;
}

.dash-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    height: 280px;
}

.dash-card {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 16px;
}

.card-chart {
    grid-row: span 2;
}

.chart-header {
    height: 20px;
    width: 40%;
    background: var(--bg-elevated);
    border-radius: 4px;
    margin-bottom: 20px;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    height: calc(100% - 40px);
}

.bar {
    flex: 1;
    height: var(--h);
    background: var(--accent-gradient);
    border-radius: 4px 4px 0 0;
    animation: grow-bar 1s var(--ease-out) forwards;
    transform-origin: bottom;
}

@keyframes grow-bar {
    from {
        transform: scaleY(0);
    }

    to {
        transform: scaleY(1);
    }
}

.stat-row {
    height: 24px;
    background: var(--bg-elevated);
    border-radius: 4px;
    margin-bottom: 12px;
}

.stat-row:nth-child(2) {
    width: 80%;
}

.stat-row:nth-child(3) {
    width: 60%;
}

.activity-line {
    height: 16px;
    background: var(--bg-elevated);
    border-radius: 4px;
    margin-bottom: 12px;
}

.activity-line:nth-child(2) {
    width: 90%;
}

.activity-line:nth-child(3) {
    width: 75%;
}

.activity-line:nth-child(4) {
    width: 85%;
}

/* ========================================
   Logos Section
   ======================================== */
.logos-section {
    padding: 80px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
    overflow: hidden;
}

.logos-label {
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 32px;
}

.logos-track {
    overflow: hidden;
    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
    -webkit-mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.logos-slide {
    display: flex;
    gap: 64px;
    animation: scroll-logos 30s linear infinite;
    width: max-content;
}

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

    100% {
        transform: translateX(-50%);
    }
}

.logo-item {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.6;
    white-space: nowrap;
    transition: opacity var(--duration-fast);
}

.logo-item:hover {
    opacity: 1;
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: var(--section-gap) 0;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.feature-card {
    padding: 32px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    transition: all var(--duration-normal) var(--ease-out);
}

.feature-card:hover {
    transform: translateY(-8px);
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.feature-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Bento Grid Section
   ======================================== */
.bento-section {
    padding: var(--section-gap) 0;
}

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

.bento-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--duration-normal) var(--ease-out);
    overflow: hidden;
}

.bento-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.bento-large {
    grid-column: span 2;
    grid-row: span 2;
    display: flex;
    flex-direction: column;
}

.bento-medium {
    grid-column: span 2;
}

.bento-small {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 160px;
}

.bento-wide {
    grid-column: span 4;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.bento-content h3 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.bento-content p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.bento-icon-lg {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-md);
    color: var(--accent-primary);
    margin-bottom: 20px;
}

.bento-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
    margin-bottom: 16px;
}

.bento-icon-sm {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: var(--radius-sm);
    color: var(--accent-primary);
}

.bento-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.bento-value {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
}

/* Bento Visual Elements */
.bento-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 32px;
}

.data-flow {
    position: relative;
    width: 100%;
    height: 150px;
}

.flow-node {
    position: absolute;
    width: 40px;
    height: 40px;
    background: var(--accent-gradient);
    border-radius: 50%;
    animation: pulse-node 2s ease-in-out infinite;
}

.node-1 {
    top: 0;
    left: 10%;
    animation-delay: 0s;
}

.node-center {
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
}

.node-2 {
    top: 0;
    right: 10%;
    animation-delay: 0.3s;
}

.node-3 {
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.6s;
}

@keyframes pulse-node {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4);
    }

    50% {
        box-shadow: 0 0 0 15px rgba(99, 102, 241, 0);
    }
}

.flow-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-primary), transparent);
    animation: flow-animate 2s ease-in-out infinite;
}

.line-1 {
    top: 20px;
    left: 15%;
    width: 30%;
    transform: rotate(30deg);
}

.line-2 {
    top: 20px;
    right: 15%;
    width: 30%;
    transform: rotate(-30deg);
}

.line-3 {
    bottom: 30px;
    left: 50%;
    width: 20%;
    transform: translateX(-50%) rotate(90deg);
}

@keyframes flow-animate {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 1;
    }
}

.mini-chart {
    width: 100%;
    height: 60px;
    margin-top: 20px;
}

.bento-chart {
    margin-top: auto;
}

.bento-avatars {
    display: flex;
    margin-top: auto;
}

.avatar {
    width: 36px;
    height: 36px;
    background: var(--bg-elevated);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    margin-left: -8px;
}

.avatar:first-child {
    margin-left: 0;
    background: var(--accent-primary);
}

.avatar:nth-child(2) {
    background: var(--accent-secondary);
}

.avatar:nth-child(3) {
    background: var(--accent-tertiary);
}

.avatar.more {
    background: var(--bg-elevated);
    color: var(--text-muted);
}

.code-preview {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px 24px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 0.875rem;
    line-height: 1.8;
}

.code-key {
    color: var(--accent-primary);
}

.code-fn {
    color: var(--accent-secondary);
}

.code-str {
    color: var(--success);
}

/* ========================================
   Pricing Section
   ======================================== */
.pricing-section {
    padding: var(--section-gap) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.pricing-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    position: relative;
    transition: all var(--duration-normal) var(--ease-out);
}

.pricing-card:hover {
    border-color: var(--border-hover);
}

.pricing-card.featured {
    border-color: var(--accent-primary);
    box-shadow: 0 0 60px rgba(99, 102, 241, 0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 6px 16px;
    background: var(--accent-gradient);
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    margin-bottom: 32px;
}

.pricing-header h3 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    margin-bottom: 16px;
}

.price {
    margin-bottom: 8px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 3rem;
    font-weight: 700;
}

.price-period {
    color: var(--text-muted);
}

.price-desc {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.pricing-features {
    flex: 1;
    margin-bottom: 32px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--success);
    flex-shrink: 0;
}

/* ========================================
   Testimonials Section
   ======================================== */
.testimonials-section {
    padding: var(--section-gap) 0;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.testimonial-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 32px;
    transition: all var(--duration-normal) var(--ease-out);
}

.testimonial-card:hover {
    border-color: var(--border-hover);
}

.testimonial-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 24px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 12px;
}

.author-avatar {
    width: 44px;
    height: 44px;
    background: var(--accent-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    font-weight: 600;
}

.author-info {
    display: flex;
    flex-direction: column;
}

.author-name {
    font-weight: 600;
    font-size: 0.9375rem;
}

.author-role {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

/* ========================================
   CTA Section
   ======================================== */
.cta-section {
    padding: var(--section-gap) 0;
}

.cta-card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-xl);
    padding: 80px;
    text-align: center;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.5rem);
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

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

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 2.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

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

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.footer-col h4 {
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-col a {
    display: block;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    margin-bottom: 12px;
    text-decoration: none;
    transition: color var(--duration-fast);
}

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

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    color: var(--text-muted);
    font-size: 0.875rem;
}

.footer-social {
    display: flex;
    gap: 16px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    transition: all var(--duration-fast);
}

.footer-social a:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

/* ========================================
   Scroll Animations
   ======================================== */
[data-aos] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

[data-aos].visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .bento-large {
        grid-column: span 2;
        grid-row: span 1;
    }

    .bento-wide {
        grid-column: span 2;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .code-preview {
        width: 100%;
    }

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

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

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    :root {
        --section-gap: 100px;
    }

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

    .nav-links.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #0f172a;
        /* Match header specific bg or var */
        padding: 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    .nav-actions.active {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: calc(100% + 250px);
        /* Adjust based on nav-links height approx */
        left: 0;
        right: 0;
        background: #0f172a;
        padding: 0 24px 24px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        z-index: 1000;
    }

    /* Simplified single menu for mobile if easier */
    .mobile-toggle.active+.nav-links {
        display: flex;
    }

    .mobile-toggle {
        display: flex !important;
    }

    .hero {
        padding: 140px 0 60px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }

    .stat-divider {
        display: none;
    }

    .dashboard-frame {
        transform: none;
    }

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

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

    .bento-large,
    .bento-medium,
    .bento-wide {
        grid-column: span 1;
    }

    .cta-card {
        padding: 48px 24px;
    }

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

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

    .footer-bottom {
        flex-direction: column;
        gap: 24px;
        text-align: center;
    }
}
