@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Geist:wght@400;500;600;700;800&display=swap');

:root {
    color-scheme: light dark;
    --accent: #e8651a;
    --accent-ink: #210b02;
    --bg: #fafafa;
    --bg-soft: #f5f5f3;
    --surface: #ffffff;
    --ink: #171717;
    --muted: #6b6b6b;
    --quiet: #9a968f;
    --line: rgba(23, 23, 23, 0.1);
    --line-strong: rgba(23, 23, 23, 0.18);
    --shadow: 0 32px 90px rgba(23, 23, 23, 0.12);
    --max: 1180px;
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    background: var(--bg);
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: "Geist", system-ui, sans-serif;
    line-height: 1.5;
    overflow-x: hidden;
    text-rendering: optimizeLegibility;
}

body::selection {
    background: rgba(232, 101, 26, 0.2);
}

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

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

h1,
h2,
h3,
p {
    margin-top: 0;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 40;
    transform: translateY(-140%);
    border-radius: 999px;
    padding: 10px 14px;
    background: var(--ink);
    color: var(--bg);
    font-weight: 700;
}

.skip-link:focus {
    transform: translateY(0);
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 30;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(10, 10, 10, 0.42);
    color: #ffffff;
    backdrop-filter: blur(18px);
}

.nav,
.section-inner,
.footer-inner {
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
}

.nav,
.footer-inner {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand,
.nav-links,
.actions,
.footer-links,
.store-actions {
    display: flex;
    align-items: center;
}

.brand {
    gap: 10px;
    font-size: 15px;
    font-weight: 760;
    letter-spacing: 0;
}

.brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: contain;
}

.nav-links {
    gap: 26px;
    font-size: 13px;
    font-weight: 720;
    color: rgba(255, 255, 255, 0.72);
}

.nav-links a:not(.nav-cta):hover,
.footer-links a:hover {
    color: currentColor;
    opacity: 1;
}

.nav-cta,
.button,
.store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 760;
    white-space: nowrap;
    transition: transform 260ms ease, border-color 260ms ease, background 260ms ease, opacity 260ms ease;
}

.nav-cta {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta:hover,
.button:hover,
.store-button:hover {
    transform: translateY(-1px);
}

.hero {
    position: relative;
    isolation: isolate;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #ffffff;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #0a0a0a;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 58%;
    filter: saturate(0.94) contrast(1.04) brightness(0.98);
    transform: scale(1.03);
    animation: cinematic-drift 18s ease-in-out infinite alternate;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero::before {
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.12) 46%, rgba(5, 5, 5, 0.68)),
        linear-gradient(90deg, rgba(5, 5, 5, 0.82), rgba(5, 5, 5, 0.28) 48%, rgba(5, 5, 5, 0.12) 100%);
}

.hero::after {
    inset: auto 0 0;
    height: 18svh;
    background: linear-gradient(180deg, rgba(250, 250, 250, 0), var(--bg));
}

.hero-copy {
    position: relative;
    z-index: 2;
    width: min(var(--max), calc(100% - 40px));
    margin: 0 auto;
    padding: 168px 0 max(72px, 12svh);
}

.eyebrow,
.section-kicker {
    margin-bottom: 16px;
    color: var(--accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: rgba(255, 178, 122, 0.94);
}

h1,
h2 {
    font-family: "Cormorant Garamond", Georgia, serif;
    font-weight: 500;
    letter-spacing: 0;
}

h1 {
    max-width: 840px;
    margin-bottom: 24px;
    font-size: clamp(72px, 10vw, 150px);
    line-height: 0.88;
}

.hero-lead {
    max-width: 660px;
    margin-bottom: 34px;
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(19px, 2vw, 25px);
    line-height: 1.35;
}

.actions,
.store-actions {
    flex-wrap: wrap;
    gap: 14px;
}

.button {
    min-height: 54px;
    min-width: 190px;
    padding: 0 24px;
    border: 1px solid transparent;
    font-size: 14px;
}

.button.primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.button.secondary {
    border-color: rgba(255, 255, 255, 0.28);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.scroll-cue {
    position: absolute;
    z-index: 2;
    right: max(20px, calc((100vw - var(--max)) / 2));
    bottom: 34px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    writing-mode: vertical-rl;
}

.section {
    padding: clamp(86px, 12vw, 164px) 0;
}

.section:nth-of-type(odd) {
    background: var(--bg-soft);
}

.section-head {
    max-width: 780px;
    margin-bottom: clamp(40px, 7vw, 80px);
}

.section-head.compact {
    max-width: 700px;
}

h2 {
    max-width: 880px;
    margin-bottom: 20px;
    font-size: clamp(42px, 6.2vw, 88px);
    line-height: 0.96;
}

.section-head p,
.section-lead,
.editorial-copy p,
.image-copy p {
    max-width: 660px;
    color: var(--muted);
    font-size: clamp(17px, 1.7vw, 21px);
    line-height: 1.55;
}

.editorial-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 1.1fr);
    gap: clamp(32px, 7vw, 100px);
    align-items: start;
}

.editorial-grid .section-kicker {
    margin-top: 10px;
}

.editorial-copy {
    max-width: 720px;
    padding-top: 10px;
}

.editorial-copy p:not(:last-child) {
    margin-bottom: 24px;
}

.phone-stage {
    position: relative;
    min-height: 660px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(18px, 3vw, 34px);
    align-items: center;
}

.phone,
.motion-phone {
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.015)),
        #090909;
    color: #f8f5ef;
    box-shadow: 0 36px 110px rgba(0, 0, 0, 0.28);
}

.phone {
    min-height: 520px;
    padding: 22px;
    transform: translateY(0) rotate(0deg);
    animation: phone-float 8s ease-in-out infinite;
}

.phone-home {
    margin-top: 74px;
}

.phone-discover {
    min-height: 620px;
    animation-delay: -1.6s;
}

.phone-profile {
    margin-bottom: 78px;
    animation-delay: -3.2s;
}

.phone-bar {
    width: 72px;
    height: 4px;
    margin: 0 auto 26px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.22);
}

.screen-label {
    width: fit-content;
    margin-bottom: 18px;
    border: 1px solid rgba(232, 101, 26, 0.54);
    border-radius: 999px;
    padding: 6px 12px;
    color: #ffb27a;
    font-size: 12px;
    font-weight: 760;
}

.phone h3,
.motion-phone h3 {
    margin-bottom: 18px;
    font-size: 28px;
    line-height: 1.05;
}

.session-card,
.venue-pill,
.coordination-step {
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.session-card {
    display: grid;
    gap: 5px;
    margin-bottom: 12px;
    padding: 16px;
}

.session-card.active {
    border-color: rgba(232, 101, 26, 0.52);
}

.session-card span,
.venue-pill,
.coordination-step {
    font-weight: 760;
}

.session-card small {
    color: rgba(255, 255, 255, 0.58);
}

.map-surface {
    position: relative;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
        rgba(255, 255, 255, 0.05);
    background-size: 72px 72px;
}

.map-surface span {
    position: absolute;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 10px rgba(232, 101, 26, 0.14);
}

.map-surface span:nth-child(1) {
    left: 24%;
    top: 30%;
}

.map-surface span:nth-child(2) {
    right: 26%;
    top: 44%;
}

.map-surface span:nth-child(3) {
    left: 44%;
    bottom: 24%;
}

.venue-pill {
    margin-top: 14px;
    padding: 14px 16px;
}

.trust-ring {
    width: 190px;
    height: 190px;
    margin: 40px auto 36px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(232, 101, 26, 0.4);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(232, 101, 26, 0.18), rgba(232, 101, 26, 0.02) 68%);
}

.trust-ring span {
    color: #ffb27a;
    font-weight: 780;
}

.profile-lines {
    display: grid;
    gap: 12px;
}

.profile-lines i {
    height: 44px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
}

.split {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.82fr);
    gap: clamp(40px, 8vw, 110px);
    align-items: center;
}

.split.reverse {
    grid-template-columns: minmax(340px, 0.75fr) minmax(0, 0.95fr);
}

.trust-list {
    display: grid;
    gap: 14px;
}

.trust-list div {
    display: grid;
    grid-template-columns: minmax(150px, 0.45fr) 1fr;
    gap: 18px;
    border-top: 1px solid var(--line-strong);
    padding: 18px 0 4px;
}

.trust-list strong {
    font-size: 18px;
}

.trust-list span {
    color: var(--muted);
}

.image-section {
    position: relative;
    min-height: 92svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    color: #ffffff;
    background: #080808;
}

.image-panel {
    position: absolute;
    inset: 0;
}

.image-panel img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.88) brightness(0.74);
}

.image-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(5, 5, 5, 0.18), rgba(5, 5, 5, 0.76)),
        linear-gradient(90deg, rgba(5, 5, 5, 0.66), rgba(5, 5, 5, 0.08) 62%);
}

.image-copy {
    position: relative;
    z-index: 1;
    padding: clamp(80px, 12vw, 150px) 0;
}

.image-copy h2 {
    color: #ffffff;
}

.image-copy p {
    color: rgba(255, 255, 255, 0.78);
}

.sport-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    border: 1px solid var(--line);
    background: var(--line);
}

.sport-grid article {
    min-height: 240px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.88)),
        url("opuntea-hero-v2.png") center / cover;
}

.sport-grid span {
    color: var(--quiet);
    font-size: 13px;
    font-weight: 760;
}

.sport-grid strong {
    max-width: 220px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(34px, 4vw, 54px);
    font-weight: 500;
    line-height: 0.94;
}

.motion-phone {
    min-height: 560px;
    padding: 24px;
    display: grid;
    align-content: center;
    gap: 14px;
}

.coordination-step {
    padding: 18px;
    animation: step-glow 8s ease-in-out infinite;
}

.step-two {
    animation-delay: -2s;
}

.step-three {
    animation-delay: -4s;
}

.step-four {
    animation-delay: -6s;
}

.download-section {
    padding: clamp(96px, 14vw, 180px) 0;
    background: #090909;
    color: #f7f3ec;
}

.download-inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 28px;
    align-items: end;
}

.download-inner h2 {
    margin-bottom: 0;
    color: #ffffff;
}

.store-button {
    min-width: 190px;
    min-height: 64px;
    display: grid;
    gap: 2px;
    justify-items: start;
    border: 1px solid rgba(255, 255, 255, 0.18);
    padding: 0 22px;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.store-button span {
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    font-weight: 700;
}

.store-button strong {
    font-size: 17px;
}

.site-footer {
    border-top: 1px solid var(--line);
    background: var(--bg);
}

.footer-inner {
    min-height: 128px;
    color: var(--muted);
}

.footer-brand {
    color: var(--ink);
}

.footer-links {
    gap: 24px;
    flex-wrap: wrap;
    font-size: 13px;
    font-weight: 720;
}

.footer-inner p {
    margin: 0;
    font-size: 13px;
}

.reveal {
    animation: reveal-up 900ms ease both;
}

@keyframes cinematic-drift {
    from {
        transform: scale(1.03) translate3d(0, 0, 0);
    }

    to {
        transform: scale(1.08) translate3d(-1.2%, -0.8%, 0);
    }
}

@keyframes reveal-up {
    from {
        opacity: 0;
        transform: translateY(18px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes phone-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-12px);
    }
}

@keyframes step-glow {

    0%,
    100% {
        border-color: rgba(255, 255, 255, 0.12);
        background: rgba(255, 255, 255, 0.08);
    }

    45%,
    55% {
        border-color: rgba(232, 101, 26, 0.5);
        background: rgba(232, 101, 26, 0.16);
    }
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #090909;
        --bg-soft: #0f0f0f;
        --surface: #161616;
        --ink: #f7f3ec;
        --muted: #aaa39a;
        --quiet: #77716a;
        --line: rgba(247, 243, 236, 0.12);
        --line-strong: rgba(247, 243, 236, 0.22);
        --shadow: 0 32px 90px rgba(0, 0, 0, 0.38);
    }

    .sport-grid article {
        background:
            linear-gradient(180deg, rgba(9, 9, 9, 0.44), rgba(9, 9, 9, 0.78)),
            url("opuntea-hero-v2.png") center / cover;
    }
}

@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 1ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 1ms !important;
    }
}

@media (max-width: 980px) {

    .phone-stage,
    .split,
    .split.reverse,
    .editorial-grid,
    .download-inner {
        grid-template-columns: 1fr;
    }

    .phone-stage {
        min-height: auto;
    }

    .phone,
    .phone-home,
    .phone-profile {
        margin: 0;
    }

    .phone-profile {
        display: none;
    }

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

@media (max-width: 760px) {

    .nav,
    .section-inner,
    .footer-inner,
    .hero-copy {
        width: min(var(--max), calc(100% - 24px));
    }

    .nav {
        min-height: 62px;
    }

    .nav-links {
        gap: 14px;
    }

    .nav-links a:not(.nav-cta) {
        display: none;
    }

    .nav-cta {
        min-height: 38px;
        padding: 0 14px;
    }

    .hero {
        min-height: 92svh;
    }

    .hero-media img {
        object-position: 62% center;
    }

    .scroll-cue {
        display: none;
    }

    .hero-copy {
        padding: 132px 0 72px;
    }

    h1 {
        font-size: clamp(56px, 18vw, 86px);
    }

    h2 {
        font-size: clamp(38px, 11vw, 58px);
    }

    .hero-lead,
    .section-head p,
    .section-lead,
    .editorial-copy p,
    .image-copy p {
        font-size: 17px;
    }

    .actions,
    .button,
    .store-actions,
    .store-button {
        width: 100%;
    }

    .button,
    .store-button {
        min-width: 0;
    }

    .section {
        padding: 72px 0;
    }

    .phone-stage {
        gap: 16px;
    }

    .phone {
        min-height: 440px;
        border-radius: 28px;
        padding: 18px;
    }

    .phone-discover {
        display: none;
    }

    .trust-list div {
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .image-section {
        min-height: 82svh;
    }

    .image-panel img {
        object-position: 62% center;
    }

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

    .sport-grid article {
        min-height: 178px;
    }

    .motion-phone {
        min-height: 430px;
        border-radius: 28px;
    }

    .footer-inner {
        min-height: auto;
        align-items: flex-start;
        flex-direction: column;
        padding: 28px 0 calc(28px + env(safe-area-inset-bottom));
    }
}

@media (max-width: 380px) {
    .brand span {
        max-width: 112px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .hero-copy {
        padding-top: 112px;
    }
}
