/* === KLD Landing Page — Premium Dark Theme === */

:root {
    --bg-deep: #0a0a0c;
    --surface: #131316;
    --border: #27272a;
    --accent-green: #22c55e;
    --accent-blue: #3b82f6;
    --accent-amber: #f59e0b;
    --text-primary: #fafafa;
    --text-body: #d4d4d8;
    --text-muted: #71717a;
    --font: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', sans-serif;
}

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

html { font-size: 62.5%; scroll-behavior: smooth; }
body {
    font-family: var(--font);
    font-size: 1.5rem;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg-deep);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

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

.hero-bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 30%, rgba(34, 197, 94, 0.08) 0%, transparent 70%),
        radial-gradient(ellipse 50% 50% at 80% 70%, rgba(59, 130, 246, 0.06) 0%, transparent 60%),
        radial-gradient(ellipse 60% 40% at 20% 50%, rgba(245, 158, 11, 0.04) 0%, transparent 60%);
    z-index: 0;
    animation: bgPulse 8s ease-in-out infinite alternate;
}

/* Floating particles */
.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.particle {
    position: absolute;
    border-radius: 50%;
    animation: floatUp linear infinite;
    opacity: 0;
}
.particle:nth-child(1) { width: 4px; height: 4px; background: rgba(34,197,94,0.4); left: 15%; animation-duration: 12s; animation-delay: 0s; }
.particle:nth-child(2) { width: 2px; height: 2px; background: rgba(59,130,246,0.3); left: 35%; animation-duration: 15s; animation-delay: 2s; }
.particle:nth-child(3) { width: 3px; height: 3px; background: rgba(34,197,94,0.3); left: 55%; animation-duration: 10s; animation-delay: 4s; }
.particle:nth-child(4) { width: 5px; height: 5px; background: rgba(245,158,11,0.2); left: 70%; animation-duration: 18s; animation-delay: 1s; }
.particle:nth-child(5) { width: 2px; height: 2px; background: rgba(59,130,246,0.4); left: 85%; animation-duration: 14s; animation-delay: 3s; }
.particle:nth-child(6) { width: 3px; height: 3px; background: rgba(34,197,94,0.25); left: 25%; animation-duration: 16s; animation-delay: 5s; }
.particle:nth-child(7) { width: 4px; height: 4px; background: rgba(245,158,11,0.3); left: 45%; animation-duration: 11s; animation-delay: 6s; }
.particle:nth-child(8) { width: 2px; height: 2px; background: rgba(59,130,246,0.25); left: 60%; animation-duration: 13s; animation-delay: 7s; }

@keyframes floatUp {
    0% { transform: translateY(100vh) scale(0); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-10vh) scale(1.5); opacity: 0; }
}

/* Glow ring behind CTA */
.hero-cta {
    position: relative;
    margin-bottom: 4rem;
}
.hero-cta::before {
    content: '';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    width: 200px; height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(34,197,94,0.1) 0%, transparent 70%);
    animation: glowPulse 3s ease-in-out infinite;
    pointer-events: none;
}
@keyframes glowPulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

@keyframes bgPulse {
    0% { opacity: 0.7; }
    100% { opacity: 1; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255,255,255,0.02) 0px, transparent 1px);
    background-size: 40px 40px;
    z-index: 0;
    animation: gridDrift 20s linear infinite;
}

@keyframes gridDrift {
    0% { transform: translate(0, 0); }
    100% { transform: translate(40px, 40px); }
}

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

.hero-title { margin-bottom: 3rem; }
.hero-title .line {
    display: block;
    font-size: 5.6rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.03em;
    color: var(--text-primary);
}

.hero-title .line:first-child {
    background: linear-gradient(135deg, #fafafa 0%, #a1a1aa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title .line:last-child {
    background: linear-gradient(135deg, #22c55e 0%, #4ade80 60%, #fafafa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 1.6rem;
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 3.5rem;
}

.hero-cta { margin-bottom: 4rem; }

.btn-primary {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: #fff;
    border: none;
    padding: 1.4rem 4rem;
    font-size: 1.6rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    letter-spacing: -0.01em;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.25);
}
.btn-large { padding: 1.8rem 5rem; font-size: 1.8rem; }

.hero-stats {
    display: flex;
    gap: 4rem;
    justify-content: center;
}
.hero-stat { text-align: center; }
.hero-stat .num { display: block; font-size: 3.2rem; font-weight: 800; color: var(--text-primary); }
.hero-stat .label { font-size: 1.2rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.hero-stat.accent .num { color: var(--accent-green); }

/* Scroll hint */
.scroll-hint {
    position: absolute;
    bottom: 4rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.6;
    animation: fadeInOut 2s ease-in-out infinite;
}
.scroll-arrow {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--text-muted), transparent);
}

@keyframes fadeInOut {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.8; }
}

/* === Sections === */
.section-inner { max-width: 960px; margin: 0 auto; padding: 10rem 2rem; }
.section-title {
    font-size: 3.6rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 6rem;
    letter-spacing: -0.02em;
}

/* === Features === */
.features { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}
.feature-card {
    text-align: center;
    padding: 3rem 2rem;
}
.feature-icon {
    width: 80px; height: 80px;
    margin: 0 auto 2.4rem;
    display: flex; align-items: center; justify-content: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(34,197,94,0.08) 0%, rgba(59,130,246,0.08) 100%);
    border: 1px solid rgba(255,255,255,0.05);
}
.feature-card h3 { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.2rem; }
.feature-card p { font-size: 1.4rem; color: var(--text-muted); line-height: 1.7; }

/* === Steps === */
.steps { max-width: 640px; margin: 0 auto; }
.step { display: flex; gap: 2.4rem; margin-bottom: 1rem; }
.step-num {
    font-size: 4rem;
    font-weight: 800;
    color: var(--accent-green);
    opacity: 0.3;
    line-height: 1;
    flex-shrink: 0;
    width: 6rem;
}
.step-content h3 { font-size: 1.8rem; font-weight: 700; color: var(--text-primary); margin-bottom: 0.6rem; }
.step-content p { font-size: 1.4rem; color: var(--text-muted); line-height: 1.7; }
.step-connector {
    width: 2px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent-green), transparent);
    margin-left: 3rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* === Target === */
.target { background: var(--bg-deep); }
.target-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.4rem;
}
.target-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 3rem 2.4rem;
    transition: border-color 0.3s;
}
.target-card:hover { border-color: var(--accent-green); }
.target-card h3 { font-size: 1.6rem; font-weight: 700; color: var(--text-primary); margin-bottom: 1.2rem; line-height: 1.5; }
.target-card p { font-size: 1.3rem; color: var(--text-muted); line-height: 1.7; }

/* === CTA === */
.cta-section {
    background: linear-gradient(180deg, var(--bg-deep) 0%, rgba(34,197,94,0.03) 50%, var(--bg-deep) 100%);
    text-align: center;
    border-top: 1px solid var(--border);
}
.cta-title { font-size: 4rem; font-weight: 800; color: var(--text-primary); margin-bottom: 1rem; }
.cta-sub { font-size: 1.6rem; color: var(--text-muted); margin-bottom: 3rem; }
.cta-note { font-size: 1.2rem; color: var(--text-dim); margin-top: 2rem; }

/* === Footer === */
.footer {
    display: flex;
    justify-content: space-between;
    padding: 3rem;
    border-top: 1px solid var(--border);
    font-size: 1.2rem;
    color: var(--text-dim);
}

/* === Reveal Animation === */
[data-reveal] {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.feature-card:nth-child(1) { transition-delay: 0s; }
.feature-card:nth-child(2) { transition-delay: 0.1s; }
.feature-card:nth-child(3) { transition-delay: 0.2s; }

.step:nth-child(1) { transition-delay: 0s; }
.step:nth-child(3) { transition-delay: 0.15s; }
.step:nth-child(5) { transition-delay: 0.3s; }

/* === Responsive === */
@media (max-width: 768px) {
    .hero-title .line { font-size: 3.2rem; }
    .hero-sub { font-size: 1.4rem; }
    .hero-stats { gap: 2rem; }
    .hero-stat .num { font-size: 2.4rem; }
    .feature-grid, .target-grid { grid-template-columns: 1fr; }
    .section-title { font-size: 2.8rem; }
    .cta-title { font-size: 2.8rem; }
}
