:root {
    --bg: #04070d;
    --bg-soft: #0a1018;
    --panel: rgba(15, 22, 34, 0.82);
    --panel-strong: rgba(11, 17, 28, 0.96);
    --line: rgba(255, 255, 255, 0.09);
    --text: #f4f7fb;
    --muted: #9ba7b8;
    --accent: #59f0ff;
    --accent-strong: #3b90ff;
    --accent-soft: rgba(89, 240, 255, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 999px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Manrope", sans-serif;
    background:
        radial-gradient(circle at top left, rgba(62, 144, 255, 0.18), transparent 32%),
        radial-gradient(circle at top right, rgba(89, 240, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #03060c 0%, #050912 48%, #04070d 100%);
    color: var(--text);
    line-height: 1.65;
    min-height: 100vh;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent 80%);
    pointer-events: none;
    opacity: 0.22;
}

body::after {
    content: "";
    position: fixed;
    inset: auto 10% 6% auto;
    width: 32rem;
    height: 32rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(89, 240, 255, 0.12), transparent 62%);
    filter: blur(60px);
    pointer-events: none;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

[id] {
    scroll-margin-top: 6.5rem;
}

.container,
.nav-container,
.hero-container {
    width: min(1180px, calc(100% - 2rem));
    margin: 0 auto;
}

.navbar {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    padding: 1rem 0;
    background: rgba(4, 7, 13, 0.72);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(18px);
    transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.navbar.is-scrolled {
    background: rgba(4, 7, 13, 0.9);
    border-color: var(--line);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.28);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.logo-img {
    width: 2.75rem;
    height: 2.75rem;
    object-fit: contain;
}

.logo-text,
.hero-eyebrow,
.section-kicker,
.feature-icon,
.mode-tag,
.download-icon,
.screen-badge,
.stat-label {
    font-family: "Space Grotesk", sans-serif;
}

.logo-text {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.nav-links a {
    color: var(--muted);
    font-size: 0.97rem;
    transition: color 0.2s ease;
}

.nav-links .btn-nav {
    color: #041018;
}

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

.btn-nav:hover {
    color: #041018;
}

.btn-nav,
.btn-primary,
.btn-secondary,
.download-btn,
.support-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.25rem;
    padding: 0.9rem 1.35rem;
    border-radius: var(--radius-sm);
    font-weight: 700;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-nav,
.btn-primary,
.download-btn,
.support-btn {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
    color: #041018;
    box-shadow: 0 18px 40px rgba(59, 144, 255, 0.18);
}

.btn-nav:hover,
.btn-primary:hover,
.download-btn:hover,
.support-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 22px 44px rgba(59, 144, 255, 0.24);
}

.btn-secondary {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
}

.btn-secondary:hover {
    border-color: rgba(89, 240, 255, 0.4);
    background: rgba(89, 240, 255, 0.08);
}

.nav-links a:focus-visible,
.btn-nav:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible,
.download-btn:focus-visible,
.support-btn:focus-visible,
.download-links a:focus-visible,
.footer-section a:focus-visible,
.logo:focus-visible {
    outline: 3px solid rgba(89, 240, 255, 0.38);
    outline-offset: 4px;
}

.hero,
.features,
.modes,
.download,
.support,
.footer {
    position: relative;
}

.hero {
    padding: 8.5rem 0 5.5rem;
}

.hero-container {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

.hero-content,
.hero-visual {
    position: relative;
    z-index: 1;
}

.hero-eyebrow,
.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero-title,
.section-header h2,
.support h2,
.download-card h3,
.mode-card h3,
.feature-card h3 {
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.04em;
}

.hero-title {
    font-size: clamp(2.75rem, 5vw, 4.8rem);
    line-height: 1.02;
    margin-bottom: 1.25rem;
    max-width: 12ch;
}

.hero-subtitle {
    max-width: 60ch;
    font-size: 1.08rem;
    color: var(--muted);
}

.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.95rem;
    margin-top: 2rem;
}

.hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.75rem;
}

.pill {
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.03);
    color: #d9e1ec;
    font-size: 0.92rem;
}

.hero-note {
    margin-top: 1.1rem;
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-visual {
    padding: 1rem 0;
}

.device-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    min-height: 26rem;
}

.phone-device,
.watch-device,
.hero-stat-card,
.feature-card,
.mode-card,
.download-card,
.support-content {
    border: 1px solid var(--line);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01)),
        var(--panel);
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.phone-device,
.watch-device {
    position: relative;
    overflow: hidden;
}

.phone-device::before,
.watch-device::before {
    content: "";
    position: absolute;
    inset: -35% auto auto -20%;
    width: 70%;
    height: 70%;
    background: radial-gradient(circle, rgba(89, 240, 255, 0.22), transparent 72%);
    pointer-events: none;
}

.phone-device {
    width: 13.5rem;
    min-height: 27rem;
    border-radius: 2rem;
    padding: 0.8rem;
    animation: float 6.5s ease-in-out infinite;
}

.watch-device {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    padding: 0.7rem;
    animation: float 6.5s ease-in-out infinite 0.7s;
}

.device-screen {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    background:
        radial-gradient(circle at top, rgba(89, 240, 255, 0.12), transparent 35%),
        linear-gradient(180deg, #0a1019 0%, #071019 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.app-interface {
    width: 100%;
    text-align: center;
    padding: 1rem;
}

.screen-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.35rem 0.55rem;
    margin-bottom: 1rem;
    border-radius: var(--radius-sm);
    background: rgba(89, 240, 255, 0.12);
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.workout-timer,
.watch-timer {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.3rem;
    font-weight: 700;
    letter-spacing: -0.05em;
}

.watch-timer {
    font-size: 1.65rem;
}

.workout-phase,
.watch-phase {
    margin-top: 0.35rem;
    color: var(--accent);
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.workout-stats,
.watch-meta {
    margin-top: 1rem;
    color: var(--muted);
}

.workout-stats {
    display: grid;
    gap: 0.55rem;
    font-size: 0.86rem;
}

.watch-meta {
    font-size: 0.8rem;
}

.sync-line {
    position: absolute;
    width: 8rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    animation: syncPulse 2.2s ease-in-out infinite;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 1.5rem;
}

.hero-stat-card {
    padding: 1rem;
    border-radius: 1.15rem;
}

.stat-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.hero-stat-card strong {
    font-size: 0.98rem;
    line-height: 1.45;
}

.section-header {
    max-width: 44rem;
    margin: 0 auto 3rem;
    text-align: center;
}

.section-header h2 {
    font-size: clamp(2rem, 3.5vw, 3.25rem);
    line-height: 1.04;
    margin-bottom: 1rem;
}

.section-header p {
    color: var(--muted);
    font-size: 1.02rem;
}

.features,
.modes,
.download {
    padding: 5rem 0;
}

.features-grid,
.modes-grid,
.download-grid {
    display: grid;
    gap: 1.2rem;
}

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

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

.download-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 56rem;
    margin: 0 auto;
}

.feature-card,
.mode-card,
.download-card {
    border-radius: var(--radius-lg);
    padding: 1.55rem;
}

.hero-stat-card,
.feature-card,
.mode-card,
.download-card,
.support-content {
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.feature-card:hover,
.mode-card:hover,
.download-card:hover,
.support-content:hover {
    border-color: rgba(89, 240, 255, 0.28);
    transform: translateY(-3px);
}

.feature-icon,
.download-icon,
.mode-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2rem;
    padding: 0.3rem 0.7rem;
    border-radius: var(--radius-sm);
    background: rgba(89, 240, 255, 0.1);
    color: var(--accent);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.feature-card h3,
.mode-card h3,
.download-card h3 {
    margin-top: 1rem;
    font-size: 1.45rem;
    line-height: 1.12;
}

.feature-card p,
.mode-card p,
.download-card p {
    margin-top: 0.9rem;
    color: var(--muted);
}

.download-card {
    display: flex;
    flex-direction: column;
}

.download-btn {
    margin-top: auto;
    width: fit-content;
}

.download-note {
    max-width: 44rem;
    margin: 1.5rem auto 0;
    color: var(--muted);
    text-align: center;
}

.download-links {
    display: flex;
    justify-content: center;
    gap: 1.2rem;
    margin-top: 1.1rem;
    flex-wrap: wrap;
}

.download-links a {
    color: var(--accent);
    font-weight: 700;
}

.download-links a:hover {
    color: #b9fbff;
}

.support {
    padding: 2rem 0 5rem;
}

.support-content {
    max-width: 48rem;
    margin: 0 auto;
    border-radius: 2rem;
    padding: 2.4rem;
    text-align: center;
}

.support h2 {
    font-size: clamp(2rem, 3vw, 3rem);
    margin-bottom: 1rem;
}

.support p {
    color: var(--muted);
}

.support-btn {
    margin-top: 1.6rem;
}

.footer {
    padding: 0 0 2rem;
}

.footer-content {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
    gap: 2rem;
    padding: 2rem 0;
    border-top: 1px solid var(--line);
}

.footer-brand p {
    margin-top: 1rem;
    color: var(--muted);
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.footer-section h4 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1rem;
    margin-bottom: 0.9rem;
}

.footer-section a {
    display: block;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

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

.footer-bottom {
    padding-top: 1.5rem;
    border-top: 1px solid var(--line);
    color: #7f8a97;
    text-align: center;
}

.footer-bottom a {
    color: var(--accent);
}

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

@keyframes syncPulse {
    0%,
    100% {
        opacity: 0;
        transform: scaleX(0.45);
    }
    50% {
        opacity: 1;
        transform: scaleX(1);
    }
}

@media (max-width: 980px) {
    .hero-container,
    .features-grid,
    .modes-grid,
    .footer-content {
        grid-template-columns: 1fr;
    }

    .hero-title {
        max-width: 100%;
    }

    .hero-visual {
        max-width: 42rem;
        margin: 0 auto;
    }

    .hero-stats,
    .download-grid {
        grid-template-columns: 1fr;
    }

    .footer-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .navbar {
        padding: 0.85rem 0;
    }

    .nav-container {
        flex-wrap: wrap;
        justify-content: center;
    }

    .nav-links {
        justify-content: center;
        flex-wrap: wrap;
    }

    .hero {
        padding-top: 9.5rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-buttons > * {
        width: 100%;
    }

    .device-container {
        min-height: 0;
        flex-direction: column;
        gap: 1.25rem;
    }

    .sync-line {
        width: 2px;
        height: 4.5rem;
        background: linear-gradient(180deg, transparent, var(--accent), transparent);
    }

    .footer-links {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}
