/* Steelfit landing page — shares the design tokens from steelfit.css */

:root {
    --glow: rgba(126, 184, 216, 0.22);
    --glow-strong: rgba(126, 184, 216, 0.45);
    --radius-lg: 24px;
    --radius-md: 16px;
    --up: #8ee0ad;
    --same: #b9d4e4;
    --down: #ffb1b1;
}

html {
    scroll-behavior: smooth;
}

body {
    overflow-x: hidden;
}

.landing {
    position: relative;
    min-height: 100vh;
}

/* Background glows (neobank style) */
.landing::before,
.landing::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    filter: blur(90px);
    pointer-events: none;
    z-index: 0;
}

.landing::before {
    width: 520px;
    height: 520px;
    top: -160px;
    right: -180px;
    background: var(--glow);
}

.landing::after {
    width: 460px;
    height: 460px;
    top: 60vh;
    left: -220px;
    background: rgba(126, 184, 216, 0.12);
}

.landing > * {
    position: relative;
    z-index: 1;
}

.wrap {
    width: min(1120px, 100%);
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar */
.landing .topbar {
    padding: 0 20px;
}

.landing .topbar-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
}

.topbar-links .link-btn {
    text-decoration: none;
    font-weight: 600;
    padding: 10px 12px;
}

.topbar-links .link-btn:hover {
    color: var(--text);
}

.btn-sm {
    padding: 10px 16px;
    font-size: 0.92rem;
    border-radius: 999px;
    white-space: nowrap;
}

/* Buttons */
.primary,
.secondary {
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 30px var(--glow-strong);
}

.secondary:hover {
    background: #2e3b49;
}

.pill-btn {
    border-radius: 999px;
    padding: 15px 24px;
}

/* Hero */
.hero {
    padding: 56px 0 40px;
    display: grid;
    gap: 44px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.5rem, 7vw, 4.4rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 14px 0 18px;
    font-weight: 900;
}

.hero h1 .accent {
    background: linear-gradient(90deg, var(--steel), var(--steel2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero .lead {
    font-size: 1.15rem;
    line-height: 1.6;
    color: var(--muted);
    max-width: 520px;
    margin: 0 0 28px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(21, 27, 35, 0.7);
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}

.chip i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--steel);
    box-shadow: 0 0 10px var(--steel);
}

/* Phone mockup */
.phone-stage {
    position: relative;
    display: grid;
    place-items: center;
    padding: 20px 0;
}

.phone {
    width: min(320px, 100%);
    border-radius: 42px;
    padding: 12px;
    background: linear-gradient(160deg, #2a3643, #0f151c);
    border: 1px solid #3c5264;
    box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.03) inset;
    animation: float 7s ease-in-out infinite;
}

.phone-screen {
    border-radius: 32px;
    background: radial-gradient(circle at top, #18212c 0, #0d1117 60%);
    padding: 18px 16px 14px;
    display: grid;
    gap: 10px;
    min-height: 560px;
}

.mock-eyebrow {
    display: block;
    font-size: 0.62rem;
    letter-spacing: 0.15em;
    color: var(--steel);
    font-weight: 800;
}

.mock-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 6px 2px 8px;
}

.mock-head strong {
    font-size: 1.25rem;
}

.mock-date {
    font-size: 0.7rem;
    padding: 5px 8px;
    border-radius: 8px;
    background: #202b36;
    color: var(--steel);
    border: 1px solid #37495b;
}

.mock-card {
    background: linear-gradient(145deg, var(--panel2), var(--panel));
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 14px;
    display: grid;
    gap: 6px;
}

.mock-card.hero-like {
    border-color: #3c5264;
    padding: 16px;
}

.mock-card.hero-like strong {
    font-size: 1.5rem;
}

.mock-card small {
    color: var(--muted);
    font-size: 0.74rem;
}

.mock-btn {
    margin-top: 6px;
    display: inline-flex;
    justify-content: center;
    padding: 10px;
    border-radius: 10px;
    background: var(--steel);
    color: #071018;
    font-weight: 800;
    font-size: 0.8rem;
}

.mock-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
}

.mock-row > div {
    min-width: 0;
}

.mock-row strong {
    font-size: 0.9rem;
    white-space: nowrap;
}

.mock-row > small {
    white-space: nowrap;
}

.mock-card .progress {
    margin: 6px 0 0;
    height: 8px;
}

.mock-advice {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 10px;
}

.mock-advice strong {
    font-size: 0.95rem;
}

.mock-delta {
    font-weight: 900;
    font-size: 1.05rem;
    color: var(--up);
    white-space: nowrap;
}

.mock-nav {
    margin-top: auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding-top: 10px;
    border-top: 1px solid var(--line);
    font-size: 0.62rem;
    color: var(--muted);
    text-align: center;
}

.mock-nav span.active {
    color: var(--steel);
    font-weight: 800;
}

.float-badge {
    position: absolute;
    z-index: 2;
    display: grid;
    gap: 2px;
    padding: 12px 16px;
    border-radius: 16px;
    background: rgba(21, 27, 35, 0.92);
    border: 1px solid #3c5264;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(8px);
    font-size: 0.74rem;
    color: var(--muted);
}

.float-badge strong {
    font-size: 1.05rem;
    color: var(--text);
}

.float-badge.up strong {
    color: var(--up);
}

.badge-left {
    left: 0;
    top: 24%;
    animation: float 6s ease-in-out infinite 0.8s;
}

.badge-right {
    right: 0;
    bottom: 20%;
    animation: float 6.5s ease-in-out infinite 1.6s;
}

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

/* Stats strip */
.stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 20px 0 10px;
}

.stat {
    padding: 20px;
    border-radius: var(--radius-md);
    background: rgba(21, 27, 35, 0.75);
    border: 1px solid var(--line);
}

.stat strong {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -0.02em;
    background: linear-gradient(90deg, #fff, var(--steel2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat span {
    color: var(--muted);
    font-size: 0.86rem;
}

/* Sections */
.section {
    padding: 72px 0 20px;
}

.section-head {
    max-width: 640px;
    margin-bottom: 34px;
}

.section-head h2 {
    font-size: clamp(1.9rem, 4.5vw, 2.8rem);
    letter-spacing: -0.025em;
    line-height: 1.08;
    margin: 10px 0 12px;
    font-weight: 900;
}

.section-head p {
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

/* Bento feature grid */
.bento {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.feature {
    position: relative;
    overflow: hidden;
    padding: 26px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--panel2), var(--panel));
    border: 1px solid var(--line);
    display: grid;
    gap: 12px;
    align-content: start;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.feature:hover {
    transform: translateY(-3px);
    border-color: #3c5264;
}

.feature::after {
    content: '';
    position: absolute;
    width: 220px;
    height: 220px;
    right: -90px;
    top: -90px;
    border-radius: 50%;
    background: var(--glow);
    filter: blur(50px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.feature:hover::after {
    opacity: 1;
}

.feature h3 {
    font-size: 1.25rem;
    margin: 4px 0 0;
    letter-spacing: -0.01em;
}

.feature p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.97rem;
}

.icon {
    width: 46px;
    height: 46px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, #31404e, #151c24);
    border: 1px solid #37495b;
    color: var(--steel);
}

.icon svg {
    width: 22px;
    height: 22px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 4px;
}

.feature-tags span {
    font-size: 0.74rem;
    padding: 5px 9px;
    border-radius: 8px;
    background: #10161d;
    border: 1px solid #283440;
    color: var(--muted);
}

/* Cycle visual inside feature */
.cycle {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-top: 8px;
}

.cycle div {
    padding: 12px 8px;
    border-radius: 12px;
    background: #10161d;
    border: 1px solid #283440;
    text-align: center;
    display: grid;
    gap: 4px;
}

.cycle b {
    display: block;
    font-size: 0.72rem;
    color: var(--steel);
    letter-spacing: 0.08em;
}

.cycle span {
    font-size: 0.78rem;
    font-weight: 700;
}

.cycle small {
    font-size: 0.66rem;
    color: var(--muted);
}

/* Steps */
.steps {
    display: grid;
    gap: 14px;
    counter-reset: step;
}

.step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 18px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: rgba(21, 27, 35, 0.75);
    border: 1px solid var(--line);
}

.step-num {
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    border: 1px solid var(--steel);
    color: var(--steel);
    background: linear-gradient(145deg, #24303d, #121820);
    font-weight: 900;
    font-size: 1.3rem;
}

.step h3 {
    margin: 4px 0 6px;
    font-size: 1.2rem;
}

.step p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
}

/* Advice section */
.advice-grid {
    display: grid;
    gap: 14px;
}

.advice-card {
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(145deg, var(--panel2), var(--panel));
    border: 1px solid var(--line);
    display: grid;
    gap: 10px;
}

.advice-card .eyebrow {
    font-size: 0.68rem;
}

.advice-card strong.big {
    font-size: 1.6rem;
    font-weight: 900;
    letter-spacing: -0.02em;
}

.advice-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: 0.95rem;
}

.advice-card.up { border-color: #2f6f49; }
.advice-card.up strong.big { color: var(--up); }
.advice-card.same { border-color: #3c5264; }
.advice-card.same strong.big { color: var(--same); }
.advice-card.down { border-color: #754343; }
.advice-card.down strong.big { color: var(--down); }

.advice-note {
    margin-top: 14px;
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    border: 1px dashed #3c5264;
    color: var(--muted);
    line-height: 1.6;
    display: grid;
    grid-template-columns: 46px 1fr;
    gap: 16px;
    align-items: start;
}

.advice-note p {
    margin: 0;
}

.advice-note strong {
    color: var(--text);
}

/* Exercise marquee */
.marquee-section {
    padding: 60px 0 0;
}

.marquee {
    margin-top: 28px;
    overflow: hidden;
    position: relative;
    mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}

.marquee-track {
    display: flex;
    gap: 14px;
    width: max-content;
    animation: marquee 50s linear infinite;
}

.marquee:hover .marquee-track {
    animation-play-state: paused;
}

.marquee figure {
    margin: 0;
    width: 180px;
    border-radius: 18px;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
}

.marquee img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    display: block;
}

.marquee figcaption {
    padding: 10px 12px;
    font-size: 0.76rem;
    color: var(--muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* Final CTA */
.cta {
    margin: 72px 0 40px;
    padding: 48px 28px;
    border-radius: 32px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(145deg, #1c2a38, #121820);
    border: 1px solid #3c5264;
}

.cta::before {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: var(--glow);
    filter: blur(80px);
    pointer-events: none;
}

.cta > * {
    position: relative;
}

.cta h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    letter-spacing: -0.03em;
    margin: 10px 0 12px;
    font-weight: 900;
}

.cta p {
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 520px;
    margin: 0 auto 26px;
    line-height: 1.6;
}

.cta .hero-actions {
    justify-content: center;
    margin: 0;
}

/* Footer */
.footer {
    padding: 20px 0 40px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.86rem;
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer a {
    color: var(--muted);
    text-decoration: none;
}

.footer a:hover {
    color: var(--text);
}

/* Reveal on scroll */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .phone,
    .float-badge,
    .marquee-track {
        animation: none;
    }

    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Responsive */
@media (min-width: 680px) {
    .stats {
        grid-template-columns: repeat(4, 1fr);
    }

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

    .advice-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .steps {
        grid-template-columns: repeat(3, 1fr);
    }

    .step {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 900px) {
    .hero {
        grid-template-columns: 1.1fr 0.9fr;
        padding: 80px 0 50px;
        min-height: calc(100vh - 64px);
    }

    .phone-stage {
        padding: 30px 40px;
    }

    .badge-left {
        left: -10px;
    }

    .badge-right {
        right: -10px;
    }

    .bento {
        grid-template-columns: repeat(3, 1fr);
    }

    .feature.wide {
        grid-column: span 2;
    }
}

@media (max-width: 480px) {
    .topbar-links .link-btn {
        display: none;
    }
}

@media (max-width: 420px) {
    .float-badge {
        display: none;
    }
}
