/* ============================================================
   RoseAds — Landing CSS
   ============================================================ */

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

:root {
    --blue:       #00d4ff;
    --indigo:     #6366f1;
    --navy-dark:  #0a0a0f;
    --navy-mid:   #0f172a;
    --navy-light: #1e293b;
    --text-primary:   #e2e8f0;
    --text-secondary: #94a3b8;
    --text-muted:     #64748b;
    --border:     rgba(0, 212, 255, 0.15);
    --border-hover: rgba(0, 212, 255, 0.35);
    --glow:       rgba(0, 212, 255, 0.25);
}

html { scroll-behavior: smooth; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.65;
    color: var(--text-primary);
    background: var(--navy-dark);
}

/* ---- Utility ---- */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 0.75rem;
}

.section-title {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
    line-height: 1.25;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 3.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.inline-code {
    background: rgba(0, 212, 255, 0.1);
    color: var(--blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 0.9em;
}

/* ---- Navigation ---- */
nav {
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 0 2rem;
    height: 64px;
    display: flex;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-decoration: none;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

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

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

.nav-actions {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-login-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s;
}

.nav-login-link:hover { color: var(--text-primary); }

.cta-button {
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    color: white;
    padding: 0.55rem 1.25rem;
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
}

.cta-button:hover {
    opacity: 0.9;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--glow);
}

/* ---- Hero ---- */
.hero {
    background: var(--navy-mid);
    padding: 6rem 2rem 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 20% 30%, rgba(0, 212, 255, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 50% at 80% 70%, rgba(99, 102, 241, 0.07) 0%, transparent 70%);
    pointer-events: none;
}

.hero-content {
    max-width: 760px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    color: var(--blue);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.35rem 0.9rem;
    border-radius: 100px;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    color: var(--text-primary);
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 2.25rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.7;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    color: white;
    padding: 0.9rem 2rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    transition: opacity 0.2s, transform 0.2s, box-shadow 0.2s;
    display: inline-block;
}

.btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px var(--glow);
}

.btn-secondary {
    background: transparent;
    color: var(--text-primary);
    padding: 0.9rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background 0.2s, border-color 0.2s;
    display: inline-block;
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.4);
}

/* Hero stats row */
.hero-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 1.25rem 2rem;
    max-width: 560px;
    margin: 0 auto;
}

.hero-stat {
    text-align: center;
    padding: 0 2rem;
}

.hero-stat-number {
    display: block;
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    margin-bottom: 0.25rem;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-weight: 500;
}

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

/* ---- How It Works ---- */
.how-it-works {
    padding: 6rem 2rem;
    background: var(--navy-dark);
}

.steps {
    display: flex;
    align-items: flex-start;
    gap: 0;
    margin-top: 1rem;
}

.step {
    flex: 1;
    text-align: center;
    padding: 2.5rem 2rem;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border);
    border-radius: 16px;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.step:hover {
    border-color: var(--border-hover);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.step-number {
    width: 52px;
    height: 52px;
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1.25rem;
    box-shadow: 0 4px 16px var(--glow);
}

.step-arrow {
    font-size: 1.6rem;
    color: var(--text-muted);
    padding: 0 1rem;
    margin-top: 3rem;
    flex-shrink: 0;
    align-self: flex-start;
}

.step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.step p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.7;
}

/* ---- Demo Section ---- */
.demo {
    padding: 6rem 2rem;
    background: var(--navy-mid);
}

.demo-box {
    background: var(--navy-light);
    padding: 3rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.3);
    max-width: 820px;
    margin: 0 auto;
}

.demo-step-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.demo-step-badge {
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.7rem;
    border-radius: 100px;
    white-space: nowrap;
}

.demo-step-header h3 {
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.code-block {
    background: var(--navy-dark);
    color: var(--blue);
    padding: 1.25rem 1.5rem;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    border: 1px solid var(--border);
    line-height: 1.6;
}

.code-block code { color: var(--blue); }

.demo-result {
    margin-top: 2.5rem;
    padding: 2rem;
    background: rgba(0, 212, 255, 0.04);
    border-radius: 12px;
    border: 2px dashed rgba(0, 212, 255, 0.25);
    text-align: center;
}

.demo-result h4 {
    color: var(--blue);
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.demo-result p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* ---- Features ---- */
.features {
    padding: 6rem 2rem;
    background: var(--navy-dark);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: rgba(255, 255, 255, 0.025);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid var(--border);
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

.feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(0, 212, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    margin-bottom: 1.25rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.6rem;
    color: var(--text-primary);
}

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

/* ---- CTA ---- */
.cta-section {
    padding: 6rem 2rem;
    background: var(--navy-mid);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 70% at 50% 50%, rgba(0, 212, 255, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

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

.cta-section h2 {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: var(--text-primary);
    letter-spacing: -0.02em;
}

.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 2.5rem;
    color: var(--text-secondary);
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

/* ---- Footer ---- */
footer {
    background: var(--navy-dark);
    border-top: 1px solid var(--border);
    padding: 3rem 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
    text-align: center;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg, var(--blue) 0%, var(--indigo) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-tagline {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

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

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

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

/* ---- Responsive ---- */
@media (max-width: 900px) {
    .steps {
        flex-direction: column;
    }

    .step-arrow {
        transform: rotate(90deg);
        align-self: center;
        margin: 0.5rem 0;
        padding: 0;
    }
}

@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.4rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .nav-links {
        display: none;
    }

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

    .hero-stats {
        flex-direction: column;
        gap: 1rem;
        padding: 1.5rem;
    }

    .hero-stat-divider {
        width: 80px;
        height: 1px;
    }

    .cta-section h2 {
        font-size: 1.8rem;
    }

    .demo-box {
        padding: 2rem 1.5rem;
    }

    .demo-step-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    nav { padding: 0 1rem; }
    .hero { padding: 4rem 1rem; }
    .how-it-works, .demo, .features, .cta-section { padding: 4rem 1rem; }
}
