/* Design tokens: shared colors, spacing, radii, and layout constraints. */
:root {
    --bg: #070b12;
    --bg-soft: #101827;
    --surface: rgba(15, 23, 36, 0.82);
    --surface-soft: rgba(255, 255, 255, 0.05);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --text: #f4f7fb;
    --muted: #b7c3d6;
    --line: rgba(255, 255, 255, 0.12);
    --accent: #ff5a36;
    --accent-strong: #ff7a2f;
    --accent-soft: #f5b54a;
    --shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
    --radius-lg: 28px;
    --radius-md: 18px;
    --radius-sm: 12px;
    --container: min(1120px, calc(100vw - 2rem));
}

/* Base reset: establish predictable box sizing and spacing behavior. */
* {
    box-sizing: border-box;
}

/* Document behavior: keep smooth anchor scrolling for the site experience. */
html {
    scroll-behavior: smooth;
}

/* Global page styling: shared background, typography, and text color. */
body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top, rgba(255, 90, 54, 0.16), transparent 34%),
        linear-gradient(180deg, #0a0f18 0%, #070b12 100%);
    color: var(--text);
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Media defaults: make images responsive by default across all pages. */
img {
    display: block;
    max-width: 100%;
}

/* Link defaults: allow links to inherit the surrounding text color. */
a {
    color: inherit;
}

/* Form defaults: ensure inputs and buttons use the same font as the page. */
button,
input,
textarea {
    font: inherit;
}

/* Accessibility helper: visible keyboard shortcut to skip straight to main content. */
.skip-link {
    position: absolute;
    left: 1rem;
    top: -3rem;
    z-index: 200;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    text-decoration: none;
}

.skip-link:focus {
    top: 1rem;
}

/* Shared layout helper: center content and constrain line length/site width. */
.container {
    width: var(--container);
    margin: 0 auto;
}

/* Header shell: sticky blurred navigation bar that stays visible while scrolling. */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid var(--line);
    background: rgba(6, 10, 18, 0.84);
    backdrop-filter: blur(14px);
}

/* Header layout: align the brand, nav, and button on one responsive row. */
.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 5rem;
    padding: 0.75rem 0;
}

/* Brand link: combines the logo mark and the site name into one clickable unit. */
.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    text-decoration: none;
}

/* Brand image sizing: keep the logo mark compact and aligned. */
.brand__mark {
    width: 2.8rem;
    height: 2.8rem;
    object-fit: contain;
}

/* Display typography: use the Bebas Neue font for titles and labels. */
.brand__text,
.eyebrow,
.section-heading h1,
.section-heading h2,
.card h3,
.footer__title,
.hero__copy h1 {
    font-family: "Bebas Neue", sans-serif;
    letter-spacing: 0.05em;
}

/* Brand title sizing: slightly larger to establish the site identity quickly. */
.brand__text {
    font-size: 1.55rem;
}

/* Primary navigation list: inline links that can wrap on smaller screens. */
.nav-list {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Navigation links: pill-shaped controls with hover and focus feedback. */
.nav-list a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 1rem;
    border-radius: 999px;
    color: var(--muted);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

/* Navigation interaction states: elevate clarity on hover and keyboard focus. */
.nav-list a:hover,
.nav-list a:focus-visible {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    transform: translateY(-1px);
}

/* Current page indicator: highlight the active route in the navigation. */
.nav-list a[aria-current="page"] {
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
}

/* Shared buttons: used for calls to action and form submission across the site. */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.9rem;
    padding: 0.85rem 1.35rem;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--accent), var(--accent-strong));
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

/* Button interaction states: lift and brighten buttons when users engage with them. */
.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(255, 90, 54, 0.24);
    filter: brightness(1.05);
}

/* Secondary button variant: transparent button for lower-priority actions. */
.button--ghost {
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.03);
}

/* Compact button variant: smaller button used in the sticky header. */
.button--small {
    min-height: 2.5rem;
    padding: 0.7rem 1.1rem;
}

/* Main element display: explicit block layout for compatibility and clarity. */
main {
    display: block;
}

/* Hero wrapper: establishes positioning and clipping for background imagery. */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

/* Hero background image layer: each page swaps the image via a modifier class. */
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-position: center;
    background-size: cover;
    z-index: -2;
}

/* Home hero image: homepage-specific visual backdrop. */
.hero--home::before {
    background-image: url("images/images.jpeg-12.jpg");
}

/* Hero overlay: darkens the photo so the text and cards remain readable. */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        linear-gradient(115deg, rgba(5, 9, 16, 0.96), rgba(5, 9, 16, 0.6) 45%, rgba(5, 9, 16, 0.9)),
        linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45));
}

/* Hero grid layout: creates the two-column structure used for copy and side panels. */
.hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(18rem, 0.8fr);
    gap: 2rem;
    align-items: center;
    min-height: min(84vh, 52rem);
    padding: clamp(4.5rem, 8vw, 7.5rem) 0;
}

/* Hero copy width: prevents the main introduction from stretching too wide. */
.hero__copy {
    max-width: 41rem;
}

/* Hero headline: large display title for strong first impression. */
.hero__copy h1 {
    margin: 0 0 1rem;
    font-size: clamp(3rem, 7vw, 6rem);
    line-height: 0.95;
}

/* Hero body copy: softer text color to separate supporting text from the headline. */
.hero__copy p {
    margin: 0;
    color: var(--muted);
    font-size: 1.08rem;
}

/* Hero side panel: glass-like card used for quick facts or page summaries. */
.hero__panel {
    justify-self: end;
    width: min(100%, 28rem);
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.05));
    box-shadow: var(--shadow);
    backdrop-filter: blur(10px);
}

/* Hero panel logo: keeps the wordmark visually balanced inside the side card. */
.hero__panel-logo {
    width: min(100%, 18rem);
    margin: 0 0 1rem;
}

/* Shared muted text styling: used for notes, card copy, and footer metadata. */
.hero__note,
.card-copy,
.footer__meta {
    margin: 0;
    color: var(--muted);
}

/* Action row: wraps buttons gracefully when there is limited horizontal space. */
.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.5rem;
}

/* Stats list: stacked rows for short highlight labels and values. */
.stat-list {
    display: grid;
    gap: 0.25rem;
}

/* Single stat row: label and value displayed as a justified pair. */
.stat {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
}

/* First stat cleanup: avoid a top border on the first row. */
.stat:first-child {
    border-top: 0;
}

/* Shared vertical section spacing: controls the rhythm down the full site. */
.section {
    padding: clamp(3rem, 6vw, 5.5rem) 0;
}

/* Contrast section variant: subtle background separation between content bands. */
.section--contrast {
    border-block: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.025);
}

/* Section heading wrapper: consistent spacing for eyebrow, title, and intro copy. */
.section-heading {
    display: grid;
    gap: 0.7rem;
    max-width: 42rem;
    margin-bottom: 2rem;
}

/* Compact section heading variant: used inside cards and side panels. */
.section-heading--compact {
    margin-bottom: 1rem;
}

/* Eyebrow label: small uppercase marker above major headings. */
.eyebrow {
    margin: 0;
    color: var(--accent-soft);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
}

/* Section titles: large responsive headings shared across pages. */
.section-heading h1,
.section-heading h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 0.98;
}

/* Section intro text: softer copy that supports the main heading. */
.section-heading p {
    margin: 0;
    color: var(--muted);
}

/* Shared grid containers: used for platform cards and feature cards. */
.platform-grid,
.feature-grid {
    display: grid;
    gap: 1rem;
}

/* Platform cards grid: flexible columns sized for store badges. */
.platform-grid {
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

/* Feature cards grid: slightly wider cards for short explanatory text. */
.feature-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* Shared card surface: translucent panel style used throughout the site. */
.card {
    padding: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: linear-gradient(180deg, var(--surface-strong), var(--surface-soft));
    box-shadow: var(--shadow);
}

/* Card titles: bold display labels inside panels and figures. */
.card h3 {
    margin: 0 0 0.65rem;
    font-size: 1.45rem;
}

/* Card body text: muted for readability and visual hierarchy. */
.card p {
    margin: 0;
    color: var(--muted);
}

/* Paragraph spacing helpers: add separation when cards contain multiple paragraphs. */
.feature-card p + p,
.content-card p + p,
.review-card p + p {
    margin-top: 1rem;
}

/* Platform cards: center the badge and short description vertically and horizontally. */
.platform-card {
    align-content: center;
    justify-items: center;
    min-height: 11rem;
    text-align: center;
    text-decoration: none;
}

/* Platform card images: keep download badges legible and neatly framed. */
.platform-card img {
    width: min(100%, 11rem);
    height: auto;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.96);
    padding: 0.45rem;
}

/* Platform labels: short display text beneath each store badge. */
.platform-card span {
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.2rem;
    letter-spacing: 0.06em;
}

/* Showcase layout: two-column arrangement for the slider and supporting text card. */
.showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 1.25rem;
    align-items: stretch;
}

/* Slider frame: styled container that gives the rotating images a dedicated stage. */
.slider-frame {
    padding: 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.04);
    box-shadow: var(--shadow);
}

/* Slider image: fixed aspect ratio so the carousel remains stable as images swap. */
.slider-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: calc(var(--radius-lg) - 10px);
}

/* Checklist list: compact bullet list used for quick benefits or summaries. */
.checklist {
    display: grid;
    gap: 0.65rem;
    margin: 1.25rem 0 0;
    padding-left: 1.2rem;
    color: var(--muted);
}

/* Footer wrapper: dark closing band that anchors the bottom of each page. */
.site-footer {
    border-top: 1px solid var(--line);
    background: rgba(4, 8, 14, 0.92);
}

/* Footer layout: supports stacked wrapping as screen width narrows. */
.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    padding: 2rem 0 2.5rem;
}

/* Footer title: compact display text for the site name. */
.footer__title {
    margin: 0;
    font-size: 1.35rem;
}

/* Footer nav: secondary link row for repeat navigation. */
.footer__nav {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Footer links: understated by default, clearer on hover/focus. */
.footer__nav a {
    color: var(--muted);
    text-decoration: none;
}

/* Footer link interaction states: raise contrast when the user hovers or tabs in. */
.footer__nav a:hover,
.footer__nav a:focus-visible {
    color: var(--text);
}

/* Scroll animation system: only hide reveal elements when JavaScript has enabled the feature. */
.has-scroll-animations .reveal {
    --reveal-distance: 56px;
    --reveal-delay: 0ms;
    opacity: 0;
    transform: translate3d(0, 0, 0);
    transition:
        opacity 700ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay);
    will-change: opacity, transform;
}

/* Reveal direction: move upward into place from below the final resting position. */
.has-scroll-animations .reveal[data-direction="up"] {
    transform: translate3d(0, var(--reveal-distance), 0);
}

/* Reveal direction: move downward into place from above the final resting position. */
.has-scroll-animations .reveal[data-direction="down"] {
    transform: translate3d(0, calc(var(--reveal-distance) * -1), 0);
}

/* Reveal direction: move rightward into place from the left side. */
.has-scroll-animations .reveal[data-direction="left"] {
    transform: translate3d(calc(var(--reveal-distance) * -1), 0, 0);
}

/* Reveal direction: move leftward into place from the right side. */
.has-scroll-animations .reveal[data-direction="right"] {
    transform: translate3d(var(--reveal-distance), 0, 0);
}

/* Optional reveal direction: subtle zoom-in effect for future use. */
.has-scroll-animations .reveal[data-direction="zoom"] {
    transform: scale(0.92);
}

/* Visible reveal state: restore opacity and transform when the element enters view. */
.has-scroll-animations .reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

/* Motion preference support: disable reveal movement for users who prefer less motion. */
@media (prefers-reduced-motion: reduce) {
    .has-scroll-animations .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* Large tablet layout: stack big two-column sections into one column when needed. */
@media (max-width: 980px) {
    .hero__layout,
    .showcase {
        grid-template-columns: 1fr;
    }

    .hero__panel {
        justify-self: stretch;
    }
}

/* Tablet layout: stack header controls vertically and center the nav items. */
@media (max-width: 760px) {
    .site-header__inner {
        flex-direction: column;
        align-items: stretch;
    }

    .brand {
        justify-content: center;
    }

    .nav-list {
        justify-content: center;
    }

    .button--small {
        width: 100%;
    }
}

/* Phone layout: simplify section padding and make buttons/cards easier to tap. */
@media (max-width: 560px) {
    .section {
        padding: 2.7rem 0;
    }

    .nav-list a,
    .button {
        width: 100%;
    }

    .platform-grid,
    .feature-grid {
        grid-template-columns: 1fr;
    }

    .card,
    .hero__panel,
    .slider-frame {
        padding: 1.15rem;
    }
}
