@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&family=Syne:wght@600;700&display=swap');

:root {
  --bg: #0a0f14;
  --bg-soft: #111826;
  --panel: #141c2b;
  --panel-strong: #1b2740;
  --text: #e8edf6;
  --muted: #9aa6bf;
  --accent: #44d7b6;
  --accent-strong: #5ff0c7;
  --accent-warm: #f2a85d;
  --danger: #ff6b6b;
  --line: #263049;
  --shadow: 0 20px 40px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --font-body: 'Space Grotesk', sans-serif;
  --font-display: 'Syne', sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  opacity: 0;
  transition: opacity 0.8s ease;
}

body.loaded {
  opacity: 1;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(68, 215, 182, 0.18), transparent 55%),
    radial-gradient(circle at 85% 10%, rgba(242, 168, 93, 0.12), transparent 50%),
    radial-gradient(circle at 60% 80%, rgba(73, 111, 255, 0.12), transparent 60%),
    linear-gradient(135deg, rgba(12, 18, 30, 0.9), rgba(8, 12, 18, 0.98));
  z-index: -2;
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 120px 120px;
  opacity: 0.2;
  z-index: -1;
  pointer-events: none;
}

img {
  max-width: 100%;
  display: block;
  border-radius: calc(var(--radius) - 4px);
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 32px 0;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(12, 18, 30, 0.6);
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.lang-label {
  font-size: 0.85rem;
  color: var(--muted);
}

.lang-btn {
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-weight: 600;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lang-btn.is-active {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(68, 215, 182, 0.15);
  color: var(--accent-strong);
}

main {
  max-width: 1140px;
  margin: 0 auto;
  padding: 60px 24px 120px;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--accent-strong);
  margin-bottom: 16px;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  margin: 0 0 16px;
}

h1 {
  font-size: clamp(2.5rem, 4vw, 3.6rem);
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

p {
  margin: 0 0 16px;
  color: var(--muted);
}

.lead {
  font-size: 1.05rem;
  color: var(--text);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn.primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-warm));
  color: #0b0f14;
  box-shadow: 0 12px 25px rgba(68, 215, 182, 0.25);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(68, 215, 182, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.tag {
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(20, 28, 43, 0.65);
}

.section-heading {
  margin-bottom: 30px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

.service-card {
  background: rgba(20, 28, 43, 0.9);
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.service-card h3 {
  margin: 0;
}

.service-card p {
  margin: 0;
}

.feature {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 36px;
  align-items: center;
}

.feature.reverse {
  direction: rtl;
}

.feature.reverse > * {
  direction: ltr;
}

.feature-media img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  position: relative;
  padding-left: 28px;
  color: var(--text);
}

.checklist li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--accent-strong);
}

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 40px 24px 80px;
}

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

.terms-link,
.terms-back {
  color: var(--accent-strong);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.terms-page,
.kb-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 32px 24px 80px;
}

.terms-header {
  margin-bottom: 32px;
}

.terms-page h1,
.kb-page h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  margin: 12px 0;
}

.terms-page h2,
.kb-page h2 {
  font-size: 1.2rem;
  margin: 0 0 12px;
}

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

.terms-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 20px 24px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.kb-list {
  display: grid;
  gap: 16px;
}

.kb-card {
  background: var(--panel);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 20px 24px;
  box-shadow: var(--shadow);
}

.kb-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.kb-alert {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 107, 107, 0.6);
  background: rgba(255, 107, 107, 0.12);
  padding: 16px 18px;
  color: #ffd5d5;
  font-weight: 600;
  margin-bottom: 16px;
}

.kb-steps {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text);
}

.kb-note {
  font-size: 0.95rem;
  color: var(--muted);
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
  transition-delay: var(--delay, 0ms);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    transition: none;
    opacity: 1;
  }

  .js .reveal {
    transition: none;
    transform: none;
    opacity: 1;
  }
}
