/* Smart Backup — showcase site (self-contained, dark "signal" theme).
   Intentionally independent of the admin bundle (app.css). */

:root {
    --bg: #05070f;
    --bg-soft: #0a0f1e;
    --panel: rgba(255, 255, 255, 0.045);
    --panel-strong: rgba(255, 255, 255, 0.07);
    --line: rgba(148, 173, 226, 0.14);
    --line-strong: rgba(148, 173, 226, 0.28);
    --ink: #eaf0ff;
    --ink-dim: #9fb0d0;
    --ink-faint: #6b7a99;
    --brand: #3d7bff;
    --brand-2: #35e0d6;
    --brand-3: #b98bff;
    --grad: linear-gradient(115deg, #3d7bff 0%, #35e0d6 100%);
    --grad-soft: linear-gradient(115deg, rgba(61, 123, 255, 0.18), rgba(53, 224, 214, 0.18));
    --radius: 20px;
    --radius-sm: 13px;
    --shadow: 0 30px 80px -40px rgba(2, 8, 24, 0.9);
    --mono: ui-monospace, "SF Mono", "JetBrains Mono", "Fira Code", Menlo, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body.site-body {
    margin: 0;
    font-family: var(--sans);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Aurora backdrop */
body.site-body::before {
    content: "";
    position: fixed;
    inset: -20vh -10vw auto;
    height: 90vh;
    z-index: 0;
    background:
        radial-gradient(50% 55% at 18% 12%, rgba(61, 123, 255, 0.28), transparent 70%),
        radial-gradient(45% 50% at 82% 8%, rgba(53, 224, 214, 0.20), transparent 70%),
        radial-gradient(40% 45% at 60% 40%, rgba(185, 139, 255, 0.14), transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    animation: drift 22s ease-in-out infinite alternate;
}
@keyframes drift {
    0%   { transform: translate3d(0, 0, 0) scale(1); }
    100% { transform: translate3d(-3%, 4%, 0) scale(1.08); }
}

main, .site-header, .site-footer { position: relative; z-index: 1; }

.site-container {
    width: min(1160px, 100% - 40px);
    margin-inline: auto;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 9px;
    font-weight: 650; font-size: 0.95rem; letter-spacing: -0.01em;
    padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
    cursor: pointer; transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
    white-space: nowrap;
}
.btn-primary {
    color: #04101f; background: var(--grad);
    box-shadow: 0 14px 40px -14px rgba(53, 224, 214, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 20px 48px -14px rgba(53, 224, 214, 0.7); }
.btn-ghost { color: var(--ink); background: var(--panel); border-color: var(--line-strong); }
.btn-ghost:hover { transform: translateY(-2px); background: var(--panel-strong); }
.btn-sm { padding: 10px 18px; font-size: 0.9rem; }
.btn-lg { padding: 16px 28px; font-size: 1.02rem; }

/* ---------- Header ---------- */
.site-header {
    position: sticky; top: 0;
    padding: 16px 0;
    transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    background: rgba(5, 7, 15, 0.72);
    backdrop-filter: blur(16px);
    border-bottom-color: var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand img { width: 38px; height: 38px; border-radius: 11px; }
.brand span { font-weight: 500; color: var(--ink); }
.brand strong { font-weight: 800; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.site-nav > a:not(.btn) {
    font-size: 0.94rem; color: var(--ink-dim); font-weight: 550;
    transition: color 0.15s ease;
}
.site-nav > a:not(.btn):hover { color: var(--ink); }
.nav-admin {
    padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line);
    font-size: 0.85rem !important;
}

.nav-toggle {
    display: none; flex-direction: column; gap: 5px; width: 42px; height: 42px;
    align-items: center; justify-content: center; background: var(--panel);
    border: 1px solid var(--line); border-radius: 12px; cursor: pointer;
}
.nav-toggle span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: 0.2s; }

/* ---------- Hero ---------- */
.hero { padding: 74px 0 40px; }
.hero-grid {
    display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 54px; align-items: center;
}
.tag {
    display: inline-flex; align-items: center; gap: 9px;
    font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.04em; text-transform: uppercase;
    color: var(--ink-dim); background: var(--panel); border: 1px solid var(--line);
    padding: 7px 14px; border-radius: 999px;
}
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); box-shadow: 0 0 0 4px rgba(53, 224, 214, 0.18); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(53, 224, 214, 0); } }

.hero h1 {
    margin: 22px 0 0; font-size: clamp(2.5rem, 6vw, 4.2rem); line-height: 1.02;
    letter-spacing: -0.035em; font-weight: 800;
}
.hero h1 .grad {
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin: 22px 0 0; font-size: 1.16rem; color: var(--ink-dim); max-width: 30ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-meta { display: flex; gap: 26px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 1.5rem; letter-spacing: -0.02em; }
.hero-meta small { color: var(--ink-faint); font-size: 0.82rem; }

/* Console card */
.console {
    background: linear-gradient(180deg, rgba(12, 18, 34, 0.9), rgba(7, 11, 22, 0.9));
    border: 1px solid var(--line-strong); border-radius: var(--radius);
    box-shadow: var(--shadow); overflow: hidden; backdrop-filter: blur(8px);
}
.console-bar {
    display: flex; align-items: center; gap: 8px; padding: 14px 16px;
    border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.02);
}
.console-bar i { width: 11px; height: 11px; border-radius: 50%; background: #2b3550; display: block; }
.console-bar i:nth-child(1) { background: #ff5f57; }
.console-bar i:nth-child(2) { background: #febc2e; }
.console-bar i:nth-child(3) { background: #28c840; }
.console-bar span { margin-left: 8px; font-family: var(--mono); font-size: 0.78rem; color: var(--ink-faint); }
.console-body { padding: 18px; font-family: var(--mono); font-size: 0.83rem; min-height: 232px; }
.log { display: flex; gap: 10px; padding: 5px 0; color: var(--ink-dim); opacity: 0; transform: translateY(6px); }
.log.show { opacity: 1; transform: none; transition: 0.4s ease; }
.log .ok { color: var(--brand-2); }
.log .arw { color: var(--brand); }
.log .file { color: var(--ink); }
.console-foot {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 0.78rem;
}
.console-foot .bar { flex: 1; height: 6px; margin: 0 14px; background: rgba(255,255,255,0.08); border-radius: 6px; overflow: hidden; }
.console-foot .bar b { display: block; height: 100%; width: 0; background: var(--grad); border-radius: 6px; transition: width 1.2s ease; }
.console-foot .pct { color: var(--brand-2); }

/* ---------- Marquee ---------- */
.marquee {
    margin-top: 26px; padding: 18px 0; border-block: 1px solid var(--line);
    overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; gap: 46px; width: max-content; animation: scroll 30s linear infinite; }
.marquee-track span { font-family: var(--mono); font-size: 0.9rem; color: var(--ink-faint); letter-spacing: 0.02em; display: inline-flex; gap: 10px; align-items: center; }
.marquee-track span b { color: var(--ink); }
.marquee-track span::before { content: "◆"; color: var(--brand); font-size: 0.6rem; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ---------- Section shell ---------- */
.section { padding: 96px 0; }
.section-head { max-width: 640px; margin: 0 auto 54px; text-align: center; }
.kicker {
    font-family: var(--mono); font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--brand-2);
}
.section-head h2 { margin: 14px 0 0; font-size: clamp(1.9rem, 4vw, 2.9rem); letter-spacing: -0.03em; font-weight: 800; }
.section-head p { margin: 16px 0 0; color: var(--ink-dim); font-size: 1.08rem; }

/* ---------- Bento ---------- */
.bento {
    display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px;
}
.tile {
    position: relative; background: var(--panel); border: 1px solid var(--line);
    border-radius: var(--radius); padding: 26px; overflow: hidden;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}
.tile:hover { transform: translateY(-4px); border-color: var(--line-strong); background: var(--panel-strong); }
.tile::after {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity 0.3s ease;
    background: radial-gradient(60% 80% at 50% -10%, rgba(61, 123, 255, 0.18), transparent 70%);
}
.tile:hover::after { opacity: 1; }
.tile-glyph {
    width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
    font-size: 1.35rem; background: var(--grad-soft); border: 1px solid var(--line-strong); color: var(--ink);
}
.tile h3 { margin: 18px 0 8px; font-size: 1.22rem; letter-spacing: -0.02em; }
.tile p { margin: 0; color: var(--ink-dim); font-size: 0.98rem; }
.tile-wide { grid-column: span 4; }
.tile-tall { grid-column: span 2; grid-row: span 2; }
.tile-half { grid-column: span 3; }
.tile-third { grid-column: span 2; }
.tile ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tile ul li { position: relative; padding-left: 22px; color: var(--ink-dim); font-size: 0.92rem; }
.tile ul li::before { content: "→"; position: absolute; left: 0; color: var(--brand-2); }
.tile-tall .visual {
    margin-top: 22px; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 16px; background: rgba(5, 8, 16, 0.6); font-family: var(--mono); font-size: 0.8rem;
}
.tile-tall .visual .q { color: var(--ink-faint); }
.tile-tall .visual .r { display: flex; align-items: center; gap: 10px; margin-top: 12px; color: var(--ink); }
.tile-tall .visual .r .chip { padding: 3px 8px; border-radius: 6px; background: var(--grad-soft); border: 1px solid var(--line-strong); font-size: 0.72rem; }
.tile-tall .visual .r small { margin-left: auto; color: var(--brand-2); }

/* ---------- Timeline ---------- */
.flow { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.flow-steps { display: grid; gap: 14px; }
.step {
    display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 24px;
    transition: 0.2s;
}
.step:hover { border-color: var(--line-strong); }
.step .n {
    width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
    font-family: var(--mono); font-weight: 700; color: #04101f; background: var(--grad);
}
.step h4 { margin: 2px 0 6px; font-size: 1.12rem; }
.step p { margin: 0; color: var(--ink-dim); font-size: 0.96rem; }
.flow-art {
    position: relative; aspect-ratio: 1; border-radius: 28px; border: 1px solid var(--line-strong);
    background: radial-gradient(circle at 50% 40%, rgba(61,123,255,0.16), transparent 60%);
    display: grid; place-items: center;
}
.flow-art .vault {
    width: 128px; height: 128px; border-radius: 32px; display: grid; place-items: center; font-size: 3.4rem;
    background: var(--grad); color: #04101f; box-shadow: 0 30px 70px -24px rgba(61,123,255,0.7);
}
.flow-art .ring { position: absolute; border: 1px solid var(--line-strong); border-radius: 50%; }
.flow-art .ring.a { width: 58%; height: 58%; animation: spin 16s linear infinite; }
.flow-art .ring.b { width: 82%; height: 82%; animation: spin 26s linear infinite reverse; border-style: dashed; }
@keyframes spin { to { transform: rotate(360deg); } }
.flow-art .orb { position: absolute; padding: 7px 13px; border-radius: 999px; font-family: var(--mono); font-size: 0.72rem; background: rgba(5,8,16,0.85); border: 1px solid var(--line-strong); }
.flow-art .orb.o1 { top: 12%; left: 8%; color: var(--brand-2); }
.flow-art .orb.o2 { bottom: 16%; right: 6%; color: var(--brand); }
.flow-art .orb.o3 { bottom: 8%; left: 18%; color: var(--brand-3); }

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq details {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 4px 22px; transition: border-color 0.2s;
}
.faq details[open] { border-color: var(--line-strong); background: var(--panel-strong); }
.faq summary {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 18px 0; cursor: pointer; font-weight: 600; font-size: 1.05rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { flex: none; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line-strong); color: var(--brand-2); transition: transform 0.2s; }
.faq details[open] summary .ic { transform: rotate(45deg); }
.faq p { margin: 0; padding: 0 0 20px; color: var(--ink-dim); }

/* ---------- CTA ---------- */
.cta { padding: 40px 0 96px; }
.cta-card {
    position: relative; overflow: hidden; text-align: center;
    border-radius: 30px; border: 1px solid var(--line-strong); padding: 66px 32px;
    background: radial-gradient(80% 140% at 50% 0%, rgba(61,123,255,0.22), rgba(7,11,22,0.4));
}
.cta-card h2 { margin: 0; font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -0.03em; font-weight: 800; }
.cta-card p { margin: 16px auto 30px; max-width: 46ch; color: var(--ink-dim); font-size: 1.1rem; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 60px 0 34px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.footer-grid p { color: var(--ink-faint); font-size: 0.92rem; max-width: 30ch; }
.footer-grid h3 { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin: 0 0 14px; }
.footer-grid a { display: block; color: var(--ink-dim); font-size: 0.94rem; padding: 5px 0; transition: color 0.15s; }
.footer-grid a:hover { color: var(--ink); }
.brand-light span { color: var(--ink); }
.footer-bottom {
    display: flex; justify-content: space-between; gap: 14px; flex-wrap: wrap;
    margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--line);
    color: var(--ink-faint); font-size: 0.85rem;
}

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .hero-grid, .flow { grid-template-columns: 1fr; gap: 40px; }
    .hero-lead { max-width: none; }
    .bento { grid-template-columns: repeat(2, 1fr); }
    .tile-wide, .tile-tall, .tile-half, .tile-third { grid-column: span 2; grid-row: auto; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
    .nav-toggle { display: flex; }
    .site-nav {
        position: absolute; top: calc(100% + 10px); right: 20px; left: 20px;
        flex-direction: column; align-items: stretch; gap: 6px; padding: 16px;
        background: rgba(8, 12, 24, 0.96); border: 1px solid var(--line-strong); border-radius: 18px;
        backdrop-filter: blur(16px); display: none;
    }
    .site-nav.open { display: flex; }
    .site-nav > a { padding: 10px 6px; }
    .site-nav .btn { justify-content: center; }
    .section { padding: 72px 0; }
    .bento { grid-template-columns: 1fr; }
    .tile-wide, .tile-tall, .tile-half, .tile-third { grid-column: span 1; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-meta { gap: 20px; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; scroll-behavior: auto; }
    .marquee-track { animation: none; }
}
