:root {
  color-scheme: light dark;
  --bg: #f7f8fa;
  --panel: #ffffff;
  --text: #182026;
  --muted: #65717a;
  --line: #dfe4e8;
  --accent: #e85d3f;
  --accent-2: #2a9d8f;
  --accent-3: #3f6fb5;
  --accent-soft: rgba(232, 93, 63, 0.12);
  --hover-line: rgba(232, 93, 63, 0.42);
  --section-hover-line: rgba(42, 157, 143, 0.36);
  --panel-tint: rgba(255, 255, 255, 0.72);
  --shadow: 0 14px 34px rgba(24, 32, 38, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #101315;
    --panel: #171b1f;
    --text: #eef2f5;
    --muted: #a8b2ba;
    --line: #2c343a;
    --accent-soft: rgba(232, 93, 63, 0.16);
    --hover-line: rgba(232, 93, 63, 0.56);
    --section-hover-line: rgba(42, 157, 143, 0.48);
    --panel-tint: rgba(23, 27, 31, 0.72);
    --shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(232, 93, 63, 0.08) 0, rgba(42, 157, 143, 0.06) 260px, var(--bg) 520px),
    var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.58;
}

a {
  color: var(--accent-3);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

.page {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
}

header {
  padding: 56px 0 28px;
}

.brand {
  --brand-icon-size: clamp(96px, 10vw, 108px);
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 24px);
  margin-bottom: 22px;
  padding: clamp(18px, 4vw, 28px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-tint);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.app-icon {
  display: block;
  width: var(--brand-icon-size);
  height: var(--brand-icon-size);
  border-radius: 24px;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
  background: var(--panel);
  object-fit: cover;
}

.brand-copy {
  display: flex;
  min-height: var(--brand-icon-size);
  flex-direction: column;
  justify-content: center;
}

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0;
}

h1 {
  font-size: clamp(2.1rem, 6vw, 4.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitle {
  color: var(--muted);
  font-size: 1.1rem;
  margin: 8px 0 0;
}

nav,
.language-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

nav a,
.language-menu select,
.language-grid a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 13px;
  background: var(--panel);
  color: var(--text);
  text-decoration: none;
  box-shadow: 0 6px 18px rgba(24, 32, 38, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

nav a:hover,
.language-grid a:hover {
  transform: translateY(-1px);
  border-color: var(--hover-line);
  background: var(--accent-soft);
}

.language-menu {
  display: inline-flex;
  position: relative;
  margin: 0;
}

.language-menu select {
  -webkit-appearance: none;
  appearance: none;
  min-width: 164px;
  padding-right: 36px;
  font: inherit;
  line-height: 1.2;
  cursor: pointer;
}

.language-menu::after {
  position: absolute;
  right: 14px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  content: "";
  pointer-events: none;
  transform: translateY(-65%) rotate(45deg);
}

main {
  display: grid;
  gap: 22px;
  padding: 8px 0 48px;
}

section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: clamp(20px, 4vw, 34px);
  scroll-margin-top: 18px;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

section:hover {
  transform: translateY(-1px);
  border-color: var(--section-hover-line);
}

section h2 {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  margin-bottom: 16px;
}

section h2::before {
  display: inline-grid;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  content: "i";
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(232, 93, 63, 0.18);
}

.download-panel h2::before {
  content: "↓";
}

#support h2::before {
  content: "?";
  background: linear-gradient(135deg, var(--accent-3), var(--accent-2));
}

#privacy h2::before {
  content: "✓";
  background: linear-gradient(135deg, var(--accent-2), #5eaa72);
}

#terms h2::before {
  content: "§";
  background: linear-gradient(135deg, #6f7bbd, var(--accent-3));
}

section h3 {
  font-size: 1.08rem;
  margin-top: 24px;
  margin-bottom: 8px;
  color: var(--accent-3);
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
}

li {
  margin: 6px 0;
}

li::marker {
  color: var(--accent-2);
}

.meta {
  color: var(--muted);
  font-size: 0.96rem;
  margin-bottom: 18px;
}

.notice {
  border-left: 4px solid var(--accent);
  background: rgba(232, 93, 63, 0.1);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 18px 0;
}

.contact-box {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  margin-top: 14px;
  background: rgba(42, 157, 143, 0.08);
}

.contact-box > div {
  position: relative;
  padding-left: 32px;
}

.contact-box > div::before {
  position: absolute;
  left: 0;
  top: 3px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 6px;
  background: var(--panel);
  color: var(--accent-2);
  content: "@";
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: inset 0 0 0 1px var(--line);
}

.contact-box > div:first-child::before {
  content: "N";
  color: var(--accent);
}

.label {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.todo {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.95em;
  color: var(--accent);
  overflow-wrap: anywhere;
}

footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 24px 0 42px;
  font-size: 0.94rem;
}

@media (max-width: 620px) {
  header {
    padding-top: 34px;
  }

  .brand {
    align-items: center;
  }

  .app-icon {
    border-radius: 22px;
  }
}


.download-panel {
  display: grid;
  gap: 12px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(232, 93, 63, 0.14), rgba(42, 157, 143, 0.11)),
    var(--panel);
}

.download-panel h2 {
  margin-bottom: 0;
}

.app-store-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.app-store-badge-link {
  display: inline-flex;
  line-height: 0;
  border-radius: 9px;
  overflow: hidden;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.app-store-badge-link:hover {
  transform: translateY(-1px);
  opacity: 0.92;
}

.app-store-badge {
  display: block;
  width: 148px;
  height: auto;
}

@media (max-width: 620px) {
  .app-store-badges {
    gap: 10px;
  }

  .app-store-badge {
    width: 142px;
  }
}
