/*
 * BlackWall public landing page
 *
 * The marketing page keeps its own composition — full-height hero, technology
 * strip, feature grids, the CryptBin explainer and the closing action cards —
 * but draws every colour from the theme's --ns-* tokens so it reads as the same
 * product as the signed-in interface. Loaded after theme.css and blackwall.css.
 */

/* ── Hero ────────────────────────────────────────────────────────── */

.hero {
    position: relative;
    display: flex;
    /* Fills the viewport below the sticky header. dvh keeps it honest on
       phones, where vh ignores the browser toolbar and overshoots. */
    min-height: calc(100vh - var(--ns-header-height));
    min-height: calc(100dvh - var(--ns-header-height));
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    padding: 5rem 0;
}

.hero-orb-1,
.hero-orb-2 {
    position: absolute;
    pointer-events: none;
}

.hero-orb-1 {
    top: -160px;
    left: 50%;
    width: 900px;
    height: 700px;
    transform: translateX(-60%);
    background: radial-gradient(ellipse, rgba(12, 120, 201, 0.1) 0%, transparent 65%);
}

.hero-orb-2 {
    right: -150px;
    bottom: -50px;
    width: 600px;
    height: 500px;
    background: radial-gradient(ellipse, rgba(34, 184, 207, 0.12) 0%, transparent 65%);
}

.hero-title {
    color: var(--ns-color-brand);
    font-size: clamp(2.6rem, 7vw, 5rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.gradient-text {
    background: linear-gradient(135deg, var(--ns-color-brand) 0%, var(--ns-color-brand-soft) 45%, var(--ns-color-action) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero-lead {
    max-width: 580px;
    color: var(--ns-color-text-muted);
    font-size: clamp(1rem, 2.2vw, 1.15rem);
    line-height: 1.75;
}

.eyebrow {
    color: var(--ns-color-action);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

/* ── Technology strip ────────────────────────────────────────────── */

.tech-strip {
    padding: 1.5rem 0;
    border-top: 1px solid var(--ns-color-border);
    border-bottom: 1px solid var(--ns-color-border);
    background: var(--ns-color-surface);
}

.tech-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    border: 1px solid var(--ns-color-border);
    border-radius: 100px;
    background: var(--ns-color-surface-subtle);
    color: #54718b;
    font-family: var(--bw-mono);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    white-space: nowrap;
}

/* CryptBin's strand of the technology strip is amber rather than neutral. */
.tech-pill--amber {
    border-color: rgba(245, 159, 0, 0.35);
    background: #fff6e5;
    color: #8a5a00;
}

.feature-card--amber {
    border-color: rgba(245, 159, 0, 0.3);
}

.tech-pill-dot {
    width: 6px;
    height: 6px;
    flex-shrink: 0;
    border-radius: 50%;
}

/* ── Section furniture ───────────────────────────────────────────── */

.section-title {
    color: var(--ns-color-brand);
    font-size: clamp(1.8rem, 4.5vw, 2.75rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.14;
}

.section-lead {
    max-width: 620px;
    color: var(--ns-color-text-muted);
    font-size: 1.02rem;
    line-height: 1.8;
}

.section-rule {
    width: 44px;
    height: 3px;
    margin-bottom: 1.5rem;
    border-radius: 3px;
    background: linear-gradient(90deg, var(--ns-color-action), var(--ns-color-accent));
}

.section-rule-amber {
    background: linear-gradient(90deg, var(--ns-color-warning), rgba(245, 159, 0, 0.25));
}

/* ── Feature cards ───────────────────────────────────────────────── */

.feature-card {
    height: 100%;
    padding: 1.75rem;
    border: 1px solid var(--ns-color-border);
    border-radius: var(--ns-radius-card);
    background: var(--ns-color-surface);
    box-shadow: var(--ns-shadow-card);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(12, 120, 201, 0.28);
    box-shadow: var(--ns-shadow-card-hover);
}

.feature-icon {
    display: flex;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
    border-radius: 11px;
}

.fi-blue   { background: #eaf5fd; color: #0a5f9e; box-shadow: inset 0 0 0 1px rgba(12, 120, 201, 0.18); }
.fi-green  { background: #ebfaed; color: #1c7c2b; box-shadow: inset 0 0 0 1px rgba(47, 179, 68, 0.2); }
.fi-amber  { background: #fff6e5; color: #8a5a00; box-shadow: inset 0 0 0 1px rgba(245, 159, 0, 0.22); }
.fi-purple { background: #f2eefc; color: #5b3bb0; box-shadow: inset 0 0 0 1px rgba(124, 77, 224, 0.18); }
.fi-red    { background: #fdeded; color: #b02a2a; box-shadow: inset 0 0 0 1px rgba(214, 57, 57, 0.2); }
.fi-teal   { background: #e6f8fa; color: #0e7c8c; box-shadow: inset 0 0 0 1px rgba(34, 184, 207, 0.22); }

.feature-title {
    margin-bottom: 0.5rem;
    color: var(--ns-color-brand);
    font-size: 1rem;
    font-weight: 700;
}

.feature-body {
    margin: 0;
    color: var(--ns-color-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
}

/* ── CryptBin explainer ──────────────────────────────────────────── */

.cryptbin-section {
    position: relative;
    overflow: hidden;
    border-top: 1px solid rgba(245, 159, 0, 0.2);
    border-bottom: 1px solid rgba(245, 159, 0, 0.2);
    background: linear-gradient(180deg, #fffaf0 0%, transparent 100%);
}

.cryptbin-orb {
    position: absolute;
    top: 50%;
    right: -80px;
    width: 500px;
    height: 500px;
    transform: translateY(-50%);
    background: radial-gradient(circle, rgba(245, 159, 0, 0.1) 0%, transparent 65%);
    pointer-events: none;
}

.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.flow-num {
    display: flex;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    margin-top: 0.1rem;
    border: 1px solid rgba(245, 159, 0, 0.35);
    border-radius: 50%;
    background: #fff6e5;
    color: #8a5a00;
    font-size: 0.8rem;
    font-weight: 700;
}

.flow-step h6 {
    margin-bottom: 0.2rem;
    color: var(--ns-color-brand);
    font-size: 0.9rem;
    font-weight: 700;
}

.flow-step p {
    margin: 0;
    color: var(--ns-color-text-muted);
    font-size: 0.85rem;
    line-height: 1.65;
}

.use-case-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    border: 1px solid var(--ns-color-border);
    border-radius: 9px;
    background: var(--ns-color-surface);
    color: #54718b;
    font-size: 0.82rem;
    font-weight: 500;
    line-height: 1;
}

.use-case-chip svg {
    flex-shrink: 0;
    opacity: 0.75;
}

/* ── Closing action cards ────────────────────────────────────────── */

.action-card {
    position: relative;
    display: block;
    height: 100%;
    overflow: hidden;
    padding: 2rem 1.75rem;
    border: 1px solid var(--ns-color-border);
    border-radius: 16px;
    background: var(--ns-color-surface);
    box-shadow: var(--ns-shadow-card);
    text-decoration: none;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.action-card::before {
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    border-radius: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
    content: "";
}

.action-card:hover { transform: translateY(-4px); }
.action-card:hover::before { opacity: 1; }

.ac-blue:hover   { border-color: rgba(12, 120, 201, 0.35); box-shadow: 0 18px 44px rgba(12, 120, 201, 0.12); }
.ac-green:hover  { border-color: rgba(47, 179, 68, 0.35);  box-shadow: 0 18px 44px rgba(47, 179, 68, 0.12); }
.ac-amber:hover  { border-color: rgba(245, 159, 0, 0.4);   box-shadow: 0 18px 44px rgba(245, 159, 0, 0.14); }
.ac-purple:hover { border-color: rgba(124, 77, 224, 0.35); box-shadow: 0 18px 44px rgba(124, 77, 224, 0.12); }

.ac-blue::before   { background: radial-gradient(circle at top right, rgba(12, 120, 201, 0.12), transparent); }
.ac-green::before  { background: radial-gradient(circle at top right, rgba(47, 179, 68, 0.12), transparent); }
.ac-amber::before  { background: radial-gradient(circle at top right, rgba(245, 159, 0, 0.14), transparent); }
.ac-purple::before { background: radial-gradient(circle at top right, rgba(124, 77, 224, 0.12), transparent); }

.action-card-icon {
    display: flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.25rem;
    border-radius: 10px;
}

.action-card h5 {
    margin-bottom: 0.45rem;
    color: var(--ns-color-brand);
    font-size: 1.05rem;
    font-weight: 700;
}

.action-card p {
    margin-bottom: 1.25rem;
    color: var(--ns-color-text-muted);
    font-size: 0.855rem;
    line-height: 1.65;
}

.action-arrow {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.82rem;
    font-weight: 600;
}

.action-arrow--blue   { color: #0a5f9e; }
.action-arrow--green  { color: #1c7c2b; }
.action-arrow--amber  { color: #8a5a00; }
.action-arrow--purple { color: #5b3bb0; }

/* Amber counterpart to .gradient-text for the CryptBin headline. */
.gradient-text-amber {
    background: linear-gradient(135deg, #b87400 0%, #8a5a00 60%, #6b4600 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    color: transparent;
}

/* ── Notes and chips ─────────────────────────────────────────────── */

.integrity-note {
    padding: 1.25rem 1.5rem;
    border: 1px solid rgba(12, 120, 201, 0.18);
    border-left: 3px solid var(--ns-color-action);
    border-radius: 0 10px 10px 0;
    background: #f4f9fe;
    color: var(--ns-color-text-muted);
    font-size: 0.9rem;
    line-height: 1.75;
}

.integrity-note strong {
    color: var(--ns-color-text);
}

.endpoint-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border: 1px solid rgba(12, 120, 201, 0.22);
    border-radius: 7px;
    background: var(--ns-color-surface);
    color: #0a5f9e;
    font-family: var(--bw-mono);
    font-size: 0.76rem;
}

.home-footer {
    padding: 2.5rem 0;
    border-top: 1px solid var(--ns-color-border);
    color: var(--ns-color-text-muted);
}

.home-footer__mark {
    color: #54718b;
    font-family: var(--bw-mono);
    font-size: 0.85rem;
}

.home-footer__mark span {
    color: var(--ns-color-action);
}

.home-footer__link {
    color: var(--ns-color-text-muted);
    text-decoration: none;
    transition: color 0.15s ease;
}

.home-footer__link:hover {
    color: var(--ns-color-action);
}

@media (max-width: 768px) {
    .hero { padding: 4rem 0 3rem; }
    .hero-lead { max-width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .feature-card,
    .action-card {
        transition: none;
    }

    .feature-card:hover,
    .action-card:hover {
        transform: none;
    }
}
