:root {
  --bg: #0a0d12;
  --surface: #111820;
  --surface-muted: #1a2330;
  --text: #f4f7fb;
  --text-muted: #b8c4d4;
  --text-light: #7a8a9e;
  --accent: #5b9bd5;
  --accent-hover: #78bce8;
  --accent-soft: rgba(91, 155, 213, 0.14);
  --border: #243044;
  --success: #3dbf72;
  --error: #e05c5c;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 36px rgba(0, 0, 0, 0.35);
  --max-width: 860px;
  --legal-max-width: 640px;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(69, 117, 172, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(46, 79, 115, 0.18), transparent 55%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 24px 0;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

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

.brand-mark img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  object-fit: cover;
}

.topbar {
  display: flex;
  align-items: center;
  gap: 6px;
}

.lang-link {
  min-width: 36px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease, background 0.2s ease;
}

.lang-link:hover {
  color: var(--text);
  text-decoration: none;
  background: var(--surface-muted);
}

.lang-link.active {
  color: var(--accent);
  background: var(--surface);
  border: 1px solid var(--border);
}

.lang-sep {
  display: none;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px 64px;
}

.hero {
  text-align: center;
  padding: 48px 0 64px;
}

.logo {
  display: block;
  width: min(180px, 50vw);
  height: auto;
  margin: 0 auto 28px;
}

.badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid rgba(91, 155, 213, 0.22);
  border-radius: 999px;
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 5.5vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.tagline {
  margin: 0 0 18px;
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  font-weight: 500;
  color: var(--accent);
}

.intro {
  margin: 0 auto;
  max-width: 560px;
  color: var(--text-muted);
  font-size: 1rem;
}

.features {
  display: grid;
  gap: 14px;
  margin-bottom: 64px;
}

.feature {
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-bottom: 12px;
  font-size: 14px;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 9px;
}

.feature h2 {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 600;
}

.feature p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--text-muted);
}

.newsletter {
  padding: 36px 28px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: var(--shadow);
}

.newsletter h2 {
  margin: 0 0 8px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.newsletter-copy {
  margin: 0 auto 22px;
  max-width: 460px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 440px;
  margin: 0 auto;
}

.newsletter-form input {
  width: 100%;
  padding: 13px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface-muted);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.newsletter-form input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(91, 155, 213, 0.2);
}

.newsletter-form input::placeholder {
  color: var(--text-light);
}

.newsletter-form button {
  padding: 13px 22px;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  color: #fff;
  background: var(--accent);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.2s ease;
}

.newsletter-form button:hover:not(:disabled) {
  background: var(--accent-hover);
}

.newsletter-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}

.form-message {
  min-height: 1.4em;
  margin: 12px 0 0;
  font-size: 0.9rem;
}

.form-message.success {
  color: var(--success);
}

.form-message.error {
  color: var(--error);
}

.privacy-note {
  margin: 14px auto 0;
  max-width: 460px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--text-light);
}

.privacy-note a {
  color: var(--text-muted);
}

.privacy-note a:hover {
  color: var(--accent);
}

.footer {
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.84rem;
  color: var(--text-light);
}

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

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 18px;
}

.footer-nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.82rem;
}

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

.legal-body .page {
  max-width: var(--legal-max-width);
  padding-top: 12px;
}

.legal-page h1 {
  margin: 0 0 8px;
  font-size: 1.9rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: left;
}

.legal-updated {
  margin: 0 0 32px;
  color: var(--text-light);
  font-size: 0.9rem;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
}

.back-link:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

.legal-block {
  margin-bottom: 28px;
}

.legal-block h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
}

.legal-block p,
.legal-block li {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

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

.legal-block li + li {
  margin-top: 6px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (min-width: 720px) {
  .hero {
    padding: 56px 0 72px;
  }

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

  .newsletter-form {
    flex-direction: row;
    max-width: 100%;
  }

  .newsletter-form input {
    flex: 1;
  }

  .newsletter-form button {
    flex-shrink: 0;
  }
}