/* ============================================================
   SafeProof — standalone landing page
   Self-contained, no dependency on apps.css
   Colour theme: deep navy → sky-blue / cyan  (prefix: spf-)
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg:          #030d1a;
    --bg2:         #071526;
    --bg3:         #0b1e36;
    --blue:        #38bdf8;
    --blue-dim:    rgba(56, 189, 248, 0.14);
    --cyan:        #22d3ee;
    --t1:          #e8f4ff;
    --t2:          #7aa8cc;
    --t3:          #3a6080;
    --border:      rgba(255, 255, 255, 0.07);
    --bblue:       rgba(56, 189, 248, 0.22);
}

html { scroll-behavior: smooth; }

body {
    font-family: "Sora", "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--t1);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* ── NAV ──────────────────────────────────────────────────── */
.spf-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(22px) saturate(1.5);
    -webkit-backdrop-filter: blur(22px) saturate(1.5);
    background: rgba(3, 13, 26, 0.82);
    border-bottom: 1px solid var(--border);
}

.spf-nav-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.spf-nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--t1);
    font-family: "Outfit", sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.spf-nav-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(145deg, #0ea5e9, #06b6d4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.spf-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    object-fit: contain;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.3);
}

.spf-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: var(--t2);
    text-decoration: none;
    padding: 7px 14px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    transition: color 0.2s, border-color 0.2s, background 0.2s;
    white-space: nowrap;
}

.spf-back-btn:hover {
    color: var(--t1);
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.07);
}

.spf-back-arrow { font-size: 15px; line-height: 1; }

/* ── HERO ─────────────────────────────────────────────────── */
.spf-hero {
    position: relative;
    min-height: calc(100dvh - 60px);
    display: flex;
    align-items: center;
    overflow: hidden;
}

.spf-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 700px at 80% -5%,  rgba(56, 189, 248, 0.09), transparent 60%),
        radial-gradient(600px 500px at -10% 85%, rgba(34, 211, 238, 0.07), transparent 60%);
    pointer-events: none;
}

.spf-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.spf-hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr min(420px, 44%);
    gap: 48px;
    align-items: center;
    padding: 72px 28px 80px;
    max-width: 1120px;
    margin: 0 auto;
    width: 100%;
}

.spf-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(56, 189, 248, 0.28);
    background: rgba(56, 189, 248, 0.08);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--blue);
    margin-bottom: 26px;
}

.spf-badge-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
    box-shadow: 0 0 8px var(--blue);
    animation: spf-pulse 2.4s ease-in-out infinite;
}

@keyframes spf-pulse {
    0%, 100% { opacity: 1;   transform: scale(1);   }
    50%       { opacity: 0.3; transform: scale(0.6); }
}

.spf-hero h1 {
    font-family: "Outfit", "Trebuchet MS", sans-serif;
    font-size: clamp(44px, 5.2vw, 74px);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.035em;
    color: var(--t1);
    margin-bottom: 20px;
}

.spf-grad {
    background: linear-gradient(125deg, #38bdf8 0%, #22d3ee 55%, #38bdf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.spf-hero-sub {
    font-size: 17.5px;
    color: var(--t2);
    max-width: 520px;
    line-height: 1.65;
    margin-bottom: 36px;
}

/* Hero buttons */
.spf-hero-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* App Store button */
.spf-store {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    border-radius: 12px;
    background: #fff;
    color: #0a0f1a;
    font-family: "Outfit", sans-serif;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.spf-store:hover { opacity: 0.9; transform: translateY(-1px); }

.spf-store-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.spf-store-text small {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #3a4a5a;
}

.spf-store-text strong {
    font-size: 16px;
    font-weight: 800;
    color: #0a0f1a;
}

.spf-ghost {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 11px 22px;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.04);
    color: var(--t2);
    font-family: "Sora", sans-serif;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.spf-ghost:hover {
    color: var(--t1);
    border-color: rgba(255,255,255,0.18);
    background: rgba(255,255,255,0.07);
}

.spf-cta-primary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 12px 26px;
    border-radius: 10px;
    background: linear-gradient(135deg, #0ea5e9, #06b6d4);
    color: #fff;
    font-family: "Outfit", sans-serif;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 4px 22px rgba(56, 189, 248, 0.3);
    transition: opacity 0.2s, transform 0.15s;
}

.spf-cta-primary:hover { opacity: 0.88; transform: translateY(-1px); }

/* Hero phone mockup */
.spf-hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.spf-hero-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at center, rgba(56, 189, 248, 0.13), transparent 68%);
    pointer-events: none;
}

.spf-hero-phone { position: relative; z-index: 1; }

.spf-phone {
    width: 220px;
    aspect-ratio: 9/19.5;
    border-radius: 36px;
    background: #0f1c2e;
    border: 2px solid rgba(56, 189, 248, 0.2);
    box-shadow:
        0 0 0 1px rgba(255,255,255,0.05),
        0 32px 64px rgba(0,0,0,0.55),
        0 0 80px rgba(56, 189, 248, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.spf-phone-island {
    width: 80px;
    height: 26px;
    border-radius: 0 0 18px 18px;
    background: #0a1422;
    margin: 0 auto;
    flex-shrink: 0;
}

.spf-phone-screen {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: flex-start;
}

.spf-phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

/* ── STATS STRIP ─────────────────────────────────────────── */
.spf-stats {
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background: var(--bg2);
}

.spf-stats-inner {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
}

.spf-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 28px 16px;
    gap: 6px;
    border-right: 1px solid var(--border);
}
.spf-stat:last-child { border-right: none; }

.spf-stat-num {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--blue);
    letter-spacing: -0.02em;
}

.spf-stat-label {
    font-size: 12.5px;
    color: var(--t3);
    text-align: center;
    font-weight: 500;
    line-height: 1.4;
}

/* ── FEATURES BENTO ─────────────────────────────────────── */
.spf-features {
    max-width: 1120px;
    margin: 0 auto;
    padding: 96px 28px;
}

.spf-section-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--blue);
    margin-bottom: 14px;
}

.spf-section-h {
    font-family: "Outfit", sans-serif;
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--t1);
    max-width: 640px;
    line-height: 1.1;
    margin-bottom: 52px;
}

.spf-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: 16px;
}

.spf-bc {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 26px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.2s, background 0.2s;
}

.spf-bc:hover {
    border-color: rgba(56, 189, 248, 0.2);
    background: var(--bg3);
}

.spf-bc-a { grid-column: 1 / 3; }
.spf-bc-b { grid-column: 3 / 4; grid-row: 1 / 3; }
.spf-bc-e { grid-column: 1 / 3; }

.spf-bc-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 16px;
}

.spf-ic-blue  { background: rgba(56,  189, 248, 0.12); }
.spf-ic-cyan  { background: rgba(34,  211, 238, 0.12); }
.spf-ic-green { background: rgba(52,  211, 153, 0.12); }
.spf-ic-amber { background: rgba(251, 191,  36, 0.12); }
.spf-ic-rose  { background: rgba(251, 113, 133, 0.12); }

.spf-bc-title {
    font-family: "Outfit", sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 10px;
    letter-spacing: -0.01em;
}

.spf-bc-desc {
    font-size: 14px;
    color: var(--t2);
    line-height: 1.65;
}

/* Risk pill decoration for card B */
.spf-risk-pills {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 18px 0;
}

.spf-rpill {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 600;
}

.spf-rpill-high   { background: rgba(239, 68,  68,  0.1); color: #f87171; border: 1px solid rgba(239, 68, 68, 0.2); }
.spf-rpill-medium { background: rgba(245, 158, 11,  0.1); color: #fbbf24; border: 1px solid rgba(245,158,11, 0.2); }
.spf-rpill-low    { background: rgba(52,  211, 153, 0.1); color: #34d399; border: 1px solid rgba(52,211,153, 0.2); }

.spf-rpill-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    flex-shrink: 0;
}
.spf-rpill-high   .spf-rpill-dot { background: #f87171; }
.spf-rpill-medium .spf-rpill-dot { background: #fbbf24; }
.spf-rpill-low    .spf-rpill-dot { background: #34d399; }

/* Big shield decoration for card E */
.spf-big-shield {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 18px rgba(56, 189, 248, 0.35));
}

/* ── SCREENSHOTS GALLERY ──────────────────────────────────── */
.spf-gallery {
    background: #edf4f0;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    padding: 80px 28px;
}

.spf-gallery .spf-section-label { color: #3a8c6a; }
.spf-gallery .spf-section-h    { color: #0d2b1e; }

.spf-gallery-head {
    max-width: 1120px;
    margin: 0 auto 52px;
}

.spf-gallery-grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 24px;
}

.spf-gphone {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.spf-gphone-label {
    font-size: 12.5px;
    color: #4a6e5a;
    font-weight: 600;
    text-align: center;
}

/* Light variant for gallery phones — matches the app's light UI background */
.spf-phone--light {
    background: #f4f8f5;
    border-color: rgba(56, 189, 150, 0.22);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.14),
        0 0 60px rgba(56, 189, 150, 0.08);
}

.spf-phone--light .spf-phone-island {
    background: #e2ede7;
}

/* ── CTA ─────────────────────────────────────────────────── */
.spf-cta {
    padding: 96px 28px;
}

.spf-cta-inner {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
}

.spf-cta-inner .spf-section-label { justify-content: center; display: block; }

.spf-cta-inner h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(30px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--t1);
    line-height: 1.08;
    margin-bottom: 18px;
}

.spf-cta-inner p {
    font-size: 16px;
    color: var(--t2);
    line-height: 1.65;
    margin-bottom: 36px;
}

.spf-cta-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.spf-cta-links {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.spf-cta-link {
    font-size: 13px;
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s;
}
.spf-cta-link:hover { color: var(--t2); }

/* ── FOOTER ──────────────────────────────────────────────── */
.spf-footer {
    border-top: 1px solid var(--border);
    background: var(--bg2);
    padding: 28px;
}

.spf-footer-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.spf-footer-copy {
    font-size: 13px;
    color: var(--t3);
}

.spf-footer-links {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.spf-footer-links a {
    font-size: 13px;
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s;
}
.spf-footer-links a:hover { color: var(--t2); }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 860px) {
    .spf-hero-inner {
        grid-template-columns: 1fr;
        text-align: center;
        padding: 56px 20px 64px;
    }

    .spf-hero-sub { margin-left: auto; margin-right: auto; }
    .spf-hero-btns { justify-content: center; }
    .spf-hero-visual { display: none; }

    .spf-stats-inner { grid-template-columns: repeat(2, 1fr); }
    .spf-stat:nth-child(2) { border-right: none; }
    .spf-stat { border-bottom: 1px solid var(--border); }
    .spf-stat:nth-child(3),
    .spf-stat:nth-child(4) { border-bottom: none; }

    .spf-bento { grid-template-columns: 1fr; }
    .spf-bc-a,
    .spf-bc-b,
    .spf-bc-e { grid-column: auto; grid-row: auto; }

    .spf-gallery-grid { grid-template-columns: repeat(2, 1fr); }

    .spf-footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    .spf-features,
    .spf-cta { padding: 64px 20px; }
    .spf-gallery { padding: 60px 20px; }
    .spf-gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .spf-store-text strong { font-size: 14px; }
}
