:root {
  --bg-main: #090819;
  --bg-alt: #141329;
  --bg-card: #1e1b3a;
  --bg-card-soft: #232048;
  --accent-primary: #7b5cff;
  --accent-secondary: #4cc2ff;
  --accent-glow: rgba(123, 92, 255, 0.45);
  --text-main: #f5f3ff;
  --text-muted: #b1aedc;
  --border-soft: rgba(255, 255, 255, 0.06);
  --radius-xl: 24px;
  --radius-lg: 18px;
  --shadow-soft: 0 24px 60px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 40px var(--accent-glow);
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: radial-gradient(circle at top, #1f1540 0, #090819 55%, #05040c 100%);
  color: var(--text-main);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wrapper {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header / Nav */

header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: linear-gradient(
    to bottom,
    rgba(9, 8, 25, 0.92),
    rgba(9, 8, 25, 0.75),
    transparent
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  gap: 16px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 20%, #ffffff 0, #7b5cff 30%, #2a1748 70%);
  box-shadow: var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.4);
  opacity: 0.7;
}

.logo-text {
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  font-size: 1.02rem;
  text-transform: uppercase;
}

/* Replace old logo styles */
.logo-mark,
.logo-text {
  display: none !important;
}

/* New Aicyng logo */
.logo-aicyng {
  height: 40px;
  width: auto;
  display: block;
}

/* Adventures subtitle logo */
.logo-adventures {
  height: 38px;
  width: auto;
  margin-left: 10px;
  display: block;
  position: relative;
  top: 1px;
}

.nav-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links {
  display: flex;
  gap: 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.nav-links a {
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  transition: width 0.2s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-cta {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 8px 18px;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease,
    border-color 0.12s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: #05030b;
  box-shadow: var(--shadow-glow);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.8);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: rgba(255, 255, 255, 0.12);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

/* Sections */

main {
  flex: 1;
}

section {
  padding: 48px 0 32px;
}

section + section {
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

/* Hero */

.eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--accent-secondary);
  margin-bottom: 12px;
}

.hero {
  padding: 72px 0 60px;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 40px;
  align-items: center;
}

h1.hero-title {
  font-family: "Cinzel", serif;
  font-size: clamp(2.6rem, 4vw, 3.4rem);
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero-highlight {
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-body {
  font-size: 0.98rem;
  color: var(--text-muted);
  max-width: 32rem;
  margin-bottom: 24px;
}

.hero-body-white {
  font-size: 0.8rem;
  color: white;
  max-width: 32rem;
  margin-bottom: 24px;
}


.hero-meta {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero-meta span strong {
  color: #ffffff;
}

.hero-art-shell {
  position: relative;
  border-radius: var(--radius-xl);
  padding: 18px;
  background: radial-gradient(circle at top, rgba(123, 92, 255, 0.3), transparent 65%);
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.hero-art-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 120% -10%, rgba(76, 194, 255, 0.4), transparent 40%);
  opacity: 0.9;
  pointer-events: none;
}

.hero-art-inner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, #271a4a, #121126);
}

.hero-art-inner img {
  width: 100%;
  height: auto;
  opacity: 0.96;
}

.hero-tagline-overlay {
  position: absolute;
  left: 18px;
  bottom: 18px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(7, 4, 24, 0.75);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.hero-tagline-overlay strong {
  color: #fff;
  display: block;
  font-size: 0.82rem;
  margin-bottom: 4px;
}

/* Aicyng Fantasy Table Style */
.aicyng-table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    font-size: 1rem;
    background: rgba(20, 10, 45, 0.4);
    backdrop-filter: blur(6px);
    border-radius: 8px;
    overflow: hidden;
    color: #e4e2ff;
}

.aicyng-table thead {
    background: linear-gradient(90deg, #5a46d6, #4e8de0);
    color: white;
}

.aicyng-table th {
    padding: 14px 16px;
    font-weight: 700;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid rgba(255,255,255,.15);
}

.aicyng-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}

.aicyng-table tbody tr {
    transition: background 0.25s ease;
}

.aicyng-table tbody tr:nth-child(even) {
    background: rgba(255,255,255,0.05);
}

.aicyng-table tbody tr:hover {
    background: rgba(120, 90, 220, 0.25);
}

/* Optional: subtle glow effect for headings */
.aicyng-table thead th {
    text-shadow: 0 0 6px rgba(255,255,255,.6);
}

/* Optional small variant */
.aicyng-table.small td,
.aicyng-table.small th {
    padding: 8px 10px;
    font-size: 0.8rem;
}

.center-image {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

.center-image-glow {
    display: block;
    margin: 20px auto;
    max-width: 90%;
    height: auto;
    filter: drop-shadow(0 0 18px rgba(123, 92, 255, 0.45))
            drop-shadow(0 0 8px rgba(76, 194, 255, 0.25));
    border-radius: 12px;
}


/* Section headers */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
}

.section-title-block h2 {
  margin: 0 0 6px;
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-main);
}

.section-title-block p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 32rem;
}

/* Full-width section header */
.section-title-full {
  grid-column: 1 / -1;              /* span entire grid row */
  margin-bottom: 18px;
  padding: 18px 22px;
  font-size: 0.76rem;
  color: var(--text-muted);
  
}

.section-title-full h2,
.section-title-full h1 {
  margin: 0;
}

.section-title-full p {
  margin: 6px 0 0;
  max-width: 900px;
  opacity: 0.9;
}


.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 0.78rem;
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 10, 32, 0.9);
  color: var(--text-muted);
}

/* Grids & Cards */

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.card {
  background: radial-gradient(circle at top left, rgba(123, 92, 255, 0.25), transparent 55%),
    var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-soft);
  padding: 16px 16px 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.card-title {
  font-size: 0.96rem;
  font-weight: 600;
}

.card-pill {
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(76, 194, 255, 0.12);
  color: #c0e8ff;
  border: 1px solid rgba(76, 194, 255, 0.7);
}

.card-body {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 6px;
}

.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.tag {
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(10, 15, 36, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.sheet-preview {
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(135deg, #231c47, #15132b);
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.sheet-preview img {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Features & CTA */

.features-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.feature-item {
  background: var(--bg-card-soft);
  border-radius: 16px;
  border: 1px solid var(--border-soft);
  padding: 14px 14px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feature-item h3 {
  margin: 0 0 6px;
  font-size: 0.9rem;
  color: var(--text-main);
}

.feature-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-secondary);
  margin-bottom: 4px;
}

.cta-section {
  margin-top: 40px;
  padding: 22px 20px;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle at top right, rgba(76, 194, 255, 0.25), transparent 55%),
    linear-gradient(135deg, #17132c, #0b0618);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.cta-section h3 {
  margin: 0 0 4px;
  font-size: 1.1rem;
}

.cta-section p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 22rem;
}

/* Footer */

footer {
  padding: 22px 0 26px;
  font-size: 0.76rem;
  color: var(--text-muted);
}

.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

footer a {
  color: var(--text-muted);
}

.footer-social {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 12px 0 20px;
}

.footer-social img {
  display: block;
}

/* Character card flip animation */

.character-card {
  perspective: 1200px;
  cursor: pointer;
}

.character-card .card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.6s ease;
}

.character-card .card-face {
  position: relative;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}


.character-card .card-back {
  position: absolute;
  inset: 0;
  padding: 16px 16px 18px;
  border-radius: var(--radius-lg);
  background: radial-gradient(circle at top right, rgba(76, 194, 255, 0.2), transparent 60%),
    var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  transform: rotateY(180deg);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* When flipped */
.character-card.is-flipped .card-inner {
  transform: rotateY(180deg);
}

/* Responsive */
/* =========================================================
   TABLET & SQUEEZED DESKTOP (STACK HERO EARLY)
   ========================================================= */
@media (max-width: 900px) {

  /* ----- HERO LAYOUT ----- */
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .hero-inner {                /* was .hero-grid */
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
  }

  .hero-art-shell {
    width: 100%;
  }

  .hero-art-inner {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 16px;
  }

  .hero-art-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  /* Make overlay lighter + centered */
  .hero-tagline-overlay {
    max-width: 52ch;
    margin: 0 auto;
    font-size: 0.9rem;
    line-height: 1.35;
  }

  /* Hero buttons wrap instead of squeezing */
  .hero-actions,
  .hero-cta {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* =========================================================
   MOBILE (PHONES)
   ========================================================= */
@media (max-width: 640px) {

  /* ----- HEADER / NAV STACK ----- */
  .nav {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .nav-left {
    width: 100%;
    justify-content: center;
  }

  .nav-links {
    display: flex;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 10px;
    font-size: 0.9rem;
  }

  .nav-cta {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
  }

  /* ----- HERO ----- */
  .hero {
    padding-top: 48px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

    .hero-inner {                /* was .hero-grid */
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hero-art-inner {
    aspect-ratio: 4 / 3;   /* better phone balance */
  }

  /* Move overlay below image if needed */
  .hero-tagline-overlay {
    position: static;
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 0.85rem;
    line-height: 1.35;
  }

  /* Headline scaling */
  .hero h1 {
    font-size: 2.2rem;
    line-height: 1.05;
  }

  /* Hero buttons stack cleanly */
  .hero .btn {
    width: 100%;
    justify-content: center;
  }

  /* ----- GRIDS / CARDS ----- */
  .grid-3,
  .grid-2,
  .features-list {
    grid-template-columns: 1fr;
  }

  /* ----- CTA SECTION ----- */
  .cta-section {
    align-items: flex-start;
  }
}

/* =========================
   Cookie Banner (Modern Toast)
   ========================= */
.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 2147483647;

  display: flex;
  justify-content: center;
  pointer-events: auto; /* lets clicks pass through except on the banner itself */
}

.cookie-banner[hidden] {
  display: none !important;
}

.cookie-banner__inner {
  pointer-events: auto;
  width: 100%;
  max-width: 820px;

  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;

  padding: 12px 12px;
  border-radius: 18px;

  background: linear-gradient(
      180deg,
      rgba(22, 14, 48, 0.78),
      rgba(10, 10, 22, 0.82)
    );
  border: 1px solid rgba(140, 110, 255, 0.22);
  backdrop-filter: blur(12px);

  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset;

  animation: cookiePop 0.28s ease-out;
}

@keyframes cookiePop {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.cookie-banner__text {
  display: grid;
  gap: 2px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.84rem;     /* smaller */
  line-height: 1.25;
}

.cookie-banner__text strong {
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.2px;
}

.cookie-banner__text span {
  color: rgba(255, 255, 255, 0.74);
}

/* Actions */
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

/* Smaller, modern buttons (don’t depend on existing .btn sizing) */
.cookie-banner .btn {
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 0.84rem;
  line-height: 1;
}

/* Ghost button that fits the theme */
.cookie-banner .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.86);
}

.cookie-banner .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.10);
}

/* Primary button “glow” (still subtle) */
.cookie-banner .btn:not(.btn-ghost) {
  background: linear-gradient(90deg, rgba(110, 92, 255, 0.95), rgba(70, 180, 255, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.95);
  box-shadow: 0 10px 22px rgba(90, 110, 255, 0.22);
}

.cookie-banner .btn:not(.btn-ghost):hover {
  filter: brightness(1.03);
}

/* Mobile */
@media (max-width: 640px) {
  .cookie-banner {
    left: 12px;
    right: 12px;
    bottom: 12px;
  }

  .cookie-banner__inner {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 12px;
  }

  .cookie-banner__actions {
    gap: 8px;
  }

  .cookie-banner .btn {
    width: 100%;
    justify-content: center;
  }
}

.faq-item {
  padding: 12px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.faq-item:first-child {
  border-top: none;
  padding-top: 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  opacity: 0.7;
}

.faq-item[open] summary::after {
  content: "–";
}

.faq-item p {
  margin: 10px 0 0;
  opacity: 0.9;
}

/* Adventure detail layout */
.adventure-head {
  margin: 18px 0 14px;
}

.adventure-title {
  margin: 6px 0 0;
}

.adventure-layout {
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 14px;
}

.adventure-main-image {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(165, 140, 255, 0.18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

.adventure-main-image img {
  width: 100%;
  height: auto;
  display: block;
}

.adventure-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.thumb {
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(165, 140, 255, 0.18);
  background: transparent;
  padding: 0;
  cursor: pointer;
  opacity: 0.85;
  transition: transform 120ms ease, opacity 120ms ease, border-color 120ms ease;
}

.thumb img {
  width: 100%;
  height: 86px;
  object-fit: cover;
  display: block;
}

.thumb:hover {
  opacity: 1;
  transform: translateY(-1px);
  border-color: rgba(76, 194, 255, 0.35);
}

.thumb.is-active {
  opacity: 1;
  border-color: rgba(124, 92, 255, 0.6);
  box-shadow: 0 10px 24px rgba(124, 92, 255, 0.18);
}

.adventure-buy .card-footer {
  align-items: center;
}

.adventure-mini-note {
  margin-top: 10px;
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Responsive */
@media (max-width: 900px) {
  .adventure-layout {
    grid-template-columns: 1fr;
  }

  .adventure-thumbs {
    grid-template-columns: repeat(3, 1fr);
  }

  .thumb img {
    height: 74px;
  }
}

@media (max-width: 640px) {
  .thumb img {
    height: 64px;
  }
}

.centered-img {
  display: block;
  margin: 18px auto;
  max-width: 100%;
  height: auto;
  border-radius: 16px;
  border: 1px solid rgba(165, 140, 255, 0.18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.45);
}

/* =========================
   YouTube Video Embed
========================= */

.video-shell {
  max-width: 440px;
  margin: 0 auto;
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}



