:root {
  color-scheme: dark;
  --bg: #070a12;
  --bg-soft: #0d1220;
  --surface: rgba(15, 23, 42, 0.78);
  --surface-strong: #121a2b;
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.18);
  --text: #f8fafc;
  --muted: #a7b0c0;
  --soft: #dbeafe;
  --primary: #34d399;
  --primary-2: #22d3ee;
  --accent: #818cf8;
  --danger: #fb7185;
  --radius-sm: 12px;
  --radius: 22px;
  --radius-lg: 34px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --container: 1180px;
  --font: Inter, "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body.site-page {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 2%, rgba(34, 211, 238, 0.16), transparent 32rem),
    radial-gradient(circle at 82% 4%, rgba(129, 140, 248, 0.20), transparent 34rem),
    linear-gradient(180deg, #070a12 0%, #0b1020 48%, #070a12 100%);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
}

body.chat-page {
  height: 100vh;
  overflow: hidden;
}

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

img {
  max-width: 100%;
  height: auto;
}

.site-container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.site-section {
  padding: clamp(58px, 8vw, 112px) 0;
}

.site-section.tight {
  padding: clamp(34px, 5vw, 64px) 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(18px);
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  min-height: 78px;
}

.site-brand img {
  display: block;
  max-height: 42px;
}

.site-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a,
.site-footer a {
  color: var(--muted);
  font-weight: 650;
}

.site-menu a:hover,
.site-footer a:hover {
  color: var(--text);
}

.site-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--border);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  font-weight: 760;
  line-height: 1;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.site-btn:hover {
  transform: translateY(-2px);
}

.site-btn.primary {
  color: #03120d;
  border-color: transparent;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 18px 45px rgba(34, 211, 238, 0.22);
}

.site-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--soft);
  background: rgba(255, 255, 255, 0.045);
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 22px rgba(52, 211, 153, 0.82);
}

.gradient-text {
  background: linear-gradient(135deg, #f8fafc 0%, #bbf7d0 42%, #a5b4fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.title-xl,
.title-lg,
.title-md {
  margin: 0;
  color: var(--text);
  font-weight: 820;
  letter-spacing: -0.055em;
}

.title-xl {
  font-size: clamp(2.7rem, 7vw, 6.2rem);
  line-height: 0.96;
}

.title-lg {
  font-size: clamp(2.1rem, 4.4vw, 4rem);
  line-height: 1.05;
}

.title-md {
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.lead {
  margin: 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(76px, 10vw, 138px) 0 clamp(54px, 8vw, 96px);
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -20% auto;
  height: 700px;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 24%, rgba(52, 211, 153, 0.24), transparent 23rem),
    radial-gradient(circle at 78% 14%, rgba(129, 140, 248, 0.22), transparent 26rem);
}

.hero-grid {
  position: relative;
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.82fr);
  gap: clamp(34px, 6vw, 80px);
}

.hero-copy {
  display: grid;
  gap: 24px;
}

.card {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)),
    var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.card.pad {
  padding: clamp(22px, 3vw, 36px);
}

.card p,
.card li,
.prose p,
.prose li,
.prose address {
  color: var(--muted);
}

.chat-card {
  padding: 18px;
  border-radius: var(--radius-lg);
}

.chat-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
}

.dots {
  display: flex;
  gap: 7px;
}

.dots span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dots span:nth-child(1) { background: #fb7185; }
.dots span:nth-child(2) { background: #facc15; }
.dots span:nth-child(3) { background: #4ade80; }

.msg {
  width: fit-content;
  max-width: 88%;
  margin-top: 14px;
  padding: 13px 15px;
  border: 1px solid var(--border);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.05);
}

.msg.user {
  margin-left: auto;
  color: var(--text);
  background: rgba(52, 211, 153, 0.14);
  border-color: rgba(52, 211, 153, 0.28);
}

.chat-input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.24);
}

.send {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  color: #03120d;
  border-radius: 12px;
  background: var(--primary);
}

.section-head {
  display: grid;
  gap: 14px;
  max-width: 760px;
  margin: 0 auto 36px;
  text-align: center;
}

.grid {
  display: grid;
  gap: 22px;
}

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

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature {
  display: grid;
  gap: 14px;
}

.icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #03120d;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  font-weight: 850;
}

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

.faq {
  display: grid;
  gap: 14px;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
}

.faq summary {
  cursor: pointer;
  padding: 20px 22px;
  color: var(--text);
  font-weight: 760;
}

.faq details p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

.ad-wrap {
  display: flex;
  justify-content: center;
  max-width: 100%;
  overflow-x: auto;
}

.model-hero {
  padding: clamp(70px, 10vw, 130px) 0 clamp(44px, 6vw, 74px);
  text-align: center;
}

.model-hero .lead {
  max-width: 820px;
  margin-inline: auto;
}

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

.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.check-list li::before {
  content: "✓";
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  height: 28px;
  color: #03120d;
  border-radius: 50%;
  background: var(--primary);
  font-weight: 850;
}

.prose {
  max-width: 900px;
  margin-inline: auto;
}

.prose h2,
.prose h3 {
  margin-top: 1.8em;
  color: var(--text);
}

.prose a {
  color: var(--primary-2);
  text-decoration: underline;
  text-decoration-color: rgba(34, 211, 238, 0.38);
}

.site-footer {
  border-top: 1px solid var(--border);
  background: rgba(7, 10, 18, 0.88);
}

.footer-top {
  padding: clamp(56px, 8vw, 96px) 0 42px;
}

.lang-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.lang-grid a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
}

.lang-grid .flag {
  width: 20px;
  height: 20px;
  border-radius: 50%;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.4fr) repeat(3, minmax(0, 0.8fr));
  gap: 30px;
  margin-top: 50px;
}

.footer-grid h5 {
  margin: 0 0 16px;
  color: var(--text);
}

.footer-grid p,
.footer-bottom span,
.footer-bottom p {
  color: var(--muted);
}

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

.footer-logo img {
  max-height: 40px;
  margin-bottom: 18px;
}

.store-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.store-links img {
  max-height: 42px;
}

.footer-bottom {
  padding: 24px 0;
  border-top: 1px solid var(--border);
}

.footer-bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.chat-frame {
  display: block;
  width: 100%;
  height: 100vh;
  border: 0;
}

@media (max-width: 991px) {
  .site-nav {
    flex-wrap: wrap;
    min-height: auto;
    padding: 16px 0;
  }

  .site-menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-menu {
    display: none;
    order: 3;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 0 6px;
  }

  .site-menu.is-open {
    display: flex;
  }

  .site-nav > .site-btn {
    display: none;
  }

  .hero-grid,
  .grid.two,
  .grid.three,
  .models,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 575px) {
  .site-container {
    width: min(100% - 22px, var(--container));
  }

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

  .site-btn {
    width: 100%;
  }
}
