:root {
  --bg-dark: #050615;
  --bg-darker: #02030b;
  --bg-card: rgba(16, 18, 40, 0.9);
  --accent: #7b5cff;
  --accent-soft: #5bd1ff;
  --status-live: #2ee59d;
  --status-beta: #ffb020;
  --status-soon: #ff4d4d;
  --text-main: #f5f5f7;
  --text-muted: #a3a5c4;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-soft: 0 18px 45px rgba(0, 0, 0, 0.6);
  --max-width: 1080px;
  --transition-fast: 0.2s ease-out;
}

.status-live {
  --status-color: var(--status-live);
}

.status-beta {
  --status-color: var(--status-beta);
}

.status-soon {
  --status-color: var(--status-soon);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans", "Liberation Sans",
    sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(900px 450px at 12% 10%, rgba(123, 92, 255, 0.22), transparent 60%),
    radial-gradient(900px 450px at 88% 15%, rgba(91, 209, 255, 0.18), transparent 55%),
    radial-gradient(700px 380px at 50% 85%, rgba(123, 92, 255, 0.16), transparent 60%),
    linear-gradient(180deg, var(--bg-darker), var(--bg-dark));
  min-height: 100vh;
}

/* Global Scrollbar Theme (applies to all scroll containers) */
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(80, 121, 255, 0.9) rgba(4, 2, 11, 0.9);
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background:
    radial-gradient(18px 18px at 30% 25%, rgba(140, 0, 255, 0.10), transparent 60%),
    rgba(2, 3, 11, 0.55);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px rgba(245, 245, 247, 0.04);
}

*::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(123, 92, 255, 0.98), rgba(91, 209, 255, 0.82));
  border: 2px solid rgba(2, 3, 11, 0.55);
  border-radius: 999px;
  box-shadow:
    0 0 18px rgba(91, 209, 255, 0.22),
    0 0 36px rgba(123, 92, 255, 0.14);
}

*::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(123, 92, 255, 1), rgba(91, 209, 255, 0.92));
  box-shadow:
    0 0 22px rgba(91, 209, 255, 0.30),
    0 0 44px rgba(123, 92, 255, 0.20);
}

*::-webkit-scrollbar-thumb:active {
  background: linear-gradient(180deg, rgba(91, 209, 255, 0.95), rgba(123, 92, 255, 0.95));
  box-shadow:
    0 0 26px rgba(91, 209, 255, 0.38),
    0 0 52px rgba(123, 92, 255, 0.26);
}

*::-webkit-scrollbar-corner {
  background: rgba(2, 3, 11, 0.55);
}

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

.container {
  width: min(var(--max-width), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(2, 3, 11, 0.65);
  backdrop-filter: blur(14px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand__dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  box-shadow: 0 0 0 4px rgba(123, 92, 255, 0.12), 0 0 28px rgba(123, 92, 255, 0.35);
}

.brand__text {
  font-weight: 650;
  letter-spacing: 0.2px;
}

.nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.lang-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn.lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 0.6rem 0.9rem;
  padding-right: 42px;
  line-height: 1;
  min-width: 56px;
  white-space: nowrap;
}

.btn.lang-btn::after {
  content: '';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 7px solid rgba(245, 245, 247, 0.9);
  pointer-events: none;
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 0.55rem);
  min-width: 220px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 18, 40, 0.72);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(16px);
  padding: 0.35rem;
}

.lang-option {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-main);
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  cursor: pointer;
  transition: background var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}

.lang-option[aria-selected='true'] {
  border-color: rgba(91, 209, 255, 0.18);
  background: rgba(91, 209, 255, 0.08);
}

.lang-option:hover {
  background: rgba(123, 92, 255, 0.12);
  border-color: rgba(245, 245, 247, 0.16);
  box-shadow: 0 0 0 3px rgba(91, 209, 255, 0.10), 0 16px 35px rgba(0, 0, 0, 0.35);
}

.lang-option:focus-visible {
  outline: 3px solid rgba(91, 209, 255, 0.55);
  outline-offset: 2px;
}

.hero {
  padding: 3.25rem 0 2.5rem;
}

.hero__grid {
  display: grid;
  gap: 1.75rem;
}

h1 {
  margin: 0;
  font-size: clamp(2.4rem, 4.6vw, 3.3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.lead {
  margin: 1rem 0 1.35rem;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.06rem;
  line-height: 1.65;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__mock {
  align-self: start;
}

.mockup {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 18, 40, 0.62);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  backdrop-filter: blur(16px);
}

.mockup__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(2, 3, 11, 0.25);
}

.mockup__traffic span {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: rgba(245, 245, 247, 0.22);
  margin-right: 0.45rem;
}

.mockup__traffic span:nth-child(1) {
  background: #ff5f57;
  box-shadow: 0 0 10px rgba(255, 95, 87, 0.25);
}

.mockup__traffic span:nth-child(2) {
  background: #febc2e;
  box-shadow: 0 0 10px rgba(254, 188, 46, 0.25);
}

.mockup__traffic span:nth-child(3) {
  background: #28c840;
  box-shadow: 0 0 10px rgba(40, 200, 64, 0.25);
}

.mockup__title {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.mockup__body {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.mockup__card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 18, 40, 0.7);
  padding: 1rem;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0.9rem;
}

.mockup__bubble {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 35%, rgba(91, 209, 255, 0.45), transparent 62%),
    radial-gradient(circle at 65% 70%, rgba(123, 92, 255, 0.45), transparent 60%),
    rgba(245, 245, 247, 0.06);
  border: 1px solid var(--border-subtle);
  box-shadow: 0 0 28px rgba(91, 209, 255, 0.16);
}

.mockup__lines .line {
  height: 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: rgba(245, 245, 247, 0.06);
  margin-bottom: 0.55rem;
}

.mockup__lines .preview-bar {
  height: 10px;
  width: 0%;
  border-radius: 999px;
  opacity: 0.95;
  transition: width 280ms ease, filter 280ms ease;
  margin-bottom: 0.55rem;
}

.mockup__lines .preview-bar:last-child {
  margin-bottom: 0;
}

.preview-counts {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.preview-bar-live {
  background: linear-gradient(90deg, rgba(46,229,157,0.95), rgba(46,229,157,0.25));
  box-shadow: 0 0 18px rgba(46,229,157,0.30);
}

.preview-bar-beta {
  background: linear-gradient(90deg, rgba(255,176,32,0.95), rgba(255,176,32,0.25));
  box-shadow: 0 0 18px rgba(255,176,32,0.28);
}

.preview-bar-soon {
  background: linear-gradient(90deg, rgba(255,77,77,0.95), rgba(255,77,77,0.25));
  box-shadow: 0 0 18px rgba(255,77,77,0.25);
}

.line--w80 {
  width: 80%;
}

.line--w70 {
  width: 70%;
}

.line--w60 {
  width: 60%;
}

.mockup__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.stat {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(245, 245, 247, 0.04);
  padding: 0.75rem;
}

.stat__k {
  font-weight: 700;
  letter-spacing: -0.02em;
}

.stat__l {
  margin-top: 0.25rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.section-head {
  margin: 0 0 1.25rem;
}

h2 {
  margin: 0;
  font-size: 1.7rem;
  letter-spacing: -0.01em;
}

.section-sub {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
}

.tools {
  padding: 2.5rem 0 2.75rem;
}

.tools__controls {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.1rem;
}

.label {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.search {
  position: relative;
  z-index: 1;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(16, 18, 40, 0.62);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.38);
  padding: 0.65rem;
  backdrop-filter: blur(12px);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.search:focus-within {
  border-color: rgba(91, 209, 255, 0.55);
  background: rgba(16, 18, 40, 0.8);
  box-shadow:
    0 0 0 1px rgba(91, 209, 255, 0.22),
    0 0 24px rgba(91, 209, 255, 0.10),
    0 18px 55px rgba(0, 0, 0, 0.45);
}

.search__input {
  position: relative;
  z-index: 2;
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-main);
  caret-color: var(--text-main);
  cursor: text;
  pointer-events: auto;
  font-size: 1rem;
  padding: 0.35rem 0.1rem;
}

.search__input::-webkit-search-cancel-button {
  -webkit-appearance: none;
}

.search__input::placeholder {
  color: rgba(163, 165, 196, 0.75);
}

.search__hint {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.grid,
.tools-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

.card {
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  box-shadow: var(--shadow-soft);
  padding: 1.05rem;
  backdrop-filter: blur(14px);
}

.tool {
  display: grid;
  gap: 0.7rem;
}

.card.tool {
  position: relative;
}

.card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.icon-bubble {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  position: absolute;
  top: 18px;
  right: 18px;
  pointer-events: none;
  z-index: 1;
}

@supports (background: color-mix(in srgb, white, black)) {
  .icon-bubble {
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,0.25), rgba(255,255,255,0.06) 35%, transparent 70%),
      radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--status-color, var(--accent-soft)) 70%, transparent), transparent 72%);
    border: 1px solid color-mix(in srgb, var(--status-color, var(--accent-soft)) 45%, rgba(255,255,255,0.08));
    box-shadow: 0 0 22px color-mix(in srgb, var(--status-color, var(--accent-soft)) 40%, transparent);
  }
}

@supports not (background: color-mix(in srgb, white, black)) {
  .icon-bubble {
    background:
      radial-gradient(circle at 30% 30%, rgba(255,255,255,0.22), rgba(255,255,255,0.06) 35%, transparent 70%),
      radial-gradient(circle at 50% 50%, var(--status-color, var(--accent-soft)), transparent 75%);
    border: 1px solid rgba(255,255,255,0.10);
    box-shadow: 0 0 18px rgba(0,0,0,0.25);
    opacity: 0.95;
  }
}

.card__title {
  margin: 0;
  font-size: 1.15rem;
}

.card__desc {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.55;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.85rem;
  color: rgba(245, 245, 247, 0.86);
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  border: 1px solid var(--border-subtle);
  background: rgba(245, 245, 247, 0.05);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.25rem 0.55rem;
  font-size: 0.82rem;
  border: 1px solid var(--border-subtle);
}

.badge--live {
  background: rgba(91, 209, 255, 0.1);
  color: rgba(91, 209, 255, 0.95);
}

.badge--beta {
  background: rgba(123, 92, 255, 0.12);
  color: rgba(123, 92, 255, 0.95);
}

.badge--coming {
  background: rgba(245, 245, 247, 0.06);
  color: rgba(245, 245, 247, 0.8);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 0.9rem;
  font-weight: 650;
  border: 1px solid var(--border-subtle);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast),
    border-color var(--transition-fast);
  user-select: none;
}

.btn--primary {
  background: linear-gradient(135deg, rgba(123, 92, 255, 0.95), rgba(91, 209, 255, 0.8));
  color: rgba(2, 3, 11, 0.92);
  box-shadow: 0 14px 38px rgba(123, 92, 255, 0.18);
}

.btn--ghost {
  background: rgba(245, 245, 247, 0.03);
  color: var(--text-main);
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(245, 245, 247, 0.16);
}

.btn--primary:hover {
  box-shadow: 0 18px 55px rgba(123, 92, 255, 0.26), 0 0 36px rgba(80, 121, 255, 0.16);
}

.btn--ghost:hover {
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
}

:focus-visible {
  outline: 3px solid rgba(80, 121, 255, 0.55);
  outline-offset: 3px;
}

.search__input:focus-visible {
  outline: none;
  outline-offset: 0;
}

.tool__open {
  margin-top: 0.15rem;
  justify-self: start;
}

.no-results {
  margin: 0.75rem 0 0;
  color: var(--text-muted);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: rgba(245, 245, 247, 0.03);
  padding: 0.6rem 0.75rem;
}

.contact {
  padding: 0 0 3rem;
}

.contact__card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer {
  border-top: 1px solid var(--border-subtle);
  background: rgba(2, 3, 11, 0.5);
  backdrop-filter: blur(14px);
}

.footer__inner {
  padding: 1.25rem 0;
  color: var(--text-muted);
}

@media (min-width: 768px) {
  .grid,
  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding: 4.25rem 0 3.25rem;
  }

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

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: 2rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .btn {
    transition: none;
  }
}
