:root {
  --ink: #e8f7f4;
  --ink-dim: rgba(232, 247, 244, 0.72);
  --ink-mute: rgba(232, 247, 244, 0.48);
  --teal: #2dd4bf;
  --teal-deep: #14b8a6;
  --teal-glow: rgba(45, 212, 191, 0.35);
  --night: #041015;
  --night-2: #0a1f24;
  --night-3: #123038;
  --line: rgba(232, 247, 244, 0.12);
  --font-display: "Syne", system-ui, sans-serif;
  --font-body: "Outfit", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.55;
  background:
    radial-gradient(ellipse 90% 60% at 70% 10%, rgba(45, 212, 191, 0.18), transparent 55%),
    radial-gradient(ellipse 70% 50% at 10% 80%, rgba(20, 184, 166, 0.12), transparent 50%),
    linear-gradient(165deg, var(--night) 0%, var(--night-2) 48%, #07181d 100%);
  background-attachment: fixed;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover {
  color: #7eeadb;
}

.wrap {
  width: min(1120px, calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Nav ——— */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 0;
  position: relative;
  z-index: 5;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
}

.nav-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.92rem;
}

.nav-links a {
  color: var(--ink-dim);
  text-decoration: none;
}

.nav-links a:hover {
  color: var(--ink);
}

.lang-wrap {
  display: inline-flex;
  align-items: center;
}

.lang-wrap select {
  appearance: none;
  -webkit-appearance: none;
  min-height: 2.2rem;
  padding: 0.35rem 1.85rem 0.35rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background:
    linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%) calc(100% - 14px) / 5px 5px no-repeat,
    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%) calc(100% - 9px) / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.04);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.85rem;
  max-width: 9.5rem;
  cursor: pointer;
}

.lang-wrap select:focus {
  outline: 2px solid rgba(45, 212, 191, 0.45);
  outline-offset: 2px;
}

.lang-wrap select option {
  color: #04201c;
  background: #e8f7f4;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html[dir="rtl"] .lang-wrap select {
  padding: 0.35rem 0.7rem 0.35rem 1.85rem;
  background:
    linear-gradient(45deg, transparent 50%, var(--ink-dim) 50%) 9px / 5px 5px no-repeat,
    linear-gradient(135deg, var(--ink-dim) 50%, transparent 50%) 14px / 5px 5px no-repeat,
    rgba(255, 255, 255, 0.04);
}

/* ——— Hero ——— */
.hero {
  position: relative;
  min-height: calc(100svh - 5rem);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  padding: 1rem 0 4rem;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-brand {
  margin: 0 0 1.1rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(3.4rem, 9vw, 6.2rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  background: linear-gradient(120deg, #ffffff 10%, var(--teal) 70%, #9af0e4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: rise 0.9s ease both;
}

.hero-line {
  margin: 0 0 0.85rem;
  max-width: 22ch;
  font-family: var(--font-display);
  font-weight: 650;
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ink);
  animation: rise 0.9s 0.08s ease both;
}

.hero-sub {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  font-size: 1.05rem;
  color: var(--ink-dim);
  animation: rise 0.9s 0.16s ease both;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  animation: rise 0.9s 0.24s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #04201c;
  background: linear-gradient(135deg, #7eeadb, var(--teal-deep));
  box-shadow: 0 10px 40px var(--teal-glow);
}

.btn-primary:hover {
  color: #021412;
}

.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  color: var(--ink);
  border-color: rgba(45, 212, 191, 0.45);
}

.hero-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
  animation: rise 1s 0.12s ease both;
}

.hero-visual::before {
  content: "";
  position: absolute;
  width: min(78%, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.45), transparent 68%);
  filter: blur(18px);
  animation: pulse 5.5s ease-in-out infinite;
}

.hero-visual img {
  position: relative;
  width: min(78%, 420px);
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.45));
  animation: float 6s ease-in-out infinite;
}

.orbit {
  position: absolute;
  inset: 12% 8%;
  border: 1px solid rgba(167, 243, 233, 0.22);
  border-radius: 50%;
  transform: rotate(-28deg) scaleX(1.15);
  pointer-events: none;
  animation: spin 28s linear infinite;
}

.orbit::after {
  content: "";
  position: absolute;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 18px var(--teal);
  top: 18%;
  left: 8%;
}

/* ——— Features ——— */
.section {
  padding: 4.5rem 0 5.5rem;
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.35rem);
  letter-spacing: -0.03em;
}

.section-lead {
  margin: 0 0 2rem;
  max-width: 42ch;
  color: var(--ink-dim);
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li {
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.feature-list h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.feature-list p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.98rem;
}

/* ——— Legal pages ——— */
.legal {
  padding: 1.5rem 0 5rem;
  max-width: 720px;
}

.legal h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 2.8rem);
  letter-spacing: -0.03em;
}

.legal .meta {
  margin: 0 0 2rem;
  color: var(--ink-mute);
  font-size: 0.92rem;
}

.legal h2 {
  margin: 2rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.legal p,
.legal li {
  color: var(--ink-dim);
}

.legal ul {
  padding-left: 1.2rem;
}

.legal li + li {
  margin-top: 0.35rem;
}

/* ——— Footer ——— */
.footer {
  border-top: 1px solid var(--line);
  padding: 1.75rem 0 2.5rem;
  color: var(--ink-mute);
  font-size: 0.9rem;
}

.footer-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  color: var(--ink-dim);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--teal);
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.65;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.06);
  }
}

@keyframes spin {
  to {
    transform: rotate(332deg) scaleX(1.15);
  }
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 0.5rem;
    gap: 1.25rem;
  }

  .hero-visual {
    order: -1;
    min-height: 280px;
  }

  .hero-visual img,
  .hero-visual::before {
    width: min(68%, 300px);
  }

  .feature-list {
    grid-template-columns: 1fr;
  }

  .nav-links {
    gap: 0.65rem;
    font-size: 0.82rem;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .lang-wrap select {
    max-width: 7.5rem;
    font-size: 0.78rem;
  }
}
