:root {
  color-scheme: dark;
  --bg: #05070d;
  --bg-soft: #0b1020;
  --text: #f8fbff;
  --muted: #aebbd0;
  --line: rgba(255, 255, 255, 0.14);
  --glass: rgba(255, 255, 255, 0.08);
  --glass-strong: rgba(255, 255, 255, 0.14);
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.38);
  --primary: #f43f5e;
  --primary-strong: #fb7185;
  --cyan: #38bdf8;
  --green: #34d399;
  --radius-xl: 36px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --container: min(1160px, calc(100vw - 40px));
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html[data-theme='light'] {
  color-scheme: light;
  --bg: #f7f9fd;
  --bg-soft: #ffffff;
  --text: #08111f;
  --muted: #5f6f85;
  --line: rgba(8, 17, 31, 0.12);
  --glass: rgba(255, 255, 255, 0.7);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --shadow: 0 30px 100px rgba(15, 23, 42, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 10%, rgba(244, 63, 94, 0.2), transparent 32rem),
    radial-gradient(circle at 82% 22%, rgba(56, 189, 248, 0.18), transparent 30rem),
    linear-gradient(135deg, var(--bg), var(--bg-soft));
  overflow-x: hidden;
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

img {
  display: block;
  max-width: 100%;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 36rem;
  height: 36rem;
  border-radius: 999px;
  filter: blur(26px);
  opacity: 0.42;
  pointer-events: none;
  animation: float 11s ease-in-out infinite;
}

.ambient-one {
  top: 8rem;
  left: -14rem;
  background: rgba(244, 63, 94, 0.34);
}

.ambient-two {
  right: -13rem;
  bottom: 3rem;
  background: rgba(56, 189, 248, 0.3);
  animation-delay: -4s;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  width: var(--container);
  margin: 18px auto 0;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 10, 20, 0.58);
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

html[data-theme='light'] .site-header {
  background: rgba(255, 255, 255, 0.68);
}

.brand,
.site-nav,
.theme-toggle,
.button,
.language-pill {
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  font-weight: 850;
}

.brand:hover,
.button:hover,
.theme-toggle:hover,
.language-pill:hover {
  transform: translateY(-2px);
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  color: white;
  box-shadow: 0 14px 36px rgba(244, 63, 94, 0.3);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.site-nav a:hover {
  color: var(--text);
  background: var(--glass-strong);
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 11px 14px;
  color: var(--text);
  background: var(--glass);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.section,
.hero,
.site-footer {
  width: var(--container);
  margin-inline: auto;
}

.hero {
  min-height: calc(100vh - 96px);
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 10vw, 132px) 0 72px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  letter-spacing: -0.075em;
  line-height: 0.92;
}

h1 {
  max-width: 12ch;
  margin-bottom: 26px;
  font-size: clamp(4.3rem, 10vw, 8.8rem);
  font-weight: 950;
}

h2 {
  margin-bottom: 20px;
  font-size: clamp(3rem, 6vw, 6.4rem);
  font-weight: 950;
}

h3 {
  margin-bottom: 14px;
  font-size: clamp(1.6rem, 2vw, 2.2rem);
  letter-spacing: -0.045em;
}

.hero__lead,
.section-heading p,
.language-panel p,
.cta p,
.feature-card p,
.ai-copy li {
  color: var(--muted);
  font-size: clamp(1.04rem, 1.6vw, 1.25rem);
  line-height: 1.7;
}

.hero__lead {
  max-width: 660px;
  margin-bottom: 32px;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 44px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 22px;
  font-weight: 900;
}

.button--primary {
  border-color: transparent;
  color: white;
  background: linear-gradient(135deg, var(--primary), #8b5cf6 55%, var(--cyan));
  box-shadow: 0 18px 48px rgba(244, 63, 94, 0.28);
}

.button--primary:hover {
  box-shadow: 0 22px 64px rgba(56, 189, 248, 0.28), 0 0 0 6px rgba(244, 63, 94, 0.12);
}

.button--ghost {
  background: var(--glass);
}

.glass-card {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, var(--glass-strong), var(--glass));
  box-shadow: var(--shadow);
  backdrop-filter: blur(24px);
}

.hero__visual {
  padding: clamp(12px, 2vw, 22px);
  border-radius: var(--radius-xl);
  transform-style: preserve-3d;
}

.hero__visual img {
  border-radius: calc(var(--radius-xl) - 14px);
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 680px;
  margin: 0;
}

.hero__metrics div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--glass);
}

.hero__metrics dt {
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 950;
}

.hero__metrics dd {
  margin: 6px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(64px, 8vw, 118px) 0;
}

.section-heading {
  max-width: 860px;
  margin-bottom: 38px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  min-height: 330px;
  padding: clamp(24px, 4vw, 36px);
  border-radius: var(--radius-xl);
}

.feature-card__number {
  display: inline-grid;
  width: 48px;
  height: 48px;
  margin-bottom: 76px;
  place-items: center;
  border-radius: 16px;
  color: white;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  font-weight: 950;
}

.language-panel,
.cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: clamp(26px, 5vw, 56px);
  border-radius: var(--radius-xl);
}

.language-panel h2,
.cta h2 {
  max-width: 820px;
}

.language-switcher {
  display: grid;
  gap: 12px;
}

.language-pill {
  min-width: 180px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 15px 20px;
  color: var(--text);
  background: var(--glass);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.language-pill.is-active {
  border-color: rgba(56, 189, 248, 0.62);
  background: rgba(56, 189, 248, 0.16);
  box-shadow: 0 0 0 5px rgba(56, 189, 248, 0.1);
}

.ai-section {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: clamp(28px, 5vw, 80px);
  align-items: center;
}

.ai-orb {
  position: relative;
  min-height: 440px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 50% 50%, rgba(56, 189, 248, 0.28), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.ai-orb span {
  position: absolute;
  inset: 50%;
  width: 190px;
  height: 190px;
  margin: -95px;
  border-radius: 999px;
  border: 1px solid rgba(56, 189, 248, 0.36);
  animation: pulse 3.4s ease-in-out infinite;
}

.ai-orb span:nth-child(2) {
  width: 280px;
  height: 280px;
  margin: -140px;
  animation-delay: -1.1s;
}

.ai-orb span:nth-child(3) {
  width: 370px;
  height: 370px;
  margin: -185px;
  animation-delay: -2.2s;
}

.check-list {
  display: grid;
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 44px;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0.15em;
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 999px;
  color: #052e1d;
  background: var(--green);
  font-size: 0.9rem;
  font-weight: 950;
}

.cta {
  margin-bottom: 70px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 32px 0 48px;
  color: var(--muted);
  font-weight: 800;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

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

@keyframes float {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(18px, -24px, 0) scale(1.06); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.34; transform: scale(0.96); }
  50% { opacity: 0.9; transform: scale(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: stretch;
    border-radius: 28px;
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    overflow-x: auto;
  }

  .hero,
  .ai-section,
  .language-panel,
  .cta {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    max-width: 10ch;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .language-switcher {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .language-pill {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100vw - 28px, 1160px);
  }

  .brand span:last-child,
  .theme-toggle__text {
    display: none;
  }

  .site-nav a {
    padding: 9px 10px;
    font-size: 0.82rem;
  }

  h1 {
    font-size: clamp(3.4rem, 17vw, 5rem);
  }

  .hero__metrics,
  .language-switcher {
    grid-template-columns: 1fr;
  }

  .feature-card__number {
    margin-bottom: 44px;
  }

  .ai-orb {
    min-height: 300px;
  }

  .site-footer {
    flex-direction: column;
  }
}
