:root {
  --ink: #f2e7ce;
  --muted: #b7a57d;
  --gold: #d8b64b;
  --gold-dark: #9e7621;
  --night: #090d21;
  --violet: #241539;
  --teal: #135b63;
  --wine: #612a3d;
  --line: rgba(216, 182, 75, 0.24);
  --panel: rgba(255, 255, 255, 0.055);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Raleway, Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(19, 91, 99, 0.34), transparent 26rem),
    radial-gradient(circle at 88% 18%, rgba(97, 42, 61, 0.34), transparent 24rem),
    linear-gradient(180deg, var(--night), #111c30 46%, #0b1022);
  line-height: 1.65;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(20px, 4vw, 56px);
  background: rgba(9, 13, 33, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--gold);
  font-family: Cinzel, Georgia, serif;
  font-weight: 700;
  letter-spacing: 0;
  text-decoration: none;
}

.brand img {
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(216, 182, 75, 0.24);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ink);
}

.language-switcher {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.language-switcher a {
  padding: 6px 10px;
  border-radius: 6px;
}

.language-switcher a.is-active {
  color: #171006;
  background: var(--gold);
}

.site-nav .store-link,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 800;
  text-decoration: none;
}

.site-nav .store-link,
.button-primary {
  color: #171006;
  background: linear-gradient(135deg, var(--gold), #f5d877 45%, var(--gold-dark));
  box-shadow: 0 16px 34px rgba(216, 182, 75, 0.18);
}

.button-secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--gold);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(32px, 6vw, 86px);
  align-items: center;
  min-height: calc(100vh - 78px);
  padding: clamp(52px, 7vw, 96px) clamp(20px, 5vw, 80px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Cinzel, Georgia, serif;
  line-height: 1.15;
}

h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(3rem, 8vw, 6.8rem);
}

.lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: #d9caa9;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 120px));
  gap: 12px;
  margin: 34px 0 0;
}

.quick-facts div,
.feature-card,
.policy-block,
.contact-details,
.contact-form,
.screen-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.quick-facts div {
  padding: 14px 16px;
}

dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

dd {
  margin: 4px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.hero-visual {
  position: relative;
  min-height: 560px;
}

.app-icon-large {
  position: absolute;
  top: 4px;
  right: 28px;
  width: 132px;
  height: 132px;
  border-radius: 28px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.38);
  z-index: 2;
}

.phone {
  position: absolute;
  inset: 72px auto auto 4%;
  width: min(340px, 88vw);
  height: 620px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 36px;
  background: linear-gradient(150deg, #171b30, #060812);
  box-shadow: var(--shadow);
}

.phone-screen {
  display: flex;
  flex-direction: column;
  justify-content: end;
  height: 100%;
  padding: 28px;
  border-radius: 26px;
  background:
    linear-gradient(rgba(9, 13, 33, 0.08), rgba(9, 13, 33, 0.72)),
    radial-gradient(circle at 50% 18%, rgba(216, 182, 75, 0.36), transparent 8rem),
    linear-gradient(160deg, #1e1534, #135b63 54%, #2d1222);
  overflow: hidden;
}

.phone-kicker,
.phone-screen p {
  color: #eadfbd;
}

.phone-screen h2 {
  margin: 10px 0;
  color: var(--gold);
  font-size: 2.05rem;
}

.section,
.content-page,
.contact-layout {
  padding: clamp(58px, 8vw, 104px) clamp(20px, 5vw, 80px);
}

.narrow {
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}

.narrow h2,
.section-heading h2,
.app-details h2,
.page-hero h1 {
  margin: 0;
  color: var(--gold);
  font-size: clamp(2rem, 4.8vw, 3.8rem);
}

.narrow p,
.section-heading,
.app-details p,
.page-hero p {
  color: var(--muted);
}

.section-heading {
  max-width: 780px;
  margin: 0 auto 34px;
  text-align: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  padding: 28px;
}

.feature-card span {
  color: var(--gold);
  font-weight: 800;
}

.feature-card h3 {
  margin: 16px 0 10px;
  color: var(--ink);
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.screenshots {
  background: rgba(0, 0, 0, 0.16);
}

.screenshot-row {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 2px 0 12px;
  scroll-snap-type: x proximity;
}

.screen-card {
  flex: 0 0 clamp(210px, 18vw, 280px);
  margin: 0;
  padding: 14px;
  scroll-snap-align: start;
}

.store-screenshot {
  display: block;
  width: 100%;
  aspect-ratio: 600 / 1300;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0b1022;
}

figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.app-details {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(216, 182, 75, 0.06);
}

.app-details div {
  max-width: 780px;
}

.page-hero {
  padding: 72px clamp(20px, 5vw, 80px) 44px;
  text-align: center;
  border-bottom: 1px solid var(--line);
}

.content-page {
  max-width: 980px;
  margin: 0 auto;
}

.policy-block {
  padding: 28px;
  margin-bottom: 18px;
}

.policy-block h2,
.contact-details h2,
.contact-form h2 {
  margin: 0 0 14px;
  color: var(--gold);
}

.policy-block p {
  color: var(--muted);
}

.policy-block.highlight {
  background: rgba(19, 91, 99, 0.22);
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.7fr) minmax(0, 1.3fr);
  gap: 24px;
  max-width: 1120px;
  margin: 0 auto;
}

.contact-details,
.contact-form {
  padding: 28px;
}

.contact-details dl {
  margin: 0;
}

.contact-details div {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-details div:last-child {
  border-bottom: 0;
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-form label {
  display: grid;
  gap: 8px;
}

.contact-form span {
  color: var(--ink);
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: rgba(0, 0, 0, 0.22);
  font: inherit;
}

textarea {
  resize: vertical;
}

small,
.notice.error {
  color: #ffb4a6;
}

.notice {
  padding: 12px 14px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-weight: 800;
}

.notice.success {
  color: #aee8bd;
}

.captcha-image {
  width: 180px;
  height: 58px;
  border-radius: 8px;
  border: 1px solid var(--line);
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 26px;
  padding: 44px clamp(20px, 5vw, 80px);
  color: var(--muted);
  background: #070a18;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 10px 0 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: end;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.copyright {
  grid-column: 1 / -1;
  color: #74664c;
}

.admin-page {
  padding: clamp(36px, 5vw, 70px) clamp(20px, 5vw, 80px);
}

.filter-bar {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 14px;
  align-items: end;
  margin-bottom: 22px;
}

.filter-bar label {
  display: grid;
  gap: 7px;
}

.filter-bar span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #0b1022;
  font: inherit;
}

.admin-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.18);
}

.admin-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(216, 182, 75, 0.16);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  color: var(--gold);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.visit-row {
  cursor: pointer;
}

.visit-row:hover {
  background: rgba(216, 182, 75, 0.08);
}

.visit-detail {
  display: none;
}

.visit-detail.is-open {
  display: table-row;
}

.visit-detail pre {
  max-height: 460px;
  overflow: auto;
  margin: 0;
  white-space: pre-wrap;
  color: #e7dcbf;
}

.pager {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

@media (max-width: 980px) {
  .hero,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 500px;
  }

  .feature-grid,
  .screenshot-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(9, 13, 33, 0.98);
  }

  .language-switcher {
    justify-content: center;
  }

  .site-nav.is-open {
    display: flex;
  }

  .quick-facts,
  .feature-grid,
  .screenshot-row,
  .filter-bar {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-visual {
    min-height: 430px;
  }

  .phone {
    height: 470px;
  }

  .app-icon-large {
    width: 100px;
    height: 100px;
  }

  .app-details,
  .site-footer {
    display: grid;
    grid-template-columns: 1fr;
  }

  .site-footer nav {
    justify-content: start;
  }
}
