/**
 * Homepage — single unified deep-oil background
 * Banner slider + glass hero CTAs
 */

:root {
    --gx-bg-1: #f59e0b;
    --gx-bg-2: #c2410c;
    --gx-ink: #fff8ef;
    --gx-ink-soft: rgba(255, 240, 222, 0.82);
    --gx-a: #fde68a;
    --gx-b: #ea580c;
    --gx-shell: 430px;
    --gx-font: "Manrope", sans-serif;
    --gx-display: "Space Grotesk", "Manrope", sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
    margin: 0;
    background: var(--gx-bg-2);
    /* smooth-scroll off = no jank on fast flicks */
    scroll-behavior: auto;
}

body.gx-app {
    margin: 0;
    font-family: var(--gx-font);
    color: var(--gx-ink);
    background: var(--gx-bg-2);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
}

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

/* ONE background for the whole shell — no section color breaks */
/* Oil-paint orange / red — layered organic blooms */
.gx-shell {
    position: relative;
    width: 100%;
    max-width: var(--gx-shell);
    min-height: 100dvh;
    margin: 0 auto;
    background:
        radial-gradient(58% 26% at 82% 6%, rgba(254, 240, 138, 0.6), transparent 62%),
        radial-gradient(52% 22% at 10% 20%, rgba(253, 186, 116, 0.55), transparent 64%),
        radial-gradient(64% 26% at 92% 48%, rgba(251, 191, 36, 0.5), transparent 62%),
        radial-gradient(58% 24% at 6% 68%, rgba(249, 115, 22, 0.42), transparent 64%),
        radial-gradient(70% 28% at 70% 90%, rgba(252, 211, 77, 0.42), transparent 66%),
        linear-gradient(178deg, #fbbf24 0%, #f59e0b 32%, #ea580c 68%, #c2410c 100%);
    background-attachment: scroll;
    box-shadow: 0 0 0 1px rgba(255, 237, 213, 0.35);
    overflow: hidden;
}

/* smeared paint texture layer */
.gx-shell::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.28;
    mix-blend-mode: soft-light;
    background-image:
        repeating-linear-gradient(114deg, rgba(255, 255, 255, 0.24) 0 3px, transparent 3px 9px),
        repeating-linear-gradient(28deg, rgba(124, 45, 18, 0.16) 0 2px, transparent 2px 11px);
}

/* ─── Header: logo left · site name right ─── */
.gx-nav {
    position: relative;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: max(14px, env(safe-area-inset-top)) 16px 12px;
    border-bottom: 1px solid rgba(255, 237, 213, 0.14);
}

.gx-brand-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
}

.gx-brand__mark {
    width: 40px;
    height: 40px;
    border-radius: 13px;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.18) inset;
}

.gx-brand__mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gx-brand__fallback {
    font-size: 0.72rem;
    font-weight: 900;
    color: #fffaf0;
}

.gx-brand-title {
    margin: 0;
    max-width: 62%;
    text-align: right;
    font-family: var(--gx-display);
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.01em;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ─── Hero + banner slider ─── */
.gx-hero {
    position: relative;
    z-index: 5;
    padding: 14px 14px 6px;
}

.gx-banner {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    min-height: 176px;
    background: linear-gradient(150deg, #ea580c, #f59e0b 62%, #fcd34d 150%);
    border: 1px solid rgba(255, 251, 235, 0.42);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 14px 28px rgba(124, 45, 18, 0.32);
}

.gx-banner__track {
    position: absolute;
    inset: 0;
}

.gx-banner__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.55s ease;
    pointer-events: none;
    will-change: opacity;
}

.gx-banner__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.gx-banner__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gx-banner__shine {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(124, 45, 18, 0.38) 100%);
    pointer-events: none;
}

.gx-banner__dots {
    position: absolute;
    z-index: 5;
    left: 0;
    right: 0;
    bottom: 10px;
    display: flex;
    justify-content: center;
    gap: 7px;
}

.gx-banner__dot {
    width: 8px;
    height: 8px;
    border: 0;
    border-radius: 999px;
    padding: 0;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.42);
    transition: width 0.25s ease, background 0.25s ease;
}

.gx-banner__dot.is-active {
    width: 22px;
    background: linear-gradient(90deg, #fed7aa, var(--gx-a));
}

.gx-banner__fallback {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    text-align: center;
    padding: 20px;
    color: #fff;
}

.gx-banner__oil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 28% 22%, rgba(255, 251, 235, 0.55), transparent 38%),
        radial-gradient(circle at 78% 72%, rgba(253, 224, 71, 0.45), transparent 42%);
}

.gx-banner__brand {
    position: relative;
    z-index: 2;
    margin: 0;
    font-family: var(--gx-display);
    font-size: 1.5rem;
    font-weight: 700;
}

.gx-banner__tag {
    position: relative;
    z-index: 2;
    margin: 8px 0 0;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: rgba(255, 237, 213, 0.78);
}

/* ─── Hero CTAs: glass slab buttons ─── */
.gx-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 14px 0 2px;
}

.gx-oil-btn {
    --oil-a: #fb923c;
    --oil-b: #c2410c;
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    gap: 9px;
    min-height: 62px;
    padding: 0 10px 0 9px;
    border: 0;
    border-radius: 18px;
    cursor: pointer;
    font: inherit;
    color: #fff;
    text-decoration: none;
    overflow: hidden;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, transparent 46%),
        linear-gradient(140deg, var(--oil-a) 0%, var(--oil-b) 82%);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.22) inset,
        0 1px 0 rgba(255, 255, 255, 0.5) inset;
    transition: transform 0.16s ease, filter 0.2s ease;
}

/* soft ambient colour glow instead of hard drop shadow */
.gx-oil-btn::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 8px 6px -4px;
    border-radius: inherit;
    background: var(--oil-a);
    opacity: 0.32;
    filter: blur(12px);
    pointer-events: none;
}

.gx-oil-btn:active {
    transform: scale(0.975);
    filter: brightness(1.06);
}

/* Login = warm ember · Register = blue */
.gx-oil-btn--deep { --oil-a: #fb923c; --oil-b: #c2410c; }
.gx-oil-btn--shine { --oil-a: #60a5fa; --oil-b: #1d4ed8; }

.gx-oil-btn__orb {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    display: grid;
    place-items: center;
    font-size: 1rem;
    color: #fff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.4), rgba(255, 255, 255, 0.08));
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.35) inset,
        0 1px 0 rgba(255, 255, 255, 0.55) inset;
}

.gx-oil-btn__orb::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 58%);
    pointer-events: none;
}

.gx-oil-btn__stack {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.gx-oil-btn__txt {
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #fff;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gx-oil-btn__sub {
    font-size: 0.53rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.gx-oil-btn__tip {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 0.58rem;
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.16);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.24) inset;
}

.gx-oil-btn__gloss {
    position: absolute;
    z-index: 1;
    left: -35%;
    top: -60%;
    width: 38%;
    height: 220%;
    background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.45), transparent);
    transform: rotate(16deg);
    pointer-events: none;
    animation: gxBtnGloss 4.6s ease-in-out infinite;
}

@keyframes gxBtnGloss {
    0% { left: -40%; opacity: 0; }
    40% { opacity: 0.85; }
    100% { left: 125%; opacity: 0; }
}

/* ─── Plans section: SAME background as body ─── */
.gx-plans {
    position: relative;
    z-index: 8;
    padding: 16px 14px 30px;
    background: transparent;
}

.gx-plans__head {
    text-align: center;
    margin-bottom: 16px;
}

.gx-plans__eyebrow {
    margin: 0 0 5px;
    font-size: 0.64rem;
    font-weight: 900;
    letter-spacing: 0.24em;
    text-transform: uppercase;
    color: #fffaf0;
    text-shadow: 0 1px 2px rgba(124, 45, 18, 0.45);
}

.gx-plans__head h2 {
    margin: 0;
    font-family: var(--gx-display);
    font-size: 1.42rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
}

.gx-footer {
    padding: 4px 18px calc(22px + env(safe-area-inset-bottom));
    text-align: center;
    color: var(--gx-ink-soft);
    font-size: 0.7rem;
    font-weight: 700;
    background: transparent;
}

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
