/* ================================================
   CAROUSELIZER.AI
   Design System — Midnight mode, Glow Social DNA
   ================================================ */

/* --- Design Tokens --- */
:root {
    --midnight: #0c1117;
    --surface: #141b24;
    --surface-raised: #1a2332;
    --surface-hover: #1f2b3d;
    --lime: #d7e278;
    --lime-hover: #e4ee8c;
    --lime-glow: rgba(215, 226, 120, 0.15);
    --lime-glow-strong: rgba(215, 226, 120, 0.25);
    --everglow: #9399cc;
    --text: #c8cfd8;
    --text-bright: #edf0f4;
    --text-muted: #6b7a8d;
    --border: rgba(255, 255, 255, 0.06);
    --border-lime: rgba(215, 226, 120, 0.2);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-xs: 6px;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 48px rgba(0, 0, 0, 0.4);
    --shadow-lime: 0 4px 24px rgba(215, 226, 120, 0.15);
}

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

/* --- Base --- */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--midnight);
    overflow-x: hidden;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    font-family: 'Urbanist', sans-serif;
    color: var(--text-bright);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    font-weight: 700;
}

h3 {
    font-size: 1.15rem;
    font-weight: 700;
}

p {
    color: var(--text);
}

strong {
    color: var(--text-bright);
}

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

a:hover {
    opacity: 0.85;
}

/* --- Layout --- */
.container {
    width: 100%;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.container--narrow {
    max-width: 720px;
}

section {
    padding: 100px 0;
    position: relative;
}

/* --- Navigation --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(12, 17, 23, 0.85);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    padding: 14px 0;
    transition: background 0.3s ease;
}

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

.logo {
    font-family: 'Urbanist', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.01em;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-accent {
    color: var(--lime);
}

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 28px;
    border: none;
    border-radius: var(--radius-sm);
    font-family: 'Urbanist', sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-lime {
    background: var(--lime);
    color: var(--midnight);
}

.btn-lime:hover {
    background: var(--lime-hover);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lime);
    opacity: 1;
}

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

.btn-outline:hover {
    border-color: var(--lime);
    color: var(--lime);
    opacity: 1;
}

.btn-lg {
    padding: 18px 40px;
    font-size: 0.95rem;
    border-radius: var(--radius);
}

/* --- Hero --- */
.hero {
    padding-top: 160px;
    padding-bottom: 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--lime-glow) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.hero .container {
    position: relative;
    z-index: 1;
}

.badge {
    display: inline-block;
    padding: 6px 18px;
    background: var(--lime-glow);
    color: var(--lime);
    border: 1px solid var(--border-lime);
    border-radius: 100px;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 28px;
}

.hero h1 {
    margin-bottom: 24px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero h1 .lime {
    color: var(--lime);
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* --- Stat Bar --- */
.stat-bar {
    display: flex;
    justify-content: center;
    gap: 48px;
    padding: 40px 0;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.stat {
    text-align: center;
}

.stat-number {
    font-family: 'Urbanist', sans-serif;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--lime);
    line-height: 1;
    display: block;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 8px;
    display: block;
}

/* --- Lead Form --- */
.lead-section {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.lead-card {
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 56px 48px;
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.lead-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--lime), transparent);
}

.lead-card h2 {
    margin-bottom: 12px;
}

.lead-card>p {
    color: var(--text-muted);
    margin-bottom: 32px;
    font-size: 0.95rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-align: left;
    margin-bottom: 16px;
}

.form-label {
    font-family: 'Urbanist', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 14px 18px;
    background: var(--midnight);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-bright);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    outline: none;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-muted);
}

.form-input:focus,
.form-textarea:focus {
    border-color: var(--lime);
    box-shadow: 0 0 0 3px var(--lime-glow);
}

.form-textarea {
    resize: vertical;
    min-height: 100px;
}

.form-submit {
    width: 100%;
    margin-top: 8px;
}

.form-note {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 16px;
}

/* --- How It Works --- */
.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.step {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.step:hover {
    border-color: var(--border-lime);
    transform: translateY(-4px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--lime-glow);
    color: var(--lime);
    font-family: 'Urbanist', sans-serif;
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step h3 {
    margin-bottom: 12px;
}

.step p {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Carousel Preview (Visual Demo) --- */
.carousel-showcase {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.carousel-demo {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.carousel-demo::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 280px;
    height: 350px;
    border-radius: var(--radius);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 32px 28px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
}

.carousel-slide:hover {
    border-color: var(--border-lime);
}

.carousel-slide::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--lime);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.carousel-slide:hover::after {
    opacity: 1;
}

.slide-number {
    font-family: 'Urbanist', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: var(--lime-glow-strong);
    line-height: 1;
}

.slide-content h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
    color: var(--text-bright);
}

.slide-content p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Why Carousels --- */
.benefits {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.benefit {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: border-color 0.3s ease;
}

.benefit:hover {
    border-color: var(--border-lime);
}

.benefit-icon {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.benefit h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.benefit p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* --- Blog Preview --- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 48px;
}

.blog-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 24px;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    border-color: var(--border-lime);
    transform: translateY(-4px);
}

.blog-card-tag {
    font-family: 'Urbanist', sans-serif;
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--lime);
    margin-bottom: 12px;
}

.blog-card h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    line-height: 1.4;
}

.blog-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    flex-grow: 1;
}

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 16px;
    font-family: 'Urbanist', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--lime);
}

/* --- CTA Block --- */
.cta-section {
    text-align: center;
}

.cta-block {
    background: linear-gradient(135deg, var(--surface-raised) 0%, var(--surface) 100%);
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 72px 48px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-block::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--lime), transparent);
}

.cta-block h2 {
    margin-bottom: 16px;
}

.cta-block p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 36px;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Footer --- */
footer {
    padding: 48px 0;
    text-align: center;
    border-top: 1px solid var(--border);
}

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

footer a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 2px;
}

footer a:hover {
    color: var(--lime);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 16px;
}

/* --- Section Headers --- */
.section-header {
    text-align: center;
    margin-bottom: 16px;
}

.section-header p {
    color: var(--text-muted);
    max-width: 560px;
    margin: 16px auto 0;
    font-size: 1rem;
}

/* --- Animations --- */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 0 0 rgba(215, 226, 120, 0);
    }

    50% {
        box-shadow: 0 0 24px 4px rgba(215, 226, 120, 0.12);
    }
}

.fade-in {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.fade-in-children>* {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in-children.visible>*:nth-child(1) {
    transition-delay: 0.05s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-children.visible>*:nth-child(2) {
    transition-delay: 0.1s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-children.visible>*:nth-child(3) {
    transition-delay: 0.15s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-children.visible>*:nth-child(4) {
    transition-delay: 0.2s;
    opacity: 1;
    transform: translateY(0);
}

.fade-in-children.visible>*:nth-child(5) {
    transition-delay: 0.25s;
    opacity: 1;
    transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 768px) {
    h1 {
        font-size: 2.2rem;
    }

    section {
        padding: 64px 0;
    }

    .hero {
        padding-top: 120px;
        padding-bottom: 48px;
    }

    .hero-subtitle {
        font-size: 1.05rem;
    }

    .stat-bar {
        gap: 32px;
    }

    .stat-number {
        font-size: 2rem;
    }

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

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

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

    .lead-card {
        padding: 40px 28px;
    }

    .carousel-slide {
        flex: 0 0 240px;
        height: 300px;
    }

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

@media (max-width: 480px) {
    .stat-bar {
        flex-direction: column;
        gap: 24px;
    }

    .nav-content .btn {
        padding: 10px 16px;
        font-size: 0.7rem;
    }
}