:root {
  --bg: #0f1412;
  --bg-soft: #17201c;
  --card: #1c2722;
  --text: #f4f1ea;
  --muted: #b7c0b8;
  --accent: #d4a017;
  --accent-2: #3dd6c6;
  --line: #2d3b34;
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
}

body {
  margin: 0;
  /* containing block for absolute children, so overflow-x below can clip them */
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
  overscroll-behavior-x: none;
  touch-action: pan-y;
  font-family: "Segoe UI", Tahoma, Arial, sans-serif;
  background: radial-gradient(1200px 600px at 10% -10%, #1e3a32 0%, var(--bg) 55%);
  color: var(--text);
  line-height: 1.7;
}

a {
  color: inherit;
  text-decoration: none;
}

input,
textarea,
select,
.assistant-log {
  touch-action: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 8%;
  background: rgba(15, 20, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-inline-start: auto;
}

.lang-switch select {
  appearance: none;
  padding: 8px 36px 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #121916 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23b7c0b8' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") no-repeat;
  background-position: right 14px center;
  background-size: 10px 7px;
  color: var(--text);
  font: inherit;
  font-size: 0.9rem;
  cursor: pointer;
}

[dir="rtl"] .lang-switch select {
  padding: 8px 14px 8px 36px;
  background-position: left 14px center;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--accent-2);
}

.logo img {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  object-fit: contain;
  background: #000;
}

.nav {
  display: flex;
  gap: 22px;
  align-items: center;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  margin: 6px 0;
  background: var(--text);
}

.hero,
.section {
  padding: 72px 8%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-x: clip;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}

.hero-copy,
.hero-card,
.brand-stage {
  min-width: 0;
}

.hero-ribbon {
  display: grid;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

.ticker {
  overflow: hidden;
  max-width: 100%;
  white-space: nowrap;
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.ticker-track {
  display: inline-flex;
  align-items: center;
  width: max-content;
  gap: 4.5rem;
  animation: ticker-ltr 26s linear infinite;
}

[dir="rtl"] .ticker-track {
  animation-name: ticker-rtl;
}

.eyebrow {
  color: var(--accent-2);
  font-weight: 700;
  margin: 0 0 10px;
}

.ticker-title .ticker-track {
  animation-duration: 28s;
}

.ticker-title,
.ticker-title .ticker-track span {
  margin: 0;
  color: #e3c056;
  text-shadow: 0 0 16px rgba(212, 160, 23, 0.35);
  flex: 0 0 auto;
}

.ticker-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.35;
}

.hero-ribbon:hover .ticker-track {
  animation-play-state: paused;
}

@keyframes ticker-ltr {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@keyframes ticker-rtl {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .ticker {
    mask-image: none;
    white-space: normal;
  }

  .ticker-track {
    animation: none;
    display: block;
    width: auto;
    white-space: normal;
  }

  .ticker-track [aria-hidden="true"] {
    display: none;
  }

  .hero-lead {
    color: #e3c056;
  }

  .btn,
  .nav a,
  .logo,
  .lang-switch select,
  .card,
  .assistant-chips button,
  .assistant-fab,
  .assistant-head button,
  .nav-toggle,
  .form select {
    transition: none;
  }

  .btn:hover,
  .nav a:hover,
  .logo:hover,
  .lang-switch select:hover,
  .card:hover,
  .assistant-chips button:hover,
  .assistant-fab:hover,
  .assistant-head button:hover,
  .nav-toggle:hover,
  .form select:hover {
    transform: none;
  }
}

h1,
h2,
h3 {
  line-height: 1.35;
  margin: 0 0 12px;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.lead,
.section-head p {
  color: var(--muted);
  max-width: 60ch;
}

.hero-ribbon .ticker-title,
.hero-ribbon .ticker-title span {
  color: #e3c056;
}

.hero-lead {
  max-width: 60ch;
  font-size: 1rem;
  line-height: 1.7;
  white-space: normal;
  color: #e3c056;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent);
  color: #1a1404;
  font-weight: 700;
  border: 0;
  border-radius: 999px;
  padding: 12px 22px;
  cursor: pointer;
}

.btn-small {
  padding: 8px 16px;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line);
}

.btn,
.nav a,
.logo,
.lang-switch select,
.card,
.assistant-chips button,
.assistant-fab,
.assistant-head button,
.nav-toggle,
.form select {
  transition: transform 0.22s ease;
}

.btn:hover,
.nav a:hover,
.logo:hover,
.lang-switch select:hover,
.card:hover,
.assistant-chips button:hover,
.assistant-fab:hover,
.assistant-head button:hover,
.nav-toggle:hover,
.form select:hover {
  transform: scale(1.05);
}

.card:hover {
  z-index: 1;
}

@media (hover: none) {
  .btn:hover,
  .nav a:hover,
  .logo:hover,
  .lang-switch select:hover,
  .card:hover,
  .assistant-chips button:hover,
  .assistant-fab:hover,
  .assistant-head button:hover,
  .nav-toggle:hover,
  .form select:hover {
    transform: none;
  }
}

.hero-card,
.card,
.form,
.reasons li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.brand-stage {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 18px;
  padding: 12px 0 0;
}

.brand-glow {
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212, 160, 23, 0.4), transparent 68%);
  animation: pulse 3.4s ease-in-out infinite;
  pointer-events: none;
}

.brand-orbit {
  position: absolute;
  width: 240px;
  height: 240px;
  border: 1px dashed rgba(212, 160, 23, 0.45);
  border-radius: 50%;
  animation: spin-slow 14s linear infinite;
  pointer-events: none;
}

.brand-frame {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
}

.brand-art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  animation: brand-blink 4.8s ease-in-out infinite;
}

@keyframes brand-blink {
  0%,
  22% {
    opacity: 1;
    filter: drop-shadow(0 0 10px rgba(212, 160, 23, 0.2));
  }
  48% {
    opacity: 0.38;
    filter: drop-shadow(0 0 0 rgba(212, 160, 23, 0));
  }
  72% {
    opacity: 1;
    filter: drop-shadow(0 0 28px rgba(255, 214, 90, 0.7));
  }
  100% {
    opacity: 1;
    filter: drop-shadow(0 0 12px rgba(212, 160, 23, 0.28));
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-art {
    animation: none;
  }
}

.brand-lockup {
  position: relative;
  z-index: 1;
  margin: 0;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.hero-card {
  position: relative;
  z-index: 1;
  width: 100%;
  display: grid;
  gap: 18px;
  padding: 28px;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.stat strong {
  display: block;
  font-size: 1.6rem;
  color: var(--accent-2);
}

.section-head {
  margin-bottom: 28px;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.card,
.reasons li,
.steps li {
  padding: 22px;
}

.section-alt {
  background: var(--bg-soft);
}

.reasons,
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

.steps {
  grid-template-columns: repeat(4, 1fr);
}

.steps .num {
  display: inline-flex;
  width: 32px;
  height: 32px;
  margin-inline-end: 8px;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--accent-2);
  color: #042422;
  font-weight: 800;
}

.form {
  max-width: 560px;
  padding: 24px;
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #121916;
  color: var(--text);
  font: inherit;
}

.form-status {
  min-height: 1.4em;
  margin: 0;
  color: var(--accent-2);
}

.form-error,
[data-fs-error]:not(:empty) {
  color: #f0a8a8;
}

[data-fs-field][aria-invalid="true"] {
  border-color: #dc3455;
}

.hp {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.site-footer {
  padding: 24px 8%;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .hero,
  .cards,
  .steps {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: block;
  }

  .header-tools {
    margin-inline-start: 0;
  }

  .site-header {
    justify-content: flex-start;
  }

  .logo {
    margin-inline-end: auto;
  }

  .nav {
    display: none;
    position: absolute;
    inset: 64px 0 auto 0;
    flex-direction: column;
    padding: 16px 8% 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .nav.open {
    display: flex;
  }
}

.assistant-fab {
  position: fixed;
  z-index: 40;
  inset-inline-end: 18px;
  bottom: 18px;
  width: 58px;
  height: 58px;
  border: 1px solid var(--line);
  border-radius: 50%;
  padding: 6px;
  background: #000;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.assistant-fab img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.assistant {
  position: fixed;
  z-index: 41;
  inset-inline-end: 18px;
  bottom: 88px;
  width: min(360px, calc(100% - 24px));
  display: none;
  grid-template-rows: auto 1fr auto auto;
  max-height: min(520px, calc(100vh - 120px));
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}

.assistant.is-open {
  display: grid;
}

.assistant-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: #121916;
}

.assistant-head span {
  display: block;
  color: var(--muted);
  font-size: 0.85rem;
}

.assistant-head button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 1.4rem;
  cursor: pointer;
}

.assistant-log {
  overflow: auto;
  padding: 12px;
  display: grid;
  gap: 8px;
  min-height: 180px;
}

.assistant-msg {
  margin: 0;
  padding: 10px 12px;
  border-radius: 12px;
  max-width: 90%;
  line-height: 1.5;
}

.assistant-msg.bot {
  background: #121916;
  border: 1px solid var(--line);
}

.assistant-msg.user {
  justify-self: end;
  background: var(--accent);
  color: #1a1404;
}

.assistant-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}

.assistant-chips button {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  padding: 6px 10px;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.assistant-form {
  display: flex;
  gap: 8px;
  padding: 10px 12px 12px;
  border-top: 1px solid var(--line);
}

.assistant-form input {
  flex: 1;
}
