/* Textabra — site-wide design layer (landings + app) */

@import url("https://fonts.googleapis.com/css2?family=Onest:wght@400;500;600;700;800&family=Unbounded:wght@500;600;700;800&display=swap");


:root {
  --brand-500: #6e5bff;
  --brand-600: #5b45f0;
  --brand-700: #4a35cc;
  --accent: #22d3ee;
  --ink: #0e0d1a;
  --page: #fafafa;
  --text: #3f3f46;
  --heading: #18181b;
  --hairline: rgba(24, 24, 27, 0.07);
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--page);
  color: var(--text);
  font-feature-settings: "ss01", "cv11";
}

:where(h1, h2, h3, h4) { color: var(--heading); }
h1, h2, h3, h4, .font-display { font-family: "Unbounded", "Onest", ui-sans-serif, system-ui, sans-serif; letter-spacing: -0.015em; }
h1 { letter-spacing: -0.025em; line-height: 1.08; }
h2 { letter-spacing: -0.02em; line-height: 1.15; }
h3, h4 { letter-spacing: -0.005em; }
.font-extrabold { font-weight: 700; }
h1.font-extrabold, h2.font-extrabold { font-weight: 700; }
.font-body { font-family: "Onest", ui-sans-serif, system-ui, sans-serif; letter-spacing: 0; }

::selection { background: rgba(110, 91, 255, 0.25); }

/* ---------- Hero / dark mesh background ---------- */
.gradient-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--ink);
  color: #fff;
}
.gradient-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(55% 60% at 12% 0%, rgba(110, 91, 255, 0.60), transparent 65%),
    radial-gradient(45% 50% at 88% 10%, rgba(34, 211, 238, 0.32), transparent 65%),
    radial-gradient(60% 55% at 50% 110%, rgba(167, 139, 250, 0.35), transparent 65%);
}
.gradient-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 72%);
}
:where(.gradient-bg, .text-white, .site-footer, .bg-gray-900, .bg-gray-800, .from-gray-900) :where(h1, h2, h3, h4) { color: #fff; }

.text-gradient {
  background: linear-gradient(92deg, #a99bff 0%, #6e5bff 45%, #22d3ee 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.875rem;
  font-weight: 600;
  backdrop-filter: blur(8px);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--hairline);
}
.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.875rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #52525b;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.nav-link:hover { color: var(--heading); background: #f4f4f5; }
.nav-link.active { color: var(--heading); background: #f4f4f5; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.125rem;
  border-radius: 0.875rem;
  background: var(--brand-600);
  color: #fff;
  font-weight: 700;
  font-size: 0.9375rem;
  box-shadow: 0 1px 2px rgba(16, 16, 24, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: background-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.btn-primary:hover { background: var(--brand-700); transform: translateY(-1px); box-shadow: 0 6px 16px -6px rgba(91, 69, 240, 0.6); }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.625rem 1.125rem;
  border-radius: 0.875rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #3f3f46;
  transition: color 0.15s ease, background-color 0.15s ease;
}
.btn-ghost:hover { color: var(--heading); background: #f4f4f5; }

.language-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 1rem;
  box-shadow: 0 12px 32px -12px rgba(16, 16, 24, 0.25), 0 0 0 1px rgba(24, 24, 27, 0.04);
  z-index: 50;
  min-width: 200px;
  padding: 0.375rem;
  overflow: hidden;
}
.language-dropdown.show { display: block; }
.language-item { border-radius: 0.625rem; }
.language-item:hover { background-color: #f4f4f5; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); border-top: 1px solid rgba(255, 255, 255, 0.08); }
.site-footer a { transition: color 0.15s ease; }

/* ---------- Components ---------- */
.feature-card { transition: transform 0.25s ease, box-shadow 0.25s ease; }
.feature-card:hover { transform: translateY(-4px); }

.tab-nav {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  padding: 0.25rem;
  border-radius: 1rem;
  background: #f4f4f5;
}
.tab-button {
  padding: 0.625rem 1.125rem;
  border-radius: 0.75rem;
  font-weight: 600;
  font-size: 0.9375rem;
  color: #52525b;
  transition: color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.tab-button:hover { color: var(--heading); }
.tab-button.active { background: #fff; color: var(--heading); box-shadow: 0 1px 2px rgba(16, 16, 24, 0.08), 0 0 0 1px rgba(24, 24, 27, 0.06); }
.tab-content { display: none; }
.tab-content.active { display: block; }

.progress-bar {
  background: linear-gradient(90deg, #22d3ee 0%, #6e5bff 60%, #a78bfa 100%);
  height: 8px;
  border-radius: 4px;
  animation: pulse 2s infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.7; } }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"], textarea, select {
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #a1a1aa; }

/* Поля форм всегда тёмным текстом на светлом фоне, даже внутри блоков с белым цветом текста (страницы входа и регистрации) */
input, select, textarea { color: #18181b; }
input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="color"]), select, textarea { background-color: #fff; }
select option, select optgroup { color: #18181b; background-color: #fff; }
input:-webkit-autofill, input:-webkit-autofill:focus { -webkit-text-fill-color: #18181b; -webkit-box-shadow: 0 0 0 1000px #fff inset; }

.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem; border-radius: 999px; font-size: .75rem; font-weight: 600; }
