/* ============================================================
   RepXP — Design System v2
   Dark, cinematic, GSAP-driven. Brand: electric blue + ember orange.
   ============================================================ */

:root {
    /* Brand Colors */
    --repxp-blue: #1E8FFF;
    --repxp-orange: #E67A15;
    --repxp-charcoal: #1C1F24;

    /* Backgrounds */
    --repxp-dark-bg: #0F1115;
    --repxp-surface: #1A1D23;
    --repxp-light-bg: #F4F6F8;

    /* Text */
    --repxp-text-primary: #FFFFFF;
    --repxp-text-secondary: #B0B6C3;

    /* States */
    --repxp-success: #2ECC71;
    --repxp-warning: #F5A623;
    --repxp-error: #E74C3C;

    /* UI */
    --repxp-divider: #2A2E36;

    /* Gradients */
    --gradient-blue-orange: linear-gradient(135deg, var(--repxp-blue), var(--repxp-orange));

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 48px;
    --spacing-2xl: 80px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 22px;
    --radius-xl: 32px;

    /* Shadows */
    --shadow-glow-blue: 0 0 40px rgba(30, 143, 255, 0.3);
    --shadow-glow-orange: 0 0 40px rgba(230, 122, 21, 0.3);
    --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.4);

    /* v2 tokens */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, sans-serif;
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* Screen Reader Only */
.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;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: var(--font-sans);
    background-color: transparent;
    color: var(--repxp-text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Dark base with soft blue/orange ambient spots — shared across every page */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(900px 600px at 12% -5%, rgba(30, 143, 255, 0.13) 0%, transparent 60%),
        radial-gradient(800px 600px at 92% 10%, rgba(230, 122, 21, 0.09) 0%, transparent 60%),
        radial-gradient(1000px 800px at 50% 115%, rgba(30, 143, 255, 0.07) 0%, transparent 60%),
        var(--repxp-dark-bg);
    pointer-events: none;
}

::selection {
    background: rgba(30, 143, 255, 0.4);
    color: #fff;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    color: var(--repxp-text-secondary);
    font-size: 1.1rem;
}

a {
    color: var(--repxp-blue);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--repxp-orange);
}

img {
    max-width: 100%;
}

/* Shared accent text — solid brand orange (no gradients in type) */
.gradient-text {
    color: var(--repxp-orange);
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.35s var(--ease-out), background 0.3s ease, box-shadow 0.3s ease, color 0.3s ease;
    border: none;
    text-decoration: none;
}

.btn-primary {
    background: var(--repxp-blue);
    color: white;
    box-shadow: var(--shadow-glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    background: #3a9fff;
    box-shadow: 0 0 60px rgba(30, 143, 255, 0.5);
    color: white;
}

.btn-secondary {
    background: var(--repxp-surface);
    color: var(--repxp-text-primary);
    border: 1px solid var(--repxp-divider);
    height: 54px;
    padding: 0 var(--spacing-lg);
}

.btn-secondary:hover {
    background: var(--repxp-divider);
    color: white;
}

.btn-app-store {
    background: white;
    color: #000;
    padding: var(--spacing-sm) var(--spacing-md);
}

.btn-app-store img {
    height: 40px;
}

/* Card primitive */
.glass {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

/* ==================== SCROLL PROGRESS ==================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--repxp-orange);
    transform-origin: 0 50%;
    transform: scaleX(0);
    z-index: 2000;
    pointer-events: none;
}

/* ==================== PRELOADER (home) ==================== */
.preloader {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 28px;
    background: var(--repxp-dark-bg);
}

.preloader-logo {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    overflow: hidden;
}

.preloader-logo img {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.preloader-bar {
    width: 180px;
    height: 2px;
    background: var(--repxp-divider);
    border-radius: 2px;
    overflow: hidden;
}

.preloader-bar-fill {
    width: 100%;
    height: 100%;
    background: var(--repxp-orange);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* ==================== NAVIGATION ==================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 14px 0;
    transition: padding 0.4s var(--ease-out);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 18px;
    border-radius: 18px;
    border: 1px solid transparent;
    transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled .container {
    background: rgba(15, 17, 21, 0.72);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border-color: var(--glass-border);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--repxp-text-primary);
}

.navbar-brand:hover {
    color: var(--repxp-text-primary);
}

.navbar-brand img {
    height: 24px;
    width: auto;
    object-fit: contain;
}

.navbar-nav {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
}

.navbar-nav a {
    color: var(--repxp-text-secondary);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.navbar-nav a:hover {
    color: var(--repxp-text-primary);
}

.navbar-nav .btn {
    color: white;
}

.navbar-nav .btn:hover {
    color: white;
}

.nav-app-store-badge {
    display: inline-block;
    transition: transform 0.3s var(--ease-out), opacity 0.3s ease;
}

.nav-app-store-badge:hover {
    transform: scale(1.05);
}

.nav-app-store-badge img {
    height: 32px;
    width: auto;
    display: block;
}

.navbar-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--repxp-text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* ==================== HERO SECTION ==================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: calc(var(--spacing-2xl) + 40px) 0 var(--spacing-xl);
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

/* Technical line-art backdrop: concentric "weight plate" rings centered
   behind the device mockups + a dot matrix anchoring the copy. */
.hero-rings {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1000px;
    height: 1000px;
    margin: -500px 0 0 -500px;
    border-radius: 50%;
    background: repeating-radial-gradient(
        circle at center,
        transparent 0 92px,
        rgba(255, 255, 255, 0.05) 92px 93px
    );
    -webkit-mask-image: radial-gradient(circle, black 30%, transparent 72%);
    mask-image: radial-gradient(circle, black 30%, transparent 72%);
    will-change: transform;
    pointer-events: none;
    z-index: 0;
}

.hero-rings::after {
    content: '';
    position: absolute;
    inset: 184px;
    border: 1px dashed rgba(230, 122, 21, 0.28);
    border-radius: 50%;
}

.hero-dots {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46%;
    height: 62%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.10) 1px, transparent 1.5px);
    background-size: 26px 26px;
    -webkit-mask-image: radial-gradient(ellipse at 0% 100%, black 0%, transparent 68%);
    mask-image: radial-gradient(ellipse at 0% 100%, black 0%, transparent 68%);
}

.hero .container {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: var(--spacing-xl);
    align-items: center;
    position: relative;
    z-index: 1;
    width: 100%;
}

.hero-content {
    max-width: 620px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--glass-border);
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--repxp-text-secondary);
    margin-bottom: var(--spacing-lg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.hero-badge .badge-icon {
    color: var(--repxp-orange);
}

.hero h1 {
    font-size: clamp(2.8rem, 5.6vw, 4.6rem);
    font-weight: 800;
    margin-bottom: var(--spacing-lg);
}

.hero h1 .split-line {
    display: block;
    overflow: hidden;
}

.hero-positioning {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--repxp-text-primary);
    margin-bottom: var(--spacing-md);
}

.hero-description {
    font-size: 1.2rem;
    margin-bottom: var(--spacing-md);
    max-width: 480px;
}

.hero-description strong {
    color: var(--repxp-text-primary);
}

.hero-tagline {
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--repxp-text-secondary);
    margin-bottom: var(--spacing-xl);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    align-items: center;
}

.app-store-badge {
    display: inline-block;
    transition: transform 0.4s var(--ease-out), opacity 0.3s, filter 0.3s ease;
    will-change: transform;
}

.app-store-badge:hover {
    transform: scale(1.04);
    filter: drop-shadow(0 8px 30px rgba(30, 143, 255, 0.35));
}

.app-store-badge img {
    height: 54px;
    width: auto;
    display: block;
}

.hero-note {
    margin-top: var(--spacing-md);
    color: var(--repxp-text-secondary);
    font-size: 0.9rem;
}

.hero-note i {
    color: var(--repxp-success);
    margin-right: 6px;
}

.cta-note {
    margin-top: var(--spacing-md);
    color: var(--repxp-text-secondary);
    font-size: 0.95rem;
}

.cta-note i {
    color: var(--repxp-success);
    margin-right: 6px;
}

/* Hero device mockups */
.hero-image {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: var(--spacing-xl);
}

.hero-phone-carousel {
    position: relative;
    z-index: 1;
    width: 290px;
    height: 593px; /* device frame aspect ratio (1350/2760) */
    filter: drop-shadow(0 30px 70px rgba(0, 0, 0, 0.55));
    will-change: transform;
}

.device-frame-container {
    position: relative;
    width: 100%;
    height: 100%;
}

/* iPhone frame: 1350x2760, screen at x=72,y=69 size 1206x2622 */
.screenshot-container {
    position: absolute;
    left: 5.33%;
    top: 2.5%;
    width: 89.33%;
    height: 95%;
    overflow: hidden;
    border-radius: 27px;
}

.hero-phone {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-phone.active {
    opacity: 1;
}

.device-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Watch mockup */
.hero-watch-container,
.watch-mockup-container {
    position: relative;
    z-index: 1;
    width: 160px;
    height: 256px; /* 600/960 aspect ratio */
    filter: drop-shadow(0 16px 40px rgba(0, 0, 0, 0.5));
    will-change: transform;
}

/* Watch frame: 600x960, screen at x=89,y=223 size 422x514 */
.watch-screenshot-container {
    position: absolute;
    left: 14.83%;
    top: 23.23%;
    width: 70.33%;
    height: 53.54%;
    overflow: hidden;
    border-radius: 17px;
}

.watch-screenshot {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.watch-screenshot.active {
    opacity: 1;
}

.watch-visual .watch-screenshot {
    position: relative;
    opacity: 1;
}

.watch-frame {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* Scroll Indicator */
.scroll-indicator {
    text-align: center;
    margin-top: 48px;
    padding-bottom: 24px;
    position: relative;
    z-index: 1;
}

.scroll-mouse {
    width: 24px;
    height: 40px;
    border: 2px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    margin: 0 auto 10px;
    position: relative;
    transition: border-color 0.3s ease;
}

.scroll-mouse::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 10px;
    background: rgba(255, 255, 255, 0.15);
}

.scroll-indicator:hover .scroll-mouse {
    border-color: rgba(255, 255, 255, 0.4);
}

.scroll-wheel {
    width: 3px;
    height: 6px;
    background: var(--repxp-orange);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll-bounce 1.8s ease-in-out infinite;
}

@keyframes scroll-bounce {
    0%, 100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    50% {
        opacity: 0.2;
        transform: translateX(-50%) translateY(10px);
    }
}

.scroll-text {
    font-size: 0.65rem;
    color: rgba(255, 255, 255, 0.3);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-weight: 400;
}

.scroll-arrows {
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin-bottom: 10px;
}

.scroll-arrows i {
    color: var(--repxp-orange);
    font-size: 1rem;
    opacity: 0.6;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

.scroll-arrows i:nth-child(2) {
    margin-top: -8px;
    animation-delay: 0.15s;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(0);
        opacity: 0.3;
    }
    50% {
        transform: translateY(4px);
        opacity: 0.8;
    }
}

@media (max-width: 768px) {
    .scroll-mouse {
        display: none;
    }

    .scroll-arrows {
        display: flex;
    }
}

/* ==================== STATS BAND ==================== */
.stats-band {
    padding: 56px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.012);
}

.stats-band-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

.stat-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    padding: 8px 16px;
}

.stat-cell + .stat-cell {
    border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.stat-value {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--repxp-text-primary);
    font-variant-numeric: tabular-nums;
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--repxp-text-secondary);
}

@media (max-width: 768px) {
    .stats-band {
        padding: 40px 0;
    }

    .stats-band-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px 0;
    }

    .stat-cell:nth-child(3) {
        border-left: none;
    }
}

/* ==================== SECTION PRIMITIVES ==================== */
section {
    padding: var(--spacing-2xl) 0;
    position: relative;
}

.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--repxp-orange);
    margin-bottom: var(--spacing-md);
}

.section-eyebrow::before {
    content: '';
    width: 22px;
    height: 1.5px;
    background: var(--repxp-orange);
}

.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--spacing-xl);
}

.section-header .section-eyebrow,
.guide-hero .section-eyebrow {
    justify-content: center;
}

.section-header .section-eyebrow::after,
.guide-hero .section-eyebrow::after {
    content: '';
    width: 22px;
    height: 1.5px;
    background: var(--repxp-orange);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

/* ==================== POSITIONING SECTION ==================== */
.positioning-section {
    padding: 140px 0;
    position: relative;
}

.positioning-content {
    text-align: center;
    max-width: 980px;
    margin: 0 auto;
    padding: 0 40px;
    position: relative;
    z-index: 1;
}

.positioning-content h3 {
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--repxp-orange);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 36px;
}

.positioning-statement {
    font-size: clamp(2.1rem, 5vw, 3.8rem);
    font-weight: 800;
    line-height: 1.25;
    color: var(--repxp-text-primary);
    margin-bottom: 36px;
    letter-spacing: -0.03em;
}

.positioning-statement .word {
    display: inline-block;
}

.positioning-statement br {
    display: block;
    content: '';
    margin-top: 8px;
}

.positioning-explanation {
    font-size: 1.35rem;
    line-height: 1.8;
    color: var(--repxp-text-secondary);
    font-weight: 400;
    max-width: 620px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .positioning-section {
        padding: 90px 0;
    }

    .positioning-content {
        padding: 0 24px;
    }

    .positioning-explanation {
        font-size: 1.1rem;
    }
}

/* ==================== AUDIENCE FIT AND GUIDES ==================== */
/* Both of these sections keep the default section padding so every boundary
   on the homepage stays on the same 80 + 80 rhythm. */
.fit-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.fit-card {
    padding: 32px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
}

.fit-card-positive {
    border-color: rgba(46, 204, 113, 0.25);
}

.fit-card-neutral {
    border-color: rgba(230, 122, 21, 0.25);
}

.fit-card-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
}

.fit-card-heading i {
    flex-shrink: 0;
    font-size: 1.05rem;
}

.fit-card-positive {
    --fit-accent: var(--repxp-success);
}

.fit-card-neutral {
    --fit-accent: var(--repxp-orange);
}

.fit-card-heading i {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    color: var(--fit-accent);
    background: color-mix(in srgb, var(--fit-accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--fit-accent) 30%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.fit-card-heading h3 {
    font-size: 1.35rem;
}

.fit-card ul {
    list-style: none;
    display: grid;
    gap: 14px;
}

.fit-card li {
    position: relative;
    padding-left: 24px;
    color: var(--repxp-text-secondary);
    line-height: 1.65;
}

.fit-card li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.7em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--fit-accent, var(--repxp-blue));
}

.fit-note {
    max-width: 820px;
    margin: 36px auto 0;
    text-align: center;
    font-size: 0.95rem;
}

.guide-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.guide-card {
    --icon-accent: var(--repxp-blue);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-height: 260px;
    padding: 30px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    color: var(--repxp-text-primary);
    transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.3s ease;
}

/* No transform here on purpose: GSAP owns the tilt and lift on these cards,
   the same arrangement the feature and pricing cards use. */
.guide-card:hover {
    color: var(--repxp-text-primary);
    border-color: color-mix(in srgb, var(--icon-accent) 40%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 18px 50px rgba(0, 0, 0, 0.45);
}

/* Same icon tile as the feature cards, so the guide index reads as part of
   the same family instead of a bare icon row. */
.guide-card > i {
    width: 52px;
    height: 52px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    border-radius: 17px;
    font-size: 1.25rem;
    color: var(--icon-accent);
    background: color-mix(in srgb, var(--icon-accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--icon-accent) 30%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 18px -8px color-mix(in srgb, var(--icon-accent) 35%, transparent);
    transition: transform 0.45s var(--ease-out);
}

.guide-card:hover > i {
    transform: translateY(-2px) scale(1.04);
}

.guide-card:nth-child(2) {
    --icon-accent: var(--repxp-orange);
}

.guide-card:nth-child(3) {
    --icon-accent: var(--repxp-success);
}

.guide-card h4 {
    margin-bottom: 10px;
}

.guide-card p {
    font-size: 0.95rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.guide-card span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    color: var(--icon-accent);
    font-weight: 600;
    font-size: 0.95rem;
}

.guide-card span i {
    transition: transform 0.35s var(--ease-out);
}

.guide-card:hover span i {
    transform: translateX(4px);
}

@media (max-width: 900px) {
    .guide-card-grid {
        grid-template-columns: 1fr;
    }

    .guide-card {
        min-height: 0;
    }
}

@media (max-width: 768px) {
    .fit-grid {
        grid-template-columns: 1fr;
    }

    .fit-card {
        padding: 26px 22px;
    }
}

/* ==================== FEATURES SECTION ==================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.feature-card {
    position: relative;
    padding: 30px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.35s ease, box-shadow 0.35s ease, background 0.35s ease;
    transform-style: preserve-3d;
    will-change: transform;
    overflow: hidden;
}

/* Spotlight that follows the pointer (driven by JS custom props) —
   shared by every interactive card on the site */
.feature-card::before,
.tool-card::before,
.privacy-card::before,
.feature-item::before,
.support-card::before,
.import-card::before,
.guide-fact::before,
.guide-panel::before,
.fit-card::before,
.guide-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(30, 143, 255, 0.10), transparent 55%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
}

.feature-card:hover::before,
.tool-card:hover::before,
.privacy-card:hover::before,
.feature-item:hover::before,
.support-card:hover::before,
.import-card:hover::before,
.guide-fact:hover::before,
.guide-panel:hover::before,
.fit-card:hover::before,
.guide-card:hover::before {
    opacity: 1;
}

/* Cards styled in page-level <style> blocks still need the positioning
   context and clipping for the spotlight + tilt */
.tool-card,
.privacy-card,
.feature-item,
.support-card,
.import-card,
.guide-fact,
.guide-panel,
.fit-card,
.guide-card {
    position: relative;
    overflow: hidden;
    transform-style: preserve-3d;
}

.feature-card:hover {
    border-color: rgba(30, 143, 255, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 18px 50px rgba(0, 0, 0, 0.45), 0 0 50px rgba(30, 143, 255, 0.12);
}

.feature-icon {
    --icon-accent: var(--repxp-blue);
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.35rem;
    margin-bottom: var(--spacing-md);
    position: relative;
    color: var(--icon-accent);
    background: color-mix(in srgb, var(--icon-accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--icon-accent) 30%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 18px -8px color-mix(in srgb, var(--icon-accent) 35%, transparent);
    transition: transform 0.45s var(--ease-out), box-shadow 0.35s ease;
}

.feature-card:hover .feature-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 22px -8px color-mix(in srgb, var(--icon-accent) 50%, transparent);
}

.feature-card:hover .feature-icon i {
    animation: icon-wiggle 0.6s var(--ease-out);
}

@keyframes icon-wiggle {
    0% { transform: scale(1); }
    35% { transform: scale(1.18) rotate(7deg); }
    70% { transform: scale(0.95) rotate(-4deg); }
    100% { transform: scale(1); }
}

.feature-card:nth-child(1) .feature-icon { --icon-accent: var(--repxp-blue); }
.feature-card:nth-child(2) .feature-icon { --icon-accent: var(--repxp-orange); }
.feature-card:nth-child(3) .feature-icon { --icon-accent: var(--repxp-success); }
.feature-card:nth-child(4) .feature-icon { --icon-accent: #9B59B6; }
.feature-card:nth-child(5) .feature-icon { --icon-accent: var(--repxp-error); }
.feature-card:nth-child(6) .feature-icon { --icon-accent: #F39C12; }

.feature-card h4 {
    margin-bottom: var(--spacing-sm);
    color: var(--repxp-text-primary);
}

.feature-card p {
    font-size: 1rem;
    color: var(--repxp-text-secondary);
}

.feature-card p strong {
    color: var(--repxp-text-primary);
}

.features-cta {
    text-align: center;
    margin-top: var(--spacing-xl);
}

.see-all-features-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--repxp-blue);
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.see-all-features-link:hover {
    color: var(--repxp-orange);
    gap: 0.75rem;
}

/* ==================== SCREENS GALLERY (horizontal scroll) ==================== */
.screens-section {
    padding: 0;
    overflow: hidden;
}

.screens-pin {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    position: relative;
}

.screens-header {
    text-align: center;
    padding: 24px var(--spacing-lg) 8px;
    position: relative;
    z-index: 2;
}

.screens-header h2 {
    margin-bottom: 8px;
}

.screens-track {
    display: flex;
    align-items: center;
    gap: clamp(40px, 6vw, 90px);
    padding: 40px max(8vw, 48px);
    width: max-content;
    will-change: transform;
}

.screen-item {
    flex-shrink: 0;
    text-align: center;
}

.screen-item .device-frame-container {
    width: clamp(200px, 24vw, 264px);
    height: auto;
    aspect-ratio: 1350 / 2760;
    filter: drop-shadow(0 26px 60px rgba(0, 0, 0, 0.55));
    margin: 0 auto;
    transition: filter 0.3s ease;
}

.screen-item .screenshot-container {
    border-radius: 24px;
}

.screen-item .screen-shot {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.screen-caption {
    margin-top: 22px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--repxp-text-secondary);
    letter-spacing: 0.01em;
}

.screen-caption .num {
    color: var(--repxp-orange);
    font-variant-numeric: tabular-nums;
    margin-right: 10px;
    font-size: 0.8rem;
}

.screens-progress {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    width: 180px;
    height: 2px;
    background: var(--repxp-divider);
    border-radius: 2px;
    overflow: hidden;
}

.screens-progress-fill {
    height: 100%;
    width: 100%;
    background: var(--repxp-orange);
    transform: scaleX(0);
    transform-origin: 0 50%;
}

/* ==================== TOOLS SECTION ==================== */
.tools-section {
    position: relative;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.tool-card {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-lg);
    background: rgba(26, 29, 35, 0.55);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: border-color 0.3s ease, transform 0.45s var(--ease-out), box-shadow 0.3s ease;
}

.tool-card:hover {
    border-color: rgba(30, 143, 255, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 40px rgba(0, 0, 0, 0.4), 0 0 36px rgba(30, 143, 255, 0.1);
}

.tool-icon {
    --icon-accent: var(--repxp-blue);
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    color: var(--icon-accent);
    background: color-mix(in srgb, var(--icon-accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--icon-accent) 30%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 18px -8px color-mix(in srgb, var(--icon-accent) 35%, transparent);
    transition: transform 0.45s var(--ease-out), box-shadow 0.35s ease;
}

.tool-icon.blue { --icon-accent: var(--repxp-blue); }
.tool-icon.orange { --icon-accent: var(--repxp-orange); }

.tool-card:hover .tool-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 22px -8px color-mix(in srgb, var(--icon-accent) 50%, transparent);
}

.tool-card:hover .tool-icon i {
    animation: icon-wiggle 0.6s var(--ease-out);
}

.tool-icon i {
    font-size: 1.25rem;
    color: var(--icon-accent);
}

.tool-content h4 {
    color: var(--repxp-text-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.1rem;
}

.tool-content p {
    color: var(--repxp-text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tool-content p strong {
    color: var(--repxp-text-primary);
}

/* ==================== WATCH SECTION ==================== */
.watch-section {
    position: relative;
    overflow: hidden;
}

.watch-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.watch-content h2 {
    margin-bottom: var(--spacing-md);
}

.watch-content > p {
    margin-bottom: var(--spacing-lg);
}

.watch-content > p strong {
    color: var(--repxp-text-primary);
}

.watch-features {
    list-style: none;
}

.watch-features li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    margin: 0 calc(-1 * var(--spacing-md));
    border-radius: var(--radius-md);
    transition: background 0.3s ease;
}

.watch-features li:hover {
    background: rgba(255, 255, 255, 0.03);
}

.watch-features li i {
    color: var(--repxp-blue);
    font-size: 1.25rem;
    margin-top: 4px;
}

.watch-features li strong {
    display: block;
    color: var(--repxp-text-primary);
    margin-bottom: var(--spacing-xs);
}

.watch-features li span {
    color: var(--repxp-text-secondary);
    font-size: 0.95rem;
}

.watch-visual {
    display: flex;
    justify-content: center;
}

.watch-visual .watch-mockup-container {
    width: 290px;
    height: 464px;
}

.watch-visual .watch-screenshot-container {
    border-radius: 31px;
}

/* ==================== GAMIFICATION SECTION ==================== */
.gamification {
    position: relative;
}

.gamification-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.gamification-content h2 {
    margin-bottom: var(--spacing-lg);
}

.gamification-content > p {
    margin-bottom: var(--spacing-lg);
}

.xp-list {
    list-style: none;
}

.xp-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    padding: var(--spacing-sm) 0;
    color: var(--repxp-text-secondary);
}

.xp-list li i {
    color: var(--repxp-orange);
    font-size: 1.25rem;
}

.gamification-visual {
    display: flex;
    justify-content: center;
}

.level-card {
    padding: 44px 48px;
    text-align: center;
    max-width: 340px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.level-ring-wrap {
    position: relative;
    width: 188px;
    height: 188px;
    margin: 0 auto var(--spacing-lg);
}

.level-ring-svg {
    width: 100%;
    height: 100%;
    transform: rotate(-90deg);
}

.level-ring-svg .ring-bg {
    fill: none;
    stroke: var(--repxp-divider);
    stroke-width: 9;
}

.level-ring-svg .ring-fill {
    fill: none;
    stroke: var(--repxp-orange);
    stroke-width: 9;
    stroke-linecap: round;
}

.level-number {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3.4rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--repxp-text-primary);
    font-variant-numeric: tabular-nums;
}

.level-card h4 {
    color: var(--repxp-orange);
    margin-bottom: var(--spacing-sm);
    font-size: 1.3rem;
}

.level-card .xp-amount {
    font-variant-numeric: tabular-nums;
}

.xp-progress {
    background: var(--repxp-divider);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    margin-top: var(--spacing-md);
    position: relative;
}

.xp-progress-bar {
    height: 100%;
    background: var(--repxp-orange);
    width: 75%;
    border-radius: 4px;
    transform-origin: 0 50%;
}

/* ==================== STATS / IMPORT (legacy shared) ==================== */
.stats-section {
    background: rgba(26, 29, 35, 0.5);
    border-top: 1px solid var(--repxp-divider);
    border-bottom: 1px solid var(--repxp-divider);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item h3 {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.stat-item p {
    font-size: 1rem;
}

.import-section {
    background: rgba(26, 29, 35, 0.5);
}

.import-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-top: var(--spacing-xl);
}

.import-card {
    padding: var(--spacing-lg);
    text-align: center;
    background: var(--repxp-surface);
    border: 1px solid var(--repxp-divider);
    border-radius: var(--radius-lg);
    transition: all 0.3s ease;
}

.import-card:hover {
    border-color: var(--repxp-orange);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), var(--shadow-glow-orange);
}

.import-card img {
    height: 48px;
    margin-bottom: var(--spacing-md);
}

.import-card h4 {
    margin-bottom: var(--spacing-sm);
}

/* ==================== PRICING (shared with /pricing) ==================== */
.pricing-section {
    padding: var(--spacing-2xl) 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    max-width: 840px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    padding: 40px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: transform 0.45s var(--ease-out), border-color 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 24px 60px rgba(0, 0, 0, 0.45);
}

.pricing-card-pro {
    background: transparent;
    border: none;
    padding: 0;
}

.pricing-card-pro::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: rgba(230, 122, 21, 0.55);
    transition: background-color 0.35s ease;
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}

.pricing-card-pro::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    background: rgba(26, 29, 35, 0.75);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 0;
}

.pricing-card-pro:hover {
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 80px rgba(230, 122, 21, 0.2);
}

.pricing-card-pro:hover::before {
    background: rgba(230, 122, 21, 0.9);
}

.pricing-card-pro:hover .pricing-card-pro-glow {
    transform: translate(-50%, -50%) scale(1.25);
}

.pricing-card-pro > * {
    position: relative;
    z-index: 1;
}

.pricing-card-pro-inner {
    padding: 40px 32px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.pricing-card-pro-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    height: 70%;
    background: radial-gradient(ellipse, rgba(230, 122, 21, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    transition: transform 0.45s var(--ease-out);
}

.pricing-card-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.pricing-card-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--repxp-text-secondary);
    margin-bottom: 16px;
}

.pricing-card-pro .pricing-card-label {
    color: var(--repxp-orange);
}

.pricing-card-label i {
    font-size: 0.75rem;
}

.pricing-card-header h3 {
    font-size: 1.75rem;
    font-weight: 800;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 800;
    color: var(--repxp-text-primary);
    margin-bottom: 4px;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.pricing-price span {
    font-size: 1rem;
    font-weight: 500;
    color: var(--repxp-text-secondary);
    letter-spacing: 0;
}

.pricing-subtitle {
    font-size: 0.9rem;
    color: var(--repxp-text-secondary);
}

.pricing-yearly-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.pricing-save-pill {
    display: inline-block;
    background: rgba(46, 204, 113, 0.12);
    color: var(--repxp-success);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    letter-spacing: 0.02em;
}

.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
    flex: 1;
}

.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: var(--repxp-text-secondary);
    font-size: 0.95rem;
    line-height: 1.4;
}

.pricing-features li i {
    flex-shrink: 0;
    width: 18px;
    text-align: center;
    margin-top: 3px;
    font-size: 0.8rem;
}

.pricing-features li i.fa-check {
    color: var(--repxp-success);
}

.pricing-features li i.fa-crown {
    color: var(--repxp-orange);
}

.pricing-features .features-divider {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.25);
    padding-top: 4px;
}

.pricing-trial-note {
    text-align: center;
    margin-top: 24px;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--repxp-text-secondary);
}

.pricing-trial-note i {
    color: var(--repxp-success);
    margin-right: 5px;
}

@media (max-width: 640px) {
    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }
    .pricing-card {
        padding: 32px 24px;
    }
    .pricing-card-pro-inner {
        padding: 32px 24px;
    }
}

/* ==================== PRIVACY SECTION ==================== */
.privacy-section {
    background: rgba(26, 29, 35, 0.5);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.privacy-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-lg);
}

.privacy-card {
    padding: 30px 28px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: border-color 0.3s ease, transform 0.45s var(--ease-out), box-shadow 0.3s ease;
}

.privacy-card:hover {
    border-color: rgba(46, 204, 113, 0.35);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 14px 40px rgba(0, 0, 0, 0.4);
}

.privacy-icon {
    --icon-accent: var(--repxp-success);
    width: 56px;
    height: 56px;
    margin: 0 auto var(--spacing-md);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    position: relative;
    background: color-mix(in srgb, var(--icon-accent) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--icon-accent) 30%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 6px 18px -8px color-mix(in srgb, var(--icon-accent) 35%, transparent);
    transition: transform 0.45s var(--ease-out), box-shadow 0.35s ease;
}

/* Orbiting ring, revealed on card hover */
.privacy-icon::after {
    content: '';
    position: absolute;
    inset: -7px;
    border-radius: 50%;
    padding: 1.5px;
    background: conic-gradient(from 0deg, transparent 0deg, var(--icon-accent) 110deg, transparent 220deg);
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.privacy-card:hover .privacy-icon {
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        0 8px 22px -8px color-mix(in srgb, var(--icon-accent) 50%, transparent);
}

.privacy-card:hover .privacy-icon::after {
    opacity: 1;
    animation: icon-ring-spin 1.8s linear infinite;
}

@keyframes icon-ring-spin {
    to { transform: rotate(360deg); }
}

.privacy-icon i {
    font-size: 1.3rem;
    color: var(--icon-accent);
}

.privacy-card h4 {
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
    color: var(--repxp-text-primary);
}

.privacy-card p {
    font-size: 0.95rem;
    color: var(--repxp-text-secondary);
    line-height: 1.6;
}

.privacy-link-row {
    text-align: center;
    margin-top: 72px;
}

@media (max-width: 992px) {
    .privacy-grid {
        grid-template-columns: 1fr;
        max-width: 480px;
        margin: 0 auto;
    }
}

/* ==================== CTA SECTION ==================== */
.cta-section {
    text-align: center;
    padding: 140px 0 120px;
    position: relative;
    overflow: hidden;
}

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

.cta-section h2 {
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
}

.cta-section p {
    max-width: 600px;
    margin: 0 auto var(--spacing-xl);
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.cta-buttons .app-store-badge,
.cta-buttons .app-store-badge img,
.cta-buttons .health-badge {
    height: 50px;
    width: auto;
}

/* ==================== FOOTER ==================== */
.footer {
    background: var(--repxp-charcoal);
    padding: var(--spacing-xl) 0 var(--spacing-lg);
    border-top: 1px solid var(--repxp-divider);
    position: relative;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--spacing-xl);
}

.footer-brand p {
    margin-top: var(--spacing-md);
    font-size: 0.95rem;
}

.footer-links h5 {
    color: var(--repxp-text-primary);
    margin-bottom: var(--spacing-md);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: var(--spacing-sm);
}

.footer-links a {
    color: var(--repxp-text-secondary);
    font-size: 0.95rem;
}

.footer-bottom {
    margin-top: var(--spacing-xl);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--repxp-divider);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: var(--repxp-text-secondary);
}

.footer-links-inline {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    flex-wrap: wrap;
}

.footer-links-inline a {
    color: var(--repxp-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links-inline a:hover {
    color: var(--repxp-blue);
}

.footer-links-inline span {
    color: var(--repxp-divider);
}

.footer-social {
    display: flex;
    gap: var(--spacing-md);
}

.footer-social a {
    color: var(--repxp-text-secondary);
    font-size: 1.25rem;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

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

    .hero-description {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-image {
        order: -1;
        flex-direction: row;
        align-items: flex-end;
        gap: var(--spacing-md);
    }

    .hero-phone-carousel {
        width: 190px;
        height: 388px;
    }

    .screenshot-container {
        border-radius: 18px;
    }

    .hero-watch-container {
        width: 100px;
        height: 160px;
    }

    .watch-screenshot-container {
        border-radius: 11px;
    }

    .gamification-grid,
    .watch-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .gamification-content,
    .watch-content {
        order: 1;
    }

    .xp-list li {
        justify-content: center;
        text-align: left;
    }

    .watch-features li {
        justify-content: flex-start;
        text-align: left;
    }

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

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

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

@media (max-width: 768px) {
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: var(--spacing-lg);
        right: var(--spacing-lg);
        background: rgba(15, 17, 21, 0.96);
        backdrop-filter: blur(24px);
        -webkit-backdrop-filter: blur(24px);
        flex-direction: column;
        padding: var(--spacing-lg);
        border: 1px solid var(--repxp-divider);
        border-radius: var(--radius-md);
    }

    .navbar-nav.active {
        display: flex;
    }

    .navbar-toggle {
        display: block;
    }

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

    .stat-item h3 {
        font-size: 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-bottom {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .hero-buttons {
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    .hero-phone-carousel {
        width: 155px;
        height: 317px;
    }

    .screenshot-container {
        border-radius: 15px;
    }

    .hero-watch-container {
        width: 85px;
        height: 136px;
    }

    .watch-screenshot-container {
        border-radius: 9px;
    }

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

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

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

    .tool-card {
        padding: var(--spacing-md);
    }
}

/* ==================== LEGACY AOS HOOKS (subpages safety net) ==================== */
[data-aos] {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 0.8s;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

[data-aos].aos-animate {
    opacity: 1;
    transform: none;
}

[data-aos="fade-up"] { transform: translateY(40px); }
[data-aos="fade-down"] { transform: translateY(-40px); }
[data-aos="fade-right"] { transform: translateX(-50px); }
[data-aos="fade-left"] { transform: translateX(50px); }
[data-aos="zoom-in"] { transform: scale(0.85); }
[data-aos="zoom-in-up"] { transform: scale(0.85) translateY(40px); }

/* ==================== LIQUID GLASS CARDS ==================== */
/* Shared translucent surface for every card on the site. Lives at the
   end of the sheet so it wins the tie against per-card base rules. The
   Pro pricing card keeps its own gradient-border glass treatment.
   Kept deliberately flat: the material comes from the blur and the thin
   edge light, not from painted gradients. */
.glass,
.feature-card,
.tool-card,
.privacy-card,
.import-card,
.feature-item,
.support-card,
.guide-fact,
.guide-panel,
.guide-faq details,
.guide-card,
.related-guide,
.pricing-card:not(.pricing-card-pro) {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.09);
    backdrop-filter: blur(28px) saturate(170%);
    -webkit-backdrop-filter: blur(28px) saturate(170%);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.07),
        0 12px 32px rgba(0, 0, 0, 0.3);
}

/* ==================== GEO GUIDE PAGES ==================== */
/* Sticky footer: the article can be shorter than the viewport on wide
   screens, so let the page grow and push the footer to the bottom edge. */
body[data-subpage="true"]:has(.guide-page) {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.guide-page {
    padding: 120px 0 80px;
    position: relative;
    flex: 1;
}

/* Same soft halo behind the hero as the other subpages. */
.guide-page::before {
    content: '';
    position: absolute;
    top: 2%;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 500px;
    max-width: 100%;
    background: radial-gradient(ellipse, rgba(30, 143, 255, 0.05) 0%, transparent 70%);
    pointer-events: none;
}

.guide-article {
    max-width: 920px;
    margin: 0 auto;
    position: relative;
}

.guide-breadcrumbs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 36px;
    color: var(--repxp-text-secondary);
    font-size: 0.9rem;
}

.guide-breadcrumbs a {
    color: var(--repxp-text-secondary);
}

.guide-breadcrumbs a:hover {
    color: var(--repxp-blue);
}

.guide-hero {
    text-align: center;
    padding: 36px 0 64px;
}

.guide-hero h1 {
    max-width: 850px;
    margin: 0 auto 22px;
}

.guide-lead {
    max-width: 760px;
    margin: 0 auto 32px;
    font-size: 1.2rem;
    line-height: 1.75;
}

.guide-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.guide-facts {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 80px;
}

.guide-fact {
    padding: 24px 18px;
    border-radius: var(--radius-md);
    text-align: center;
}

.guide-fact strong {
    display: block;
    margin-bottom: 6px;
    color: var(--repxp-text-primary);
    font-size: 1.05rem;
}

.guide-fact span {
    display: block;
    color: var(--repxp-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

/* 80 + 80 between siblings, matching the homepage section rhythm. */
.guide-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* One step down from the display scale: these headings sit inside a
   reading column, not a full-width hero. */
.guide-section h2 {
    margin-bottom: 22px;
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}

.guide-section > p,
.guide-section .guide-copy > p {
    margin-bottom: 18px;
    line-height: 1.8;
}

.guide-section h3 {
    margin: 36px 0 16px;
    font-size: 1.3rem;
}

.guide-list {
    display: grid;
    gap: 16px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
}

.guide-list li {
    position: relative;
    padding-left: 32px;
    color: var(--repxp-text-secondary);
    line-height: 1.7;
}

.guide-list li::before {
    content: '\f00c';
    position: absolute;
    left: 0;
    top: 2px;
    color: var(--repxp-success);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.9rem;
}

.guide-list strong {
    color: var(--repxp-text-primary);
}

.guide-steps {
    display: grid;
    gap: 28px;
    margin: 32px 0 0;
    counter-reset: guide-step;
}

.guide-step {
    position: relative;
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 20px;
    align-items: start;
}

.guide-step::before {
    counter-increment: guide-step;
    content: counter(guide-step);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--repxp-blue) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--repxp-blue) 30%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    color: var(--repxp-blue);
    font-weight: 800;
}

/* Thread the steps together so the block reads as one sequence. */
.guide-step::after {
    content: '';
    position: absolute;
    left: 24px;
    top: 56px;
    bottom: -28px;
    width: 1px;
    background: linear-gradient(to bottom, rgba(30, 143, 255, 0.3), rgba(255, 255, 255, 0.05));
}

.guide-step:last-child::after {
    display: none;
}

.guide-step h3 {
    margin: 10px 0 8px;
    font-size: 1.2rem;
}

.guide-step p {
    font-size: 1rem;
    line-height: 1.7;
}

.guide-panel-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 32px;
}

.guide-panel {
    --panel-accent: var(--repxp-blue);
    padding: 28px;
    border-radius: var(--radius-lg);
}

.guide-panel-positive {
    --panel-accent: var(--repxp-success);
}

.guide-panel-caution {
    --panel-accent: var(--repxp-orange);
}

.guide-panel h3 {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 18px;
    font-size: 1.25rem;
}

/* Same icon tile as the feature and fit cards. */
.guide-panel h3 i {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    font-size: 1rem;
    color: var(--panel-accent);
    background: color-mix(in srgb, var(--panel-accent) 13%, transparent);
    border: 1px solid color-mix(in srgb, var(--panel-accent) 30%, transparent);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.guide-panel p {
    font-size: 1rem;
    line-height: 1.7;
}

.guide-panel ul {
    display: grid;
    gap: 14px;
    padding: 0;
    list-style: none;
    color: var(--repxp-text-secondary);
}

.guide-panel li {
    position: relative;
    padding-left: 22px;
    line-height: 1.6;
}

.guide-panel li::before {
    content: '';
    position: absolute;
    left: 2px;
    top: 0.6em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--panel-accent);
}

.guide-callout {
    display: flex;
    gap: 14px;
    padding: 22px 26px;
    margin: 32px 0 0;
    border-left: 3px solid var(--repxp-orange);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    background: rgba(230, 122, 21, 0.08);
}

.guide-callout::before {
    content: '\f05a';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    color: var(--repxp-orange);
    line-height: 1.7;
}

.guide-callout p {
    margin: 0;
    color: var(--repxp-text-primary);
    font-size: 1rem;
    line-height: 1.7;
}

.guide-faq {
    display: grid;
    gap: 14px;
    margin-top: 32px;
}

.guide-faq details {
    padding: 0 24px;
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease;
}

.guide-faq details[open] {
    border-color: rgba(30, 143, 255, 0.28);
}

/* Matches the chevron accordion on the FAQ page rather than the browser's
   default disclosure triangle. */
.guide-faq summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    cursor: pointer;
    list-style: none;
    color: var(--repxp-text-primary);
    font-size: 1.05rem;
    font-weight: 600;
    transition: color 0.25s ease;
}

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

.guide-faq summary:hover {
    color: var(--repxp-blue);
}

.guide-faq summary::after {
    content: '\f078';
    flex-shrink: 0;
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.8rem;
    color: var(--repxp-blue);
    transition: transform 0.3s var(--ease-out);
}

.guide-faq details[open] summary::after {
    transform: rotate(180deg);
}

.guide-faq details p {
    margin: 0 0 22px;
    font-size: 1rem;
    line-height: 1.7;
}

.related-guides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-top: 32px;
}

.related-guide {
    position: relative;
    display: block;
    padding: 24px 46px 24px 24px;
    border-radius: var(--radius-md);
    transition: border-color 0.3s ease, transform 0.35s var(--ease-out), box-shadow 0.3s ease;
}

.related-guide:hover {
    border-color: rgba(30, 143, 255, 0.4);
    transform: translateY(-3px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 16px 40px rgba(0, 0, 0, 0.4);
}

.related-guide::after {
    content: '\f061';
    position: absolute;
    top: 26px;
    right: 24px;
    color: var(--repxp-blue);
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.85rem;
    transition: transform 0.35s var(--ease-out);
}

.related-guide:hover::after {
    transform: translateX(4px);
}

.related-guide strong {
    display: block;
    color: var(--repxp-text-primary);
    margin-bottom: 6px;
}

.related-guide span {
    color: var(--repxp-text-secondary);
    font-size: 0.9rem;
    line-height: 1.55;
}

.guide-final-cta {
    padding: 64px 32px;
    margin-top: 80px;
    text-align: center;
    background: rgba(30, 143, 255, 0.06);
    border: 1px solid rgba(30, 143, 255, 0.18);
    border-radius: var(--radius-xl);
}

.guide-final-cta h2 {
    margin-bottom: 14px;
    font-size: clamp(1.75rem, 3.2vw, 2.35rem);
}

.guide-final-cta p {
    max-width: 620px;
    margin: 0 auto 26px;
}

@media (max-width: 850px) {
    .guide-facts {
        grid-template-columns: 1fr 1fr;
    }

    .guide-panel-grid,
    .related-guides {
        grid-template-columns: 1fr;
    }
}

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

    .guide-breadcrumbs {
        margin-bottom: 24px;
        font-size: 0.85rem;
    }

    .guide-hero {
        padding: 20px 0 48px;
    }

    .guide-hero h1 {
        font-size: 2.05rem;
    }

    .guide-lead {
        font-size: 1.05rem;
        margin-bottom: 28px;
    }

    .guide-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .guide-actions .btn {
        justify-content: center;
    }

    /* Two up rather than a four-card stack: the labels are short and a
       single column pushes the whole article below the fold. */
    .guide-facts {
        gap: 12px;
        margin-bottom: 8px;
    }

    .guide-fact {
        padding: 18px 14px;
    }

    .guide-fact strong {
        font-size: 0.98rem;
    }

    .guide-fact span {
        font-size: 0.85rem;
    }

    .guide-section {
        padding: 56px 0;
    }

    .guide-panel,
    .guide-final-cta {
        padding: 24px 22px;
    }

    .guide-final-cta {
        padding: 44px 24px;
    }

    .guide-callout {
        padding: 20px;
    }

    .guide-faq details,
    .related-guide {
        padding-left: 20px;
        padding-right: 20px;
    }

    .related-guide {
        padding-right: 44px;
    }

    .guide-step {
        grid-template-columns: 40px 1fr;
        gap: 16px;
    }

    .guide-step::before {
        width: 40px;
        height: 40px;
        border-radius: 13px;
    }

    .guide-step::after {
        left: 20px;
        top: 48px;
    }

    .guide-step h3 {
        margin-top: 6px;
    }
}

/* ==================== REDUCED MOTION ==================== */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

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

/* ==================== LANGUAGE SWITCHER ==================== */
.footer-language {
    margin-top: var(--spacing-lg);
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--spacing-sm) var(--spacing-md);
    font-size: 0.875rem;
    color: var(--repxp-text-secondary);
}

.footer-language-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    opacity: 0.7;
}

.footer-language-list {
    list-style: none;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.footer-language-list li {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.footer-language-list li + li::before {
    content: "\2022";
    color: var(--repxp-divider);
}

.footer-language-list a {
    color: var(--repxp-text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-language-list a:hover {
    color: var(--repxp-blue);
}

.footer-language-current {
    color: var(--repxp-text-primary);
}

@media (max-width: 768px) {
    .footer-language {
        justify-content: center;
    }

    .footer-language-list {
        justify-content: center;
    }
}

/* ==================== NAVBAR LANGUAGE MENU ==================== */
.nav-language {
    position: relative;
    margin-left: auto;
}

.nav-language-toggle {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--repxp-divider);
    border-radius: 999px;
    color: var(--repxp-text-primary);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.nav-language-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
}

.nav-language-toggle .fa-globe {
    font-size: 0.95rem;
    opacity: 0.85;
}

.nav-language-caret {
    font-size: 0.55rem;
    opacity: 0.7;
}

.nav-language-menu {
    display: none;
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 190px;
    padding: 8px;
    list-style: none;
    background: rgba(15, 17, 21, 0.96);
    backdrop-filter: blur(24px) saturate(150%);
    -webkit-backdrop-filter: blur(24px) saturate(150%);
    border: 1px solid var(--repxp-divider);
    border-radius: var(--radius-md);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
    z-index: 1001;
}

.nav-language-menu.open {
    display: block;
}

.nav-language-menu a,
.nav-language-current {
    display: block;
    padding: 8px 12px;
    border-radius: 10px;
    color: var(--repxp-text-secondary);
    font-size: 0.92rem;
}

.nav-language-menu a:hover {
    color: var(--repxp-text-primary);
    background: rgba(255, 255, 255, 0.07);
}

.nav-language-current {
    color: var(--repxp-text-primary);
    font-weight: 600;
}

/* Keep the pill and the hamburger comfortably apart */
.navbar .container {
    gap: 14px;
}
