/* ============================================================
   Slim Goal — standalone landing page
   Self-contained, no dependency on apps.css
   Colour theme: dark charcoal → emerald / lime  (prefix: sg-)
   ============================================================ */

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

:root {
    --bg:          #050f0a;
    --bg2:         #091509;
    --bg3:         #0e1f12;
    --green:       #22c55e;
    --lime:        #84cc16;
    --green-dim:   rgba(34, 197, 94, 0.14);
    --t1:          #e8f5ee;
    --t2:          #7ab894;
    --t3:          #3a6b4a;
    --border:      rgba(255, 255, 255, 0.07);
    --bgreen:      rgba(34, 197, 94, 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 ──────────────────────────────────────────────────── */
.sg-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(5, 15, 10, 0.84);
    border-bottom: 1px solid var(--border);
}

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

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

.sg-nav-icon {
    width: 32px;
    height: 32px;
    border-radius: 9px;
    flex-shrink: 0;
    object-fit: contain;
    box-shadow: 0 0 14px rgba(34, 197, 94, 0.3);
}

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

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

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

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

.sg-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(900px 700px at 80% -5%,  rgba(34, 197, 94, 0.09), transparent 60%),
        radial-gradient(600px 500px at -10% 85%, rgba(132, 204, 22, 0.07), transparent 60%);
    pointer-events: none;
}

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

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

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

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

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

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

.sg-grad {
    background: linear-gradient(125deg, #22c55e 0%, #84cc16 55%, #22c55e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

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

/* App Store button */
.sg-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;
}

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

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

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

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

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

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

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

.sg-hero-glow {
    position: absolute;
    inset: -30px;
    background: radial-gradient(ellipse at center, rgba(34, 197, 94, 0.13), transparent 68%);
    pointer-events: none;
}

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

.sg-phone {
    width: 220px;
    aspect-ratio: 9/19.5;
    border-radius: 36px;
    background: #0a1a0d;
    border: 2px solid rgba(34, 197, 94, 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(34, 197, 94, 0.08);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

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

.sg-phone-screen {
    flex: 1;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #0e1f12 0%, #091509 100%);
}

.sg-phone-icon {
    width: 72px;
    height: 72px;
    border-radius: 18px;
    object-fit: contain;
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.3);
}

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

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

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

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

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

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

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

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

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

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

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

.sg-bc:hover {
    border-color: rgba(34, 197, 94, 0.2);
    background: var(--bg3);
}

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

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

.sg-ic-green  { background: rgba(34,  197,  94, 0.12); }
.sg-ic-lime   { background: rgba(132, 204,  22, 0.12); }
.sg-ic-teal   { background: rgba(20,  184, 166, 0.12); }
.sg-ic-amber  { background: rgba(251, 191,  36, 0.12); }
.sg-ic-rose   { background: rgba(251, 113, 133, 0.12); }

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

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

/* Progress ring decoration */
.sg-ring-demo {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 18px 0;
}

.sg-ring-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sg-ring-bar-wrap {
    flex: 1;
    height: 7px;
    border-radius: 999px;
    background: rgba(255,255,255,0.06);
    overflow: hidden;
}

.sg-ring-bar {
    height: 100%;
    border-radius: 999px;
}

.sg-ring-bar-g  { background: linear-gradient(90deg, #22c55e, #84cc16); }
.sg-ring-bar-t  { background: linear-gradient(90deg, #14b8a6, #22c55e); width: 62%; }
.sg-ring-bar-a  { background: linear-gradient(90deg, #fbbf24, #84cc16); width: 45%; }

.sg-ring-label {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--t3);
    white-space: nowrap;
    min-width: 70px;
}

.sg-ring-pct {
    font-size: 12px;
    font-weight: 700;
    color: var(--green);
    min-width: 34px;
    text-align: right;
}

/* Big icon for wide card */
.sg-big-icon {
    font-size: 56px;
    line-height: 1;
    margin-bottom: 16px;
    filter: drop-shadow(0 0 18px rgba(34, 197, 94, 0.35));
}

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

.sg-gallery .sg-section-label { color: #16a34a; }
.sg-gallery .sg-section-h    { color: #0d2b1e; }

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

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

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

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

.sg-phone--light {
    background: #f2fbf5;
    border-color: rgba(34, 197, 94, 0.22);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.06),
        0 24px 48px rgba(0, 0, 0, 0.12),
        0 0 60px rgba(34, 197, 94, 0.08);
}

.sg-phone--light .sg-phone-island {
    background: #d1fae5;
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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