:root {
    --bg-dark: #050412;
    --bg-mid: #111036;
    --panel: rgba(11, 12, 42, 0.62);
    --text-main: #f6f1db;
    --text-soft: #cfd2eb;
    --accent-gold: #f2c66f;
    --accent-cyan: #77dbff;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(119, 219, 255, 0.35);
    --transition-base: 0.28s cubic-bezier(0.4, 0, 0.2, 1);
    --radius-card: 20px;
    --shadow-card: 0 8px 32px rgba(0, 0, 0, 0.28);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Plus Jakarta Sans", "Manrope", sans-serif;
    color: var(--text-main);
    background:
        radial-gradient(circle at 12% 78%, rgba(214, 154, 110, 0.28) 0 90px, rgba(175, 103, 70, 0.22) 91px 132px, rgba(110, 70, 66, 0.08) 133px 170px, transparent 171px),
        radial-gradient(circle at 12% 78%, rgba(245, 214, 188, 0.2) 0 56px, transparent 57px),
        radial-gradient(circle at 84% 18%, rgba(214, 193, 132, 0.3) 0 74px, rgba(140, 121, 166, 0.18) 75px 106px, rgba(90, 86, 144, 0.08) 107px 146px, transparent 147px),
        radial-gradient(circle at 84% 18%, rgba(248, 232, 198, 0.22) 0 38px, transparent 39px),
        radial-gradient(ellipse 160px 34px at 84% 18%, transparent 0 88px, rgba(241, 216, 188, 0.28) 89px 101px, transparent 102px),
        radial-gradient(circle at 72% 74%, rgba(120, 182, 191, 0.18) 0 54px, rgba(91, 121, 167, 0.12) 55px 82px, transparent 83px),
        radial-gradient(circle at 8% 18%, rgba(255, 255, 255, 1) 0 2px, transparent 4px),
        radial-gradient(circle at 17% 72%, rgba(255, 255, 255, 0.85) 0 1.8px, transparent 4px),
        radial-gradient(circle at 29% 38%, rgba(119, 219, 255, 0.9) 0 2px, transparent 4.5px),
        radial-gradient(circle at 41% 14%, rgba(255, 244, 214, 0.9) 0 2px, transparent 4.4px),
        radial-gradient(circle at 53% 62%, rgba(255, 255, 255, 0.88) 0 1.8px, transparent 4px),
        radial-gradient(circle at 66% 26%, rgba(119, 219, 255, 0.86) 0 2px, transparent 4.4px),
        radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.88) 0 1.9px, transparent 4px),
        radial-gradient(circle at 91% 32%, rgba(255, 255, 255, 0.82) 0 1.8px, transparent 4.2px),
        radial-gradient(circle at 15% 20%, rgba(255, 175, 4, 0.674) 0%, transparent 35%),
        radial-gradient(circle at 85% 10%, rgba(194, 161, 104, 0.2) 0%, transparent 35%),
        radial-gradient(circle at 50% 80%, rgba(120, 70, 190, 0.2) 0%, transparent 35%),
        linear-gradient(160deg, var(--bg-dark) 0%, var(--bg-mid) 45%, #05071a 100%);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 84% 18%, rgba(255, 236, 210, 0.1) 0 110px, transparent 111px),
        radial-gradient(circle at 12% 78%, rgba(255, 217, 190, 0.08) 0 132px, transparent 133px),
        radial-gradient(circle at 72% 74%, rgba(119, 219, 255, 0.08) 0 82px, transparent 83px),
        radial-gradient(circle at 12% 24%, rgba(255, 255, 255, 0.9) 0 2px, transparent 7px),
        radial-gradient(circle at 24% 84%, rgba(255, 255, 255, 0.65) 0 1.8px, transparent 6px),
        radial-gradient(circle at 36% 46%, rgba(119, 219, 255, 0.72) 0 2px, transparent 7px),
        radial-gradient(circle at 58% 18%, rgba(255, 255, 255, 0.72) 0 2px, transparent 7px),
        radial-gradient(circle at 72% 68%, rgba(255, 244, 214, 0.7) 0 2px, transparent 7px),
        radial-gradient(circle at 88% 36%, rgba(119, 219, 255, 0.65) 0 2px, transparent 7px);
    opacity: 1;
    animation: starPulse 5s ease-in-out infinite alternate;
    z-index: 0;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(circle at 12% 78%, rgba(255, 233, 212, 0.92) 0 4px, transparent 10px),
        radial-gradient(circle at 84% 18%, rgba(255, 233, 212, 0.92) 0 5px, transparent 10px),
        radial-gradient(circle at 72% 74%, rgba(119, 219, 255, 0.9) 0 4px, transparent 10px),
        linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, 0.9) 49.5%, transparent 53%) 12% 24% / 42px 42px no-repeat,
        linear-gradient(0deg, transparent 47%, rgba(255, 255, 255, 0.9) 49.5%, transparent 53%) 12% 24% / 42px 42px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(119, 219, 255, 0.75) 49.5%, transparent 53%) 36% 46% / 34px 34px no-repeat,
        linear-gradient(0deg, transparent 47%, rgba(119, 219, 255, 0.75) 49.5%, transparent 53%) 36% 46% / 34px 34px no-repeat,
        linear-gradient(90deg, transparent 47%, rgba(255, 244, 214, 0.78) 49.5%, transparent 53%) 72% 68% / 38px 38px no-repeat,
        linear-gradient(0deg, transparent 47%, rgba(255, 244, 214, 0.78) 49.5%, transparent 53%) 72% 68% / 38px 38px no-repeat,
        radial-gradient(circle at 88% 36%, rgba(255, 255, 255, 0.82) 0 4px, transparent 12px),
        radial-gradient(circle at 58% 18%, rgba(119, 219, 255, 0.72) 0 4px, transparent 12px);
    opacity: 1;
    animation: sparkleShift 4.5s ease-in-out infinite alternate;
    z-index: 0;
}

body > * {
    position: relative;
    z-index: 1;
}

header {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(16px) saturate(1.4);
    -webkit-backdrop-filter: blur(16px) saturate(1.4);
    background: rgba(5, 6, 30, 0.85);
    border-bottom: 1px solid rgba(255, 255, 255, 0.07);
    transition: background var(--transition-base), box-shadow var(--transition-base);
}

header.scrolled {
    background: rgba(5, 4, 20, 0.96);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.navbar {
    width: min(1100px, 92%);
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
}

.logo {
    font-family: "Cinzel", serif;
    color: var(--accent-gold);
    font-size: 1.8rem;
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 24px;
    text-align: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-main);
    font-size: 0.98rem;
    font-weight: 500;
    transition: color var(--transition-base);
    padding: 4px 0;
    position: relative;
}

.nav-links a::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-cyan);
    border-radius: 2px;
    transition: width var(--transition-base);
}

.nav-links a:hover {
    color: var(--accent-cyan);
}

.nav-links a:hover::after,
.nav-links a.active-link::after {
    width: 100%;
}

/* Hamburger toggle */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-base), border-color var(--transition-base);
    z-index: 102;
}

.nav-toggle:hover {
    background: rgba(119, 219, 255, 0.12);
    border-color: var(--border-glow);
}

.nav-toggle span {
    display: block;
    height: 2px;
    background: var(--text-main);
    border-radius: 2px;
    transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
    width: 100%;
}

.nav-toggle.is-open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
    opacity: 0;
    width: 0;
}

.nav-toggle.is-open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    width: min(1000px, 92%);
    margin: 80px auto 40px;
    text-align: center;
    padding: 60px 30px;
    border-radius: 24px;
    background: linear-gradient(155deg, rgba(20, 18, 66, 0.75), rgba(9, 7, 34, 0.82));
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 30px 50px rgba(0, 0, 0, 0.35);
}

.hero-home {
    position: relative;
    overflow: hidden;
}

.hero-bg-wheel {
    position: absolute;
    right: -120px;
    top: 50%;
    width: min(58vw, 620px);
    aspect-ratio: 1 / 1;
    transform: translateY(-50%);
    opacity: 0.34;
    pointer-events: none;
}

.hero-copy {
    position: relative;
    z-index: 1;
    max-width: 640px;
}

.astro-wheel {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.astro-wheel-rotor {
    transform-origin: 300px 300px;
    animation: wheelRotate 46s linear infinite;
}

.wheel-ring,
.wheel-spoke,
.wheel-inner-stars path {
    fill: none;
    stroke: url(#wheelStroke);
    stroke-linecap: round;
    stroke-linejoin: round;
}

.wheel-ring {
    stroke-width: 2;
}

.wheel-ring-soft {
    opacity: 0.7;
}

.wheel-ring-faint {
    opacity: 0.38;
}

.wheel-spoke {
    stroke-width: 1.2;
    opacity: 0.62;
}

.wheel-node {
    fill: #f4d6c0;
    opacity: 0.82;
}

.wheel-inner-stars path {
    stroke-width: 1.4;
    opacity: 0.72;
}

.tagline {
    color: var(--accent-cyan);
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero h2 {
    font-family: "Cinzel", serif;
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--accent-gold);
    margin-bottom: 16px;
}

.hero p {
    max-width: 700px;
    margin: 0 auto 26px;
    color: var(--text-soft);
    font-size: 1.05rem;
}

.book {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 30px;
    font-size: 1rem;
    font-weight: 700;
    font-family: inherit;
    border: none;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3cc7a 0%, #e99f52 60%, #d4843a 100%);
    color: #1a0f00;
    cursor: pointer;
    text-decoration: none;
    transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-base);
    position: relative;
    top: 15px;
    letter-spacing: 0.2px;
}

.book::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.book:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(233, 159, 82, 0.4), 0 4px 10px rgba(233, 159, 82, 0.2);
    filter: brightness(1.06);
}

.book:hover::after {
    opacity: 1;
}

.book:active {
    transform: translateY(-1px);
}

.active-link {
    color: var(--accent-cyan) !important;
}

.services,
.about {
    width: min(1000px, 92%);
    margin: 28px auto;
    padding: 38px 30px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.services h2,
.about h2 {
    font-family: "Cinzel", serif;
    color: var(--accent-gold);
    margin-bottom: 24px;
    text-align: center;
    font-size: 1.8rem;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 18px 18px;
    margin-bottom: 14px;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.service-card:hover {
    border-color: rgba(119, 219, 255, 0.6);
    transform: translateY(-2px);
}

.service-card h3 {
    color: var(--accent-cyan);
    margin-bottom: 6px;
    font-size: 1.14rem;
}

.service-card p,
.about p {
    color: var(--text-soft);
}

.about p {
    max-width: 760px;
    margin: 0 auto;
    text-align: center;
}

.marketplace-section {
    width: min(1100px, 92%);
    margin: 28px auto 60px;
    padding: 38px 30px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.market-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 26px;
}

.filter-chip {
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-main);
    font: inherit;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.filter-chip:hover,
.filter-chip.is-active {
    border-color: rgba(119, 219, 255, 0.55);
    background: rgba(119, 219, 255, 0.14);
    color: var(--accent-cyan);
    transform: translateY(-1px);
}

.category-block + .category-block {
    margin-top: 44px;
}

.category-block.is-hidden {
    display: none;
}

.section-heading {
    margin-bottom: 22px;
}

.section-heading h2 {
    font-family: "Cinzel", serif;
    color: var(--accent-gold);
    font-size: 1.7rem;
}

.eyebrow {
    color: var(--accent-cyan);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 0.82rem;
    margin-bottom: 8px;
}

.market-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.market-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    height: 100%;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.market-card:hover {
    transform: translateY(-4px);
    border-color: rgba(119, 219, 255, 0.5);
    box-shadow: 0 18px 35px rgba(0, 0, 0, 0.24);
}

.market-link {
    text-decoration: none;
    color: inherit;
}

.market-photo {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background:
        linear-gradient(135deg, rgba(242, 198, 111, 0.15), rgba(119, 219, 255, 0.12)),
        rgba(9, 10, 36, 0.9);
}

.market-photo-placeholder {
    display: grid;
    place-items: center;
    font-family: "Cinzel", serif;
    font-size: 1rem;
    letter-spacing: 1px;
    color: rgba(246, 241, 219, 0.9);
    background:
        linear-gradient(135deg, rgba(242, 198, 111, 0.2), rgba(119, 219, 255, 0.14)),
        radial-gradient(circle at top, rgba(255, 255, 255, 0.16), transparent 55%),
        rgba(9, 10, 36, 0.9);
}

.market-photo-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
}

.market-badge {
    align-self: flex-start;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(119, 219, 255, 0.12);
    color: var(--accent-cyan);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.market-card h3 {
    font-size: 1.02rem;
    color: var(--text-main);
    min-height: 2.6em;
    display: flex;
    align-items: flex-end;
}

.page-hero {
    margin-bottom: 28px;
}

.gemstone-product-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 28px;
    align-items: start;
}

.gemstone-stage {
    position: relative;
}

.gemstone-product-image {
    min-height: 560px;
    border-radius: 32px;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.3);
}

.gemstone-copy {
    display: grid;
    gap: 22px;
}

.gemstone-scroll-section {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 30px;
    align-items: start;
}

.gemstone-scroll-media {
    position: relative;
    min-height: 180vh;
}

.gemstone-scroll-image {
    position: sticky;
    top: 120px;
    min-height: 420px;
    border-radius: 28px;
    transform-origin: center top;
    transition: transform 0.18s linear, opacity 0.18s linear;
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
}

.gemstone-real-image {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    border-radius: inherit;
}

.gemstone-real-image-contain {
    object-fit: contain;
    padding: 22px;
    image-rendering: auto;
}

.gemstone-story-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 30px;
    align-items: start;
}

.gemstone-story-media {
    position: relative;
    min-height: 220vh;
}

.gemstone-story-image {
    position: sticky;
    top: 120px;
    min-height: 560px;
    border-radius: 32px;
    transform-origin: center top;
    transition: transform 0.18s linear, opacity 0.18s linear;
    box-shadow: 0 28px 60px rgba(0, 0, 0, 0.32);
}

.gemstone-story-content {
    display: grid;
    gap: 22px;
}

.gemstone-static-layout .gemstone-story-media {
    min-height: auto;
}

.gemstone-static-layout .gemstone-story-image {
    position: relative;
    top: 0;
    min-height: 560px;
    opacity: 1;
    transform: none;
}

.gemstone-empty-card {
    min-height: 560px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gemstone-scroll-content {
    display: grid;
    gap: 20px;
}

.review-card {
    min-height: 280px;
    padding: 28px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.review-card h3 {
    font-family: "Cinzel", serif;
    color: var(--accent-gold);
    font-size: 1.45rem;
    margin-bottom: 12px;
}

.review-card p:last-child {
    color: var(--text-soft);
    font-size: 1.02rem;
}

.content-panel {
    width: min(1100px, 92%);
    margin: 28px auto 60px;
    padding: 38px 30px;
    border-radius: 22px;
    background: var(--panel);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gem-hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.gem-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.18), transparent 24%),
        radial-gradient(circle at 82% 28%, rgba(255, 255, 255, 0.12), transparent 18%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    z-index: -1;
}

.ruby-sky {
    background:
        radial-gradient(circle at top left, rgba(255, 103, 103, 0.28), transparent 30%),
        radial-gradient(circle at bottom right, rgba(255, 180, 112, 0.22), transparent 28%),
        linear-gradient(150deg, rgba(72, 11, 28, 0.95), rgba(25, 6, 24, 0.92));
}

.emerald-sky {
    background:
        radial-gradient(circle at top left, rgba(108, 255, 178, 0.2), transparent 28%),
        radial-gradient(circle at bottom right, rgba(184, 255, 188, 0.14), transparent 30%),
        linear-gradient(150deg, rgba(10, 58, 42, 0.94), rgba(6, 23, 23, 0.92));
}

.sapphire-sky {
    background:
        radial-gradient(circle at top left, rgba(112, 177, 255, 0.24), transparent 28%),
        radial-gradient(circle at bottom right, rgba(170, 209, 255, 0.18), transparent 28%),
        linear-gradient(150deg, rgba(8, 34, 88, 0.94), rgba(7, 14, 40, 0.92));
}

.hero-orbits {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
}

.hero-orbits span {
    padding: 9px 14px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
    font-size: 0.88rem;
    backdrop-filter: blur(10px);
}

.gemstone-visual {
    overflow: hidden;
    background:
        radial-gradient(circle at top, rgba(255, 255, 255, 0.12), transparent 38%),
        linear-gradient(160deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.gemstone-story-image::after {
    content: "";
    position: absolute;
    inset: 18px;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    pointer-events: none;
}

.gemstone-real-image {
    position: relative;
    z-index: 1;
}

.gemstone-panel-intro {
    margin-bottom: 24px;
}

.gemstone-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.gemstone-fact {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gemstone-fact strong {
    display: block;
    font-size: 1.3rem;
    color: var(--accent-gold);
    font-family: "Cinzel", serif;
    margin-bottom: 4px;
}

.gemstone-highlights {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.gemstone-highlight {
    padding: 20px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gemstone-highlight h4 {
    color: var(--accent-cyan);
    margin-bottom: 8px;
    font-size: 1.02rem;
}

.gemstone-highlight p {
    color: var(--text-soft);
}

.gemstone-mini-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.gemstone-mini-card {
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.gemstone-mini-card h4 {
    color: var(--accent-gold);
    margin-bottom: 8px;
    font-size: 1rem;
}

.gemstone-mini-card p {
    color: var(--text-soft);
    font-size: 0.95rem;
}

.gemstone-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.gemstone-cta-copy p {
    margin: 0;
}

.gemstone-cta .book {
    top: 0;
}

.two-column-panel {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.centered-heading {
    text-align: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.info-card,
.form-card {
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 24px;
}

.info-card h3,
.form-card h3 {
    color: var(--accent-gold);
    font-family: "Cinzel", serif;
    margin-bottom: 10px;
    font-size: 1.3rem;
}

.info-card p,
.form-card p,
.form-card label {
    color: var(--text-soft);
}

.detail-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}

.detail-list span {
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(119, 219, 255, 0.12);
    color: var(--accent-cyan);
    font-size: 0.88rem;
}

.form-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-card input,
.form-card select,
.form-card textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(5, 6, 30, 0.78);
    color: var(--text-main);
    font: inherit;
}

.form-card input::placeholder,
.form-card textarea::placeholder {
    color: rgba(207, 210, 235, 0.72);
}

.form-card button {
    margin-top: 8px;
    align-self: flex-start;
}

@media (max-width: 900px) {
    .navbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding: 14px 0;
    }

    .logo {
        font-size: 1.45rem;
        line-height: 1.2;
    }

    .nav-links {
        width: 100%;
        gap: 14px;
        overflow-x: auto;
        padding-bottom: 4px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
    }

    .nav-links li {
        flex: 0 0 auto;
    }

    .hero,
    .services,
    .about,
    .marketplace-section,
    .content-panel {
        width: min(1000px, 94%);
        padding: 28px 20px;
        border-radius: 20px;
    }

    .hero {
        margin: 24px auto 20px;
        padding-top: 34px;
        padding-bottom: 34px;
    }

    .hero-bg-wheel {
        right: -180px;
        width: min(78vw, 520px);
        opacity: 0.18;
    }

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

    .hero h2 {
        font-size: clamp(1.8rem, 7vw, 2.5rem);
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .hero-orbits {
        gap: 10px;
    }

    .hero-orbits span {
        font-size: 0.82rem;
        padding: 8px 12px;
    }

    .book {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        width: min(100%, 320px);
        top: 8px;
    }

    .services h2,
    .about h2 {
        font-size: 1.55rem;
    }

    .service-card {
        padding: 16px;
    }

    .market-grid,
    .feature-grid,
    .gemstone-facts,
    .gemstone-highlights,
    .gemstone-mini-grid,
    .two-column-panel,
    .gemstone-product-layout,
    .gemstone-scroll-section,
    .gemstone-story-layout {
        grid-template-columns: 1fr;
    }

    .market-grid,
    .feature-grid,
    .gemstone-facts,
    .gemstone-highlights,
    .gemstone-mini-grid {
        gap: 16px;
    }

    .gemstone-product-image,
    .gemstone-story-image,
    .gemstone-empty-card {
        min-height: 380px;
    }

    .gemstone-scroll-media,
    .gemstone-story-media {
        min-height: auto;
    }

    .gemstone-scroll-image,
    .gemstone-story-image {
        position: relative;
        top: 0;
    }
}

@media (max-width: 640px) {
    body {
        line-height: 1.55;
    }

    body::before,
    body::after {
        animation: none;
        opacity: 0.55;
    }

    .navbar {
        width: min(1100px, 94%);
    }

    .nav-links {
        gap: 12px;
    }

    .nav-links a {
        font-size: 0.92rem;
        padding: 8px 0;
        display: inline-block;
    }

    .hero,
    .services,
    .about,
    .marketplace-section,
    .content-panel {
        width: min(1100px, 94%);
        padding: 22px 16px;
    }

    .hero {
        margin-top: 18px;
        overflow: visible;
    }

    .hero-bg-wheel {
        display: none;
    }

    .tagline {
        font-size: 0.82rem;
        letter-spacing: 1.5px;
    }

    .hero h2 {
        font-size: 1.9rem;
    }

    .hero p {
        font-size: 0.96rem;
    }

    .hero-orbits {
        flex-direction: column;
        align-items: center;
    }

    .hero-orbits span {
        width: 100%;
        max-width: 260px;
    }

    .book {
        width: 100%;
        max-width: 320px;
        padding: 13px 20px;
    }

    .services h2,
    .about h2,
    .section-heading h2 {
        font-size: 1.35rem;
    }

    .service-card,
    .info-card,
    .form-card,
    .gemstone-fact,
    .gemstone-highlight,
    .gemstone-mini-card,
    .market-card {
        border-radius: 16px;
    }

    .market-card h3 {
        min-height: auto;
    }

    .market-photo,
    .market-photo-placeholder {
        border-radius: 14px;
    }

    .gemstone-product-image,
    .gemstone-story-image,
    .gemstone-empty-card {
        min-height: 300px;
        border-radius: 22px;
    }

    .gemstone-story-image::after {
        inset: 12px;
        border-radius: 18px;
    }

    .detail-list {
        gap: 8px;
    }

    .detail-list span {
        font-size: 0.82rem;
        padding: 7px 10px;
    }
}

/* ============================================================
   ENHANCED CARD STYLES
   ============================================================ */

.info-card,
.service-card,
.gemstone-fact,
.gemstone-highlight,
.gemstone-mini-card {
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.info-card:hover,
.gemstone-fact:hover,
.gemstone-highlight:hover,
.gemstone-mini-card:hover {
    transform: translateY(-3px);
    border-color: rgba(119, 219, 255, 0.3);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.22);
}

.form-card input:focus,
.form-card select:focus,
.form-card textarea:focus {
    outline: none;
    border-color: rgba(119, 219, 255, 0.55);
    box-shadow: 0 0 0 3px rgba(119, 219, 255, 0.1);
    background: rgba(5, 6, 30, 0.9);
}

.form-card input,
.form-card select,
.form-card textarea {
    transition: border-color var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
}

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   ============================================================ */

[data-reveal] {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal-delay="1"] { transition-delay: 0.1s; }
[data-reveal-delay="2"] { transition-delay: 0.2s; }
[data-reveal-delay="3"] { transition-delay: 0.3s; }
[data-reveal-delay="4"] { transition-delay: 0.4s; }
[data-reveal-delay="5"] { transition-delay: 0.5s; }

/* ============================================================
   PAGE LOAD FADE-IN
   ============================================================ */

@keyframes pageFadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

main, .hero, header + * {
    animation: pageFadeIn 0.55s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ============================================================
   BACK TO TOP BUTTON
   ============================================================ */

.back-to-top {
    position: fixed;
    bottom: 28px;
    right: 28px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(242, 198, 111, 0.18), rgba(119, 219, 255, 0.14));
    border: 1px solid rgba(242, 198, 111, 0.4);
    color: var(--accent-gold);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    opacity: 0;
    pointer-events: none;
    transform: translateY(16px) scale(0.85);
    transition: opacity var(--transition-base), transform var(--transition-base), box-shadow var(--transition-base), background var(--transition-base);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.back-to-top:hover {
    background: linear-gradient(135deg, rgba(242, 198, 111, 0.3), rgba(119, 219, 255, 0.22));
    box-shadow: 0 8px 24px rgba(242, 198, 111, 0.3);
}

/* ============================================================
   PWA INSTALL BANNER
   ============================================================ */

.pwa-install-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 300;
    padding: 14px 20px;
    background: rgba(8, 7, 30, 0.95);
    border-top: 1px solid rgba(242, 198, 111, 0.3);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    gap: 16px;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.pwa-install-banner.is-visible {
    transform: translateY(0);
}

.pwa-banner-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    flex-shrink: 0;
    border: 1px solid rgba(242, 198, 111, 0.3);
}

.pwa-banner-text {
    flex: 1;
    min-width: 0;
}

.pwa-banner-text strong {
    display: block;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

.pwa-banner-text span {
    color: var(--text-soft);
    font-size: 0.82rem;
}

.pwa-install-btn {
    padding: 9px 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, #f3cc7a, #e99f52);
    color: #1a0f00;
    font-weight: 700;
    font-size: 0.88rem;
    font-family: inherit;
    border: none;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.pwa-install-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(233, 159, 82, 0.4);
}

.pwa-dismiss-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    color: var(--text-soft);
    font-size: 1rem;
    cursor: pointer;
    flex-shrink: 0;
    transition: background var(--transition-base), color var(--transition-base);
}

.pwa-dismiss-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-main);
}

/* ============================================================
   SITE FOOTER
   ============================================================ */

.site-footer {
    margin-top: 60px;
    border-top: 1px solid var(--border-subtle);
    background: rgba(5, 4, 18, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.footer-inner {
    width: min(1100px, 92%);
    margin: 0 auto;
    padding: 48px 0 32px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto auto;
    gap: 28px 48px;
    align-items: start;
}

.footer-brand {
    grid-column: 1;
    grid-row: 1;
}

.footer-brand .logo {
    font-family: "Cinzel", serif;
    color: var(--accent-gold);
    font-size: 1.3rem;
    letter-spacing: 1px;
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    color: var(--text-soft);
    font-size: 0.9rem;
    max-width: 280px;
    line-height: 1.6;
}

.footer-nav {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: flex-end;
}

.footer-nav a {
    text-decoration: none;
    color: var(--text-soft);
    font-size: 0.9rem;
    transition: color var(--transition-base);
}

.footer-nav a:hover {
    color: var(--accent-cyan);
}

.footer-bottom {
    grid-column: 1 / -1;
    grid-row: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid var(--border-subtle);
}

.footer-copy {
    color: rgba(207, 210, 235, 0.5);
    font-size: 0.82rem;
}

.footer-socials {
    display: flex;
    gap: 12px;
}

.footer-social-link {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    color: var(--text-soft);
    text-decoration: none;
    font-size: 0.85rem;
    transition: background var(--transition-base), border-color var(--transition-base), color var(--transition-base);
}

.footer-social-link:hover {
    background: rgba(119, 219, 255, 0.12);
    border-color: var(--border-glow);
    color: var(--accent-cyan);
}

/* ============================================================
   IMPROVED HERO ORBIT PILLS
   ============================================================ */

.hero-orbits span {
    transition: background var(--transition-base), border-color var(--transition-base), transform var(--transition-base);
}

.hero-orbits span:hover {
    background: rgba(119, 219, 255, 0.12);
    border-color: rgba(119, 219, 255, 0.4);
    transform: translateY(-2px);
}

/* ============================================================
   FILTER CHIP IMPROVEMENT
   ============================================================ */

.filter-chip {
    transition: transform var(--transition-base), border-color var(--transition-base), background var(--transition-base), color var(--transition-base), box-shadow var(--transition-base);
}

.filter-chip.is-active {
    box-shadow: 0 4px 14px rgba(119, 219, 255, 0.2);
}

/* ============================================================
   MARKET CARD IMPROVEMENT
   ============================================================ */

.market-card {
    transition: transform var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base);
}

.market-photo img {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.market-card:hover .market-photo img {
    transform: scale(1.06);
}

/* ============================================================
   REVIEW CARD IMPROVEMENT
   ============================================================ */

.review-card {
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.review-card:hover {
    border-color: rgba(242, 198, 111, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* ============================================================
   MOBILE NAV OVERLAY
   ============================================================ */

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(5, 4, 18, 0.7);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.nav-overlay.is-visible {
    opacity: 1;
}

/* ============================================================
   RESPONSIVE: MOBILE NAV
   ============================================================ */

@media (max-width: 900px) {
    .nav-toggle {
        display: flex;
    }

    .navbar {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0;
        padding: 14px 0;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -100%;
        width: min(300px, 80vw);
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        gap: 6px;
        padding: 80px 32px 40px;
        background: rgba(8, 7, 30, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        border-left: 1px solid rgba(242, 198, 111, 0.15);
        z-index: 101;
        transition: right 0.38s cubic-bezier(0.4, 0, 0.2, 1);
        overflow-y: auto;
    }

    .nav-links.is-open {
        right: 0;
    }

    .nav-overlay {
        display: block;
    }

    .nav-links li {
        width: 100%;
    }

    .nav-links a {
        display: block;
        font-size: 1.1rem;
        padding: 12px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        width: 100%;
    }

    .nav-links a::after {
        display: none;
    }

    .logo {
        font-size: 1.3rem;
    }

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

    .footer-nav {
        grid-column: 1;
        grid-row: 2;
        align-items: flex-start;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 12px 20px;
    }
}

@media (max-width: 640px) {
    .back-to-top {
        bottom: 20px;
        right: 20px;
        width: 42px;
        height: 42px;
    }

    .pwa-install-banner {
        padding: 12px 16px;
        gap: 12px;
    }

    .pwa-banner-icon {
        display: none;
    }

    .site-footer {
        margin-top: 40px;
    }

    .footer-inner {
        padding: 36px 0 24px;
        gap: 20px;
    }
}

@keyframes starPulse {
    0% {
        opacity: 0.35;
        transform: scale(1);
    }
    50% {
        opacity: 0.95;
        transform: scale(1.03);
    }
    100% {
        opacity: 0.55;
        transform: scale(0.98);
    }
}

@keyframes sparkleShift {
    0% {
        opacity: 0.35;
        transform: translate3d(0, 0, 0);
    }
    50% {
        opacity: 0.95;
        transform: translate3d(4px, -3px, 0);
    }
    100% {
        opacity: 0.5;
        transform: translate3d(-4px, 3px, 0);
    }
}

@keyframes wheelRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}
