:root {
  --bg: #1c1c1e;
  --surface: rgba(0, 0, 0, 0.28);
  --gold: #d4a017;
  --gold-light: #ffb300;
  --brass: #b8860b;
  --text: #f0e6d3;
  --muted: #b8a88a;
  --border: rgba(184, 134, 11, 0.45);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  background: transparent;
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background: url("../assets/leather_background.png?v=3") center / cover no-repeat;
  filter: brightness(0.88) contrast(1.05);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.22) 0%,
    rgba(0, 0, 0, 0.08) 45%,
    rgba(0, 0, 0, 0.35) 100%
  );
  pointer-events: none;
}

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

a:hover {
  text-decoration: underline;
}

.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.logo-wrap {
  position: relative;
  width: min(340px, 78vw);
  margin: 0 auto 1.5rem;
}

.logo-wrap .logo {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  position: relative;
  z-index: 1;
  pointer-events: none;
}

/* Easter egg: tap bottom-right tool head (wrench ring on seal) → APK sideload */
.logo-piston-easter {
  position: absolute;
  left: 58%;
  top: 58%;
  width: 24%;
  height: 24%;
  z-index: 2;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  opacity: 0;
  -webkit-tap-highlight-color: transparent;
}

@media (pointer: coarse) {
  .logo-piston-easter {
    left: 54%;
    top: 54%;
    width: 30%;
    height: 30%;
  }
}

.logo {
  width: min(340px, 78vw);
  height: auto;
  margin: 0 auto 1.5rem;
  display: block;
  filter: drop-shadow(0 6px 24px rgba(0, 0, 0, 0.5))
    drop-shadow(0 0 30px rgba(212, 160, 23, 0.18));
}

.tagline {
  font-size: 1.15rem;
  color: var(--muted);
  margin-bottom: 2rem;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.5);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.btn {
  display: inline-block;
  padding: 0.85rem 1.6rem;
  border-radius: 8px;
  font-weight: 600;
  border: 1px solid var(--border);
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--gold);
  color: #111;
}

.btn-primary:hover {
  background: var(--gold-light);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 160, 23, 0.35);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  backdrop-filter: blur(2px);
}

.btn-ghost:hover {
  text-decoration: none;
  border-color: var(--gold);
  background: rgba(0, 0, 0, 0.18);
}

main {
  position: relative;
  z-index: 1;
}

section {
  padding: 4rem 1.5rem;
  max-width: 960px;
  margin: 0 auto;
}

section h2 {
  color: var(--gold);
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(3px);
}

.card h3 {
  color: var(--gold-light);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.card p {
  color: var(--muted);
  font-size: 0.95rem;
}

a.card-link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
}

a.card-link:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  text-decoration: none;
}

a.card-link::after {
  content: "→";
  display: block;
  margin-top: 0.65rem;
  color: var(--gold);
  font-size: 0.9rem;
}

.feature-page {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  padding: 4.5rem 1.5rem 3rem;
}

.feature-back {
  display: inline-block;
  margin-bottom: 1.5rem;
  color: var(--gold-light);
  font-size: 0.95rem;
}

.feature-back:hover {
  text-decoration: underline;
}

.feature-emblem {
  display: block;
  margin: 0 auto 1.25rem;
  filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.45));
}

.feature-page h1 {
  color: var(--gold);
  font-size: 1.65rem;
  text-align: center;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
}

.feature-lead {
  color: var(--muted);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 1.05rem;
}

.feature-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.35rem 1.5rem;
  margin-bottom: 1.25rem;
  backdrop-filter: blur(3px);
}

.feature-block h2 {
  color: var(--gold-light);
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

.feature-steps {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.feature-steps li {
  margin-bottom: 1rem;
}

.feature-steps li:last-child {
  margin-bottom: 0;
}

.feature-steps strong {
  display: block;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.feature-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--muted);
}

.feature-list li {
  margin-bottom: 0.5rem;
}

.feature-note {
  font-size: 0.92rem;
  color: var(--text);
  margin-top: 0.75rem;
}

.feature-note.muted {
  color: var(--muted);
}

.feature-visual {
  margin-bottom: 2rem;
}

.feature-visual h2 {
  color: var(--gold-light);
  font-size: 1.15rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.feature-visual-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  max-width: 36rem;
  margin-left: auto;
  margin-right: auto;
}

.feature-flow-diagram {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto 1.25rem;
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(184, 134, 11, 0.35);
}

.feature-screen-captions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.85rem;
}

.feature-screen-captions figure {
  margin: 0;
  padding: 0.85rem 0.75rem;
  background: rgba(42, 42, 46, 0.65);
  border: 1px solid rgba(184, 134, 11, 0.25);
  border-radius: 10px;
}

.feature-screen-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.feature-screen-captions strong {
  display: block;
  color: var(--gold-light);
  font-size: 0.88rem;
  margin-bottom: 0.25rem;
}

.feature-screen-captions span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.feature-tip {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 1rem 1.1rem;
  margin-top: 1rem;
  border-radius: 10px;
  background: rgba(212, 160, 23, 0.1);
  border: 1px dashed rgba(212, 160, 23, 0.45);
  color: var(--text);
  font-size: 0.92rem;
}

.feature-tip-icon {
  flex-shrink: 0;
  font-size: 1.25rem;
  line-height: 1;
}

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

.feature-cta {
  text-align: center;
  margin-top: 1.5rem;
  color: var(--muted);
}

.partner-card {
  border-top: 1px solid rgba(184, 134, 11, 0.25);
  padding-top: 0.85rem;
}

.partner-card h3 {
  color: var(--gold-light);
  margin-bottom: 0.35rem;
}

.partner-card p {
  color: var(--muted);
  font-size: 0.95rem;
}

.coming {
  text-align: center;
  padding: 3rem 1.5rem 4rem;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.app-download-lead {
  color: var(--gold-light);
  margin-top: 0.5rem;
  font-size: 1.05rem;
}

.app-stores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.app-store-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  width: 168px;
  padding: 1.15rem 0.95rem 1rem;
  border-radius: 14px;
  border: 2px solid rgba(212, 160, 23, 0.55);
  background: rgba(42, 42, 46, 0.92);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 0 0 1px rgba(212, 160, 23, 0.15);
}

a.app-store-tile:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.app-store-tile--soon {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
  user-select: none;
}

.app-store-icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.app-store-platform {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.app-store-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--gold-light);
  line-height: 1.3;
}

.app-sto-note {
  color: var(--muted);
  margin-top: 1.25rem;
  font-size: 0.95rem;
}

.coming p {
  color: var(--muted);
  margin-top: 0.75rem;
}

footer {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 2rem 1.5rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid rgba(184, 134, 11, 0.15);
}

.link-page {
  padding-top: 4rem;
  text-align: center;
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
}

.link-page h2 {
  color: var(--gold);
  margin-bottom: 1rem;
}

.link-page .muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.link-page .params {
  color: #666;
  font-size: 0.75rem;
  margin-top: 2rem;
  word-break: break-all;
}

[lang="uk"] .ru-only,
[lang="ru"] .uk-only {
  display: none;
}

.lang-switch {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
}

.lang-globe {
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(28, 28, 30, 0.85);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45rem 0.85rem;
  cursor: pointer;
  font-size: 0.9rem;
}

.lang-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 0.25rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.5rem;
  border-radius: 12px;
  background: rgba(28, 28, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.lang-panel[hidden] {
  display: none !important;
}

.lang-option {
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 0.4rem 0.55rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 0.85rem;
}

.lang-option:hover,
.lang-option.active {
  background: rgba(255, 140, 0, 0.18);
  color: var(--accent);
}

@media (max-width: 600px) {
  .tagline {
    font-size: 1rem;
  }
}
