:root {
  --bg: #0d0f1c;
  --bg-soft: #14172a;
  --card: #1a1e35;
  --border: rgba(255, 255, 255, 0.08);
  --text: #eef0f8;
  --muted: #9aa0bd;
  --red: #e84b5c;
  --blue: #4a9fe8;
  --green: #5ec76a;
  --orange: #f0a84a;
  --radius: 16px;
  --max: 1080px;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(13, 15, 28, 0.85);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.15rem; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.brand .x { color: var(--red); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* Hero */
.hero {
  text-align: center;
  padding: 80px 0 64px;
  background:
    radial-gradient(800px 400px at 20% -10%, rgba(232, 75, 92, 0.18), transparent 60%),
    radial-gradient(700px 400px at 90% 0%, rgba(74, 159, 232, 0.16), transparent 60%);
}
.hero img.app-icon {
  width: 132px; height: 132px; border-radius: 28px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  margin-bottom: 28px;
}
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -0.02em; }
.hero h1 .x { color: var(--red); }
.hero .tagline { color: var(--muted); font-size: 1.2rem; max-width: 620px; margin: 16px auto 32px; }

.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: none;
  transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--red), #b83548); color: #fff; }
.btn-secondary { background: var(--card); color: var(--text); border: 1px solid var(--border); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Features */
.section { padding: 64px 0; }
.section h2 { font-size: 1.9rem; font-weight: 800; text-align: center; margin-bottom: 8px; }
.section .sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}
.feature .ico { font-size: 1.8rem; margin-bottom: 12px; }
.feature h3 { font-size: 1.1rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 0.95rem; }

/* Legal / content pages */
.content { padding: 56px 0 72px; }
.content .container { max-width: 800px; }
.content h1 { font-size: 2.2rem; font-weight: 900; margin-bottom: 8px; }
.content .updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 32px; }
.content h2 { font-size: 1.35rem; margin: 32px 0 10px; }
.content p, .content li { color: #cdd1e6; margin-bottom: 12px; }
.content ul { padding-left: 22px; }
.content a { font-weight: 600; }

/* Contact form */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  max-width: 600px;
  margin: 0 auto;
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 600; margin-bottom: 8px; font-size: 0.95rem; }
.field label .req { color: var(--red); }
.field input, .field textarea {
  width: 100%;
  padding: 13px 15px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 11px;
  color: var(--text);
  font: inherit;
  font-size: 1rem;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(232, 75, 92, 0.18);
}
.field textarea { resize: vertical; min-height: 140px; }
.field .error { color: var(--red); font-size: 0.85rem; margin-top: 6px; display: none; }
.field.invalid .error { display: block; }
.field.invalid input, .field.invalid textarea { border-color: var(--red); }
.g-recaptcha { margin-bottom: 20px; }
.form-status { margin-top: 16px; font-weight: 600; min-height: 1.4em; }
.form-status.ok { color: var(--green); }
.form-status.bad { color: var(--red); }
.recaptcha-note { margin-top: 18px; color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.recaptcha-note a { color: var(--muted); text-decoration: underline; }
.recaptcha-note a:hover { color: var(--text); }

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.85rem; }
  .hero { padding: 56px 0 48px; }
  .footer-inner { flex-direction: column; text-align: center; }
}
