/* ============================================================
   SoftDay — standalone landing page
   Self-contained, no dependency on apps.css
   ============================================================ */

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

:root {
    --bg:          #080610;
    --bg2:         #0d0b18;
    --bg3:         #130f21;
    --violet:      #c084fc;
    --violet-dim:  rgba(192, 132, 252, 0.14);
    --rose:        #fb7185;
    --t1:          #f0eeff;
    --t2:          #8a82b0;
    --t3:          #4a4270;
    --border:      rgba(255, 255, 255, 0.07);
    --bviolet:     rgba(192, 132, 252, 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 ──────────────────────────────────────────────────── */
.sfd-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(8, 6, 16, 0.8);
    border-bottom: 1px solid var(--border);
}

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

.sfd-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;
}

/* Inline logo mark — replaces image since no logo file yet */
.sfd-nav-mark {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    background: linear-gradient(145deg, #a855f7, #ec4899);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Outfit", sans-serif;
    font-size: 13px;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(192, 132, 252, 0.35);
}

.sfd-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;
}

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

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

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

.sfd-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 700px at 80% -5%,  rgba(192, 132, 252, 0.1), transparent 60%),
        radial-gradient(600px 500px at -10% 85%, rgba(251, 113, 133, 0.07), transparent 60%);
    pointer-events: none;
}

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

.sfd-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%;
}

/* Badge */
.sfd-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px 5px 8px;
    border-radius: 999px;
    border: 1px solid rgba(192, 132, 252, 0.25);
    background: rgba(192, 132, 252, 0.08);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--violet);
    margin-bottom: 26px;
}

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

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

.sfd-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;
}

.sfd-grad {
    background: linear-gradient(125deg, #c084fc 0%, #fb7185 55%, #c084fc 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sfd-hero-sub {
    font-size: 17.5px;
    line-height: 1.74;
    color: var(--t2);
    max-width: 50ch;
    margin-bottom: 36px;
}

.sfd-hero-btns {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

/* App Store button */
.sfd-store {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    padding: 12px 22px;
    background: var(--t1);
    color: #080610;
    border-radius: 15px;
    text-decoration: none;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.sfd-store:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.1);
    color: #080610;
}

.sfd-store-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    line-height: 1;
}

.sfd-store-text small {
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.04em;
    opacity: 0.58;
    font-family: "Sora", sans-serif;
}

.sfd-store-text strong {
    font-size: 18px;
    font-weight: 800;
    font-family: "Outfit", sans-serif;
    letter-spacing: -0.01em;
}

/* Ghost button */
.sfd-ghost {
    display: inline-flex;
    align-items: center;
    padding: 11px 18px;
    border-radius: 12px;
    border: 1px solid var(--border);
    color: var(--t2);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

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

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

.sfd-hero-glow {
    position: absolute;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.18) 0%, transparent 65%);
    pointer-events: none;
    animation: sfd-float 6s ease-in-out infinite;
}

.sfd-hero-phone {
    position: relative;
    z-index: 1;
    animation: sfd-float 6s ease-in-out infinite;
}

@keyframes sfd-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-16px); }
}

/* ── PHONE FRAME ──────────────────────────────────────────── */
.sfd-phone {
    background: #09060f;
    border-radius: 38px;
    border: 1.5px solid rgba(255, 255, 255, 0.11);
    padding: 10px 7px 14px;
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.8),
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 30px 70px rgba(0, 0, 0, 0.55),
        0 0 60px rgba(192, 132, 252, 0.07);
}

.sfd-phone-island {
    width: 54px;
    height: 18px;
    background: #000;
    border-radius: 0 0 14px 14px;
    margin: 0 auto 7px;
}

.sfd-phone-screen {
    border-radius: 22px;
    overflow: hidden;
    line-height: 0;
}

.sfd-phone-screen img {
    width: 100%;
    display: block;
    aspect-ratio: 9 / 19.5;
    object-fit: cover;
    object-position: top;
}

.sfd-hero-phone .sfd-phone {
    width: min(240px, 46vw);
    transition: transform 0.25s, box-shadow 0.25s;
}

.sfd-hero-phone .sfd-phone:hover {
    box-shadow:
        0 0 0 1px rgba(192, 132, 252, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 80px rgba(192, 132, 252, 0.14);
}

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

.sfd-stats-inner {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}

.sfd-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 10px 36px;
}

.sfd-stat + .sfd-stat { border-left: 1px solid var(--border); }

.sfd-stat-num {
    font-family: "Outfit", sans-serif;
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--t1);
    line-height: 1;
}

.sfd-stat-num span {
    background: linear-gradient(130deg, var(--violet), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.sfd-stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--t3);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

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

.sfd-section-label {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--violet);
    margin-bottom: 12px;
}

.sfd-section-h {
    font-family: "Outfit", sans-serif;
    font-size: clamp(30px, 3.4vw, 50px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.028em;
    color: var(--t1);
    margin-bottom: 48px;
    max-width: 22ch;
}

.sfd-bento {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-areas:
        "a a b"
        "c d b"
        "e e f";
    gap: 14px;
}

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

.sfd-bc:hover {
    border-color: var(--bviolet);
    transform: translateY(-2px);
}

.sfd-bc-a { grid-area: a; }
.sfd-bc-b { grid-area: b; display: flex; flex-direction: column; }
.sfd-bc-c { grid-area: c; }
.sfd-bc-d { grid-area: d; }
.sfd-bc-e { grid-area: e; display: flex; align-items: center; gap: 32px; }
.sfd-bc-f { grid-area: f; }

.sfd-bc-icon {
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    margin-bottom: 18px;
    flex-shrink: 0;
}

.sfd-ic-violet { background: rgba(192, 132, 252, 0.12); }
.sfd-ic-rose   { background: rgba(251, 113, 133, 0.12); }
.sfd-ic-amber  { background: rgba(251, 191,  36, 0.12); }
.sfd-ic-teal   { background: rgba(45,  212, 191, 0.12); }
.sfd-ic-blue   { background: rgba(78,  184, 255, 0.12); }
.sfd-ic-pink   { background: rgba(244, 114, 182, 0.12); }

.sfd-bc-title {
    font-family: "Outfit", sans-serif;
    font-size: 19px;
    font-weight: 700;
    color: var(--t1);
    margin-bottom: 8px;
    line-height: 1.25;
}

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

/* Journal lines visual (card A) */
.sfd-journal-lines {
    margin-top: 22px;
    display: grid;
    gap: 9px;
}

.sfd-jline {
    height: 2px;
    border-radius: 2px;
    background: rgba(192, 132, 252, 0.18);
}

.sfd-jline.active { background: rgba(192, 132, 252, 0.55); width: 74%; }
.sfd-jline:nth-child(2) { width: 88%; }
.sfd-jline:nth-child(3) { width: 62%; }
.sfd-jline:nth-child(4) { width: 80%; background: rgba(251, 113, 133, 0.35); }
.sfd-jline:nth-child(5) { width: 55%; }

/* Big streak number (card E) */
.sfd-big-num {
    font-family: "Outfit", sans-serif;
    font-size: clamp(56px, 6vw, 80px);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    background: linear-gradient(130deg, var(--violet), var(--rose));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    flex-shrink: 0;
}

/* Subscription visual (card B) */
.sfd-sub-ring {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    margin: 24px auto 0;
    position: relative;
    flex-shrink: 0;
}

.sfd-sub-ring::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #c084fc;
    border-right-color: #c084fc;
    animation: sfd-ring-spin 3s linear infinite;
}

.sfd-sub-ring::after {
    content: '';
    position: absolute;
    inset: -12px;
    border-radius: 50%;
    border: 3px solid transparent;
    border-top-color: #fb7185;
    animation: sfd-ring-spin 4.5s linear infinite reverse;
}

@keyframes sfd-ring-spin { to { transform: rotate(360deg); } }

.sfd-bc-b .sfd-bc-desc {
    margin-top: auto;
    padding-top: 20px;
}

/* Corner glow accents */
.sfd-bc-a::before,
.sfd-bc-e::before {
    content: '';
    position: absolute;
    top: -60px;
    right: -60px;
    width: 180px;
    height: 180px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(192, 132, 252, 0.08), transparent 70%);
    pointer-events: none;
}

/* ── GALLERY ──────────────────────────────────────────────── */
.sfd-gallery {
    background: var(--bg2);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    padding: 80px 0;
}

.sfd-gallery-head {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    margin-bottom: 44px;
}

.sfd-gallery-grid {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 28px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.sfd-gphone { transition: transform 0.26s ease; }
.sfd-gphone:hover { transform: translateY(-6px) scale(1.02); }

.sfd-gphone:hover .sfd-phone {
    box-shadow:
        0 0 0 1px rgba(192, 132, 252, 0.22),
        inset 0 1px 0 rgba(255, 255, 255, 0.09),
        0 40px 80px rgba(0, 0, 0, 0.6),
        0 0 70px rgba(192, 132, 252, 0.14);
}

.sfd-gphone-label {
    margin-top: 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--t3);
    text-align: center;
}

/* ── CTA ──────────────────────────────────────────────────── */
.sfd-cta {
    padding: 120px 28px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.sfd-cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(800px 600px at 50% 50%, rgba(192, 132, 252, 0.08), transparent 65%);
    pointer-events: none;
}

.sfd-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 600px;
    margin: 0 auto;
}

.sfd-cta h2 {
    font-family: "Outfit", sans-serif;
    font-size: clamp(34px, 4.2vw, 58px);
    font-weight: 800;
    line-height: 1.07;
    letter-spacing: -0.03em;
    color: var(--t1);
    margin-bottom: 16px;
}

.sfd-cta p {
    font-size: 17px;
    line-height: 1.72;
    color: var(--t2);
    margin-bottom: 36px;
}

.sfd-cta-btns {
    display: flex;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
}

.sfd-cta-links {
    margin-top: 24px;
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.sfd-cta-link {
    font-size: 13px;
    font-weight: 600;
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s;
}

.sfd-cta-link:hover { color: var(--t2); }

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

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

.sfd-footer-copy { font-size: 12.5px; color: var(--t3); }
.sfd-footer-links { display: flex; gap: 20px; flex-wrap: wrap; }

.sfd-footer-links a {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--t3);
    text-decoration: none;
    transition: color 0.2s;
}

.sfd-footer-links a:hover { color: var(--t2); }

/* ── RESPONSIVE ───────────────────────────────────────────── */
@media (max-width: 900px) {
    .sfd-hero-inner {
        grid-template-columns: 1fr;
        padding: 52px 24px 60px;
        gap: 40px;
    }

    .sfd-hero-visual { order: -1; }
    .sfd-hero-phone .sfd-phone { width: min(190px, 52vw); }
    .sfd-hero-glow { width: 260px; height: 260px; }

    .sfd-bento {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "a a"
            "b b"
            "c d"
            "e e"
            "f f";
    }

    .sfd-bc-b { flex-direction: column; }
    .sfd-bc-e { flex-direction: column; align-items: flex-start; gap: 16px; }

    .sfd-gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sfd-stat { padding: 10px 22px; }
}

@media (max-width: 640px) {
    .sfd-nav-inner  { padding: 0 20px; }
    .sfd-features   { padding: 64px 20px; }
    .sfd-gallery    { padding: 56px 0; }
    .sfd-gallery-grid { padding: 0 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .sfd-gallery-head { padding: 0 20px; }
    .sfd-cta        { padding: 72px 20px; }
    .sfd-footer     { padding: 20px; }

    .sfd-bento {
        grid-template-columns: 1fr;
        grid-template-areas: "a" "b" "c" "d" "e" "f";
    }

    .sfd-bc-e { flex-direction: column; align-items: flex-start; }

    .sfd-stat { padding: 10px 16px; }
    .sfd-stat + .sfd-stat { border-left: none; border-top: 1px solid var(--border); width: 100%; }
    .sfd-stats-inner { flex-direction: column; align-items: stretch; }
    .sfd-stat { align-items: flex-start; }
}
