/* =========================================
   CUSTOM PROPERTIES
   ========================================= */
:root {
    --color-bg-dark: #0a0f0a;
    --color-bg-card: #1a2a1a;
    --color-bg-light: #f4f6f4;
    --color-green: #7dc43a;
    --color-green-dark: #4a8a1a;
    --color-white: #ffffff;
    --color-text-muted: #b0b8b0;
    --color-text-dark: #1a1a1a;
    --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --max-width: 1280px;
    --spacing-section: 5rem;
    --border-radius: 14px;
}

/* =========================================
   RESET & BASE
   ========================================= */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--color-white);
    background: var(--color-bg-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

:focus-visible {
    outline: 3px solid var(--color-green);
    outline-offset: 3px;
    border-radius: 2px;
}

ul, ol {
    list-style: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
    html { scroll-behavior: auto; }
}

/* =========================================
   UTILITIES
   ========================================= */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100%;
    left: 1rem;
    z-index: 9999;
    padding: 0.5rem 1rem;
    background: var(--color-green);
    color: #0a0f0a;
    font-weight: 700;
    font-size: 0.875rem;
    border-radius: 0 0 6px 6px;
    text-decoration: none;
    transition: top 0.15s ease;
}
.skip-link:focus {
    top: 0;
    outline: none;
}

/* =========================================
   LOGO (inside hero)
   ========================================= */
.site-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
}

.site-logo__img {
    width: 110px;
    height: auto;
    flex-shrink: 0;
}

.site-logo__wordmark {
    font-family: var(--font-display);
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    line-height: 1;
}

.store-badge-link {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.store-badge-link:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.store-badge-link__img {
    width: auto;
    display: block;
    max-width: none;
}

.store-badge-link__img--appstore {
    height: 46px;
}

.store-badge-link__img--googleplay {
    height: 62px;
}

/* =========================================
   HERO
   ========================================= */
.hero__masthead {
    position: relative;
    z-index: 1;
    padding-top: 1.5rem;
    padding-bottom: 0;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 3rem 0 3.5rem;
    min-height: 680px;
}

/* Background image + dark overlay */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 55%;
}

.hero__bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        rgba(5, 10, 5, 0.88) 0%,
        rgba(5, 10, 5, 0.72) 35%,
        rgba(5, 10, 5, 0.45) 60%,
        rgba(5, 10, 5, 0.25) 100%
    );
}

/* 3-column grid */
.hero__grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "left"
        "phones"
        "features";
    gap: 2rem;
    align-items: center;
}

/* Left column */
.hero__left {
    grid-area: left;
}

.hero__tagline {
    color: var(--color-green);
    font-family: var(--font-display);
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 0.25rem;
}

.hero__subtitle {
    color: var(--color-text-muted);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.hero__heading {
    font-family: var(--font-display);
    font-size: clamp(3rem, 10vw, 5rem);
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: -0.01em;
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.05em;
}

.hero__verb {
    display: block;
}

.hero__verb--1,
.hero__verb--2 {
    color: var(--color-white);
    font-weight: 700;
}

.hero__verb--3 {
    color: var(--color-green);
    font-weight: 800;
}

.hero__description {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.875rem;
    line-height: 1.75;
    max-width: 380px;
    margin-bottom: 2rem;
}

.hero__badges {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* Center column: phones */
.hero__phones {
    grid-area: phones;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 0.75rem;
    position: relative;
}

.hero__phone {
    max-width: 48%;
    position: relative;
}

.hero__phone--front {
    z-index: 2;
    transform: translateY(0);
}

.hero__phone--back {
    transform: translateY(24px);
    opacity: 0.88;
    z-index: 1;
}

/* Phone frame */
.phone-frame {
    background: #0f0f0f;
    border-radius: 40px;
    padding: 50px 9px 20px;
    box-shadow:
        0 0 0 1px #444,
        0 0 0 3px #111,
        0 32px 64px rgba(0, 0, 0, 0.75);
    position: relative;
}

/* Power button – right side */
.phone-frame::before {
    content: '';
    position: absolute;
    right: -4px;
    top: 110px;
    width: 4px;
    height: 54px;
    background: #2a2a2a;
    border-radius: 0 3px 3px 0;
}

/* Volume buttons – left side (two, via box-shadow) */
.phone-frame::after {
    content: '';
    position: absolute;
    left: -4px;
    top: 90px;
    width: 4px;
    height: 36px;
    background: #2a2a2a;
    border-radius: 3px 0 0 3px;
    box-shadow: 0 50px 0 #2a2a2a;
}

.phone-frame__notch {
    position: absolute;
    top: 14px;
    left: 50%;
    transform: translateX(-50%);
    width: 88px;
    height: 28px;
    background: #000;
    border-radius: 20px;
}

.phone-frame__screen {
    overflow: hidden;
    border-radius: 28px;
    background: #000;
    line-height: 0;
}

.phone-frame__screen img {
    width: 100%;
    height: auto;
    display: block;
}

.phone-frame__home-bar {
    margin: 10px auto 0;
    width: 90px;
    height: 4px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 2px;
}

/* Right column: feature list */
.hero__features {
    grid-area: features;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.hero__feature {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.8rem;
    line-height: 1.45;
    font-weight: 500;
}

.hero__feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    min-width: 20px;
    color: var(--color-green);
    margin-top: 0.05rem;
}

.hero__feature-icon svg {
    width: 100%;
    height: 100%;
}

/* =========================================
   FEATURES
   ========================================= */
.features {
    background: var(--color-bg-light);
    color: var(--color-text-dark);
    padding: var(--spacing-section) 0;
}

.features__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.feature-card {
    background: #ffffff;
    border-radius: var(--border-radius);
    padding: 1.625rem;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(125, 196, 58, 0.12);
    transform: translateY(-2px);
}

.feature-card__icon {
    width: 40px;
    height: 40px;
    align-self: center;
}

.feature-card__title {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    color: #111;
    line-height: 1.3;
    text-align: center;
}

.feature-card__description {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #555;
    flex: 1;
    text-align: center;
}

.feature-card__visual {
    border-radius: 12px;
    overflow: hidden;
    margin-top: auto;
    aspect-ratio: 3 / 4;
}

.feature-card__visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.feature-card__visual--photo {
    aspect-ratio: 1 / 1;
}

.feature-card__visual--photo picture {
    display: contents;
}

.feature-card__visual--photo img {
    object-position: center center;
}

.feature-card__visual--score img {
    object-fit: contain;
    object-position: center;
}

/* =========================================
   BOTTOM PANELS
   ========================================= */
.bottom-panels {
    background: #e8ebe8;
    padding: var(--spacing-section) 0;
}

.bottom-panels .container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.panel {
    background: var(--color-bg-card);
    border-radius: 18px;
    padding: 2rem;
    border: 1px solid rgba(125, 196, 58, 0.1);
    transition: border-color 0.2s ease;
    text-align: center;
}

.panel:hover {
    border-color: rgba(125, 196, 58, 0.22);
}

.panel--bg {
    background-image: var(--panel-bg);
    background-size: cover;
    background-position: 20% center;
    position: relative;
    overflow: hidden;
}

.panel--bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(10,15,10,0.88) 0%, rgba(10,15,10,0.75) 50%, rgba(10,15,10,0.65) 100%);
    border-radius: inherit;
    pointer-events: none;
}

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

.panel--bg .panel__title,
.panel--bg .panel__description {
    text-align: center;
}

.panel--right {
    text-align: right;
}

.panel__title {
    font-family: var(--font-display);
    color: var(--color-green);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.panel__description {
    color: var(--color-text-muted);
    font-size: 0.875rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

/* Comparison panel */
.comparison-types {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0;
    justify-content: center;
}

.comparison-type {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.comparison-type + .comparison-type::before {
    content: ' · ';
    margin: 0 0.4rem;
    opacity: 0.4;
}

.comparison-type--active {
    color: var(--color-text-muted);
}

.comparison__radar {
    margin: 0 -0.5rem 1rem;
}

.comparison__radar img {
    width: 100%;
    height: auto;
    display: block;
}

.comparison__legend {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.legend-item::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 2px;
}

.legend-item--you::before {
    background: var(--color-green);
}

.legend-item--target::before {
    background: transparent;
    border-bottom: 2px dashed rgba(255, 255, 255, 0.35);
}

/* Coach panel */
.coach-profile {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1.25rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.coach-profile__header {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    margin-bottom: 1rem;
    justify-content: center;
}

.coach-avatar {
    width: 44px;
    height: 44px;
    min-width: 44px;
    background: rgba(125, 196, 58, 0.12);
    border-radius: 50%;
    border: 1px solid rgba(125, 196, 58, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.coach-avatar svg {
    width: 100%;
    height: 100%;
}

.coach-profile__identity {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.coach-profile__name {
    font-weight: 700;
    color: var(--color-white);
    font-size: 0.95rem;
    margin: 0;
}

.coach-profile__index {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin: 0;
}

.coach-stats {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
    justify-content: center;
}

.coach-stat__value {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--color-white);
    line-height: 1.2;
}

.coach-stat__label {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.coach-share-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

.coach-share-item {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    color: var(--color-text-muted);
    font-size: 0.95rem;
}

.coach-share-icon {
    width: 18px;
    height: 18px;
    min-width: 18px;
    color: var(--color-green);
}

.coach-cta {
    display: block;
    background: var(--color-green);
    color: #0a0f0a;
    font-family: var(--font-body);
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.875rem 1.5rem;
    border-radius: 8px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-align: center;
    transition: background 0.2s ease, transform 0.15s ease;
    width: 100%;
}

.coach-cta:hover {
    background: #6ab530;
    transform: translateY(-1px);
}

/* Tournaments panel */

.tournaments__list {
    display: flex;
    flex-direction: column;
    gap: 0.625rem;
    align-items: flex-start;
    width: 100%;
    max-width: 220px;
    margin: 5rem 0 0 auto;
}

.tournaments__item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.tournaments__item-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    color: #fff;
    background: var(--color-green);
    border-radius: 7px;
    padding: 7px;
    box-sizing: content-box;
}

/* =========================================
   FOOTER
   ========================================= */
.site-footer {
    background: #050a05;
    padding: 2rem 0;
    border-top: 1px solid rgba(125, 196, 58, 0.07);
}

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

.footer-copyright {
    color: var(--color-text-muted);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--color-text-muted);
    font-size: 0.8rem;
    transition: color 0.2s;
}

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

/* =========================================
   RESPONSIVE — tablet ≥ 768px
   ========================================= */
@media (min-width: 768px) {
    .hero__grid {
        grid-template-columns: 1fr 1fr;
        grid-template-areas:
            "left phones"
            "features features";
        gap: 2rem 1.5rem;
    }

    .hero__features {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.625rem 2rem;
    }

    .hero__feature {
        flex: 1 1 calc(50% - 2rem);
    }

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

    .bottom-panels .container {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

/* =========================================
   RESPONSIVE — desktop ≥ 1100px
   ========================================= */
@media (min-width: 1100px) {
    .hero__grid {
        grid-template-columns: 2fr 2fr 1.5fr;
        grid-template-areas: "left phones features";
        gap: 2rem;
        align-items: center;
    }

    .hero__features {
        flex-direction: column;
        gap: 0.875rem;
    }

    .hero__feature {
        flex: none;
    }

    .features__grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .container {
        padding: 0 2rem;
    }
}
