/* ==========================================================================
   Jenny Mod Minecraft - jennyminecraft.co
   Sunbaked Editorial Design System
   Fonts: Playfair Display (display) + Plus Jakarta Sans (body)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400;1,500&family=Plus+Jakarta+Sans:wght@300;400;500;600;700&display=swap');

/* --- Reset ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-body);
  background-color: var(--bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
input, textarea, select { font-family: inherit; font-size: inherit; }

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, 'Times New Roman', serif;
  line-height: 1.2;
  color: var(--text-heading);
}

/* --- Variables ------------------------------------------------------------ */

:root {
  --primary: #c2410c;
  --primary-light: #ea580c;
  --primary-dark: #9a3412;
  --primary-soft: rgba(194, 65, 12, 0.08);

  --secondary: #1e3a5f;
  --secondary-light: #2563eb;
  --secondary-dark: #172554;

  --accent: #d97706;
  --accent-light: #f59e0b;

  --bg-primary: #faf7f2;
  --bg-secondary: #f3ece0;
  --bg-card: #ffffff;
  --bg-elevated: #f9f5ed;
  --bg-warm: #fef3e2;
  --bg-ink: #1a1a2e;

  --text-heading: #1a1a2e;
  --text-body: #4a4a5a;
  --text-muted: #8a8a9a;
  --text-bright: #1a1a2e;
  --text-on-dark: #f3ece0;

  --border: #e0d6c8;
  --border-hover: #c2410c;
  --border-light: #ece4d6;
  --surface-hover: rgba(194, 65, 12, 0.04);

  --section-padding: 100px 0;
  --container-width: 1200px;
  --container-padding: 0 24px;

  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: 0.2s var(--ease-out);
  --transition-base: 0.35s var(--ease-out);
  --transition-slow: 0.6s var(--ease-out);

  --shadow-card: 0 1px 3px rgba(26, 26, 46, 0.06), 0 1px 2px rgba(26, 26, 46, 0.04);
  --shadow-card-hover: 0 4px 12px rgba(26, 26, 46, 0.08), 0 2px 4px rgba(26, 26, 46, 0.04);
  --shadow-elevated: 0 8px 24px rgba(26, 26, 46, 0.1);

  --header-height: 72px;
}

/* --- Dotted Texture (replaces noise) -------------------------------------- */

.noise { display: none; }

/* --- Layout --------------------------------------------------------------- */

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

.section {
  padding: var(--section-padding);
  position: relative;
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 1px;
  background: var(--border);
}

/* --- Section Header ------------------------------------------------------- */

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
  font-style: italic;
}

.section-header p { font-size: 1.05rem; color: var(--text-body); }

.accent-line {
  width: 40px;
  height: 3px;
  background: var(--primary);
  border-radius: 0;
  margin: 0 auto 20px;
}

.highlight {
  color: var(--primary);
  font-style: italic;
}

/* --- Header --------------------------------------------------------------- */

.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 1000;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow var(--transition-base);
}

.header.scrolled {
  box-shadow: 0 1px 8px rgba(26, 26, 46, 0.06);
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-heading);
  flex-shrink: 0;
}

.logo img { height: 36px; width: 36px; flex-shrink: 0; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  position: relative;
  letter-spacing: 0.01em;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition-base);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text-heading); }

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

/* Language Switcher */
.lang-switcher { position: relative; }

.lang-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: transparent;
  transition: all var(--transition-fast);
}

.lang-btn:hover { color: var(--text-heading); border-color: var(--primary); }

.lang-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 140px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-elevated);
}

.lang-switcher:hover .lang-dropdown,
.lang-dropdown.active { opacity: 1; visibility: visible; transform: translateY(0); }

.lang-dropdown a {
  display: block;
  padding: 8px 12px;
  font-size: 0.85rem;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.lang-dropdown a:hover { color: var(--primary); background: var(--primary-soft); }

/* Mobile Toggle */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-heading);
  border-radius: 2px;
  transition: all var(--transition-fast);
}

/* --- Buttons -------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
  letter-spacing: 0.02em;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: 2px solid var(--primary);
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.btn-secondary {
  background: transparent;
  color: var(--text-heading);
  border: 2px solid var(--text-heading);
}

.btn-secondary:hover {
  background: var(--text-heading);
  color: var(--bg-primary);
  transform: translateY(-1px);
}

.btn-download {
  background: var(--primary);
  color: #fff;
  padding: 14px 36px;
  font-size: 0.95rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius-sm);
}

.btn-download:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.btn-lg {
  padding: 16px 40px;
  font-size: 1rem;
}

/* --- Hero ----------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-top: var(--header-height);
  background: var(--bg-primary);
  overflow: hidden;
}

.hero-particles { display: none; }

.hero-content {
  position: relative;
  z-index: 2;
  text-align: left;
  max-width: 560px;
  padding: 60px 60px 60px 24px;
  margin-left: auto;
}

.hero-logo {
  width: 80px;
  height: 80px;
  margin: 0 0 24px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
  background: var(--bg-card);
}

.hero-logo img { width: 100%; height: 100%; object-fit: contain; }

.hero-content h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.1rem);
  color: var(--text-body);
  max-width: 480px;
  margin: 0 0 36px;
  line-height: 1.75;
}

.hero-buttons {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.stat { text-align: left; }

.stat-number {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--primary);
}

.stat-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-top: 2px;
  font-weight: 500;
}

/* Hero right-side decorative image area */
.hero-image-area {
  position: relative;
  z-index: 2;
  padding: 60px 24px 60px 60px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image-area img {
  width: 100%;
  max-width: 480px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-elevated);
  border: 3px solid var(--bg-card);
}

/* --- Feature Cards -------------------------------------------------------- */

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.feature-card {
  position: relative;
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--primary);
  border-radius: var(--radius-sm);
  transition: all var(--transition-base);
  overflow: hidden;
}

.feature-card::before { display: none; }

.feature-card:hover {
  border-left-color: var(--primary-dark);
  background: var(--bg-elevated);
  box-shadow: var(--shadow-card);
}

.feature-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-heading);
}

.feature-card p { font-size: 0.9rem; color: var(--text-body); line-height: 1.7; }

/* --- Download Cards ------------------------------------------------------- */

.download-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

.download-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.download-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary);
}

.download-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border);
}

.download-card-header {
  padding: 28px 28px 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.edition-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}

.download-card-header h3 {
  font-size: 1.15rem;
  font-weight: 600;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-heading);
}

.download-info { padding: 20px 28px 28px; }
.download-info p { font-size: 0.9rem; color: var(--text-body); margin-bottom: 20px; line-height: 1.65; }
.download-info ul { margin-bottom: 24px; }

.download-info ul li {
  font-size: 0.88rem;
  color: var(--text-body);
  padding: 7px 0 7px 20px;
  position: relative;
}

.download-info ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 15px;
  width: 6px;
  height: 6px;
  border: 1.5px solid var(--primary);
  border-radius: 0;
  transform: rotate(45deg);
}

/* --- Content Row (Two-Column) --------------------------------------------- */

.content-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.content-row.reverse { direction: rtl; }
.content-row.reverse > * { direction: ltr; }

.content-image {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.content-image img {
  width: 100%;
  display: block;
  transition: transform var(--transition-slow);
}

.content-image:hover img { transform: scale(1.02); }

.content-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.content-text p {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 14px;
  line-height: 1.75;
}

.content-text .btn { margin-top: 10px; }

/* --- Section Grid --------------------------------------------------------- */

.section-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.section-image {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-light);
  box-shadow: var(--shadow-card);
}

.section-image img { width: 100%; display: block; }

.section-content h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 18px;
  font-style: italic;
}

.section-content p { color: var(--text-body); margin-bottom: 14px; line-height: 1.75; }
.section-cta { margin-top: 24px; }

/* --- Steps ---------------------------------------------------------------- */

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}

.step-card {
  position: relative;
  padding: 36px 28px;
  text-align: center;
  transition: all var(--transition-base);
  border-right: 1px solid var(--border-light);
}

.step-card:last-child { border-right: none; }

.step-card:hover {
  background: var(--bg-elevated);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 0;
  border: 2px solid var(--primary);
  background: transparent;
  color: var(--primary);
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.step-card h3 {
  font-size: 1.05rem;
  margin-bottom: 10px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  color: var(--text-heading);
}

.step-card p { font-size: 0.9rem; color: var(--text-body); }

.steps-list { max-width: 700px; margin: 0 auto; }

.step-item {
  display: flex;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-light);
}

.step-item:last-child { border-bottom: none; }
.step-item .step-number { flex-shrink: 0; margin-bottom: 0; }
.step-content h3 { font-size: 1.05rem; margin-bottom: 6px; }
.step-content p { font-size: 0.9rem; color: var(--text-body); }

/* --- FAQ Accordion -------------------------------------------------------- */

.faq-list {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
}

.faq-item { border-bottom: 1px solid var(--border-light); }
.faq-item:last-child { border-bottom: none; }

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 22px 28px;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  text-align: left;
  transition: color var(--transition-fast), background var(--transition-fast);
}

.faq-question:hover {
  color: var(--primary);
  background: var(--surface-hover);
}

.faq-icon {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border);
  font-size: 1.1rem;
  color: var(--text-muted);
  transition: all var(--transition-base);
  flex-shrink: 0;
}

.faq-item.active .faq-icon {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
}

.faq-answer p {
  padding: 0 28px 22px;
  font-size: 0.92rem;
  color: var(--text-body);
  line-height: 1.8;
}

.faq-item.active .faq-answer { max-height: 300px; }

/* --- Character Cards ------------------------------------------------------ */

.characters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.character-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
}

.character-card:hover {
  box-shadow: var(--shadow-card-hover);
  border-color: var(--border);
}

.character-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.character-card-body { padding: 20px; }
.character-card-body h3 { font-size: 1.1rem; margin-bottom: 4px; }

.character-card-body .role {
  font-size: 0.82rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 10px;
  display: block;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.character-card-body p {
  font-size: 0.88rem;
  color: var(--text-body);
  line-height: 1.65;
}

/* --- CTA Section ---------------------------------------------------------- */

.cta-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  overflow: hidden;
  background: var(--bg-ink);
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-primary);
  clip-path: polygon(0 0, 100% 0, 100% 30%, 0 100%);
  pointer-events: none;
}

.cta-section::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 80px;
  background: var(--bg-secondary);
  clip-path: polygon(0 70%, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.cta-content {
  position: relative;
  z-index: 2;
  max-width: 580px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  margin-bottom: 16px;
  color: var(--text-on-dark);
  font-style: italic;
}

.cta-content p {
  color: rgba(243, 236, 224, 0.7);
  margin-bottom: 32px;
  font-size: 1.02rem;
}

.cta-content .btn-primary {
  background: #fff;
  color: var(--primary);
  border-color: #fff;
}

.cta-content .btn-primary:hover {
  background: var(--bg-primary);
  border-color: var(--bg-primary);
}

/* --- Page Header ---------------------------------------------------------- */

.page-header {
  padding: calc(var(--header-height) + 48px) 0 48px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-light);
  position: relative;
}

.page-header .container { position: relative; z-index: 2; }
.page-header h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 8px; font-style: italic; }
.page-header p { color: var(--text-body); font-size: 1.02rem; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.breadcrumb a { color: var(--text-muted); transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--text-muted); }
.breadcrumb .current { color: var(--text-body); }

/* --- Info Table ----------------------------------------------------------- */

.info-table {
  width: 100%;
  border-collapse: collapse;
  margin: 28px 0;
}

.info-table th,
.info-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
  font-size: 0.92rem;
}

.info-table th {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 600;
  color: var(--text-heading);
  background: var(--bg-elevated);
  white-space: nowrap;
}

.info-table td { color: var(--text-body); }
.info-table thead th { background: var(--bg-secondary); border-bottom: 2px solid var(--primary); }
.info-table tbody tr { transition: background var(--transition-fast); }
.info-table tbody tr:hover { background: var(--surface-hover); }

/* --- Legal Content -------------------------------------------------------- */

.legal-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 0;
}

.legal-content h2 {
  font-size: 1.5rem;
  margin: 40px 0 16px;
  padding-top: 28px;
  border-top: 1px solid var(--border-light);
}

.legal-content h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.legal-content h3 { font-size: 1.15rem; margin: 24px 0 10px; }

.legal-content p {
  color: var(--text-body);
  margin-bottom: 14px;
  font-size: 0.94rem;
  line-height: 1.8;
}

.legal-content ul, .legal-content ol { margin: 12px 0 20px 22px; list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li { color: var(--text-body); font-size: 0.92rem; padding: 4px 0; line-height: 1.7; }
.legal-content a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-content a:hover { color: var(--primary-dark); }

/* --- Contact Form --------------------------------------------------------- */

.contact-form { max-width: 620px; margin: 0 auto; }
.form-group { margin-bottom: 22px; }

.form-group label {
  display: block;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-heading);
  font-size: 0.92rem;
  transition: all var(--transition-fast);
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: var(--text-muted); }

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.1);
}

.form-group textarea { min-height: 140px; resize: vertical; }

/* --- Footer --------------------------------------------------------------- */

.footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
  padding: 64px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
}

.footer-brand .logo { margin-bottom: 16px; }

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.65;
}

.footer-col h4 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.footer-col a {
  display: block;
  font-size: 0.88rem;
  color: var(--text-muted);
  padding: 5px 0;
  transition: color var(--transition-fast);
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); transition: color var(--transition-fast); }
.footer-bottom a:hover { color: var(--primary); }

/* --- Back to Top ---------------------------------------------------------- */

.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  border-radius: var(--radius-sm);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all var(--transition-base);
  z-index: 999;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

/* --- Scroll Animations ---------------------------------------------------- */

.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.stagger:nth-child(1) { transition-delay: 0s; }
.stagger:nth-child(2) { transition-delay: 0.08s; }
.stagger:nth-child(3) { transition-delay: 0.16s; }
.stagger:nth-child(4) { transition-delay: 0.24s; }
.stagger:nth-child(5) { transition-delay: 0.32s; }
.stagger:nth-child(6) { transition-delay: 0.40s; }

/* --- Alternating section backgrounds -------------------------------------- */

#features { background: var(--bg-secondary); }
#install { background: var(--bg-secondary); }
#faq { background: var(--bg-secondary); }

/* --- Responsive: 1024px --------------------------------------------------- */

@media (max-width: 1024px) {
  :root { --section-padding: 80px 0; }

  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-content { max-width: 100%; padding: 80px 24px 40px; text-align: center; margin: 0 auto; }
  .hero-content h1 { text-align: center; }
  .hero-subtitle { margin: 0 auto 36px; text-align: center; }
  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; border-top: 1px solid var(--border); padding-top: 32px; }
  .stat { text-align: center; }
  .hero-logo { margin: 0 auto 24px; }
  .hero-image-area { display: none; }

  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid .step-card:last-child { border-right: none; }
  .content-row, .section-grid { gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .nav-links { gap: 22px; }
}

/* --- Responsive: 768px ---------------------------------------------------- */

@media (max-width: 768px) {
  :root {
    --section-padding: 64px 0;
    --header-height: 64px;
  }

  .nav-links {
    position: fixed;
    top: var(--header-height);
    left: 0;
    width: 100%;
    flex-direction: column;
    background: var(--bg-primary);
    padding: 0 24px;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s var(--ease-out), padding 0.4s var(--ease-out);
    border-bottom: 1px solid var(--border-light);
    z-index: 999;
  }

  .nav-links.active { max-height: 400px; padding: 12px 24px; }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 1rem;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-heading);
  }

  .nav-links a::after { display: none; }
  .menu-toggle { display: flex; }
  .features-grid { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .content-row, .section-grid { grid-template-columns: 1fr; gap: 32px; }
  .content-row.reverse { direction: ltr; }

  .steps-grid {
    grid-template-columns: 1fr;
    border: none;
    border-radius: 0;
    background: transparent;
    gap: 16px;
  }

  .step-card {
    border: 1px solid var(--border-light);
    border-right: 1px solid var(--border-light);
    border-radius: var(--radius-md);
    background: var(--bg-card);
  }

  .hero-content h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
  .hero-stats { flex-direction: row; gap: 24px; flex-wrap: wrap; justify-content: center; }

  .hero-buttons {
    flex-direction: column;
    align-items: stretch;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .section-header { margin-bottom: 40px; }
  .characters-grid { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  .cta-section { padding: 80px 0; }
  .cta-section::before, .cta-section::after { height: 50px; }
}

/* --- Responsive: 480px ---------------------------------------------------- */

@media (max-width: 480px) {
  :root {
    --section-padding: 52px 0;
    --container-padding: 0 16px;
  }

  .hero-content { padding: 60px 16px 40px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 0.95rem; }
  .hero-logo { width: 64px; height: 64px; }
  .hero-stats { gap: 20px; }
  .section-header h2 { font-size: 1.5rem; }
  .feature-card { padding: 24px 20px; }
  .download-card-header { padding: 20px 20px 0; }
  .download-info { padding: 16px 20px 20px; }
  .btn { padding: 11px 22px; font-size: 0.9rem; }
  .btn-lg { padding: 13px 30px; font-size: 0.95rem; }
  .info-table th, .info-table td { padding: 10px 12px; font-size: 0.84rem; }
  .page-header { padding: calc(var(--header-height) + 32px) 0 32px; }
  .page-header h1 { font-size: 1.6rem; }
  .legal-content { padding: 40px 0; }
  .characters-grid { grid-template-columns: 1fr; }
  .stat-number { font-size: 1.4rem; }
  .back-to-top { bottom: 18px; right: 18px; width: 40px; height: 40px; }
  .faq-question { padding: 18px 20px; font-size: 0.92rem; }
  .faq-answer p { padding: 0 20px 18px; }
  .step-card { padding: 28px 20px; }
}
