/*
  Cheatx Landing — Gothic Lolita × Anime UI
  Colors: black (#0b0b0d), burgundy (#6b0f1a ~ #8b0f24), ivory (#f5efe6)
  Typography: Blackletter (UnifrakturMaguntia) for display; EB Garamond for body
  Motifs: lace trim, wrought-iron roses, damask subtle background, framed cards
*/

:root {
  --black: #0b0b0d;
  --near-black: #141217;
  --burgundy-1: #6b0f1a;
  --burgundy-2: #8b0f24;
  --burgundy-3: #5a0c15;
  --ivory: #f5efe6;
  --ivory-soft: #efe8dd;
  --rose: #b73a4d;
  --shadow: 0 8px 24px rgba(0,0,0,0.35);
  --shadow-soft: 0 6px 18px rgba(0,0,0,0.25);
  --radius-pill: 999px;
  --radius-card: 18px;
  --container: 1160px;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--black);
  color: var(--ivory);
  font-family: "EB Garamond", ui-serif, Georgia, serif;
  line-height: 1.6;
  letter-spacing: 0.1px;
  /* damask subtle pattern */
  background-image:
    radial-gradient(ellipse at top left, rgba(139,15,36,0.25), transparent 55%),
    radial-gradient(ellipse at bottom right, rgba(90,12,21,0.22), transparent 60%),
    url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240" viewBox="0 0 240 240"><defs><pattern id="d" width="240" height="240" patternUnits="userSpaceOnUse" patternTransform="scale(1)"><g fill="%23141217" opacity="0.18"><path d="M120 20c8 14 22 20 38 28-16 10-30 22-38 36-8-14-22-26-38-36 16-8 30-14 38-28z"/><path d="M120 220c-8-14-22-20-38-28 16-10 30-22 38-36 8 14 22 26 38 36-16 8-30 14-38 28z"/><circle cx="120" cy="120" r="6"/></g></pattern></defs><rect width="100%" height="100%" fill="url(%23d)"/></svg>');
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, rgba(11,11,13,0.95), rgba(11,11,13,0.6) 70%, rgba(11,11,13,0));
  backdrop-filter: saturate(120%) blur(6px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ivory); text-decoration: none; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; filter: contrast(110%) saturate(90%); }
.brand-name { font-family: "UnifrakturMaguntia", cursive; font-size: 28px; letter-spacing: 0.5px; }

.site-nav { display: flex; align-items: center; gap: 16px; }
.site-nav a { color: var(--ivory); text-decoration: none; font-weight: 500; opacity: 0.88; }
.site-nav a:hover { opacity: 1; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 18px; border-radius: 10px; text-decoration: none; font-weight: 600; transition: transform .2s ease, box-shadow .2s ease, opacity .2s ease; }
.btn-pill { border-radius: var(--radius-pill); padding: 12px 22px; }
.btn-primary {
  color: var(--ivory);
  background: linear-gradient(135deg, var(--burgundy-2), var(--burgundy-1));
  box-shadow: 0 6px 14px rgba(139,15,36,0.35), inset 0 0 0 1px rgba(245,239,230,0.12);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 20px rgba(139,15,36,0.42), inset 0 0 0 1px rgba(245,239,230,0.18); }
.btn-secondary { color: var(--ivory); background: rgba(245,239,230,0.06); box-shadow: inset 0 0 0 1px rgba(245,239,230,0.12); }
.btn-secondary:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px rgba(245,239,230,0.2); }
.btn-glow { box-shadow: 0 0 16px rgba(139,15,36,0.32), 0 6px 16px rgba(0,0,0,0.4); }

/* Hero */
.hero { position: relative; padding: 80px 0 40px; }
.hero-inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.headline { font-family: "UnifrakturMaguntia", cursive; font-size: 64px; line-height: 1; margin: 0 0 10px; text-shadow: 0 2px 0 rgba(0,0,0,0.45); color: var(--rose); }
.hero .headline { font-size: 96px; }
.subhead { font-size: 20px; margin: 0 0 22px; opacity: 0.92; }
.hero-actions { display: flex; gap: 14px; }

.hero-art { display: flex; justify-content: center; }
.art-frame { position: relative; width: 100%; max-width: 420px; aspect-ratio: 1/1; border-radius: 22px; padding: 14px; background: linear-gradient(135deg, rgba(245,239,230,0.06), rgba(139,15,36,0.12)); box-shadow: var(--shadow-soft); }
.art-frame::before { content: ""; position: absolute; inset: -1px; border-radius: 24px; background: radial-gradient(120px 120px at 20% 20%, rgba(245,239,230,0.07), transparent 60%), radial-gradient(140px 140px at 80% 80%, rgba(139,15,36,0.10), transparent 65%); pointer-events: none; }
.art-frame img { width: 100%; height: 100%; object-fit: cover; border-radius: 16px; filter: saturate(80%) contrast(105%); }

.lace-edge { position: absolute; bottom: 0; left: 0; right: 0; height: 22px; background-image: radial-gradient(circle at 10px 12px, rgba(245,239,230,0.35) 2px, transparent 3px); background-size: 20px 22px; opacity: 0.4; mask-image: linear-gradient(transparent, black 40%); }

/* Section titles */
.section-title { font-family: "UnifrakturMaguntia", cursive; font-size: 36px; margin: 40px auto 18px; text-align: center; letter-spacing: 0.5px; }

/* Advantages cards */
.advantages { padding: 40px 0 10px; }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { position: relative; border-radius: var(--radius-card); background: linear-gradient(180deg, rgba(245,239,230,0.05), rgba(245,239,230,0.02)); box-shadow: var(--shadow-soft); padding: 20px; overflow: hidden; }
.card::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 1px solid rgba(245,239,230,0.12); pointer-events: none; }
.feature-card .icon { width: 44px; height: 44px; display: grid; place-items: center; color: var(--ivory); background: radial-gradient(circle at 30% 30%, rgba(139,15,36,0.4), rgba(139,15,36,0.1)); border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(245,239,230,0.12); margin-bottom: 10px; }
.feature-card svg { width: 26px; height: 26px; }
.card-title { font-family: "UnifrakturMaguntia", cursive; font-size: 24px; margin: 8px 0; }
.card-text { font-size: 16px; opacity: 0.92; }

/* Carousel */
.games { padding: 24px 0 10px; }
.games-layout { display: grid; grid-template-columns: 300px 1fr; gap: 20px; align-items: start; }
.games-illustration { margin: 0; padding: 0; width: 300px; }
.games-illustration img { width: 300px; height: 600px; object-fit: cover; border-radius: 18px; box-shadow: var(--shadow-soft); outline: 1px solid rgba(245,239,230,0.08); }
.carousel-grid { display: grid; gap: 14px; }
.carousel { overflow-x: auto; overflow-y: hidden; position: relative; padding: 10px 6px 12px; scrollbar-width: none; }
.carousel { -webkit-mask-image: linear-gradient(to right, transparent 0, black 36px, black calc(100% - 36px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, black 36px, black calc(100% - 36px), transparent 100%); }
.carousel::before, .carousel::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40px; pointer-events: none; }
.carousel::before { left: 0; background: linear-gradient(90deg, rgba(11,11,13,0.9), rgba(11,11,13,0)); }
.carousel::after { right: 0; background: linear-gradient(270deg, rgba(11,11,13,0.9), rgba(11,11,13,0)); }
.carousel::-webkit-scrollbar { display: none; }
.carousel-track { display: flex; gap: 14px; will-change: transform; user-select: none; cursor: grab; padding: 0 16px; }
.carousel-track:active { cursor: grabbing; }
.game-card { flex: 0 0 auto; width: 440px; background: linear-gradient(180deg, rgba(245,239,230,0.05), rgba(245,239,230,0.02)); border-radius: 16px; box-shadow: var(--shadow-soft); padding: 12px; text-align: center; transition: transform .2s ease, box-shadow .2s ease; position: relative; display: block; text-decoration: none; color: inherit; }
.game-card::before { content: ""; position: absolute; inset: 0; border-radius: 16px; border: 1px solid rgba(245,239,230,0.12); pointer-events: none; }
.game-card:hover { transform: translateY(-2px) scale(1.02); box-shadow: 0 10px 26px rgba(139,15,36,0.30); }
.game-thumb { width: 420px; height: 230px; margin: 6px auto 10px; border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 30% 30%, rgba(139,15,36,0.25), rgba(90,12,21,0.15)); box-shadow: inset 0 0 0 1px rgba(245,239,230,0.12); }
.game-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-name { font-size: 16px; margin-bottom: 6px; }

/* CTA */
.cta { padding: 40px 0 60px; }
.cta-inner { text-align: center; background: linear-gradient(180deg, rgba(139,15,36,0.12), rgba(139,15,36,0.05)); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-soft); max-width: 840px; margin: 0 auto; }
.cta .headline { font-size: 40px; margin-bottom: 2px; }

/* Footer */
.site-footer { border-top: 1px solid rgba(245,239,230,0.1); background: linear-gradient(180deg, rgba(11,11,13,0.9), rgba(11,11,13,1)); padding: 20px 0; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.footer-brand { font-family: "UnifrakturMaguntia", cursive; font-size: 22px; opacity: 0.9; }
.footer-copy { opacity: 0.7; font-size: 12px; }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 64px 0 32px; }
  .hero .headline { font-size: 56px; }
  .subhead { font-size: 18px; }
  .hero-actions { gap: 12px; }
  .art-frame { max-width: 320px; margin: 0 auto; }
  .cards { grid-template-columns: 1fr; }
  .games-layout { grid-template-columns: 1fr; }
  .games-illustration { display: flex; justify-content: center; margin-bottom: 8px; }
  .games-illustration img { width: 240px; height: 480px; }
  .carousel-grid { gap: 10px; }
}

@media (max-width: 600px) {
  .container { padding: 0 14px; }
  .site-nav a:not(.btn) { display: none; }
  .btn-pill { padding: 10px 18px; }
  .hero { padding-top: 56px; }
  .hero .headline { font-size: 44px; }
  .subhead { font-size: 16px; }
  .art-frame { max-width: 280px; }
  .cards { gap: 12px; }
  .game-card { width: 86vw; }
  .game-thumb { width: 100%; height: calc(86vw * 230 / 420); }
  .carousel { padding: 8px 4px 10px; }
  .carousel-track { gap: 10px; padding: 0 10px; }
  .carousel { -webkit-mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, black 20px, black calc(100% - 20px), transparent 100%); }
  .carousel::before, .carousel::after { width: 22px; }
  .game-name { font-size: 14px; }
}


