@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600&family=Crimson+Text:ital,wght@0,400;0,600;1,400&display=swap');

:root {
  --bg: #0d0d12;
  --gold: #c9892a;
  --red: #8b1a1a;
  --title: #f5e6c8;
  --body: #a8a09a;
  --muted: #777;
  --border: #c9892a33;
  --border-strong: #c9892a55;
  --gradient-btn: linear-gradient(135deg, #8b1a1a, #c9892a);
  --gradient-line: linear-gradient(90deg, transparent, #8b1a1a 20%, #c9892a 50%, #8b1a1a 80%, transparent);
  --font-title: 'Cinzel', Georgia, serif;
  --font-body: 'Crimson Text', Georgia, serif;
  --max-w: 960px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
}

/* Dezente Textur-Körnung */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.028;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

h1, h2, h3 {
  font-family: var(--font-title);
  color: var(--title);
  line-height: 1.2;
  letter-spacing: 0.02em;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* === SCROLL-PROGRESS-LINIE === */
#scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0%;
  background: var(--gradient-line);
  z-index: 500;
  transition: width 0.08s linear;
  pointer-events: none;
}

/* === BUTTONS === */
.btn-primary {
  display: inline-block;
  background: var(--gradient-btn);
  color: var(--title);
  padding: 13px 32px;
  border-radius: 2px;
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s, box-shadow 0.3s;
  position: relative;
  overflow: hidden;
}
/* Button shimmer on hover */
.btn-primary::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 60%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: skewX(-20deg);
  transition: left 0.45s ease;
}
.btn-primary:hover { opacity: 0.95; text-decoration: none; box-shadow: 0 0 24px rgba(201,137,42,0.35); }
.btn-primary:hover::after { left: 160%; }

/* === PULSE-GLOW CTA === */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(201,137,42,0); }
  50%       { box-shadow: 0 0 36px rgba(201,137,42,0.4), 0 0 8px rgba(201,137,42,0.2); }
}
.hero-cta { animation: pulse-glow 3s ease-in-out infinite; }

/* === SECTION DIVIDER LINE === */
.section-line {
  height: 1px;
  background: var(--gradient-line);
  margin-bottom: 64px;
}

section { padding: 72px 0; position: relative; }

@media (max-width: 640px) {
  section { padding: 64px 0; }
}

section + section::before {
  content: '── ✦ ──';
  display: block;
  text-align: center;
  color: var(--gold);
  opacity: 0.4;
  font-size: 13px;
  margin-bottom: 80px;
  letter-spacing: 14px;
  font-family: var(--font-title);
}

/* Ersten Trenner (Hero → Problem) ausblenden */
#hero + section::before { display: none; }

/* === SCROLL-REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.85s ease-out, transform 0.85s ease-out;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Headings: same fade+slide as other reveals, no clip-path gap */
h2.reveal {
  transform: translateY(18px);
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-cta  { animation: none; }
  .hero-headline { animation: none !important; background: none !important; -webkit-text-fill-color: var(--title) !important; color: var(--title) !important; }
  .hero-d20  { animation: none !important; }
  .btn-primary::after { display: none; }
  .feature-card::after { display: none; }
  #ember-canvas { display: none; }
  #scroll-progress { display: none; }
}

/* Staggered card delays */
.feature-card:nth-child(2) { transition-delay: 0.07s; }
.feature-card:nth-child(3) { transition-delay: 0.14s; }
.feature-card:nth-child(4) { transition-delay: 0.21s; }
.feature-card:nth-child(5) { transition-delay: 0.07s; }
.feature-card:nth-child(6) { transition-delay: 0.14s; }
.feature-card:nth-child(7) { transition-delay: 0.21s; }
.feature-card:nth-child(8) { transition-delay: 0.28s; }

/* === NAV === */
#nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 18, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.nav-logo {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  text-decoration: none;
}
.nav-logo:hover { text-decoration: none; opacity: 0.85; }

.nav-right { display: flex; align-items: center; gap: 20px; }
.lang-toggle { display: flex; align-items: center; gap: 6px; }

.lang-btn {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--font-title);
  letter-spacing: 1px;
  cursor: pointer;
  padding: 10px 8px;
  min-height: 44px;
  transition: color 0.2s;
}
.lang-btn.active { color: var(--gold); }
.lang-btn:hover  { color: var(--gold); }

.lang-sep { color: var(--muted); font-size: 12px; }
.nav-cta  { font-size: 11px; padding: 8px 18px; }

@media (max-width: 480px) { .nav-cta { display: none; } }

/* === HERO === */
#hero { padding: 0; text-align: center; overflow: hidden; }

.hero-line { height: 1px; background: var(--gradient-line); }

.hero-inner {
  padding: 104px 24px 120px;
  position: relative;
}


/* Atmospheric glow backdrop */
.hero-inner::before {
  content: '';
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 560px;
  background:
    radial-gradient(ellipse 55% 35% at 50% 25%, rgba(201,137,42,0.1) 0%, transparent 70%),
    radial-gradient(ellipse 35% 55% at 28% 65%, rgba(139,26,26,0.07) 0%, transparent 60%),
    radial-gradient(ellipse 35% 55% at 72% 65%, rgba(139,26,26,0.07) 0%, transparent 60%);
  pointer-events: none;
}

/* === CANVAS & D20 (positioned behind text) === */
#ember-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.hero-d20 {
  position: absolute;
  width: min(480px, 85vw);
  height: auto;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--gold);
  opacity: 0.12;
  animation: d20-drift 90s linear infinite;
  pointer-events: none;
}

@keyframes d20-drift {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes d20-roll {
  0%   { opacity: 0.12;  transform: translate(-50%, -50%) rotate(0deg)   scale(1); }
  25%  { opacity: 0.32;  transform: translate(-50%, -50%) rotate(200deg) scale(1.1); }
  65%  { opacity: 0.20;  transform: translate(-50%, -50%) rotate(330deg) scale(1.05); }
  100% { opacity: 0.12;  transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

.hero-d20.rolling {
  animation: d20-roll 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards !important;
}

/* Content above canvas/d20 */
.hero-badge, .hero-headline, .hero-sub, .hero-cta, .hero-pills {
  position: relative;
}

/* === HERO TEXT === */
.hero-badge {
  display: inline-block;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  padding: 6px 20px;
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

/* Gold-Shimmer on headline */
@keyframes text-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}

.hero-headline {
  font-size: clamp(30px, 5.5vw, 48px);
  margin-bottom: 24px;
  background: linear-gradient(
    90deg,
    var(--title) 20%,
    #ffe898 36%,
    #fff8d6 48%,
    #ffe898 60%,
    var(--title) 76%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--title);
  animation: text-shimmer 6s ease-in-out infinite 2s;
}

.hero-sub {
  max-width: 520px;
  margin: 0 auto 32px;
  font-size: 17px;
  line-height: 1.8;
  font-style: italic;
  color: #b0a89a;
}

.hero-cta { margin-bottom: 32px; }

.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }

.pill {
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 5px 14px;
  color: var(--gold);
  font-size: 11px;
  font-family: var(--font-title);
  letter-spacing: 0.5px;
  opacity: 0.7;
}

/* === PROBLEM === */
.section-label {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 20px;
  opacity: 0.7;
}

.section-heading {
  font-size: clamp(22px, 3.5vw, 34px);
  margin-bottom: 28px;
  max-width: 640px;
}

@media (max-width: 640px) {
  .section-label   { margin-bottom: 6px; }
  .section-heading { margin-bottom: 18px; }
  .problem-text    { gap: 14px; }
  .solution-sub    { margin-bottom: 28px; }
}

.problem-text { max-width: 620px; display: flex; flex-direction: column; gap: 20px; }
.problem-text p { font-size: 17px; line-height: 1.85; }

/* === SOLUTION === */
.solution-sub { max-width: 600px; font-size: 17px; line-height: 1.85; margin-bottom: 48px; font-style: italic; }

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

.screenshot-placeholder {
  aspect-ratio: 8/5;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
  font-style: italic;
  background: #0f0f18;
}

@media (max-width: 640px) { .screenshots { grid-template-columns: 1fr; } }

/* === FEATURES === */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 40px;
}

.feature-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 24px 20px;
  background: #13131e;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.3s;
}

/* Top-left corner ornament */
.feature-card::before {
  content: '';
  position: absolute;
  top: 6px; left: 6px;
  width: 8px; height: 8px;
  border-width: 1px 0 0 1px;
  border-style: solid;
  border-color: var(--gold);
  opacity: 0;
  transition: opacity 0.3s;
}

/* Shimmer sweep */
.feature-card::after {
  content: '';
  position: absolute;
  top: 0; left: -80%;
  width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent 0%, rgba(201,137,42,0.07) 50%, transparent 100%);
  transform: skewX(-15deg);
  transition: left 0.55s ease;
  pointer-events: none;
}

.feature-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 28px rgba(201,137,42,0.1), inset 0 0 30px rgba(201,137,42,0.03);
  transform: translateY(-2px);
}
.feature-card:hover::before { opacity: 0.65; }
.feature-card:hover::after  { left: 140%; }

.feature-icon {
  font-size: 18px;
  margin-bottom: 14px;
  color: var(--gold);
  font-family: var(--font-title);
  line-height: 1;
  opacity: 0.75;
}

.feature-card h3 {
  font-family: var(--font-title);
  font-size: 14px;
  color: var(--gold);
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

.feature-card p { font-size: 15px; line-height: 1.65; }

@media (max-width: 800px) { .features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .features-grid { grid-template-columns: 1fr; } }

/* === PRICING === */
.pricing-box {
  max-width: 420px;
  margin: 40px auto 0;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  padding: 48px 40px;
  text-align: center;
  background: #13131e;
  position: relative;
}

/* Corner ornaments on pricing box (permanent) */
.pricing-box::before,
.pricing-box::after {
  content: '';
  position: absolute;
  width: 16px; height: 16px;
  border-color: var(--gold);
  border-style: solid;
  opacity: 0.45;
}
.pricing-box::before { top: 10px; left: 10px; border-width: 1px 0 0 1px; }
.pricing-box::after  { bottom: 10px; right: 10px; border-width: 0 1px 1px 0; }

.pricing-amount {
  font-family: var(--font-title);
  font-size: 64px;
  color: var(--title);
  line-height: 1;
  margin-bottom: 4px;
  text-shadow: 0 0 40px rgba(201,137,42,0.2);
}

.pricing-type {
  color: var(--gold);
  font-family: var(--font-title);
  font-size: 10px;
  letter-spacing: 3px;
  text-transform: uppercase;
  margin-bottom: 32px;
  opacity: 0.7;
}

.pricing-includes { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; text-align: left; }

.pricing-item { font-size: 15px; }

.pricing-cta { width: 100%; text-align: center; margin-bottom: 16px; display: block; }

.pricing-note { font-size: 13px; color: var(--muted); font-style: italic; }

/* === FAQ === */
.faq-list { max-width: 640px; margin-top: 40px; }

.faq-item { border-top: 1px solid rgba(201,137,42,0.1); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid rgba(201,137,42,0.1); }

.faq-q { color: var(--title); font-family: var(--font-title); font-size: 16px; margin-bottom: 12px; letter-spacing: 0.02em; }

.faq-a { font-size: 16px; line-height: 1.8; }

/* === FOOTER === */
#footer { border-top: 1px solid var(--border); padding: 32px 0 0; margin-top: 40px; }

.footer-inner { display: flex; align-items: center; justify-content: space-between; padding-bottom: 24px; }

.footer-copy { color: var(--muted); font-size: 13px; font-family: var(--font-title); letter-spacing: 0.5px; }

.footer-links { display: flex; gap: 8px; align-items: center; }

.footer-links a { color: var(--muted); font-size: 13px; transition: color 0.2s; }
.footer-links a:hover { color: var(--gold); text-decoration: none; }

.footer-sep { color: var(--muted); font-size: 13px; }

.footer-line { height: 1px; background: var(--gradient-line); }
