/* === RecAI — Premium Dark Landing === */

:root {
    --bg: #050507;
    --bg-raised: #0c0c10;
    --surface: #111116;
    --surface-border: rgba(255,255,255,0.06);
    --text: #e8e8ed;
    --text-dim: #6e6e7a;
    --text-muted: #44444f;
    --accent: #4f8fff;
    --accent-bright: #70a5ff;
    --accent-glow: rgba(79,143,255,0.15);
    --green: #34d399;
    --cyan: #22d3ee;
    --radius: 16px;
    --radius-sm: 10px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* === Nav === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 40px;
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    background: rgba(5,5,7,0.7);
    border-bottom: 1px solid var(--surface-border);
}

.nav-logo {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
    color: var(--text);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
}

.logo-icon {
    font-size: 1.5rem;
    color: var(--accent);
    filter: drop-shadow(0 0 8px var(--accent-glow));
}

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

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

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

/* === Buttons === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 12px 28px;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    border: none;
}

.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 0 24px rgba(79,143,255,0.25), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
    background: var(--accent-bright);
    box-shadow: 0 0 40px rgba(79,143,255,0.35), inset 0 1px 0 rgba(255,255,255,0.15);
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--text-dim);
    border: 1px solid var(--surface-border);
    background: transparent;
}

.btn-ghost:hover {
    color: var(--text);
    border-color: rgba(255,255,255,0.15);
    background: rgba(255,255,255,0.03);
}

.btn-lg {
    padding: 16px 36px;
    font-size: 1.05rem;
}

/* === Hero === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 120px 40px 80px;
    overflow: hidden;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(79,143,255,0.12) 0%, transparent 70%);
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
    animation: glow-drift 8s ease-in-out infinite;
    pointer-events: none;
}

.hero-glow--secondary {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(34,211,238,0.08) 0%, transparent 70%);
    top: 30%;
    left: 30%;
    animation: glow-drift-alt 10s ease-in-out infinite;
}

@keyframes glow-drift {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-45%) translateY(-30px); }
}

@keyframes glow-drift-alt {
    0%, 100% { transform: translateX(0) translateY(0); }
    50% { transform: translateX(20px) translateY(20px); }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 720px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 20px;
    border-radius: 50px;
    border: 1px solid var(--surface-border);
    background: rgba(255,255,255,0.02);
    font-size: 0.82rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.03em;
    margin-bottom: 32px;
}

.badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 8px rgba(52,211,153,0.5);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
    color: #fff;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.15rem;
    color: var(--text-dim);
    max-width: 520px;
    margin: 0 auto 40px;
    line-height: 1.7;
}

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

/* === Hero Visual (Terminal) === */
.hero-visual {
    position: relative;
    z-index: 2;
    margin-top: 64px;
    width: 100%;
    max-width: 640px;
}

.terminal {
    background: var(--surface);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow:
        0 4px 24px rgba(0,0,0,0.4),
        0 0 0 1px rgba(255,255,255,0.03),
        0 0 80px rgba(79,143,255,0.05);
}

.terminal-bar {
    display: flex;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--surface-border);
}

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

.terminal-body {
    padding: 20px 22px;
    font-family: 'SF Mono', 'Fira Code', 'Consolas', monospace;
    font-size: 0.82rem;
    line-height: 1.9;
}

.terminal-line { white-space: nowrap; overflow: hidden; }
.t-gray { color: #555; }
.t-dim { color: var(--text-muted); }
.t-green { color: var(--green); }
.t-cyan { color: var(--cyan); }

/* === Fade-in Animations === */
.anim-fade {
    opacity: 0;
    transform: translateY(20px);
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    animation-delay: calc(var(--delay, 0) * 0.12s + 0.2s);
}

@keyframes fade-up {
    to { opacity: 1; transform: translateY(0); }
}

.anim-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.anim-scroll.in-view {
    opacity: 1;
    transform: translateY(0);
}

/* === Sections === */
.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-tag {
    display: inline-block;
    font-family: 'Outfit', sans-serif;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
    margin-bottom: 16px;
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: #fff;
}

.section-title em {
    font-style: normal;
    background: linear-gradient(135deg, var(--accent) 0%, var(--cyan) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* === Features === */
.features {
    padding: 120px 40px;
    max-width: 1100px;
    margin: 0 auto;
}

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

.feature-card {
    background: var(--bg-raised);
    border: 1px solid var(--surface-border);
    border-radius: var(--radius);
    padding: 36px 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: calc(var(--card-delay, 0) * 0.08s);
}

.feature-card:hover {
    border-color: rgba(79,143,255,0.2);
    background: rgba(79,143,255,0.03);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--accent-glow);
    border: 1px solid rgba(79,143,255,0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: var(--accent-bright);
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #fff;
}

.feature-card p {
    font-size: 0.9rem;
    color: var(--text-dim);
    line-height: 1.6;
}

/* === How it works === */
.how-it-works {
    padding: 120px 40px;
    max-width: 700px;
    margin: 0 auto;
}

.steps {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.step {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    padding: 32px 0;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: calc(var(--step-delay, 0) * 0.15s);
}

.step.in-view {
    opacity: 1;
    transform: translateY(0);
}

.step-num {
    font-family: 'Outfit', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(79,143,255,0.15);
    line-height: 1;
    min-width: 80px;
    letter-spacing: -0.04em;
}

.step-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
}

.step-content p {
    color: var(--text-dim);
    font-size: 0.95rem;
}

.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(180deg, rgba(79,143,255,0.2), transparent);
    margin-left: 39px;
}

.step-connector.in-view {
    opacity: 1;
    transform: none;
}

/* === CTA === */
.cta {
    position: relative;
    text-align: center;
    padding: 120px 40px;
    overflow: hidden;
}

.cta-glow {
    position: absolute;
    width: 500px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(ellipse, rgba(79,143,255,0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: #fff;
    margin-bottom: 16px;
    position: relative;
}

.cta p {
    color: var(--text-dim);
    font-size: 1.1rem;
    margin-bottom: 36px;
    position: relative;
}

.cta .btn { position: relative; }

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

.footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-brand {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 8px;
}

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

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

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

/* === Privacy / Content pages === */
.content {
    max-width: 700px;
    margin: 0 auto;
    padding: 140px 40px 80px;
}

.content h1 {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 2.2rem;
    letter-spacing: -0.03em;
    margin-bottom: 32px;
    color: #fff;
}

.content h2 {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.3rem;
    margin-top: 40px;
    margin-bottom: 16px;
    color: #fff;
}

.content p {
    color: var(--text-dim);
    margin-bottom: 16px;
}

.content ul { padding-left: 24px; }

.content li {
    color: var(--text-dim);
    margin-bottom: 8px;
}

/* === Responsive === */
@media (max-width: 768px) {
    .nav { padding: 16px 20px; }
    .nav-links { display: none; }

    .hero { padding: 100px 20px 60px; }
    .hero-title { font-size: 2.4rem; }

    .features { padding: 80px 20px; }
    .features-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .how-it-works { padding: 80px 20px; }
    .step { gap: 20px; }
    .step-num { font-size: 2rem; min-width: 50px; }
    .step-connector { margin-left: 24px; }

    .cta { padding: 80px 20px; }

    .footer-inner {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .terminal-body { font-size: 0.72rem; }
}

@media (max-width: 480px) {
    .hero-title { font-size: 2rem; }
    .hero-sub { font-size: 1rem; }
    .hero-cta { flex-direction: column; align-items: center; }
}
