/* =====================================================
   ReallyVisuals Support — Design System
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Onest:wght@300;400;500;600;700&display=swap');

:root {
    /* Brand gradient (logo + accents) */
    --rv-grad-1: #FFC371;
    --rv-grad-2: #FF7B1D;
    --rv-grad-3: #E64A1F;
    --rv-grad-logo: linear-gradient(135deg, #FFC371 0%, #FF7B1D 50%, #E64A1F 100%);

    /* Brand */
    --rv-primary: #FF7B1D;
    --rv-primary-dark: #E06A15;
    --rv-primary-light: #FF9B4D;
    --rv-primary-glow: rgba(255, 123, 29, 0.15);

    /* Backgrounds */
    --rv-bg: #141417;
    --rv-bg-2: #18181C;
    --rv-surface: #151517;
    --rv-hero-bg: #1C1C20;
    --rv-elevated: #1F1F23;

    /* Text */
    --rv-text: #FFFFFF;
    --rv-text-2: #D8D8D8;
    --rv-text-muted: #656571;
    --rv-text-disabled: #45454E;

    /* Borders */
    --rv-border: #1C1C20;
    --rv-border-2: rgba(255, 255, 255, 0.08);

    /* Status */
    --rv-success: #34C759;
    --rv-warning: #FF9500;
    --rv-error: #FF3B30;
    --rv-info: #5AC8FA;

    /* Radius */
    --r-sm: 8px;
    --r-md: 12px;
    --r-lg: 16px;
    --r-xl: 24px;
    --r-card: 32px;
    --r-pill: 256px;

    /* Transitions */
    --t-fast: 0.15s ease;
    --t-norm: 0.3s ease;

    /* Layout */
    --container: 1200px;
    --header-h: 104px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    background: var(--rv-bg);
    color: var(--rv-text);
    font-family: 'Onest', sans-serif;
    font-size: 16px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body {
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
img, svg { display: block; max-width: 100%; }

/* ===== Typography ===== */
h1, h2, h3, h4 { font-family: 'Onest', sans-serif; font-weight: 500; color: var(--rv-text); line-height: 1.2; }
h1 { font-size: 32px; }
h2 { font-size: 40px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }
p  { font-size: 20px; color: var(--rv-text-2); line-height: 1.3; }

.accent { color: var(--rv-primary); }
.muted  { color: var(--rv-text-muted); }

/* ===== Container ===== */
.container {
    max-width: var(--container);
    width: 100%;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Active ticket badge in nav ===== */
.rv-nav a.has-active-ticket {
    position: relative;
}
.rv-nav a .nav-badge,
.rv-footer-links a .nav-badge {
    display: none;
    align-items: center;
    justify-content: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    background: #FF3B30;
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    border-radius: 999px;
    margin-left: 7px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.18), 0 4px 10px rgba(255, 59, 48, 0.4);
    animation: rvBadgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}
.rv-nav a.has-active-ticket .nav-badge,
.rv-footer-links a.has-active-ticket .nav-badge { display: inline-flex; }
@keyframes rvBadgePop {
    from { transform: scale(0); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}
.rv-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 32px 16px 0;
    pointer-events: none;
    z-index: 1000;
    display: flex;
    justify-content: center;
}

.rv-header-inner {
    width: 100%;
    max-width: 1200px;
    height: 80px;
    padding: 16px 32px;
    border-radius: 256px;
    background: rgba(21, 21, 23, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    pointer-events: auto;
}

.rv-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--rv-text);
    text-decoration: none;
    flex-shrink: 0;
    line-height: 1;
}

.rv-logo .logo-wordmark {
    height: 24px;
    width: auto;
    display: block;
    transition: opacity var(--t-fast);
}
.rv-logo:hover .logo-wordmark { opacity: 0.92; }

.rv-logo .suffix {
    color: var(--rv-text-muted);
    font-family: 'Onest', sans-serif;
    font-weight: 400;
    font-size: 14px;
    padding-left: 12px;
    border-left: 1px solid var(--rv-border-2);
    letter-spacing: 0;
    white-space: nowrap;
}

/* Spacer var so non-hero sections can clear the floating header.
   Hero sections can use this as their top padding and let texture extend
   behind the pill (which is exactly how reallyvisuals.me does it). */
:root { --header-clear: 112px; /* 32px top padding + 80px pill height */ }

/* body itself does NOT add top padding — hero extends to viewport top */

/* Header nav now sits inside the pill */
.rv-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    flex: 1;
    justify-content: center;
}

.rv-nav a {
    color: var(--rv-text-muted);
    font-size: 15px;
    font-weight: 400;
    transition: color var(--t-fast);
    position: relative;
}

.rv-nav a:hover { color: var(--rv-text-2); }
.rv-nav a.active { color: var(--rv-text); }

.rv-nav a.active::after {
    content: '';
    position: absolute;
    bottom: -22px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--rv-primary);
    border-radius: 2px;
}

.rv-header-actions { display: flex; gap: 12px; align-items: center; }

/* ===== Mobile nav: hamburger + slide-in drawer (injected by main.js) ===== */
.rv-burger { display: none; width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; cursor: pointer;
    background: rgba(255, 255, 255, .06); border: 1px solid var(--rv-border-2); pointer-events: auto;
    flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.rv-burger i { width: 18px; height: 2px; border-radius: 2px; background: var(--rv-text); display: block; }

.rv-drawer { position: fixed; inset: 0; z-index: 2000; }
.rv-drawer[hidden] { display: none; }
.rv-drawer-scrim { position: absolute; inset: 0; background: rgba(5, 5, 7, .55);
    backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); opacity: 0; transition: opacity .28s ease; }
.rv-drawer.open .rv-drawer-scrim { opacity: 1; }
.rv-drawer-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(82%, 360px);
    background: var(--rv-surface); border-left: 1px solid var(--rv-border-2); box-shadow: -20px 0 50px rgba(0, 0, 0, .5);
    display: flex; flex-direction: column; padding: 18px 18px calc(18px + env(safe-area-inset-bottom));
    transform: translateX(100%); transition: transform .3s cubic-bezier(.4, 0, .2, 1); }
.rv-drawer.open .rv-drawer-panel { transform: none; }
.rv-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; padding-top: 4px; }
.rv-drawer-head img { height: 22px; width: auto; display: block; }
.rv-drawer-x { width: 38px; height: 38px; border-radius: 11px; cursor: pointer; color: var(--rv-text-2);
    background: rgba(255, 255, 255, .06); border: 1px solid var(--rv-border-2);
    display: flex; align-items: center; justify-content: center; }
.rv-drawer-nav { display: flex; flex-direction: column; gap: 2px; }
.rv-drawer-nav a { display: flex; align-items: center; gap: 12px; padding: 15px 12px; border-radius: 13px;
    color: var(--rv-text); font-size: 17px; font-weight: 500; text-decoration: none; }
.rv-drawer-nav a.active { background: rgba(255, 123, 29, .1); color: var(--rv-primary-light); }
.rv-drawer-nav a .ni { display: flex; align-items: center; color: var(--rv-text-muted); flex-shrink: 0; }
.rv-drawer-nav a.active .ni { color: var(--rv-primary-light); }
.rv-drawer-nav a .nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
    background: var(--rv-primary); color: #1A0E03; font-size: 11px; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; }
.rv-drawer-actions { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 18px; }
.rv-drawer-actions .btn { width: 100%; height: 48px; }
/* .btn-header is display:none on narrow screens — re-show it inside the drawer. */
.rv-drawer-actions .btn-header { display: flex !important; align-items: center; justify-content: center; }

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    font-family: 'Onest', sans-serif;
    font-weight: 500;
    font-size: 16px;
    cursor: pointer;
    transition: all var(--t-norm);
    text-decoration: none;
    height: 48px;
    padding: 0 24px;
    border-radius: var(--r-pill);
    white-space: nowrap;
}

.btn-primary {
    background: var(--rv-grad-logo);
    color: #FFFFFF;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.25) inset, 0 8px 24px rgba(255, 123, 29, 0.25);
    transition: box-shadow var(--t-norm), transform var(--t-norm);
}
/* No colour swap on hover — text stays white; the button lifts slightly and a
   larger glow wraps it (the 0 0 ring spreads above & below), kept subtle. */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.30) inset, 0 0 22px 2px rgba(255, 123, 29, 0.45), 0 10px 30px rgba(255, 123, 29, 0.40);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.04);
    color: var(--rv-text-2);
    border: 1px solid var(--rv-border-2);
    transition: color var(--t-norm), border-color var(--t-norm), background var(--t-norm), transform var(--t-norm), box-shadow var(--t-norm);
}
.btn-ghost:hover {
    color: var(--rv-text);
    border-color: rgba(255, 123, 29, 0.45);
    background: rgba(255, 123, 29, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(255, 123, 29, 0.15);
}

.btn-header {
    background: var(--rv-bg-2);
    color: var(--rv-text-2);
    height: 42px;
    padding: 0 20px;
    font-size: 15px;
}
.btn-header:hover { background: var(--rv-elevated); }

.btn-lg { height: 56px; padding: 0 32px; font-size: 17px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 14px; }

/* ===== Badge ===== */
/* ===== Brand color tokens (alias to match reference site) ===== */
.rv-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px 7px 12px;
    border-radius: var(--r-pill);
    border: 1px solid rgba(255, 123, 29, 0.4);
    background: rgba(255, 123, 29, 0.06);
    color: var(--rv-primary-light);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0;
    backdrop-filter: blur(8px);
}

.rv-badge .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--rv-primary);
    box-shadow: 0 0 8px var(--rv-primary);
}

/* ===== Card ===== */
.rv-card {
    background: var(--rv-surface);
    border: 1px solid var(--rv-border);
    border-radius: var(--r-card);
    padding: 32px;
    transition: border-color var(--t-norm), transform var(--t-norm);
}

.rv-card.interactive { cursor: pointer; }
.rv-card.interactive:hover {
    border-color: rgba(255, 123, 29, 0.25);
    transform: translateY(-3px);
}

/* ===== Glow Decoration ===== */
.rv-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    background: var(--rv-primary);
    opacity: 0.10;
    filter: blur(120px);
    pointer-events: none;
    z-index: 0;
}

/* ===== Forms ===== */
.rv-input,
.rv-textarea,
.rv-select {
    width: 100%;
    background: var(--rv-bg-2);
    border: 1px solid var(--rv-border);
    border-radius: var(--r-md);
    color: var(--rv-text);
    font-family: 'Onest', sans-serif;
    font-size: 15px;
    padding: 14px 18px;
    transition: border-color var(--t-fast), background var(--t-fast);
    outline: none;
}

.rv-input::placeholder,
.rv-textarea::placeholder {
    color: var(--rv-text-disabled);
}

.rv-input:focus,
.rv-textarea:focus,
.rv-select:focus {
    border-color: var(--rv-primary);
    background: var(--rv-surface);
}

.rv-textarea { resize: vertical; min-height: 130px; line-height: 1.5; }

.rv-label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: var(--rv-text-2);
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

.rv-field { margin-bottom: 20px; }
.rv-hint  { font-size: 12px; color: var(--rv-text-muted); margin-top: 6px; }

/* ===== Section ===== */
.rv-section {
    padding: 96px 0;
    position: relative;
}

.rv-section-head {
    text-align: center;
    margin-bottom: 56px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.rv-section-head h2 { max-width: 720px; }
.rv-section-head p  { max-width: 620px; color: var(--rv-text-muted); }

/* ===== Footer ===== */
.rv-footer {
    border-top: 1px solid var(--rv-border);
    padding: 48px 0 32px;
    margin-top: 64px;
    background: var(--rv-bg-2);
}

.rv-footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}

.rv-footer-links {
    display: flex;
    gap: 28px;
}

.rv-footer-links a {
    color: var(--rv-text-muted);
    font-size: 14px;
    transition: color var(--t-fast);
}
.rv-footer-links a:hover { color: var(--rv-text-2); }

.rv-footer-copy {
    color: var(--rv-text-disabled);
    font-size: 13px;
}

/* ===== Helpers ===== */
.flex { display: flex; }
.grid { display: grid; }
.center { display: flex; align-items: center; justify-content: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mt-48 { margin-top: 48px; }
.text-center { text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 1100px) {
    .rv-header-inner { gap: 16px; padding-right: 8px; }
    .rv-nav { gap: 22px; }
    .btn-header { display: none; }
}

@media (max-width: 900px) {
    html, body { overflow-x: hidden; }   /* kill stray horizontal scroll on phones */
    h1 { font-size: 26px; }
    h2 { font-size: 30px; }
    p  { font-size: 17px; }
    .rv-section { padding: 64px 0; }
    .rv-section-head { margin-bottom: 36px; }
    /* Collapse desktop nav + actions into the hamburger drawer. */
    .rv-nav { display: none; }
    .rv-header-actions { display: none; }
    .rv-burger { display: flex; }
    .rv-card { padding: 24px; border-radius: var(--r-xl); }
}

@media (max-width: 560px) {
    h1 { font-size: 22px; }
    h2 { font-size: 24px; }
    p  { font-size: 15px; }
    .btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
    .container { padding: 0 16px; }
    .rv-section { padding: 48px 0; }
    /* Slimmer floating header pill on phones. */
    .rv-header { padding: 14px 12px 0; }
    .rv-header-inner { height: 60px; padding: 10px 14px; border-radius: 20px; gap: 12px; }
    .rv-logo .logo-wordmark { height: 21px; }
    :root { --header-clear: 86px; }
    /* Footer stacks; links go in a vertical list (matches the mobile mockup). */
    .rv-footer-inner { flex-direction: column; align-items: flex-start; gap: 16px; }
    .rv-footer-links { flex-direction: column; gap: 11px; }
    .rv-footer-links a { font-size: 13px; color: var(--rv-text-2); }
}

/* ===== Page transitions (disabled — was causing render hangs in some iframes) ===== */
.fade-in {
    opacity: 1;
}
