/* =========================================================
   home.css — layered on top of styles.css.
   Used by index.html and technical.html only. It adds new
   classes and does not override anything why.html relies on.
   ========================================================= */

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

section[id] { scroll-margin-top: 70px; }


/* ===== Top navigation ===== */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 90;
    background: rgba(10, 14, 20, 0.88);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.nav-brand {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 18px;
    color: var(--text);
    letter-spacing: -0.01em;
}

.nav-brand:hover { text-decoration: none; color: var(--accent); }

.nav-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 14px;
}

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

.nav-cta {
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.nav-cta:hover {
    background: #6a95ff;
    color: #fff;
    text-decoration: none;
}

@media (max-width: 900px) {
    .nav-links { display: none; }
}


/* ===== Inner page header (technical.html) ===== */

.page-header {
    padding: 70px 20px 50px 20px;
    background: radial-gradient(circle at 20% 0%, #161c2c 0%, var(--bg) 60%);
}

.page-header h1 {
    font-size: 38px;
    line-height: 1.2;
    margin: 0 0 16px 0;
}

.page-header .lead { margin-bottom: 16px; }

@media (max-width: 768px) {
    .page-header { padding: 50px 20px 30px 20px; }
    .page-header h1 { font-size: 28px; }
}


/* ===== Trust strip ===== */

.trust-strip {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg);
}

.trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    padding-top: 22px;
    padding-bottom: 22px;
}

.trust-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-left: 14px;
    border-left: 2px solid var(--accent-2);
}

.trust-item strong {
    font-family: var(--font-display);
    font-size: 15px;
    font-weight: 600;
}

.trust-item span {
    color: var(--text-muted);
    font-size: 13px;
}

@media (max-width: 1024px) {
    .trust-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .trust-grid { grid-template-columns: 1fr; }
}


/* ===== Problems ===== */

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

.problem-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    transition: transform 0.25s ease, box-shadow 0.35s ease;
}

.problem-card:hover {
    transform: translateY(-4px);
    box-shadow:
        0 0 20px #4c7cf020,
        0 0 45px #4c7cf012;
}

.problem-card h3 { font-size: 17px; margin: 0 0 8px 0; }
.problem-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

@media (max-width: 1024px) {
    .problem-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .problem-grid { grid-template-columns: 1fr; }
}


/* ===== Steps ===== */

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 30px;
}

.step {
    position: relative;
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 22px;
}

.step-num {
    display: block;
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--accent-2);
    margin-bottom: 10px;
    letter-spacing: 0.02em;
}

.step h3 { font-size: 18px; margin: 0 0 8px 0; }
.step p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

@media (max-width: 900px) {
    .steps { grid-template-columns: 1fr; }
}


/* ===== Scenario ===== */

.scenario {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.scenario-col {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.scenario-col.good {
    border-color: var(--accent);
    background: linear-gradient(180deg, #1a2340, var(--surface-2) 70%);
}

.scenario-col h3 { font-size: 19px; margin: 0 0 14px 0; }

.scenario-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.scenario-col li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 12px;
    font-size: 15px;
    color: var(--text);
}

.scenario-col li:last-child { margin-bottom: 0; }

.scenario-col li::before {
    position: absolute;
    left: 0;
    font-size: 14px;
}

.scenario-col.bad li::before {
    content: "✕";
    color: #ff6b6b;
}

.scenario-col.good li::before {
    content: "✔";
    color: var(--success);
}

@media (max-width: 800px) {
    .scenario { grid-template-columns: 1fr; }
}


/* ===== Key facts ===== */

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.stat {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 20px;
    text-align: center;
}

.stat-value {
    display: block;
    font-family: var(--font-mono);
    font-size: 34px;
    font-weight: 500;
    color: var(--accent-2);
    margin-bottom: 8px;
}

.stat-label {
    display: block;
    color: var(--text-muted);
    font-size: 14px;
}

@media (max-width: 1024px) {
    .stat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
    .stat-grid { grid-template-columns: 1fr; }
}


/* ===== Audience ===== */

.audience-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.audience-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
}

.audience-card h3 { font-size: 17px; margin: 0 0 8px 0; }
.audience-card p { color: var(--text-muted); font-size: 14.5px; margin: 0; }

@media (max-width: 1024px) {
    .audience-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .audience-grid { grid-template-columns: 1fr; }
}


/* ===== Right tool for the job ===== */

.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-top: 30px;
}

.fit-col {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
}

.fit-col.use { border-color: var(--accent); }

.fit-col h3 { font-size: 19px; margin: 0 0 14px 0; }

.fit-col ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.fit-col li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 10px;
    font-size: 15px;
}

.fit-col li::before {
    content: "•";
    position: absolute;
    left: 6px;
    color: var(--accent-2);
}

.fit-note {
    text-align: center;
    margin-top: 24px;
}

@media (max-width: 800px) {
    .fit-grid { grid-template-columns: 1fr; }
}


/* ===== Storage calculator ===== */

.calc {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 26px;
    margin-top: 20px;
}

.calc label {
    display: block;
    font-size: 15px;
    margin-bottom: 14px;
}

.calc input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
    cursor: pointer;
}

.calc-result {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 16px;
    margin-top: 20px;
}

.calc-value {
    font-family: var(--font-mono);
    font-size: 32px;
    color: var(--accent-2);
}

.calc-note {
    color: var(--text-muted);
    font-size: 14px;
}


/* ===== Misc blocks ===== */

.center-cta {
    text-align: center;
    margin-top: 20px;
}

.about-card {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 34px 28px;
    text-align: center;
}

.about-card h2 { margin-top: 0; }
.about-card p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.cta-band {
    background: radial-gradient(circle at 50% 0%, #1a2340 0%, var(--bg) 70%);
    border-top: 1px solid var(--border);
}


/* ===== FAQ ===== */

.faq { margin-top: 24px; }

.faq details {
    background: var(--surface-2);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    margin-bottom: 10px;
}

.faq summary {
    cursor: pointer;
    padding: 16px 18px;
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 16px;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
    content: "+";
    font-family: var(--font-mono);
    color: var(--accent-2);
    font-size: 20px;
    flex-shrink: 0;
}

.faq details[open] summary::after { content: "–"; }

.faq summary:focus-visible {
    outline: 2px solid var(--accent-2);
    outline-offset: -2px;
}

.faq details p {
    margin: 0;
    padding: 0 18px 18px 18px;
    color: var(--text-muted);
    font-size: 15px;
}