/* =========================================================
   LANDING PAGE v3 — Modern Dark Design
   Orlando Alfaro · Taitotalo · 2026
   ========================================================= */

/* ── Reset ───────────────────────────────────────────── */
.lp-wrap *,
.lp-wrap *::before,
.lp-wrap *::after {
    box-sizing: border-box;
}

/* ── Root wrapper ────────────────────────────────────── */
.lp-wrap {
    background: #0d1117;
    color: #e6edf3;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-size: 1rem;
    line-height: 1.7;
    max-width: 100%;
    min-height: 100vh;
}

/* Force all child text colors */
.lp-wrap,
.lp-wrap p,
.lp-wrap li,
.lp-wrap span,
.lp-wrap time,
.lp-wrap small {
    color: #c9d1d9 !important;
}

.lp-wrap h1,
.lp-wrap h2,
.lp-wrap h3,
.lp-wrap h4,
.lp-wrap strong,
.lp-wrap b {
    color: #e6edf3 !important;
}

/* ── Inner content column ────────────────────────────── */
.lp-inner {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* =========================================================
   HERO
   ========================================================= */
.lp-hero {
    position: relative;
    padding: 6rem 2rem 5rem;
    max-width: 860px;
    margin: 0 auto;
    overflow: hidden;
}

/* Subtle ambient glow */
.lp-hero::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -80px;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(57, 211, 83, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.lp-hero__eyebrow {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.lp-hero__eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #39d353;
    box-shadow: 0 0 8px rgba(57, 211, 83, 0.6);
    flex-shrink: 0;
    animation: lp-pulse 2.5s ease infinite;
}

@keyframes lp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.5; transform: scale(0.8); }
}

.lp-hero__eyebrow-text {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.78rem;
    color: #39d353 !important;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* Main title */
.lp-hero__title {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: clamp(2rem, 5.5vw, 3.5rem) !important;
    font-weight: 700 !important;
    line-height: 1.15 !important;
    letter-spacing: -0.03em;
    margin: 0 0 1.5rem !important;
    color: transparent !important;
    background: linear-gradient(135deg, #e6edf3 0%, #c9d1d9 40%, #39d353 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.lp-hero__desc {
    font-size: 1.05rem;
    color: #8b949e !important;
    max-width: 580px;
    margin-bottom: 2rem;
    line-height: 1.75;
}

/* Context badges */
.lp-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.lp-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #8b949e !important;
    border: 1px solid #21262d;
    border-radius: 999px;
    padding: 4px 12px;
    background: transparent;
    transition: border-color 0.2s, color 0.2s;
}

.lp-tag--accent {
    color: #39d353 !important;
    border-color: rgba(57, 211, 83, 0.3);
    background: rgba(57, 211, 83, 0.05);
}

/* CTA buttons */
.lp-hero__cta {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    align-items: center;
}

.lp-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 6px;
    text-decoration: none !important;
    transition: all 0.2s ease;
    border: 1px solid transparent;
    cursor: pointer;
    white-space: nowrap;
}

.lp-btn--primary {
    background: #238636;
    color: #fff !important;
    border-color: #2ea043;
}

.lp-btn--primary:hover {
    background: #2ea043;
    color: #fff !important;
    box-shadow: 0 0 20px rgba(57, 211, 83, 0.25);
    transform: translateY(-1px);
}

.lp-btn--ghost {
    background: transparent;
    color: #8b949e !important;
    border-color: #30363d;
}

.lp-btn--ghost:hover {
    color: #e6edf3 !important;
    border-color: #8b949e;
}

.lp-btn svg {
    flex-shrink: 0;
    opacity: 0.8;
}

/* ── Hero separator ──────────────────────────────────── */
.lp-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #30363d 20%, #30363d 80%, transparent);
    border: none;
    margin: 0;
}

/* =========================================================
   TABLE OF CONTENTS
   ========================================================= */
.lp-toc-wrap {
    padding: 3rem 2rem;
    max-width: 860px;
    margin: 0 auto;
}

.lp-toc {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 10px;
    padding: 1.5rem 2rem;
    position: relative;
    overflow: hidden;
}

.lp-toc::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, #39d353, #58a6ff, #bc8cff);
}

.lp-toc__label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #8b949e !important;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin: 0 0 1.25rem;
}

.lp-toc__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem 2rem;
}

.lp-toc__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.lp-toc__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #39d353 !important;
    min-width: 24px;
    font-weight: 700;
}

.lp-toc__link {
    font-size: 0.875rem;
    color: #8b949e !important;
    text-decoration: none !important;
    transition: color 0.2s;
    line-height: 1.4;
}

.lp-toc__link:hover {
    color: #e6edf3 !important;
}

/* =========================================================
   CONTENT SECTIONS
   ========================================================= */
.lp-content {
    max-width: 860px;
    margin: 0 auto;
    padding: 0 2rem 6rem;
}

.lp-section {
    padding: 4rem 0;
    border-bottom: 1px solid #161b22;
    position: relative;
}

.lp-section:last-child {
    border-bottom: none;
}

/* Section number (decorative) */
.lp-section__num {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    font-weight: 700;
    color: #39d353 !important;
    letter-spacing: 0.05em;
    margin-bottom: 0.75rem;
    display: block;
}

/* Section heading */
.lp-h2 {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: clamp(1.3rem, 3vw, 1.75rem) !important;
    font-weight: 700 !important;
    color: #e6edf3 !important;
    margin: 0 0 2rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em;
    padding-bottom: 1rem;
    border-bottom: 1px solid #21262d;
}

/* Subheading */
.lp-h3 {
    font-family: 'JetBrains Mono', monospace !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #c9d1d9 !important;
    margin: 2rem 0 0.75rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.lp-h3::before {
    content: '▸';
    color: #39d353;
    font-size: 0.8rem;
}

/* Paragraphs */
.lp-p {
    margin: 0 0 1rem;
    color: #8b949e !important;
    font-size: 0.975rem;
    line-height: 1.8;
}

.lp-p:last-child { margin-bottom: 0; }

/* Inline highlight */
.lp-p strong,
.lp-p b {
    color: #c9d1d9 !important;
    font-weight: 600;
}

/* ── Lists ───────────────────────────────────────────── */
.lp-list {
    list-style: none;
    padding: 0;
    margin: 0.75rem 0 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lp-list li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 1rem;
    padding: 0.9rem 0;
    border-bottom: 1px solid #161b22;
    font-size: 0.95rem;
    color: #8b949e !important;
    line-height: 1.7;
    align-items: start;
}

.lp-list li:first-child { border-top: 1px solid #161b22; }

.lp-list li::before {
    content: '→';
    color: #39d353 !important;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.85rem;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

.lp-list li strong,
.lp-list li b {
    color: #c9d1d9 !important;
}

/* ── Code blocks ─────────────────────────────────────── */
.lp-code {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    margin: 1.25rem 0;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', monospace;
}

.lp-code__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: #0d1117;
    border-bottom: 1px solid #21262d;
}

.lp-code__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}
.lp-code__dot--r { background: #ff5f57; }
.lp-code__dot--y { background: #febc2e; }
.lp-code__dot--g { background: #28c840; }

.lp-code__title {
    font-size: 0.68rem;
    color: #8b949e !important;
    margin-left: auto;
    letter-spacing: 0.03em;
}

.lp-code__body {
    padding: 1.25rem 1.5rem;
    margin: 0;
    overflow-x: auto;
    font-size: 0.82rem;
    line-height: 1.7;
    color: #c9d1d9 !important;
}

.lp-code__body .c { color: #484f58 !important; font-style: italic; }
.lp-code__body .k { color: #79c0ff !important; }
.lp-code__body .cmd { color: #a5d6ff !important; }

/* ── LinkedIn / external link card ──────────────────── */
.lp-link-card {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 0.75rem 1.25rem;
    margin-top: 1rem;
    text-decoration: none !important;
    transition: all 0.2s ease;
    color: #c9d1d9 !important;
}

.lp-link-card:hover {
    border-color: #58a6ff;
    background: rgba(88, 166, 255, 0.05);
    color: #58a6ff !important;
    transform: translateY(-1px);
}

.lp-link-card__icon {
    width: 18px;
    height: 18px;
    color: #58a6ff;
    flex-shrink: 0;
}

.lp-link-card__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.lp-link-card__name {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e6edf3 !important;
    line-height: 1;
}

.lp-link-card__sub {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.68rem;
    color: #58a6ff !important;
    line-height: 1;
}

.lp-link-card__arrow {
    margin-left: auto;
    color: #30363d !important;
    font-size: 1rem;
    transition: color 0.2s, transform 0.2s;
}

.lp-link-card:hover .lp-link-card__arrow {
    color: #58a6ff !important;
    transform: translate(2px, -2px);
}

/* ── Screenshot gallery ──────────────────────────────── */
.lp-gallery {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin: 2rem 0 1rem;
}

.lp-gallery__item {
    margin: 0;
    padding: 0;
    border: 1px solid #21262d;
    border-radius: 10px;
    overflow: hidden;
    background: #161b22;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.lp-gallery__item:hover {
    border-color: #39d353;
    box-shadow: 0 4px 24px rgba(57, 211, 83, 0.1);
    transform: translateY(-2px);
}

.lp-gallery__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.lp-gallery__caption {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: #8b949e !important;
    text-align: center;
    font-style: italic;
    padding: 0.75rem 1rem;
    border-top: 1px solid #21262d;
    background: #0d1117;
    line-height: 1.5;
}

.lp-img-caption {
    font-size: 0.75rem;
    color: #484f58 !important;
    text-align: center;
    font-style: italic;
    margin: 0.4rem 0 1rem;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Network cards (Verkostot section) ───────────────── */
.lp-network-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.lp-network-card {
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 8px;
    padding: 1.25rem;
    transition: border-color 0.2s, transform 0.2s;
}

.lp-network-card:hover {
    border-color: #30363d;
    transform: translateY(-2px);
}

.lp-network-card__icon {
    font-size: 1.5rem;
    margin-bottom: 0.6rem;
    display: block;
}

.lp-network-card__name {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #c9d1d9 !important;
    margin-bottom: 0.35rem;
}

.lp-network-card__desc {
    font-size: 0.82rem;
    color: #8b949e !important;
    line-height: 1.6;
}

/* ── Copyright list (Aineisto section) ───────────────── */
.lp-cr-list {
    list-style: none;
    padding: 0;
    margin: 1.25rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.lp-cr-item {
    display: grid;
    grid-template-columns: 2.5rem 1fr;
    gap: 0 0.75rem;
    background: #161b22;
    border: 1px solid #21262d;
    border-radius: 6px;
    padding: 1rem 1.25rem;
    align-items: start;
}

.lp-cr-item__icon {
    font-size: 1.25rem;
    line-height: 1;
    margin-top: 0.1rem;
}

.lp-cr-item__title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.82rem;
    font-weight: 700;
    color: #c9d1d9 !important;
    margin-bottom: 0.3rem;
}

.lp-cr-item__desc {
    font-size: 0.85rem;
    color: #8b949e !important;
    line-height: 1.65;
}

/* ── Page footer ─────────────────────────────────────── */
.lp-footer {
    background: #0d1117;
    border-top: 1px solid #161b22;
    padding: 2rem;
    max-width: 860px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.lp-footer__copy {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #484f58 !important;
    margin: 0;
}

.lp-footer__back {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.72rem;
    color: #484f58 !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.lp-footer__back:hover {
    color: #39d353 !important;
}

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.lp-reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.lp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 640px) {
    .lp-hero {
        padding: 3.5rem 1.25rem 3rem;
    }

    .lp-hero__title {
        font-size: 1.75rem !important;
    }

    .lp-toc-wrap,
    .lp-inner {
        padding: 1.5rem 1.25rem;
    }

    .lp-content {
        padding: 0 1.25rem 4rem;
    }

    .lp-toc__list {
        grid-template-columns: 1fr;
    }

    .lp-network-grid {
        grid-template-columns: 1fr;
    }

    .lp-hero__cta {
        flex-direction: column;
        align-items: flex-start;
    }

    .lp-footer {
        padding: 1.5rem 1.25rem;
    }
}
