:root {
  --gold: #e8c547;
  --gold-soft: #f0d878;
  --gold-deep: #b8922a;
  --ink: #0b0907;
  --ink-2: #14110d;
  --ink-3: #1e1913;
  --panel: rgba(30, 25, 19, 0.92);
  --text: #f7f1e6;
  --muted: #b9a890;
  --line: rgba(232, 197, 71, 0.22);
  --ok: #2f9e5b;
  --ok-hover: #268a4e;
  --radius: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --font-display: "Cinzel", "Times New Roman", serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 64px;
  --download-bar-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background:
    radial-gradient(900px 480px at 80% -10%, rgba(232, 197, 71, 0.12), transparent 60%),
    linear-gradient(180deg, #100e0b 0%, var(--ink) 40%, #0a0806 100%);
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  padding-bottom: calc(var(--download-bar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased;
  position: relative;
}

body.nav-open {
  overflow: hidden;
  height: 100%;
  touch-action: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold-soft);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: #fff;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fff8e8;
  overflow-wrap: anywhere;
}

h1 {
  font-size: clamp(1.55rem, 6.2vw, 2.85rem);
  margin: 0 0 0.75rem;
}

h2 {
  font-size: clamp(1.25rem, 4.5vw, 1.9rem);
  margin: 1.8rem 0 0.75rem;
}

h3 {
  font-size: 1.08rem;
  margin: 1.35rem 0 0.55rem;
  color: var(--gold-soft);
}

p {
  margin: 0 0 1rem;
  color: #ebe2d4;
  overflow-wrap: break-word;
}

ul,
ol {
  margin: 0 0 1.2rem;
  padding-left: 1.15rem;
  color: #ebe2d4;
}

li {
  margin-bottom: 0.45rem;
}

.container {
  width: min(100% - 1.5rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  height: var(--header-h);
  background: rgba(11, 9, 7, 0.98);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff !important;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  min-width: 0;
  flex: 1;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex-shrink: 0;
  box-shadow: 0 0 0 1px rgba(232, 197, 71, 0.35);
}

.brand span {
  display: inline;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--ink-3);
  color: var(--gold);
  cursor: pointer;
  padding: 0;
  z-index: 220;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 2.5px 0;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu: no translateX (prevents side scroll + fixed-bar bugs) */
.site-nav {
  display: none;
  position: fixed;
  top: var(--header-h);
  left: 0;
  width: 100%;
  max-width: 100vw;
  height: calc(100dvh - var(--header-h));
  height: calc(100vh - var(--header-h));
  z-index: 250;
  flex-direction: column;
  align-items: stretch;
  gap: 0.45rem;
  padding: 1rem 1rem 1.25rem;
  background: #0a0806;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  box-sizing: border-box;
}

.site-nav.is-open {
  display: flex;
}

.site-nav a {
  color: #f3eadc;
  font-size: 1rem;
  font-weight: 700;
  padding: 0.95rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(30, 25, 19, 0.65);
  text-align: center;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--ink);
  background: var(--gold);
  border-color: var(--gold);
}

.site-nav .nav-cta {
  margin-top: 0.35rem;
  border: none !important;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.8rem 1.1rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.92rem;
  letter-spacing: 0.02em;
  border: none;
  cursor: pointer;
  text-decoration: none !important;
  text-align: center;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: translateY(1px);
}

.btn-download {
  color: #06140c !important;
  background: linear-gradient(135deg, #45d07e, var(--ok));
  box-shadow: 0 10px 28px rgba(47, 158, 91, 0.35);
}

.btn-download:hover {
  background: linear-gradient(135deg, #54e08d, var(--ok-hover));
  color: #06140c !important;
}

.btn-gold {
  color: var(--ink) !important;
  background: linear-gradient(135deg, var(--gold-soft), var(--gold-deep));
  box-shadow: 0 10px 28px rgba(232, 197, 71, 0.28);
}

.btn-outline {
  color: var(--gold) !important;
  background: transparent;
  border: 1px solid var(--line);
}

.btn-outline:hover {
  background: rgba(232, 197, 71, 0.08);
  color: #fff !important;
}

.cta-row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 1.1rem 0 0.5rem;
}

.cta-row .btn {
  width: 100%;
}

/* Sticky mobile download bar — always visible on load */
.download-bar {
  position: fixed;
  left: 0;
  bottom: 0;
  width: 100%;
  max-width: 100vw;
  z-index: 300;
  padding: 0.65rem 0.85rem calc(0.65rem + env(safe-area-inset-bottom, 0px));
  background: #0b0907;
  border-top: 1px solid var(--line);
  display: block;
  box-sizing: border-box;
}

.download-bar .btn {
  width: 100%;
  min-height: 50px;
  font-size: 0.95rem;
}

body.nav-open .download-bar {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  padding: 1.5rem 0 1.75rem;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 9, 7, 0.92) 0%, rgba(11, 9, 7, 0.88) 55%, rgba(11, 9, 7, 0.96) 100%),
    url("../img/s1.jpg") center/cover no-repeat;
  z-index: -1;
}

.hero-grid {
  display: grid;
  gap: 1.15rem;
  align-items: center;
  justify-items: center;
  text-align: center;
}

.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 9vw, 3.4rem);
  color: var(--gold);
  margin: 0 0 0.45rem;
  text-shadow: 0 8px 30px rgba(0, 0, 0, 0.55);
  animation: rise 0.8s ease both;
  line-height: 1.1;
}

.hero-sub {
  font-size: 0.98rem;
  max-width: 36rem;
  color: #f0e6d4;
  margin-inline: auto;
  animation: rise 0.9s ease 0.08s both;
}

.hero-visual {
  order: -1;
  width: min(150px, 42vw);
  animation: floatIn 1s ease 0.1s both;
}

.hero-visual img {
  width: 100%;
  border-radius: 24px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(232, 197, 71, 0.35);
}

.meta-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
  justify-content: center;
  animation: rise 1s ease 0.16s both;
}

.chip {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--gold-soft);
  background: rgba(232, 197, 71, 0.08);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.32rem 0.65rem;
}

/* Sections */
.section {
  padding: 1.75rem 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(30, 25, 19, 0.55), transparent);
  border-block: 1px solid var(--line);
}

.lead {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 46rem;
}

.table-wrap,
.info-table {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.info-table {
  display: block;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--panel);
}

.info-table tbody {
  display: table;
  width: 100%;
  min-width: 300px;
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
  vertical-align: top;
}

.info-table th {
  width: 38%;
  color: var(--gold-soft);
  font-weight: 700;
  background: rgba(232, 197, 71, 0.05);
}

.info-table tr:last-child th,
.info-table tr:last-child td {
  border-bottom: none;
}

.shots {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 1.1rem 0;
}

.shots img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  aspect-ratio: 1;
  object-fit: cover;
}

.feature-list {
  display: grid;
  gap: 0.85rem;
  margin: 1.1rem 0;
}

.feature {
  padding: 1rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 17, 13, 0.7);
}

.feature h3 {
  margin-top: 0;
}

.article-grid {
  display: grid;
  gap: 0.85rem;
}

.article-card {
  display: block;
  padding: 1.05rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 17, 13, 0.75);
  color: inherit;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.article-card:hover {
  border-color: rgba(232, 197, 71, 0.55);
  transform: translateY(-2px);
  color: inherit;
}

.article-card h3 {
  margin: 0 0 0.35rem;
  color: var(--gold-soft);
  font-size: 1.02rem;
}

.article-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.prose {
  max-width: 760px;
}

.prose a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.breadcrumb {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.85rem;
  overflow-wrap: anywhere;
}

.breadcrumb a {
  color: var(--muted);
}

.page-hero {
  padding: 1.35rem 0 0.35rem;
}

.page-hero h1 {
  color: var(--gold);
}

.faq-list {
  display: grid;
  gap: 0.65rem;
}

.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(20, 17, 13, 0.7);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: #fff8e8;
  font: inherit;
  font-weight: 700;
  padding: 0.95rem 1rem;
  cursor: pointer;
}

.faq-a {
  display: none;
  padding: 0 1rem 1rem;
  color: var(--muted);
}

.faq-item.is-open .faq-a {
  display: block;
}

.site-footer {
  margin-top: 1.5rem;
  padding: 2rem 0 1.5rem;
  border-top: 1px solid var(--line);
  background: #080705;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-grid h3 {
  margin: 0 0 0.5rem;
  font-size: 0.98rem;
}

.footer-grid a {
  display: block;
  color: var(--muted);
  padding: 0.28rem 0;
  font-size: 0.9rem;
}

.footer-note {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes floatIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Tablet+ */
@media (min-width: 720px) {
  :root {
    --header-h: 72px;
  }

  body {
    font-size: 17px;
    padding-bottom: 0;
  }

  .container {
    width: min(100% - 2rem, var(--max));
  }

  .nav-toggle {
    display: none;
  }

  .site-nav {
    display: flex !important;
    position: static;
    top: auto;
    left: auto;
    width: auto;
    max-width: none;
    height: auto;
    flex-direction: row;
    align-items: center;
    gap: 0.35rem;
    padding: 0;
    background: transparent;
    overflow: visible;
    z-index: auto;
  }

  .site-nav a {
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    border: none;
    background: transparent;
    text-align: left;
  }

  .site-nav a:hover,
  .site-nav a.active {
    color: var(--ink);
    background: var(--gold);
  }

  .site-nav .nav-cta {
    margin-top: 0;
    padding: 0.7rem 1.1rem;
  }

  .brand {
    font-size: 1.05rem;
    flex: 0 0 auto;
  }

  .brand img {
    width: 44px;
    height: 44px;
  }

  .download-bar {
    display: none !important;
  }

  .cta-row {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-row .btn {
    width: auto;
  }

  .hero {
    padding: clamp(2rem, 5vw, 3.5rem) 0 2.5rem;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(11, 9, 7, 0.92) 0%, rgba(11, 9, 7, 0.72) 45%, rgba(11, 9, 7, 0.35) 100%),
      url("../img/s1.jpg") center/cover no-repeat;
  }

  .hero-grid {
    grid-template-columns: 1.35fr 0.9fr;
    justify-items: stretch;
    text-align: left;
  }

  .hero-visual {
    order: 0;
    width: min(280px, 70%);
    justify-self: end;
  }

  .hero-sub {
    margin-inline: 0;
  }

  .meta-strip {
    justify-content: flex-start;
  }

  .section {
    padding: 2.5rem 0;
  }

  .shots {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .feature-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }

  .info-table {
    display: table;
    overflow: hidden;
  }

  .info-table tbody {
    display: table-row-group;
    min-width: 0;
  }
}

@media (min-width: 980px) {
  .feature-list.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .article-grid.cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
