/* ============================================================
   Defiant — site styles
   ============================================================ */
:root {
    --bg-deep:      #0b0b18;
    --bg-panel:     #14142a;
    --bg-elev:      #1a1a35;
    --border:       #2a2a4a;
    --text:         #d9d9ec;
    --text-muted:   #8f8fb3;
    --accent:       #5c6bc0;
    --accent-hi:    #7986cb;
    --accent-soft:  rgba(92,107,192,0.15);
    --good:         #66bb6a;
    --bad:          #ef5350;
    --gold:         #d4af37;
    --radius:       10px;
    --max-width:    1180px;
    --shadow:       0 6px 24px rgba(0,0,0,0.45);
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg-deep);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(1200px 600px at 80% -10%, rgba(92,107,192,0.18), transparent 60%),
        radial-gradient(900px 500px at 0% 30%, rgba(121,134,203,0.10), transparent 60%),
        var(--bg-deep);
}

a {
    color: var(--accent-hi);
    text-decoration: none;
    transition: color 0.15s ease;
}
a:hover { color: #aab3e0; }

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
    color: #fff;
    line-height: 1.2;
    margin: 0 0 0.6em 0;
    letter-spacing: 0.3px;
}
h1 { font-size: 2.6rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; color: var(--accent-hi); text-transform: uppercase; letter-spacing: 1.2px; }

p { margin: 0 0 1em 0; }

.muted { color: var(--text-muted); }

.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.site-main { flex: 1; }

/* ===== Header ===== */
.site-header {
    background: rgba(11, 11, 24, 0.85);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}
.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 14px;
    padding-bottom: 14px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
    font-weight: 700;
}
.brand-logo {
    width: 40px; height: 40px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--border), 0 0 24px rgba(92,107,192,0.4);
}
.brand-name {
    font-size: 1.25rem;
    letter-spacing: 4px;
    color: #fff;
}
.primary-nav ul {
    display: flex;
    gap: 6px;
    list-style: none;
    margin: 0; padding: 0;
}
.primary-nav a {
    display: block;
    padding: 8px 14px;
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}
.primary-nav a:hover { color: #fff; background: var(--accent-soft); }
.primary-nav a.active { color: #fff; background: var(--accent-soft); border: 1px solid rgba(92,107,192,0.45); }

/* ===== Hero ===== */
.hero {
    padding: 80px 0 60px 0;
    border-bottom: 1px solid var(--border);
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}
.hero-eyebrow {
    display: inline-block;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.72rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent-hi);
    margin-bottom: 18px;
    background: var(--accent-soft);
}
.hero h1 {
    font-size: 3.2rem;
    background: linear-gradient(120deg, #ffffff 0%, #aab3e0 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero p.lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    max-width: 540px;
}
.hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.hero-art {
    position: relative;
    text-align: center;
}
.hero-art img {
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
    filter: drop-shadow(0 30px 60px rgba(92,107,192,0.35));
}
.hero-art::before {
    content: "";
    position: absolute;
    inset: 10% 10% 10% 10%;
    background: radial-gradient(closest-side, rgba(92,107,192,0.35), transparent 70%);
    z-index: -1;
}

/* ===== Buttons ===== */
.btn {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s ease;
}
.btn-primary {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 4px 14px rgba(92,107,192,0.35);
}
.btn-primary:hover { background: var(--accent-hi); color: #fff; transform: translateY(-1px); }
.btn-ghost {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ===== Sections ===== */
.section {
    padding: 70px 0;
    border-bottom: 1px solid var(--border);
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title .eyebrow {
    color: var(--accent-hi);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 0.78rem;
    font-weight: 700;
    margin-bottom: 8px;
    display: block;
}
.section-title p {
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
}

/* ===== Cards / Features ===== */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 22px;
}
.card {
    background: linear-gradient(160deg, var(--bg-panel) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 26px 24px;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover {
    border-color: rgba(92,107,192,0.55);
    transform: translateY(-3px);
}
.card .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px; height: 44px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-hi);
    font-size: 1.4rem;
    margin-bottom: 14px;
    border: 1px solid rgba(92,107,192,0.35);
}
.card h3 { color: #fff; margin-bottom: 8px; font-size: 1.15rem; }
.card p { color: var(--text-muted); font-size: 0.95rem; margin: 0; }

/* ===== Stat strip ===== */
.stat-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-panel);
}
.stat-strip .stat {
    padding: 26px 18px;
    text-align: center;
    border-right: 1px solid var(--border);
}
.stat-strip .stat:last-child { border-right: none; }
.stat-strip .stat .num {
    display: block;
    font-size: 2rem;
    color: #fff;
    font-weight: 700;
    line-height: 1;
}
.stat-strip .stat .label {
    display: block;
    margin-top: 6px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
}

/* ===== Two-column rows ===== */
.row-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.row-split.flip > :first-child { order: 2; }

/* ===== Steps (How to use) ===== */
.steps {
    display: flex;
    flex-direction: column;
    gap: 16px;
    counter-reset: step;
}
.step {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 26px 22px 88px;
    position: relative;
}
.step::before {
    counter-increment: step;
    content: counter(step, decimal-leading-zero);
    position: absolute;
    left: 22px; top: 22px;
    width: 48px; height: 48px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent-hi);
    border: 1px solid rgba(92,107,192,0.35);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1.05rem;
    letter-spacing: 1px;
}
.step h3 { font-size: 1.1rem; margin-bottom: 6px; }
.step p  { color: var(--text-muted); margin: 0; }

/* ===== Tabs (feature deep-dive) ===== */
.module-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}
.module {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px;
}
.module h3 {
    display: flex; align-items: center;
    gap: 10px;
    color: #fff;
    margin-bottom: 14px;
}
.module h3 .tag {
    font-size: 0.65rem;
    background: var(--accent-soft);
    color: var(--accent-hi);
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    border: 1px solid rgba(92,107,192,0.35);
}
.module ul {
    list-style: none;
    padding: 0; margin: 0;
}
.module ul li {
    padding: 8px 0 8px 22px;
    position: relative;
    color: var(--text-muted);
    border-bottom: 1px dashed var(--border);
    font-size: 0.94rem;
}
.module ul li:last-child { border-bottom: none; }
.module ul li::before {
    content: "›";
    position: absolute;
    left: 4px; top: 8px;
    color: var(--accent-hi);
    font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 14px;
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 24px;
    font-weight: 600;
    color: #fff;
    display: flex; align-items: center; justify-content: space-between;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+";
    color: var(--accent-hi);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body {
    padding: 0 24px 22px 24px;
    color: var(--text-muted);
}

/* ===== Callout / CTA banner ===== */
.cta-banner {
    margin: 60px auto;
    padding: 50px 40px;
    text-align: center;
    background: linear-gradient(135deg, #1a1a3a 0%, #251b3d 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.cta-banner h2 { margin-bottom: 10px; }
.cta-banner p { color: var(--text-muted); max-width: 580px; margin: 0 auto 26px auto; }

/* ===== Notice / safe panel ===== */
.notice {
    border-left: 3px solid var(--accent);
    background: var(--accent-soft);
    padding: 16px 20px;
    border-radius: 6px;
    margin: 24px 0;
    color: var(--text);
    font-size: 0.95rem;
}
.notice.warn { border-left-color: var(--gold); background: rgba(212,175,55,0.08); }

/* ===== Form ===== */
.form-card {
    max-width: 620px;
    margin: 0 auto;
    background: var(--bg-panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 32px;
}
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; }
.form-row label { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 6px; text-transform: uppercase; letter-spacing: 1px; }
.form-row input, .form-row textarea, .form-row select {
    background: var(--bg-deep);
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.95rem;
}
.form-row input:focus, .form-row textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px var(--accent-soft);
}
.form-row textarea { resize: vertical; min-height: 130px; }

/* ===== Footer ===== */
.site-footer {
    background: #08080f;
    border-top: 1px solid var(--border);
    margin-top: 80px;
    padding-top: 50px;
}
.footer-inner {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 30px;
}
.footer-brand {
    display: flex; align-items: center; gap: 10px;
    color: #fff; margin-bottom: 8px;
    letter-spacing: 3px;
}
.footer-logo { width: 28px; height: 28px; border-radius: 6px; }
.footer-col h4 { color: #fff; font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { color: var(--text-muted); font-size: 0.9rem; }
.footer-col ul li a:hover { color: #fff; }
.footer-disclaimer {
    border-top: 1px solid var(--border);
    padding: 18px 24px;
    color: #5b5b78;
    text-align: center;
    font-size: 0.78rem;
}

/* ===== Responsive ===== */
@media (max-width: 980px) {
    .header-inner { flex-wrap: wrap; gap: 10px; }
    .primary-nav { width: 100%; }
    .primary-nav ul {
        gap: 4px;
        flex-wrap: wrap;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }
    .primary-nav ul::-webkit-scrollbar { display: none; }
    .primary-nav a { padding: 6px 10px; font-size: 0.78rem; }
}

@media (max-width: 900px) {
    .container { padding: 0 18px; }
    .hero-grid, .row-split, .module-list, .footer-inner {
        grid-template-columns: 1fr;
        gap: 36px;
    }
    .row-split.flip > :first-child { order: 0; }
    .hero h1 { font-size: 2.2rem; }
    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }
    .stat-strip { grid-template-columns: 1fr 1fr; }
    .stat-strip .stat { border-right: none !important; }
    .stat-strip .stat:nth-child(odd) { border-right: 1px solid var(--border) !important; }
    .stat-strip .stat:nth-child(1), .stat-strip .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
    .hero-art img { max-width: 320px; }
    .section { padding: 56px 0; }
    .section-title { margin-bottom: 36px; }
    .feature-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .step { padding: 18px 18px 18px 76px; }
    .step::before { left: 16px; top: 18px; width: 44px; height: 44px; font-size: 0.95rem; }
    .cta-banner { padding: 36px 22px; margin: 36px auto; }
    .form-card { padding: 22px; }
    .footer-inner { padding-bottom: 24px; }
}

@media (max-width: 600px) {
    html, body { font-size: 15px; }
    .container { padding: 0 14px; }
    .header-inner { padding-top: 10px; padding-bottom: 10px; }
    .brand-name { display: none; }
    .brand-logo { width: 34px; height: 34px; }
    .hero { padding: 44px 0 32px 0; }
    .hero h1 { font-size: 1.85rem; }
    .hero p.lead { font-size: 1rem; }
    h1 { font-size: 1.8rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.05rem; }
    .section { padding: 44px 0; }
    .section-title { margin-bottom: 28px; }
    .section-title p { font-size: 0.95rem; }
    .feature-grid { grid-template-columns: 1fr; gap: 14px; }
    .card { padding: 22px 20px; }
    .stat-strip { grid-template-columns: 1fr; }
    .stat-strip .stat,
    .stat-strip .stat:nth-child(odd) { border-right: none !important; border-bottom: 1px solid var(--border); }
    .stat-strip .stat:last-child { border-bottom: none; }
    .stat-strip .stat .num { font-size: 1.7rem; }
    .module { padding: 22px 18px; }
    .module h3 { flex-wrap: wrap; gap: 8px; }
    .step { padding: 18px 16px 18px 70px; }
    .step::before { width: 40px; height: 40px; left: 14px; top: 16px; font-size: 0.9rem; }
    .step h3 { font-size: 1rem; }
    .step p { font-size: 0.92rem; }
    .faq-item summary { padding: 14px 16px; font-size: 0.95rem; }
    .faq-item .faq-body { padding: 0 16px 16px 16px; font-size: 0.92rem; }
    .cta-banner { padding: 28px 18px; margin: 28px auto; }
    .cta-banner h2 { font-size: 1.4rem; }
    .cta-banner p { font-size: 0.95rem; }
    .btn { padding: 11px 18px; font-size: 0.88rem; width: 100%; text-align: center; }
    .hero-actions { flex-direction: column; }
    .hero-actions .btn { width: 100%; }
    .form-card { padding: 18px; }
    .form-row input, .form-row textarea, .form-row select { font-size: 16px; } /* prevents iOS zoom */
    .footer-inner { gap: 26px; }
    .footer-disclaimer { font-size: 0.72rem; padding: 14px; }
    .primary-nav a { padding: 5px 8px; font-size: 0.72rem; }
}

@media (max-width: 380px) {
    .hero h1 { font-size: 1.6rem; }
    .stat-strip .stat .num { font-size: 1.5rem; }
    .step { padding: 16px 14px 16px 14px; }
    .step::before { position: static; margin-bottom: 10px; }
}
