@font-face {
    font-family: 'Alagard';
    src: url('typography/alagard.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

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

:root {
    --bg-main: #120e18;
    --bg-alt: #0a0710;
    --text-main: #e2e0e5;
    --text-muted: #8b8891;
    --accent-gold: #d4a017; /* Changed from bright yellow to classic RPG gold */
    --accent-gold-hover: #eebb47;
    --accent-purple: #7e22ce;
    --border-dark: #2a2533;
    --edge-section-vertical-fade:
        linear-gradient(
            to bottom,
            var(--bg-main) 0%,
            rgba(18, 14, 24, 0.96) 8%,
            rgba(18, 14, 24, 0.72) 20%,
            rgba(18, 14, 24, 0.32) 34%,
            rgba(18, 14, 24, 0.08) 46%,
            rgba(18, 14, 24, 0.08) 54%,
            rgba(18, 14, 24, 0.32) 66%,
            rgba(18, 14, 24, 0.72) 80%,
            rgba(18, 14, 24, 0.96) 92%,
            var(--bg-main) 100%
        );
    --edge-section-horizontal-fade-left:
        linear-gradient(
            to right,
            transparent 0%,
            rgba(18, 14, 24, 0.08) 18%,
            rgba(18, 14, 24, 0.18) 34%,
            rgba(18, 14, 24, 0.34) 52%,
            rgba(18, 14, 24, 0.56) 70%,
            rgba(18, 14, 24, 0.8) 86%,
            rgba(18, 14, 24, 0.94) 95%,
            var(--bg-main) 100%
        );
    --edge-section-horizontal-fade-right:
        linear-gradient(
            to left,
            transparent 0%,
            rgba(18, 14, 24, 0.08) 18%,
            rgba(18, 14, 24, 0.18) 34%,
            rgba(18, 14, 24, 0.34) 52%,
            rgba(18, 14, 24, 0.56) 70%,
            rgba(18, 14, 24, 0.8) 86%,
            rgba(18, 14, 24, 0.94) 95%,
            var(--bg-main) 100%
        );
    --container-max: 1100px;
    --section-space: clamp(5rem, 10vw, 8rem);
}

html {
    scroll-behavior: smooth;
}

body {
    /* Using a standard sans-serif for readability, Alagard for headings/buttons */
    font-family: system-ui, -apple-system, sans-serif;
    background-color: var(--bg-main);
    color: var(--text-main);
    overflow-x: hidden;
    line-height: 1.6;
}

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

h1, h2, h3, h4, .nav-logo, .btn-rpg, .step-num {
    font-family: 'Alagard', monospace;
    font-weight: normal;
}

/* ═══════════════════════════════════════
   UTILITIES
   ═══════════════════════════════════════ */
.container {
    width: min(100%, var(--container-max));
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

.text-gold {
    color: var(--accent-gold);
}

/* ═══════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: clamp(1rem, 2vw, 1.4rem) 0;
    transition: padding 0.3s ease;
}

.navbar.scrolled {
    padding: 1rem 0;
}

.nav-container {
    width: fit-content;
    max-width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 0.35rem clamp(0.75rem, 2vw, 1rem);
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 54px;
    background: rgba(18, 14, 24, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.nav-logo {
    font-size: 1.75rem;
    color: #fff;
    text-decoration: none;
    letter-spacing: 3px;
    text-shadow: 0 0 18px rgba(255, 255, 255, 0.2);
}

.nav-logo-mobile {
    display: none;
}

.nav-brand-item {
    display: flex;
    align-items: center;
    margin-right: 0.2rem;
    padding-right: 0.5rem;
    border-right: 1px solid rgba(255, 255, 255, 0.14);
}

.nav-logo-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 1rem;
    font-size: 1.75rem;
    letter-spacing: 2px;
    border-radius: 999px;
}

.nav-logo-pill:hover {
    background: transparent;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 0.2rem;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 100%;
    padding: 0.35rem;
    background: transparent;
    border: none;
    border-radius: 0.75rem;
    box-shadow: none;
}

.nav-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 0.75rem;
    color: rgba(255, 255, 255, 0.92);
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: color 0.2s ease, background 0.2s ease;
    font-family: 'Alagard', monospace;
    letter-spacing: 0;
    border-radius: 0.5rem;
    white-space: nowrap;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0.1rem 1rem;
    background: rgba(9, 13, 24, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 0.5rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    color: #fff;
    text-decoration: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
    transform: translateY(-1px);
    background: rgba(14, 20, 36, 0.92);
    border-color: rgba(255, 255, 255, 0.24);
}

.nav-toggle {
    position: absolute;
    right: clamp(1rem, 3vw, 2rem);
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: #fff;
}

/* ═══════════════════════════════════════
   BUTTONS (Retro Modern)
   ═══════════════════════════════════════ */
.btn-rpg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    background: var(--bg-alt);
    color: var(--accent-gold);
    text-decoration: none;
    font-size: 1.1rem;
    letter-spacing: 2px;
    border: 2px solid var(--accent-gold);
    border-radius: 0.5rem;
    box-shadow: 4px 4px 0px rgba(0,0,0,0.8);
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-rpg:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0px rgba(0,0,0,0.8);
    background: var(--accent-gold);
    color: #000;
}

.btn-rpg:active {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0px rgba(0,0,0,0.6);
}

.btn-rpg.btn-small {
    padding: 8px 20px;
    font-size: 1rem;
}

.nav-links .btn-rpg {
    font-family: 'Alagard', monospace;
    box-shadow: none;
    border: none;
    background: transparent;
    border-radius: 0.5rem;
    color: #fff;
}

.nav-links .btn-rpg:hover {
    transform: none;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.nav-cta-item {
    display: flex;
    align-items: center;
    margin-left: 0.2rem;
    padding-left: 0.5rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

/* ═══════════════════════════════════════
   HERO
   ═══════════════════════════════════════ */
.hero {
    position: relative;
    width: 100%;
    text-align: center;
    height: auto;
    min-height: 100svh;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    background: #09070f;
}

.hero-spacer {
    display: none;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    min-height: 100svh;
    object-fit: cover;
    object-position: center 30%;
    image-rendering: pixelated;
    filter: brightness(0.6) saturate(0.92);
}

.hero-bg::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(10, 7, 16, 0.05) 0%,
        rgba(10, 7, 16, 0.1) 30%,
        rgba(10, 7, 16, 0.2) 60%,
        rgba(9, 7, 15, 0.85) 100%
    );
    z-index: 1;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 180px;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(18, 14, 24, 0.5) 50%,
        rgba(18, 14, 24, 0.9) 80%,
        var(--bg-main) 100%
    );
    z-index: 2;
    pointer-events: none;
}

.hero::before {
    content: '';
    position: absolute;
    inset: auto auto 8% 10%;
    width: 40vw;
    height: 40vw;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    filter: blur(20px);
    pointer-events: none;
    z-index: 1;
}

.hero-particles {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent-gold);
    opacity: 0;
    animation: floatParticle 6s infinite;
}

@keyframes floatParticle {
    0% { opacity: 0; transform: translateY(0); }
    15% { opacity: 0.8; }
    100% { opacity: 0; transform: translateY(-150px); }
}

.hero-content {
    position: relative;
    z-index: 3;
    width: 100%;
    min-height: 100svh;
    padding: clamp(6rem, 10vw, 8rem) clamp(1rem, 4vw, 2rem) clamp(3rem, 6vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.hero-badge {
    display: inline-block;
    padding: 0.4rem 0.85rem;
    font-size: 0.72rem;
    font-family: system-ui, -apple-system, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
    background: rgba(176, 218, 243, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 999px;
    margin-bottom: 1.35rem;
    box-shadow: 0 10px 26px rgba(10, 20, 36, 0.14);
}

.hero-title {
    font-size: clamp(3.3rem, 6.2vw, 5.5rem);
    line-height: 0.98;
    color: #fff;
    letter-spacing: 1px;
    text-shadow: 0 0 24px rgba(255, 255, 255, 0.16);
    text-align: center;
    margin-top: -8vh;
    padding-inline: 0.2em;
    text-wrap: balance;
}

.hero-title span {
    color: rgba(255, 255, 255, 0.94);
}

.hero-copy {
    text-align: center;
    width: 100%;
    position: relative;
    z-index: 3;
}

.hero-panel {
    position: absolute;
    bottom: 4rem;
    left: 2rem;
    width: min(100%, 300px);
    background: rgba(18, 14, 24, 0.52);
    border-top-color: rgba(255, 255, 255, 0.22);
    border-color: rgba(255, 255, 255, 0.14);
    box-shadow: 0 24px 60px rgba(2, 8, 18, 0.34);
    padding: 1.5rem;
}

.hero-panel-kicker {
    display: inline-block;
    margin-bottom: 0.75rem;
    color: #f3d086;
    font-family: 'Alagard', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-panel h2 {
    margin-bottom: 1rem;
    color: #fff;
    font-size: 1.5rem;
    line-height: 1.08;
}

.hero-panel-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.hero-cta {
    min-width: auto;
    padding: 0.1rem 1rem;
}

.hero-inline-link {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: system-ui, -apple-system, sans-serif;
    font-weight: 600;
}

.hero-inline-link:hover {
    color: #fff;
}

/* ═══════════════════════════════════════
   SECTION GLOBALS
   ═══════════════════════════════════════ */
.section {
    padding: var(--section-space) 0;
}

/* Clean alternating backgrounds for better flow */
.section:nth-child(even) {
    background-color: var(--bg-alt);
}

.section-pattern {
    background-color: #1a1523; /* Lighter than --bg-main */
    background-image: radial-gradient(rgba(212, 160, 23, 0.08) 1px, transparent 1px);
    background-size: 24px 24px;
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
}

.section-header {
    margin-bottom: 4rem;
}

.section-header h2 {
    font-size: 2.5rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1rem;
}

/* ═══════════════════════════════════════
   INTEGRATED BACKGROUND SECTIONS
   ═══════════════════════════════════════ */
.section-with-bg {
    position: relative;
    padding: var(--section-space) 0;
    overflow: hidden;
}

.section-bg-image {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.section-bg-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: pixelated;
    filter: brightness(0.4);
}

.section-bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        var(--bg-main) 0%,
        rgba(10, 7, 16, 0.5) 20%,
        rgba(10, 7, 16, 0.5) 80%,
        var(--bg-main) 100%
    );
    z-index: 1;
}

.section-with-bg .container {
    position: relative;
    z-index: 2;
}

.glass-card {
    background: rgba(18, 14, 24, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(212, 160, 23, 0.3);
    padding: 2.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
    transform: translateY(-5px);
    border-top-color: var(--accent-gold);
}

/* ═══════════════════════════════════════
    FEATURE SHOWCASE (Bento / Asymmetric Edge BG)
    ═══════════════════════════════════════ */
.features-edge-bg-section {
    position: relative;
    padding: var(--section-space) 0;
}

.features-edge-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: min(50%, 46rem); /* Image takes up the left half */
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.features-edge-image-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.features-edge-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    image-rendering: pixelated;
    opacity: 0.6; /* Dimmed to fit text */
}

.features-edge-gradient {
    position: absolute;
    inset: 0;
    /* Complex gradient to fade out towards the right, top, and bottom */
    background:
        var(--edge-section-horizontal-fade-left),
        var(--edge-section-vertical-fade);
}

/* Right-aligned version for Niutem section */
.section.features-edge-bg-section-right {
    position: relative;
    padding: var(--section-space) 0;
    background-color: var(--bg-main);
}

.features-edge-bg-right {
    position: absolute;
    top: 0;
    right: 0;
    left: auto;
    width: min(50%, 46rem); /* Image takes up the right half */
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.features-edge-bg-right .features-edge-image-container img {
    object-position: right center;
}

.features-edge-gradient-right {
    position: absolute;
    inset: 0;
    /* Mirror the left-edge section so the text-side background matches exactly. */
    background:
        var(--edge-section-horizontal-fade-right),
        var(--edge-section-vertical-fade);
}

.position-relative {
    position: relative;
    z-index: 2;
}
.features-imposing-layout {
    display: grid;
    grid-template-columns: minmax(17rem, 0.95fr) minmax(0, 1.2fr);
    gap: clamp(2.5rem, 6vw, 6rem);
    align-items: start;
}

.features-layout-reverse {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 0.95fr);
}

.features-sticky-header {
    position: sticky;
    top: 120px;
    align-self: start;
}

.features-eyebrow {
    display: block;
    margin-bottom: 1rem;
    font-family: 'Alagard', monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
}

.features-title {
    font-size: clamp(2.75rem, 5vw, 4rem);
    line-height: 1.1;
    margin-bottom: 2rem;
}

.features-description {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 18.75rem;
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    min-width: 0;
}

.feature-block {
    position: relative;
    padding-left: clamp(2rem, 4vw, 3rem);
    border-left: 2px solid var(--border-dark);
    transition: border-color 0.3s;
}

.feature-block:hover {
    border-left-color: var(--accent-gold);
}

.feature-number {
    position: absolute;
    left: -1rem;
    top: -0.5rem;
    background: var(--bg-main);
    color: var(--text-muted);
    font-size: 1.5rem;
    font-family: 'Alagard', monospace;
    padding: 0.2rem 0;
    line-height: 1;
}

.feature-block:hover .feature-number {
    color: var(--accent-gold);
}

.feature-block h3 {
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: #fff;
    margin-bottom: 1rem;
}

.feature-block p {
    font-size: clamp(1rem, 2vw, 1.1rem);
    color: var(--text-muted);
    line-height: 1.8;
}

.feature-image {
    flex: 1;
}

.img-placeholder {
    width: 100%;
    aspect-ratio: 4/3;
    border: 2px solid var(--border-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0f0b14;
    position: relative;
    /* Adding a subtle offset shadow for modern feel */
    box-shadow: 8px 8px 0px rgba(0,0,0,0.5);
}

.img-placeholder span {
    color: var(--text-muted);
    font-size: 0.8rem;
    text-align: center;
    padding: 2rem;
    font-family: system-ui, sans-serif;
}

.img-placeholder::after {
    content: attr(data-label);
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--bg-main);
    padding: 0 10px;
    font-size: 0.75rem;
    color: var(--accent-gold);
    font-family: 'Alagard', monospace;
    letter-spacing: 1px;
}

/* ═══════════════════════════════════════
    HOW IT WORKS (Refined Timeline)
    ═══════════════════════════════════════ */
.timeline-section {
    padding: 6rem 0;
}

.timeline-refined {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

/* Soft faded line in center */
.timeline-refined::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 80px;
    bottom: 40px;
    width: 1px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        rgba(212, 160, 23, 0.6) 20%, 
        rgba(212, 160, 23, 0.6) 80%, 
        transparent 100%);
    transform: translateX(-50%);
    filter: blur(1px);
}

.timeline-step {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 2rem;
    position: relative;
}

.timeline-step.right {
    flex-direction: row-reverse;
}

/* Image container - larger, overlapping */
.timeline-img-container {
    flex: 1;
    height: 280px;
    position: relative;
    overflow: hidden;
}

.timeline-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: pixelated;
    filter: brightness(0.6) saturate(0.9);
    transition: all 0.5s ease;
}

/* Gradient fade on image edges */
.timeline-img-container::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg, 
        rgba(18, 14, 24, 0.8) 0%, 
        transparent 30%,
        transparent 70%,
        rgba(18, 14, 24, 0.8) 100%
    );
    pointer-events: none;
}

/* Text overlaid on image */
.timeline-text {
    flex: 0.8;
    padding: 2rem;
    background: rgba(18, 14, 24, 0.85);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(212, 160, 23, 0.2);
    position: relative;
    z-index: 2;
    margin-top: 60px;
}

.timeline-step.right .timeline-text {
    margin-top: 60px;
}

.timeline-num {
    display: block;
    font-family: 'Alagard', monospace;
    font-size: 4rem;
    color: var(--accent-gold);
    opacity: 0.12;
    line-height: 1;
    position: absolute;
    top: 0.5rem;
    right: 1.5rem;
}

.timeline-text h3 {
    font-size: 1.6rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.timeline-text p {
    color: var(--text-muted);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Dot on the line */
.timeline-step::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 10px;
    height: 10px;
    background: var(--accent-gold);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 0 15px var(--accent-gold);
    z-index: 3;
}

/* Responsive */
@media (max-width: 768px) {
    .timeline-refined::before {
        left: 30px;
    }
    
    .timeline-step,
    .timeline-step.right {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        padding-left: 50px;
    }
    
    .timeline-step::before {
        left: 30px;
    }
    
    .timeline-img-container {
        width: 100%;
        height: 200px;
    }
    
    .timeline-text {
        width: 100%;
        margin-top: -30px;
    }
    
    .timeline-step.right .timeline-text {
        margin-top: -30px;
    }
}

/* ═══════════════════════════════════════
   PRICING / CLIENTS SHOWCASE
   ═══════════════════════════════════════ */

.pricing-showcase {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 2.5rem);
    align-items: start;
}

.pricing-kicker {
    display: block;
    margin-bottom: 1rem;
    font-family: 'Alagard', monospace;
    font-size: 1rem;
    letter-spacing: 2px;
}

.pricing-info h2 {
    font-size: clamp(2rem, 4vw, 2.5rem);
    color: #fff;
    margin-bottom: 1rem;
}

.pricing-info p {
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 34rem;
}

.tier-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

.tier-box {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 2rem 1.6rem 1.8rem;
    border-radius: 1rem;
    background: rgba(18, 14, 24, 0.65);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 8px 32px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.tier-box:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow:
        0 16px 48px rgba(0, 0, 0, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* ── Tier Name ── */
.tier-name {
    font-size: 1.35rem;
    color: #fff;
    font-weight: normal;
    margin-bottom: 0.6rem;
    line-height: 1.2;
}

/* ── Price Block ── */
.tier-price-block {
    display: flex;
    align-items: baseline;
    gap: 0.2rem;
    margin-bottom: 1.2rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.tier-amount {
    font-family: 'Alagard', monospace;
    font-size: 1.6rem;
    color: var(--accent-gold);
    line-height: 1;
}

.tier-period {
    font-size: 0.85rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Popular Card ── */
.tier-popular {
    padding: 1.6rem 1.6rem 2rem;
    transform: scale(1.04);
    z-index: 2;
}

.tier-popular:hover {
    transform: scale(1.04) translateY(-4px);
}

/* ── Notch Badge ── */
.tier-corner-badge {
    width: fit-content;
    margin: -1.6rem auto 1rem;
    padding: 0.45rem 1.4rem 0.5rem;
    background: var(--accent-gold);
    border-top-left-radius: 0;
    border-top-right-radius: 0;
    border-bottom-left-radius: 0.5rem;
    border-bottom-right-radius: 0.5rem;
    font-family: 'Alagard', monospace;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #000;
    border: none;
    line-height: 1;
}

.tier-corner-badge span {
    filter: hue-rotate(250deg) saturate(1.5);
}

.tier-list {
    list-style: none;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    margin-bottom: 1.25rem;
}

.tier-list li {
    padding: 0.55rem 0;
    color: var(--text-main);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    line-height: 1.5;
    font-size: 0.92rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.tier-list li:last-child {
    border-bottom: none;
}

.tier-list li::before {
    content: '◆';
    color: rgba(212, 160, 23, 0.5);
    font-size: 0.55rem;
    margin-top: 0.45rem;
    flex-shrink: 0;
}

.tier-paypal-btn {
    --paypal-btn-radius: calc(1rem - 4px);
    --paypal-btn-inset: 2px;
    display: inline-flex;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 54px;
    margin-top: auto;
    padding: 0.85rem 1rem;
    border-radius: var(--paypal-btn-radius);
    border: 1px solid rgba(255, 255, 255, 0.04);
    background: rgba(18, 14, 24, 0.62);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.24);
    color: #f3efe7;
    text-decoration: none;
    font-family: 'Alagard', monospace;
    font-size: 0.95rem;
    font-weight: normal;
    letter-spacing: 0.1em;
    line-height: 1.15;
    text-align: center;
    text-transform: uppercase;
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.tier-paypal-btn::before {
    content: '';
    position: absolute;
    inset: var(--paypal-btn-inset);
    border-radius: calc(var(--paypal-btn-radius) - var(--paypal-btn-inset));
    box-shadow:
        inset 0 0 0 2px var(--accent-gold),
        inset 4px 4px 0 rgba(212, 160, 23, 0.15),
        inset -4px -4px 0 rgba(0, 0, 0, 0.2);
    pointer-events: none;
}

.tier-paypal-btn:hover {
    transform: translateY(1px);
    filter: brightness(1.01);
    background: rgba(18, 14, 24, 0.72);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.28);
}

.tier-paypal-btn:hover::before {
    box-shadow:
        inset 0 0 0 2px var(--accent-gold-hover),
        inset 4px 4px 0 rgba(212, 160, 23, 0.2),
        inset -4px -4px 0 rgba(0, 0, 0, 0.25);
}

/* ── Tier List ── */

.paypal-tier-container {
    width: 100%;
    margin-top: auto;
    min-height: 48px;
}

.billing-status {
    margin: 0 0 1.5rem;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.85rem;
    background: rgba(18, 14, 24, 0.58);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
    color: #f3efe7;
    font-size: 0.95rem;
    line-height: 1.5;
}

.billing-status[data-state="success"] {
    border-color: rgba(212, 160, 23, 0.38);
    background: rgba(44, 31, 10, 0.58);
}

.billing-status[data-state="error"] {
    border-color: rgba(204, 99, 99, 0.4);
    background: rgba(52, 18, 18, 0.58);
}

.billing-status[data-state="info"] {
    border-color: rgba(117, 138, 212, 0.32);
    background: rgba(18, 24, 48, 0.5);
}

.store-section .pricing-info p {
    max-width: 42rem;
}

.store-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
    align-items: stretch;
}

.store-item {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 2rem 1.6rem 1.8rem;
    border-radius: 1rem;
    background: rgba(18, 14, 24, 0.68);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow:
        0 10px 28px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.store-item:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.08);
    box-shadow:
        0 18px 46px rgba(0, 0, 0, 0.46),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.store-item-media {
    position: relative;
    width: min(100%, 14rem);
    margin: 0.65rem auto 1.25rem;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at top, rgba(212, 160, 23, 0.18), transparent 45%),
        rgba(9, 7, 13, 0.72);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.28);
}

.store-item-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: pixelated;
    padding: 0;
    filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.38));
}

.store-type {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 0.8rem;
    padding: 0.3rem 0.75rem;
    border-radius: 999px;
    border: 1px solid rgba(212, 160, 23, 0.24);
    background: rgba(212, 160, 23, 0.12);
    color: var(--accent-gold);
    font-family: 'Alagard', monospace;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.store-copy {
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    line-height: 1.65;
}

.store-helper {
    margin-top: auto;
    margin-bottom: 1rem;
    color: rgba(243, 239, 231, 0.72);
    font-size: 0.92rem;
    line-height: 1.5;
}

.paypal-store-container {
    width: 100%;
    margin-top: auto;
    min-height: 48px;
}

/* .clients-list empty ruleset removed */

.clients-list h3 {
    font-size: 1.4rem;
    color: #fff;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-dark);
}

.client-item {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px dashed var(--border-dark);
}

.client-item:last-child {
    border-bottom: none;
}

.client-name {
    color: var(--text-main);
    font-weight: 500;
}

.client-count {
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* ═══════════════════════════════════════
   DISCORD LOGIN
   ═══════════════════════════════════════ */
.btn-discord-login {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    min-height: 40px;
    padding: 0 0.75rem;
    background: #5865F2;
    color: #fff;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: system-ui, -apple-system, sans-serif;
    border: none;
    border-radius: 0.5rem;
    transition: background 0.2s ease, transform 0.2s ease;
    cursor: pointer;
}

.btn-discord-login:hover {
    background: #4752c4;
}

.btn-discord-login svg {
    flex-shrink: 0;
}

.btn-discord-login--small {
    min-height: 36px;
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.nav-discord-item {
    display: flex;
    align-items: center;
    margin-left: 0.2rem;
}

/* User badge (logged in state) */
.discord-user-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.3rem 0.6rem 0.3rem 0.3rem;
    background: rgba(88, 101, 242, 0.15);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 0.5rem;
    transition: border-color 0.2s ease;
}

.discord-user-badge:hover {
    border-color: rgba(88, 101, 242, 0.5);
}

.discord-user-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
}

.discord-user-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #fff;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.discord-logout-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.7rem;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.discord-logout-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Login gate message */
.login-gate {
    margin-top: auto;
    padding: 1.5rem;
    text-align: center;
}

.login-gate-msg {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

/* ═══════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════ */
.footer {
    background: var(--bg-alt);
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border-dark);
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 2rem;
    margin-bottom: 4rem;
}

.footer-brand h2 {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 3px;
}

.footer-brand p {
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.footer-links a {
    color: var(--text-main);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: var(--accent-gold);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid var(--border-dark);
    color: var(--text-muted);
    font-size: 0.8rem;
}

/* ═══════════════════════════════════════
   LEGAL PAGES
   ═══════════════════════════════════════ */
.legal-page {
    padding: 8rem 0 4rem;
    min-height: 80vh;
}

.legal-content {
    max-width: 48rem;
    margin: 0 auto;
}

.legal-content h1 {
    font-size: clamp(2rem, 4vw, 2.75rem);
    color: #fff;
    margin-bottom: 0.5rem;
    letter-spacing: 1px;
}

.legal-updated {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 2.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-dark);
}

.legal-content h2 {
    font-size: 1.4rem;
    color: #fff;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    letter-spacing: 0.5px;
}

.legal-content h3 {
    font-size: 1.15rem;
    color: var(--accent-gold);
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
}

.legal-content p {
    color: var(--text-muted);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.legal-content ul,
.legal-content ol {
    color: var(--text-muted);
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: none;
    padding-left: 0;
}

.legal-content ul li {
    padding: 0.35rem 0 0.35rem 1.25rem;
    position: relative;
}

.legal-content ul li::before {
    content: '◆';
    position: absolute;
    left: 0;
    color: rgba(212, 160, 23, 0.4);
    font-size: 0.5rem;
    top: 0.65rem;
}

.legal-content ol li {
    padding: 0.25rem 0;
}

.legal-content a {
    color: var(--accent-gold);
    text-decoration: none;
    transition: color 0.2s;
}

.legal-content a:hover {
    color: var(--accent-gold-hover);
    text-decoration: underline;
}

.legal-content strong {
    color: var(--text-main);
}

/* ═══════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════ */
@media (max-width: 1024px) {
    .hero-content {
        gap: 2.5rem;
    }
    .hero-panel {
        position: relative;
        bottom: auto;
        left: auto;
        margin: 2rem auto 0;
    }
    .tier-popular,
    .tier-popular:hover {
        transform: none;
    }
    .tier-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .features-edge-bg,
    .features-edge-bg-right {
        width: 100%;
    }
    .features-edge-image-container img {
        object-position: center;
        opacity: 0.28;
    }
    .features-edge-gradient,
    .features-edge-gradient-right {
        background: linear-gradient(
            180deg,
            var(--bg-main) 0%,
            rgba(18, 14, 24, 0.86) 14%,
            rgba(18, 14, 24, 0.58) 50%,
            rgba(18, 14, 24, 0.86) 86%,
            var(--bg-main) 100%
        );
    }
    .features-imposing-layout,
    .features-layout-reverse {
        grid-template-columns: 1fr;
    }
    .features-sticky-header {
        position: static;
        max-width: min(100%, 30rem);
    }
    .features-layout-reverse .features-sticky-header {
        order: -1;
    }
    .features-list {
        gap: 2.5rem;
    }
    .store-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .tier-grid {
        grid-template-columns: 1fr;
    }
    .store-grid {
        grid-template-columns: 1fr;
    }
    .navbar {
        padding: 1rem 0;
    }
    .nav-container {
        width: calc(100% - 2rem);
        max-width: 32rem;
        justify-content: center;
        padding: 0.5rem 1rem;
        min-height: 52px;
        border-radius: 0.75rem;
    }
    .nav-logo-mobile {
        position: absolute;
        left: 1rem;
        display: inline-flex;
        font-size: 1.8rem;
    }
    .nav-brand-item {
        display: none;
        margin: 0;
        padding: 0;
        border-right: none;
    }
    .nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 0.85rem);
        left: 0;
        right: 0;
        padding: 0.85rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.3rem;
        border-radius: 0.5rem;
        background: rgba(18, 14, 24, 0.9);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-top: none;
        box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li {
        width: 100%;
    }
    .nav-links a,
    .nav-cta,
    .nav-links .btn-rpg {
        width: 100%;
    }
    .nav-cta-item {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
    }
    .nav-toggle {
        right: 1rem;
        display: flex;
    }
    .hero-title {
        font-size: clamp(1.95rem, 9vw, 2.45rem);
        margin-top: 0;
        max-width: 10ch;
        margin-inline: auto;
    }
    .hero-title br {
        display: none;
    }
    .hero-title br + span::before {
        content: ' ';
    }
    .hero-content {
        width: 100%;
        padding: 7rem 1rem 3rem;
        gap: 2rem;
    }
    .hero-panel {
        width: 100%;
        padding: 1.7rem;
    }
    .hero-panel h2 {
        font-size: 1.75rem;
    }
    .hero-panel-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero-inline-link {
        display: inline-flex;
        justify-content: center;
        padding-top: 0.25rem;
    }
    .footer-grid {
        flex-direction: column;
        gap: 2rem;
    }
    .footer-links {
        flex-direction: column;
        gap: 0.75rem;
    }
}
