/* dotrova.com: the game's navy, its five brand dots and bead boards.
   System fonts only: the site loads nothing from other servers. */
:root {
  --bg: #0c1220;
  --bg-top: #16233a;
  --surface: #151f30;
  --card: #172233;
  --line: #26344a;
  --line-soft: #2b394e;
  --text: #f4f7fb;
  --text-bright: #d5dcea;
  --text-soft: #b3c3d7;
  --text-muted: #9fb0c6;
  --accent: #6ddccf;
  --gold: #ffd177;
  --cyan: #19b6cf;
  --yellow: #efba36;
  --pink: #f75c8b;
  --green: #90cd3f;
  --purple: #8d5cb7;
  --tier-starter: #6ddccf;
  --tier-junior: #77b8ff;
  --tier-expert: #b39aff;
  --tier-master: #ffbe7b;
  --tier-wizard: #f08cbf;
  --radius: 20px;
  --wrap: 1120px;
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% -10%, rgba(25, 182, 207, 0.16), transparent 70%),
    radial-gradient(700px 480px at -10% 10%, rgba(141, 92, 183, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-top) 0, var(--bg) 720px);
  background-repeat: no-repeat;
  color: var(--text-bright);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial,
    "Noto Sans", "Hiragino Sans", "Apple SD Gothic Neo", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Long words (German, Russian) break with hyphens on narrow phones. */
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

.doc a {
  overflow-wrap: anywhere;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: #9af0e6;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  color: var(--text);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.5rem);
  font-weight: 800;
}

h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1em;
}

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

.narrow {
  max-width: 780px;
}

.center {
  text-align: center;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  background: var(--accent);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  z-index: 10;
}

.skip:focus {
  left: 12px;
}

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

.top {
  position: sticky;
  top: 0;
  z-index: 5;
  background: rgba(12, 18, 32, 0.78);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(38, 52, 74, 0.6);
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
}

.brand .mark {
  width: 39px;
  height: 26px;
}

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

.nav > a,
.lang summary {
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 12px;
  border-radius: 999px;
}

.nav > a:hover,
.nav > a[aria-current="page"],
.lang summary:hover,
.lang[open] summary {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
}

.lang {
  position: relative;
}

.lang summary {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
}

.lang summary::-webkit-details-marker {
  display: none;
}

.globe {
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50%;
  position: relative;
}

.globe::before {
  content: "";
  position: absolute;
  inset: -2px 3px;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.lang ul {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  min-width: 200px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
}

.lang li a {
  display: block;
  padding: 8px 12px;
  border-radius: 9px;
  color: var(--text-bright);
  text-decoration: none;
}

.lang li a:hover {
  background: rgba(109, 220, 207, 0.12);
}

.lang li a[aria-current="true"] {
  color: var(--accent);
  font-weight: 700;
}

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

.hero {
  padding: 72px 0 40px;
}

.hero-row {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  align-items: center;
  gap: 48px;
}

.eyebrow {
  display: inline-block;
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border: 1px solid rgba(109, 220, 207, 0.35);
  border-radius: 999px;
  background: rgba(109, 220, 207, 0.08);
  margin-bottom: 22px;
}

.lead {
  font-size: 1.2rem;
  color: var(--text-soft);
  max-width: 34em;
}

.hero-art {
  margin: 0;
  position: relative;
}

.hero-art::before {
  content: "";
  position: absolute;
  inset: 8% 4%;
  background:
    radial-gradient(circle at 30% 40%, rgba(247, 92, 139, 0.28), transparent 60%),
    radial-gradient(circle at 70% 60%, rgba(25, 182, 207, 0.3), transparent 60%);
  filter: blur(40px);
  z-index: -1;
}

.hero-art img {
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, 0.45));
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.store {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 10px 20px 10px 14px;
  border-radius: 14px;
  background: #05080f;
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.15;
  cursor: default;
}

.store small {
  display: block;
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.store-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  position: relative;
  flex: none;
}

/* Generic marks, not the stores' logos: a phone and a play triangle. */
.store-ios {
  border: 2px solid var(--text-soft);
  width: 18px;
  border-radius: 5px;
  margin: 0 4px;
}

.store-ios::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 6px;
  height: 2px;
  margin-left: -3px;
  border-radius: 2px;
  background: var(--text-soft);
}

.store-play::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 4px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent var(--accent);
}

.stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 56px;
}

.stats li {
  min-width: 0;
  background: rgba(23, 34, 51, 0.7);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
}

.stats strong {
  display: block;
  color: var(--text);
  font-size: 1.7rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.stats span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

/* -- Sections ---------------------------------------------------------- */

.section {
  padding: 72px 0;
}

.section-lead {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 40em;
  margin-bottom: 36px;
}

.how-row {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 14px;
}

.step {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px 18px 76px;
}

.step p {
  margin: 0;
  color: var(--text-soft);
}

.step-n {
  position: absolute;
  left: 20px;
  top: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #0c1220;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 8%, var(--accent) 42%, #3fa79b 100%);
}

.step:nth-child(2) .step-n {
  background: radial-gradient(circle at 35% 30%, #ffffff 0 8%, var(--yellow) 42%, #b7861b 100%);
}

.step:nth-child(3) .step-n {
  background: radial-gradient(circle at 35% 30%, #ffffff 0 8%, var(--pink) 42%, #b93763 100%);
}

.how-art {
  margin: 0;
  display: grid;
  gap: 18px;
}

.how-art .pieces {
  background: rgba(23, 34, 51, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.tiers {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.tier {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--tier, var(--accent));
  border-radius: var(--radius);
  padding: 18px;
  display: flex;
  flex-direction: column;
}

.tier img {
  height: 150px;
  width: auto;
  object-fit: contain;
  margin: 4px auto 16px;
}

.tier h3 {
  color: var(--tier);
}

.tier p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.tier-starter { --tier: var(--tier-starter); }
.tier-junior { --tier: var(--tier-junior); }
.tier-expert { --tier: var(--tier-expert); }
.tier-master { --tier: var(--tier-master); }
.tier-wizard { --tier: var(--tier-wizard); }

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

.feature p {
  margin: 0;
  color: var(--text-soft);
}

.bead {
  display: block;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-bottom: 16px;
  background: radial-gradient(circle at 35% 30%, #ffffff 0 7%, var(--bead) 45%, var(--bead-dark) 100%);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.feature-1 .bead { --bead: var(--cyan); --bead-dark: #0e7d8f; }
.feature-2 .bead { --bead: var(--yellow); --bead-dark: #a97f1c; }
.feature-3 .bead { --bead: var(--pink); --bead-dark: #a8395c; }
.feature-4 .bead { --bead: var(--green); --bead-dark: #5d8b25; }
.feature-5 .bead { --bead: var(--purple); --bead-dark: #5a3876; }
.feature-6 .bead { --bead: var(--accent); --bead-dark: #3c968c; }

.cta-box {
  text-align: center;
  background:
    radial-gradient(500px 220px at 50% 0, rgba(109, 220, 207, 0.16), transparent 70%),
    var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 56px 24px;
}

.cta-box p {
  color: var(--text-soft);
  font-size: 1.1rem;
  max-width: 36em;
  margin: 0 auto;
}

.cta-box .stores {
  justify-content: center;
}

/* -- Documents (support, privacy, terms) -------------------------------- */

.doc {
  padding: 56px 0 72px;
}

.doc h1 {
  font-size: clamp(2.1rem, 5vw, 3rem);
}

.doc h2 {
  font-size: 1.35rem;
  margin-top: 2em;
}

.doc section h2 {
  margin-top: 1.8em;
}

.doc ul {
  padding-left: 1.3em;
}

.doc li {
  margin-bottom: 0.45em;
}

.updated {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.contact-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0 8px;
}

.contact-card h2 {
  margin-top: 0;
}

.button {
  display: inline-block;
  background: var(--accent);
  color: #062a26;
  font-weight: 800;
  text-decoration: none;
  padding: 12px 22px;
  border-radius: 999px;
}

.button:hover {
  color: #062a26;
  background: #8ff0e5;
}

.faq {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  margin-bottom: 10px;
  padding: 0 20px;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  color: var(--text);
  padding: 16px 28px 16px 0;
  position: relative;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 12px;
  font-size: 1.4rem;
  color: var(--accent);
}

.faq[open] summary::after {
  content: "−";
}

.faq p {
  color: var(--text-soft);
}

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

.foot {
  border-top: 1px solid var(--line);
  padding: 40px 0 28px;
  margin-top: 24px;
  background: rgba(5, 8, 15, 0.35);
}

.foot-row {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-brand p {
  color: var(--text-muted);
  margin: 10px 0 0;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
}

.foot-links a {
  color: var(--text-soft);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text);
}

.foot-note {
  margin-top: 28px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.foot-note p {
  margin: 0 0 4px;
}

/* -- Root language picker --------------------------------------------- */

.root-pick {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 28px;
  text-align: center;
  padding: 24px;
}

.root-pick ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  max-width: 560px;
}

.root-pick li a {
  display: block;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}

/* -- Small screens ----------------------------------------------------- */

@media (max-width: 960px) {
  .hero-row,
  .how-row {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 40px;
  }

  .hero-art {
    max-width: 560px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
  }

  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 600px) {
  body {
    font-size: 16px;
  }

  .wrap {
    padding: 0 16px;
  }

  .brand span {
    display: none;
  }

  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats li:last-child {
    grid-column: span 2;
  }

  .tiers,
  .features {
    grid-template-columns: 1fr;
  }

  .tier {
    flex-direction: row;
    gap: 16px;
    align-items: center;
  }

  .tier img {
    height: 96px;
    margin: 0;
  }

  .section {
    padding: 52px 0;
  }

  .step {
    padding-left: 70px;
  }

  .foot-brand .brand span {
    display: inline;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
