/* ==========================================================================
   dark-factory.space — home / landing
   ========================================================================== */

.df-hero {
    position: relative;
    padding-block: clamp(64px, 12vw, 128px) clamp(48px, 8vw, 88px);
    overflow: hidden;
}
.df-hero::before {
    content: "";
    position: absolute;
    inset: -20% -10% auto -10%;
    height: 520px;
    background:
        radial-gradient(60% 80% at 20% 0%, rgba(124, 111, 240, 0.16), transparent 60%),
        radial-gradient(50% 70% at 85% 10%, rgba(63, 197, 218, 0.14), transparent 60%);
    pointer-events: none;
    z-index: 0;
}
.df-hero > * { position: relative; z-index: 1; }

.df-hero-overline { margin-bottom: 18px; }

.df-hero h1 { max-width: 16ch; }
.df-hero h1 .df-accent { color: var(--df-accent); }

.df-hero-lede {
    max-width: 62ch;
    font-size: clamp(1.05rem, 2vw, 1.2rem);
    color: var(--df-fg-dim);
    margin-top: 20px;
}

.df-hero-ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 34px;
}

.df-hero-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1px;
    margin-top: 56px;
    background: var(--df-border);
    border: 1px solid var(--df-border);
    border-radius: var(--df-radius);
    overflow: hidden;
}
.df-stat { background: var(--df-surface); padding: 22px 20px; }
.df-stat-num {
    font-family: var(--df-font-mono);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--df-amber);
    line-height: 1.1;
}
.df-stat-label { color: var(--df-muted); font-size: .86rem; margin-top: 6px; }

/* --- Generic section --- */
.df-section { padding-block: clamp(48px, 8vw, 88px); }
.df-section-head { max-width: 64ch; margin-bottom: 40px; }
.df-section-head .df-overline { display: block; margin-bottom: 14px; }
.df-section-head p { color: var(--df-fg-dim); }

/* --- Feature grid: what changes without people --- */
.df-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 16px;
}
.df-card {
    background: var(--df-surface);
    border: 1px solid var(--df-border);
    border-radius: var(--df-radius);
    padding: 24px;
    transition: border-color .15s ease, transform .15s ease;
}
.df-card:hover { border-color: var(--df-border-strong); transform: translateY(-2px); }
.df-card-tag {
    font-family: var(--df-font-mono);
    font-size: .74rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--df-cyan);
    margin-bottom: 12px;
}
.df-card h3 { margin-bottom: 8px; }
.df-card p { color: var(--df-fg-dim); font-size: .95rem; margin: 0; }
.df-card-fig {
    display: block;
    font-family: var(--df-font-mono);
    color: var(--df-amber);
    font-size: .9rem;
    margin-top: 14px;
}

/* --- Constraint callout (credibility) --- */
.df-callout {
    border: 1px solid var(--df-border-strong);
    border-left: 3px solid var(--df-amber);
    background: linear-gradient(90deg, rgba(224,164,88,.06), transparent 40%);
    border-radius: var(--df-radius);
    padding: 28px 30px;
}
.df-callout .df-overline { color: var(--df-amber); }
.df-callout h2 { margin-top: 12px; }
.df-callout p { color: var(--df-fg-dim); max-width: 68ch; margin-bottom: 0; }

/* --- Case study --- */
.df-case {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 40px;
    align-items: center;
    background: var(--df-surface);
    border: 1px solid var(--df-border);
    border-radius: var(--df-radius);
    padding: 36px;
}
.df-case-metrics { display: grid; gap: 1px; background: var(--df-border); border-radius: var(--df-radius-sm); overflow: hidden; }
.df-case-metric { background: var(--df-bg-2); padding: 18px 20px; }
.df-case-metric b { font-family: var(--df-font-mono); color: var(--df-violet); font-size: 1.3rem; display: block; }
.df-case-metric span { color: var(--df-muted); font-size: .86rem; }

/* --- CTA band --- */
.df-cta-band {
    text-align: center;
    background:
        radial-gradient(60% 120% at 50% 0%, rgba(63,197,218,.12), transparent 70%),
        var(--df-surface);
    border: 1px solid var(--df-border);
    border-radius: var(--df-radius);
    padding: clamp(40px, 6vw, 64px) 24px;
}
.df-cta-band h2 { max-width: 22ch; margin-inline: auto; }
.df-cta-band p { color: var(--df-fg-dim); max-width: 54ch; margin-inline: auto; }
.df-cta-band .df-hero-ctas { justify-content: center; }

.df-disclaimer {
    color: var(--df-muted);
    font-size: .84rem;
    text-align: center;
    margin-top: 24px;
    max-width: 70ch;
    margin-inline: auto;
}

@media (max-width: 720px) {
    .df-case { grid-template-columns: 1fr; }
}
