@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg-primary: #0b1418;
  --bg-secondary: #142026;
  --bg-tertiary: #0e171b;
  --accent: #d9a05b;
  --accent-light: #f1c98a;
  --accent-dark: #a8703a;
  --accent-purple: #6b5a8a;
  --text-primary: #e8e2d6;
  --text-secondary: #9aa7ad;
  --text-muted: #6c7a80;
  --border-color: rgba(217, 160, 91, 0.18);
  --font-heading: 'Cinzel', Georgia, 'Times New Roman', serif;
  --font-body: 'Inter', -apple-system, sans-serif;
  --container-width: 1180px;
}

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

html { scroll-behavior: smooth; }
html.hide #preloader { opacity: 0; pointer-events: none; }

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }

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

/* Preloader */
#preloader {
  position: fixed;
  inset: 0;
  background: var(--bg-primary);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

/* Buttons */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.5px;
  padding: 16px 32px;
  border-radius: 6px;
  text-align: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-light), var(--accent), var(--accent-dark));
  color: #1a0f05;
  box-shadow: 0 8px 24px rgba(217, 160, 91, 0.25);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(217, 160, 91, 0.35);
}

@keyframes levitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.btn-levitate {
  animation: levitate 3s ease-in-out infinite;
}

.btn-levitate:hover {
  animation-play-state: paused;
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

.site-header.scrolled {
  background: rgba(11, 20, 24, 0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.4);
}

.header-inner {
  position: relative;
  z-index: 1001;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 18px;
  padding-bottom: 18px;
}

.logo-link { flex-shrink: 0; }
.logo-img { height: 40px; width: auto; }

.header-tagline {
  font-family: var(--font-heading);
  font-size: 13px;
  color: var(--text-secondary);
  letter-spacing: 0.5px;
  border-left: 1px solid var(--border-color);
  padding-left: 16px;
  white-space: nowrap;
}

.main-nav {
  display: flex;
  gap: 32px;
  margin-left: auto;
}

.nav-link {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--accent); }

.header-cta { flex-shrink: 0; padding: 12px 24px; font-size: 14px; }

.burger-btn {
  display: none;
  background: transparent;
  border: 0;
  width: 32px;
  height: 24px;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  flex-shrink: 0;
  padding: 0;
}

.burger-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.burger-btn.act span:nth-child(1) { transform: translateY(11px) rotate(45deg); }
.burger-btn.act span:nth-child(2) { opacity: 0; }
.burger-btn.act span:nth-child(3) { transform: translateY(-11px) rotate(-45deg); }

#mobile-menu {
  opacity: 0;
  pointer-events: none;
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 100%;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 100px 32px 40px;
  transform: translateX(100%);
  transition: transform 0.35s ease, opacity 0.35s ease;
  z-index: 999;
}

#mobile-menu.opened {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
}

#mobile-menu .nav-link { font-size: 18px; }

body.fixed { overflow: hidden; }

/* Hero */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 100px;
  overflow: hidden;
}

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

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,20,24,0.55) 0%, rgba(11,20,24,0.35) 40%, rgba(11,20,24,0.92) 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
  padding-top: 60px;
  padding-bottom: 60px;
}

.hero-content h1 {
  font-family: var(--font-heading);
  font-size: 48px;
  line-height: 1.15;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.hero-subhead {
  font-size: 19px;
  color: var(--accent-light);
  font-weight: 500;
  margin-bottom: 18px;
}

.hero-body {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 560px;
}

.hero-character {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  height: 100%;
}

.hero-character img {
  max-height: 600px;
  filter: drop-shadow(0 30px 40px rgba(0,0,0,0.5));
}

/* Section generic */
section { position: relative; padding: 100px 0; }

.section-title {
  font-family: var(--font-heading);
  font-size: 36px;
  margin-bottom: 20px;
  max-width: 760px;
}

.section-intro {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 720px;
  margin-bottom: 48px;
}

/* How It Works */
.how-it-works { background: var(--bg-secondary); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.step-card {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 28px 24px;
  position: relative;
}

.step-number {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.5;
  display: block;
  margin-bottom: 16px;
}

.step-card h3 {
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
}

/* Features */
.features { background: var(--bg-primary); }

.features-inner {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 56px;
  align-items: center;
}

.features-image img {
  border-radius: 14px;
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 50px rgba(0,0,0,0.4);
}

.feature-item {
  padding: 20px 0;
  border-bottom: 1px solid var(--border-color);
}

.feature-item:last-child { border-bottom: none; padding-bottom: 0; }
.feature-item:first-of-type { padding-top: 0; }

.feature-item h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  color: var(--accent-light);
  margin-bottom: 8px;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 15px;
}

/* Who It's For */
.who-its-for { background: var(--bg-secondary); }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  background: rgba(217, 160, 91, 0.1);
  border: 1px solid var(--border-color);
  color: var(--accent-light);
  font-size: 14px;
  padding: 8px 18px;
  border-radius: 20px;
}

/* Highlights */
.highlights { background: var(--bg-primary); }

.highlights .section-title { margin-bottom: 48px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 10px;
  padding: 32px 20px;
  text-align: center;
}

.stat-value {
  display: block;
  font-family: var(--font-heading);
  font-size: 26px;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  display: block;
  font-size: 14px;
  color: var(--text-secondary);
}

/* Final CTA */
.final-cta {
  text-align: center;
  padding: 130px 0;
  overflow: hidden;
}

.final-cta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.final-cta-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.final-cta-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,20,24,0.85) 0%, rgba(11,20,24,0.7) 50%, rgba(11,20,24,0.92) 100%);
}

.final-cta-inner { position: relative; z-index: 1; max-width: 680px; margin: 0 auto; }

.final-cta h2 {
  font-family: var(--font-heading);
  font-size: 38px;
  margin-bottom: 20px;
}

.final-cta p {
  color: var(--text-secondary);
  font-size: 16px;
  margin-bottom: 36px;
}

/* Footer */
.site-footer {
  position: relative;
  padding: 56px 0 32px;
  border-top: 1px solid var(--border-color);
  overflow: hidden;
}

.footer-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.5;
}

.footer-bg img { width: 100%; height: 100%; object-fit: cover; }

.footer-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--accent-light);
  margin-right: 8px;
}

.footer-brand-domain { color: var(--text-muted); font-size: 14px; }

.footer-links {
  display: flex;
  justify-content: center;
  gap: 24px;
  margin: 20px 0;
}

.footer-links a {
  font-size: 14px;
  color: var(--text-secondary);
  transition: color 0.2s ease;
}

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

.footer-tagline {
  font-family: var(--font-heading);
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

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

/* Legal pages */
.legal-page { padding: 160px 0 100px; }

.legal-content h1 {
  font-family: var(--font-heading);
  font-size: 38px;
  margin-bottom: 32px;
}

.legal-content h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  color: var(--accent-light);
  margin: 32px 0 12px;
}

.legal-content p {
  color: var(--text-secondary);
  margin-bottom: 16px;
  max-width: 760px;
}

.legal-content ol {
  color: var(--text-secondary);
  margin: 0 0 16px 20px;
  max-width: 740px;
}

.legal-content ol li { margin-bottom: 10px; }
.legal-content b, .legal-content strong { color: var(--text-primary); }
.legal-content a { color: var(--accent); text-decoration: underline; }
.legal-content u { text-decoration: underline; }

/* Responsive */
@media (max-width: 1024px) {
  .hero-content h1 { font-size: 38px; }
  .hero-character img { max-height: 460px; }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-inner { grid-template-columns: 1fr; gap: 36px; }
  .features-image { max-width: 480px; margin: 0 auto; }
  .header-tagline { display: none; }
}

@media (max-width: 768px) {
  .header-inner { justify-content: space-between; }
  .main-nav { display: none; }
  .header-cta { display: none; }
  .burger-btn { display: flex; }
  .hero { padding-top: 90px; text-align: center; }
  .hero-inner { grid-template-columns: 1fr; gap: 16px; }
  .hero-character { order: -1; }
  .hero-character img { max-height: 320px; }
  .hero-body { margin-left: auto; margin-right: auto; }
  section { padding: 70px 0; }
  .section-title { font-size: 28px; }
  .final-cta h2 { font-size: 28px; }
}

@media (max-width: 640px) {
  .hero-content h1 { font-size: 30px; }
  .hero-subhead { font-size: 17px; }
  .steps-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .btn { width: 100%; }
  .header-inner { padding-top: 14px; padding-bottom: 14px; }
  .logo-img { height: 32px; }
  .final-cta { padding: 90px 0; }
}
