@font-face {
    font-family: 'Inter';
    src: url('fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #1a1a1a;
    background: #0F0F13;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}


/* ------------------------------------------------
   MARK: - Sticky Nav
   ------------------------------------------------ */

.sticky-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(15, 15, 19, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transform: translateY(-100%);
    transition: transform 0.3s ease;
}

.sticky-nav.visible {
    transform: translateY(0);
}

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

.nav-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.nav-logo img {
    width: 32px;
    height: 32px;
    border-radius: 8px;
}

.nav-logo span {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.nav-appstore-link {
    display: flex;
    align-items: center;
}

.nav-appstore-link svg {
    height: 32px;
    width: auto;
}


/* ------------------------------------------------
   MARK: - Hero
   ------------------------------------------------ */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F0F13;
    overflow: hidden;
    padding: 80px 0 120px;
}

.hero-glow {
    position: absolute;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.1) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hero .container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.hero-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.hero h1 {
    font-size: 72px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.05;
    margin-bottom: 16px;
    text-transform: uppercase;
}

.hero .subtitle {
    font-size: 20px;
    color: rgba(255, 255, 255, 0.55);
    max-width: 480px;
    margin: 0 auto 40px;
    font-weight: 400;
    line-height: 1.6;
}

.appstore-badge {
    display: inline-flex;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.appstore-badge:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.appstore-badge svg {
    height: 48px;
    width: auto;
}


/* ------------------------------------------------
   MARK: - Wave Dividers
   ------------------------------------------------ */

.wave-divider {
    display: block;
    width: 100%;
    height: auto;
    line-height: 0;
}

.wave-divider svg {
    display: block;
    width: 100%;
    height: auto;
}


/* ------------------------------------------------
   MARK: - Feature Rows
   ------------------------------------------------ */

.features-section {
    background: #FAFAF8;
    padding: 120px 0;
}

.feature-row {
    display: flex;
    align-items: center;
    gap: 64px;
    margin-bottom: 120px;
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-image {
    flex: 0 0 auto;
}

.feature-screenshot {
    width: 300px;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.12);
}

.feature-content {
    flex: 1;
}

.feature-badge {
    display: inline-block;
    padding: 6px 16px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    border-radius: 100px;
    margin-bottom: 16px;
}

.badge-orange {
    background: rgba(249, 115, 22, 0.1);
    color: #EA580C;
}

.badge-red {
    background: rgba(239, 68, 68, 0.1);
    color: #DC2626;
}

.badge-purple {
    background: rgba(124, 58, 237, 0.1);
    color: #7C3AED;
}

.badge-green {
    background: rgba(34, 197, 94, 0.1);
    color: #16A34A;
}

.badge-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #2563EB;
}

.feature-content h2 {
    font-size: 44px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 16px;
}

.feature-content p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.7;
    max-width: 480px;
}


/* ------------------------------------------------
   MARK: - Key Features Grid
   ------------------------------------------------ */

.key-features {
    background: linear-gradient(180deg, #FAFAF8 0%, #FFF1EB 50%, #FAFAF8 100%);
    padding: 120px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 64px;
}

.section-header h2 {
    font-size: 44px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.section-header p {
    font-size: 18px;
    color: #6b7280;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 1000px;
    margin: 0 auto;
}

.grid-card {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.04);
    padding: 32px;
    border-radius: 20px;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.grid-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.06);
}

.grid-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.grid-icon svg {
    width: 24px;
    height: 24px;
}

.grid-icon.icon-orange {
    background: linear-gradient(135deg, #F97316, #EF4444);
}

.grid-icon.icon-green {
    background: linear-gradient(135deg, #22C55E, #16A34A);
}

.grid-icon.icon-purple {
    background: linear-gradient(135deg, #8B5CF6, #7C3AED);
}

.grid-icon.icon-red {
    background: linear-gradient(135deg, #EF4444, #DC2626);
}

.grid-icon.icon-yellow {
    background: linear-gradient(135deg, #F59E0B, #D97706);
}

.grid-icon.icon-blue {
    background: linear-gradient(135deg, #3B82F6, #2563EB);
}

.grid-card h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.grid-card p {
    font-size: 15px;
    color: #6b7280;
    line-height: 1.6;
}


/* ------------------------------------------------
   MARK: - Final CTA
   ------------------------------------------------ */

.final-cta {
    background: #0F0F13;
    padding: 120px 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.final-cta-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(249, 115, 22, 0.08) 0%, transparent 70%);
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.final-cta .container {
    position: relative;
    z-index: 1;
}

.final-cta h2 {
    font-size: 52px;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    margin-bottom: 32px;
    line-height: 1.1;
}


/* ------------------------------------------------
   MARK: - Footer
   ------------------------------------------------ */

footer {
    background: #0F0F13;
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.footer-links {
    margin-bottom: 16px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin: 0 16px;
    transition: color 0.2s ease;
}

.footer-links a:hover {
    color: rgba(255, 255, 255, 0.8);
}

.footer-copy {
    color: rgba(255, 255, 255, 0.25);
    font-size: 13px;
}


/* ------------------------------------------------
   MARK: - Scroll Reveal Animations
   ------------------------------------------------ */

.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

.grid-card {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease, box-shadow 0.25s ease;
}

.grid-card.revealed {
    opacity: 1;
    transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
    .reveal,
    .grid-card {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .sticky-nav {
        transition: none;
    }

    .appstore-badge,
    .grid-card {
        transition: none;
    }
}


/* ------------------------------------------------
   MARK: - Responsive
   ------------------------------------------------ */

@media (max-width: 768px) {
    .hero {
        padding: 60px 0 80px;
        min-height: auto;
    }

    .hero h1 {
        font-size: 40px;
    }

    .hero .subtitle {
        font-size: 17px;
    }

    .features-section {
        padding: 80px 0;
    }

    .feature-row {
        flex-direction: column !important;
        gap: 32px;
        margin-bottom: 80px;
    }

    .feature-screenshot {
        width: 260px;
    }

    .feature-content h2 {
        font-size: 32px;
    }

    .feature-content p {
        font-size: 16px;
    }

    .key-features {
        padding: 80px 0;
    }

    .section-header h2 {
        font-size: 32px;
    }

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

    .final-cta {
        padding: 80px 0;
    }

    .final-cta h2 {
        font-size: 36px;
    }
}


/* ------------------------------------------------
   MARK: - What Is Fartlek
   ------------------------------------------------ */

.explainer {
    background: #FAFAF8;
    padding: 112px 0 0;
}

.explainer .container {
    max-width: 760px;
}

.explainer h2,
.faq h2,
.pricing h2 {
    font-size: 40px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
    line-height: 1.15;
    margin-bottom: 20px;
}

.explainer p {
    font-size: 18px;
    color: #4b5563;
    line-height: 1.75;
    margin-bottom: 16px;
}

.explainer p:last-child {
    margin-bottom: 0;
}


/* ------------------------------------------------
   MARK: - Pricing
   ------------------------------------------------ */

.pricing {
    background: #FAFAF8;
    padding: 112px 0 0;
}

.pricing .container {
    max-width: 860px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.pricing-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 20px;
    padding: 32px;
}

.pricing-card h3 {
    font-size: 22px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.pricing-card p {
    font-size: 16px;
    color: #4b5563;
    line-height: 1.65;
}


/* ------------------------------------------------
   MARK: - FAQ
   ------------------------------------------------ */

.faq {
    background: #FAFAF8;
    padding: 112px 0 120px;
}

.faq .container {
    max-width: 820px;
}

.faq details {
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    padding: 20px 0;
}

.faq summary {
    font-size: 19px;
    font-weight: 600;
    color: #1a1a1a;
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    gap: 16px;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    color: #F97316;
    font-weight: 700;
}

.faq details[open] summary::after {
    content: "−";
}

.faq details p {
    margin-top: 12px;
    font-size: 17px;
    color: #4b5563;
    line-height: 1.7;
}


/* ------------------------------------------------
   MARK: - Languages
   ------------------------------------------------ */

.footer-langs {
    margin-bottom: 16px;
}

.footer-langs a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 13px;
    margin: 0 10px;
}

.footer-langs a[aria-current="page"] {
    color: #fff;
}

@media (max-width: 768px) {
    .explainer,
    .pricing {
        padding-top: 80px;
    }

    .faq {
        padding: 80px 0;
    }

    .explainer h2,
    .faq h2,
    .pricing h2 {
        font-size: 30px;
    }

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


/* ------------------------------------------------
   MARK: - Nav Link
   ------------------------------------------------ */

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-link {
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    opacity: 0.85;
}

.nav-link:hover {
    opacity: 1;
}

.see-all {
    text-align: center;
    margin-top: 40px;
}

.see-all a {
    color: #F97316;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
}


/* ------------------------------------------------
   MARK: - Workout Pages
   ------------------------------------------------ */

.page {
    background: #FAFAF8;
    padding: 120px 0 96px;
}

.container.narrow {
    max-width: 760px;
}

.breadcrumb {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 32px;
}

.breadcrumb a {
    color: #6b7280;
    text-decoration: none;
}

.breadcrumb a:hover {
    color: #1a1a1a;
}

.page .kicker {
    color: #F97316;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.page h1 {
    font-size: 44px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.page h2 {
    font-size: 26px;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.25;
    color: #1a1a1a;
    margin: 48px 0 16px;
}

.page p,
.page li {
    font-size: 17px;
    line-height: 1.7;
    color: #4b5563;
}

.page .lead {
    font-size: 20px;
    color: #374151;
    margin-bottom: 12px;
}

.page .meta-line {
    color: #F97316;
    font-weight: 600;
    margin-bottom: 24px;
}

.page .main-set {
    background: #fff;
    border: 1px solid #ececec;
    border-radius: 14px;
    padding: 16px 20px;
    color: #1a1a1a;
}

.page .note {
    font-size: 14px;
    color: #6b7280;
    margin-top: 12px;
}

.table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.structure {
    width: 100%;
    min-width: 520px;
    border-collapse: collapse;
    table-layout: fixed;
}

.structure thead th:nth-child(1) {
    width: 24%;
}

.structure thead th:nth-child(2) {
    width: 44%;
}

.structure th,
.structure td {
    text-align: left;
    vertical-align: top;
    padding: 12px 14px;
    border-bottom: 1px solid #ececec;
    font-size: 16px;
    line-height: 1.5;
    color: #374151;
}

.structure thead th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.structure tbody th {
    font-weight: 600;
    color: #1a1a1a;
}

.effort-legend,
.related,
.workout-list {
    list-style: none;
}

.effort-legend li,
.related li,
.workout-list li {
    padding: 12px 0;
    border-bottom: 1px solid #ececec;
}

.effort-legend strong {
    color: #1a1a1a;
    margin-right: 6px;
}

.pete-tip {
    margin: 0;
    padding: 20px 24px;
    background: #FFF1EB;
    border-left: 4px solid #F97316;
    border-radius: 14px;
}

.page .pete-tip p {
    color: #1a1a1a;
    font-size: 18px;
}

.page .pete-tip .caption {
    color: #6b7280;
    font-size: 14px;
    margin-top: 8px;
}

.related a,
.workout-list a {
    color: #1a1a1a;
    font-weight: 600;
    text-decoration: none;
}

.related a:hover,
.workout-list a:hover {
    color: #F97316;
}

.related span,
.workout-list span {
    color: #6b7280;
    font-size: 15px;
    margin-left: 6px;
}

.page .workout-list p {
    font-size: 16px;
    margin-top: 2px;
}

.cta-box {
    margin: 56px 0 8px;
    padding: 32px 28px;
    background: #0F0F13;
    border-radius: 20px;
}

.page .cta-box h2 {
    color: #fff;
    margin: 0 0 8px;
}

.page .cta-box p {
    color: #c4c4cc;
    margin-bottom: 20px;
}

@media (max-width: 640px) {
    .page {
        padding-top: 100px;
    }

    .page h1 {
        font-size: 34px;
    }

    .nav-actions {
        gap: 12px;
    }

    .nav-link {
        font-size: 14px;
    }
}


/* ------------------------------------------------
   MARK: - Guides
   ------------------------------------------------ */

.guide p {
    margin-bottom: 16px;
}

.guide ul,
.guide ol {
    padding-left: 22px;
    margin-bottom: 16px;
}

.guide li {
    margin: 6px 0;
}

.guide a {
    color: #F97316;
    font-weight: 600;
    text-decoration: none;
}

.guide a:hover {
    text-decoration: underline;
}

.guide .table-scroll {
    margin: 8px 0 24px;
}

.structure.effort-table {
    min-width: 0;
}

.effort-table thead th:nth-child(1) {
    width: 18%;
}

.effort-table thead th:nth-child(2) {
    width: 30%;
}

.compare {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.compare th,
.compare td {
    text-align: left;
    vertical-align: top;
    padding: 10px 12px;
    border-bottom: 1px solid #ececec;
    font-size: 15px;
    line-height: 1.45;
    color: #374151;
}

.compare thead th {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #6b7280;
}

.compare tbody th {
    font-weight: 700;
    color: #1a1a1a;
}

.footer-guides {
    margin-top: -4px;
}


/* ------------------------------------------------
   MARK: - Open in Fartlek
   ------------------------------------------------ */

.page .open-app {
    margin: 16px 0 8px;
}

.open-app a {
    display: inline-block;
    padding: 12px 22px;
    border-radius: 999px;
    background: #F97316;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
}

.open-app a:hover {
    background: #ea6a10;
}
