:root {
  --bg: #F3F6FB;
  --surface: #FFFFFF;
  --primary: #007AFF;
  --primary-dark: #0063D6;
  --text: #0A2540;
  --text-muted: #556B86;
  --border: #DDE7F2;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 37, 64, 0.08);
  --header-h: 64px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

[hidden] {
  display: none !important;
}

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

a {
  color: var(--primary);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--text);
  color: #fff;
  padding: 8px 14px;
  border-radius: 8px;
  z-index: 100;
}

.skip-link:focus {
  left: 8px;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-weight: 800;
  letter-spacing: 0.3px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-weight: 800;
  font-size: 19px;
}

.brand-name {
  font-size: 16px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.site-nav::-webkit-scrollbar {
  display: none;
}

.site-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 10px;
  white-space: nowrap;
}

.site-nav a:hover {
  color: var(--primary);
  background: rgba(0, 122, 255, 0.08);
}

.site-nav a[aria-current="page"] {
  color: var(--primary);
  background: rgba(0, 122, 255, 0.1);
}

.lang-btn {
  flex: 0 0 auto;
  width: 52px;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.lang-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.lang-btn:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 32px;
  text-align: center;
}

.hero-app {
  display: inline-block;
  margin: 0 0 12px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 6px;
  color: var(--primary);
  text-transform: uppercase;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.15;
  letter-spacing: -0.5px;
}

.hero-intro {
  margin: 0 auto;
  max-width: 620px;
  font-size: clamp(16px, 2.4vw, 19px);
  color: var(--text-muted);
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 122, 255, 0.28);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-ghost {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.hero-support {
  margin: 28px 0 0;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-mail {
  font-weight: 700;
  text-decoration: none;
}

.hero-mail:hover {
  text-decoration: underline;
}

/* ---------- Features ---------- */
.features {
  padding: 24px 0 64px;
}

.features-title {
  text-align: center;
  font-size: clamp(20px, 3vw, 26px);
  margin: 0 0 28px;
  letter-spacing: -0.3px;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}

.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
  box-shadow: var(--shadow);
}

/* ---------- Legal pages ---------- */
.page-head {
  padding: 40px 0 8px;
  text-align: center;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(28px, 5vw, 40px);
  letter-spacing: -0.5px;
}

.page-sub {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 14px;
}

.legal {
  padding: 24px 0 72px;
}

.legal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
}

.legal-intro {
  font-size: 17px;
  color: var(--text);
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-top: 0;
}

.legal section {
  margin-top: 28px;
}

.legal h2 {
  font-size: 19px;
  letter-spacing: -0.2px;
  margin: 0 0 8px;
}

.legal p {
  margin: 0;
  color: #27415E;
}

.inline-link {
  font-weight: 600;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--text);
  color: #fff;
  margin-top: auto;
}

.footer-inner {
  padding-top: 28px;
  padding-bottom: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-line {
  margin: 4px 0 0;
  color: #B7C4D6;
  font-size: 14px;
}

.footer-mail {
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  font-size: 15px;
  padding: 10px 0;
}

.footer-mail:hover {
  text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .container {
    padding: 0 16px;
  }

  .brand-name {
    display: none;
  }

  .site-nav a {
    padding: 10px 10px;
    font-size: 13px;
  }

  .legal-card {
    padding: 24px 20px;
  }

  .hero {
    padding-top: 40px;
  }

  .footer-inner {
    justify-content: center;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}