
:root {
  --bg-app: #ffffff;
  --white: #ffffff;
  --slate-900: #0f172a;
  --slate-500: #64748b;
  --slate-200: #e2e8f0;
  --emerald: #0457df;
  --emerald-hover: #2563eb;
  --emerald-soft: #eff6ff;
  
  --brand-teal: var(--emerald);
  --brand-teal-hover: var(--emerald-hover);
  --brand-teal-soft: var(--emerald-soft);
  --landing-bg: #ffffff;
  --landing-text: #111827;
  --landing-muted: #6b7280;
  --error: #b91c1c;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius-xl: 12px;
  --radius-2xl: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-card: 0 4px 24px rgba(15, 23, 42, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--bg-app);
  min-height: 100vh;
}

body.page-transition-prepare:not(.page-demo-chat) main,
body.page-transition-prepare .app-content {
  opacity: 0;
  transform: translateY(8px);
}

body.page-transition-ready:not(.page-demo-chat) main,
body.page-transition-ready .app-content {
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.24s ease,
    transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

body.page-transition-out:not(.page-demo-chat) main,
body.page-transition-out .app-content {
  opacity: 0;
  transform: translateY(8px);
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--emerald-hover);
}

.container {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(249, 250, 251, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, background 0.2s ease;
}
.site-header.scrolled {
  background: rgba(249, 250, 251, 0.98);
  box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 16px;
}

.header-inner--fullwidth {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 8px max(1.25rem, env(safe-area-inset-left, 0px)) 8px max(1.25rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--slate-900);
  flex-shrink: 0;
  min-width: 0;
  padding: 8px 14px;
  border-radius: 14px;
  border: 1px solid rgba(203, 213, 225, 0.75);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}
.brand-logo-wrap {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, rgba(239, 246, 255, 0.95), rgba(219, 234, 254, 0.82));
  border: 1px solid rgba(147, 197, 253, 0.55);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.12);
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xl);
  background: var(--emerald-soft);
  display: grid;
  place-items: center;
  color: var(--emerald);
  flex-shrink: 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex-shrink: 0;
}

.lang-switch {
  display: flex;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--white);
}
.lang-switch a {
  padding: 6px 10px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--slate-500);
}
.lang-switch a:hover {
  background: var(--bg-app);
  color: var(--emerald);
}
.lang-switch a.active {
  background: var(--emerald-soft);
  color: var(--emerald);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-xl);
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
  font-family: inherit;
}
.btn:focus-visible {
  outline: 2px solid var(--emerald);
  outline-offset: 2px;
}

.btn-ghost {
  background: transparent;
  color: var(--slate-900);
  border-color: transparent;
}
.btn-ghost:hover {
  background: var(--bg-app);
}

.btn-primary {
  margin: 8px;
  background: var(--emerald);
  color: var(--white);
}
.btn-primary:hover {
  background: var(--emerald-hover);
}

.btn-white {
  background: var(--white);
  color: var(--emerald);
}
.btn-white:hover {
  filter: brightness(0.98);
}

.btn-block {
  width: 100%;
}

.hero {
  padding: 56px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      ellipse 80% 60% at 20% 20%,
      rgba(59, 130, 246, 0.08),
      transparent 55%
    ),
    radial-gradient(
      ellipse 70% 50% at 80% 60%,
      rgba(148, 163, 184, 0.12),
      transparent 50%
    );
  pointer-events: none;
}
.hero-inner {
  position: relative;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: 1.15;
  margin: 0 0 30px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .accent {
  color: var(--emerald);
  display: block;
}
.hero .sub {
  max-width: 560px;
  color: var(--slate-500);
  font-size: 1.0625rem;
  line-height: 1.6;
  margin: 0 0 32px;
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: 24px;
}

.demo-chat {
  margin-top: 8px;
}
.demo-chat h2 {
  margin: 0 0 12px;
  font-size: 1.125rem;
}
.demo-input-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.demo-input-row input {
  flex: 1 1 240px;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 1rem;
}
.demo-input-row input:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.demo-reply {
  margin-top: 16px;
  padding: 16px;
  background: var(--emerald-soft);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: var(--slate-900);
  white-space: pre-wrap;
  min-height: 48px;
}
.demo-reply.loading {
  opacity: 0.7;
}
.demo-error {
  margin-top: 8px;
  color: var(--error);
  font-size: 0.875rem;
}

.section {
  padding: 48px 0;
}
.section h2 {
  text-align: center;
  font-size: 1.5rem;
  margin: 0 0 28px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
}
.feature .icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-xl);
  background: var(--emerald-soft);
  color: var(--emerald);
  display: grid;
  place-items: center;
  margin-bottom: 12px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.0625rem;
}
.feature p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.5;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--white);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 12px;
}

.audience-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
}
.aud-card {
  padding: 18px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
}
.aud-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}
.aud-card p {
  margin: 0;
  color: var(--slate-500);
  font-size: 0.9rem;
}

.cta-band {
  margin: 32px 0 48px;
  padding: 40px 24px;
  background: var(--emerald);
  border-radius: var(--radius-2xl);
  text-align: center;
  color: var(--white);
}
.cta-band h2 {
  margin: 0 0 8px;
  font-size: 1.75rem;
}
.cta-band p {
  margin: 0 0 24px;
  opacity: 0.95;
}
.cta-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.site-footer {
  border-top: 1px solid var(--slate-200);
  padding: 24px 16px;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--slate-500);
  background: var(--white);
}
.site-footer p {
  margin: 6px 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.site-footer--minimal {
  border-top: 1px solid #e5e7eb;
  padding: 36px 16px 48px;
  text-align: center;
  background: var(--landing-bg);
}
.site-footer--minimal .site-footer__line {
  margin: 0;
  font-size: 0.875rem;
  color: #9ca3af;
}
.page-landing .site-footer--minimal {
  background: var(--landing-bg);
}

.form-field {
  margin-bottom: 7px;
}
.form-field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--slate-900);
}
.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  font-family: inherit;
  font-size: 1rem;
}
.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--emerald);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-error {
  color: var(--error);
  font-size: 0.875rem;
  margin-top: 8px;
}

.page-auth {
  background: #ffffff !important;
}
.page-auth .site-header,
.page-auth .site-footer--minimal {
  display: none !important;
}
.auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 48px;
  box-sizing: border-box;
}
.auth-hero {
  text-align: center;
  margin-bottom: 20px;
  max-width: 420px;
}
.auth-logo-wrap {
  width: auto;
  height: auto;
  margin: 0 auto 14px;
  border: none;
  background: transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-logo-img {
  display: block;
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0;
  border-radius: 0;
}
.auth-wordmark-img {
  display: block;
  width: min(235px, 88vw);
  height: auto;
  max-height: 48px;
  object-fit: contain;
  margin: 0 auto;
}
.auth-heading {
  margin: 0;
  font-size: clamp(1.375rem, 3vw, 1.625rem);
  font-weight: 700;
  color: var(--landing-text);
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.auth-tagline {
  margin: 5px 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: var(--landing-muted);
  line-height: 1.5;
}
.auth-card-shell {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.06);
  padding: 28px 28px 22px;
  box-sizing: border-box;
}
.auth-form .form-field--auth {
  margin-bottom: 18px;
}
.auth-form + .auth-form {
  margin-top: 14px;
}
.page-auth .form-field label {
  color: #374151;
}
.page-auth .form-field input {
  border-radius: 10px;
  border-color: #e5e7eb;
  min-height: 44px;
  box-sizing: border-box;
}
.page-auth .form-field input::placeholder {
  color: #9ca3af;
}
.page-auth .form-field input:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.page-auth .form-field input:-webkit-autofill,
.page-auth .form-field input:-webkit-autofill:hover,
.page-auth .form-field input:-webkit-autofill:focus,
.page-auth .form-field input:-webkit-autofill:active {
  -webkit-text-fill-color: #111827;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset;
  box-shadow: 0 0 0 1000px #ffffff inset;
  transition: background-color 9999s ease-in-out 0s;
}
.auth-alert {
  padding: 12px 14px;
  border-radius: 10px;
  margin-bottom: 20px;
  font-size: 0.875rem;
  line-height: 1.45;
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.auth-alert--error {
  background: #fef2f2;
  color: #b91c1c;
}
.auth-alert--success {
  background: #ecfdf5;
  color: #065f46;
  border-color: #a7f3d0;
}
.auth-alert--hidden {
  display: none !important;
}
.btn-auth-submit {
  background: var(--brand-teal) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600;
  padding: 14px 16px !important;
  border-radius: 10px !important;
  font-size: 1rem;
}
.btn-auth-submit:hover {
  background: var(--brand-teal-hover) !important;
  color: #fff !important;
}
.auth-switch {
  text-align: center;
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
}
.auth-switch__text {
  color: #6b7280;
}
.auth-switch__link {
  color: var(--brand-teal);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch__link:hover {
  text-decoration: underline;
  color: var(--brand-teal-hover);
}
.auth-back-wrap {
  text-align: center;
  margin: 4px 0 0;
}
.auth-back {
  font-size: 0.875rem;
  color: #9ca3af;
  text-decoration: none;
}
.auth-back:hover {
  color: #6b7280;
}
.google-btn-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 10px 0 4px;
  min-height: 44px;
}

.app-shell {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--white);
  border-right: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}

.sidebar .brand {
  margin-bottom: 28px;
  padding: 0 8px;
}

.nav-items {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-xl);
  color: var(--slate-900);
  font-weight: 500;
  font-size: 0.9375rem;
}
.nav-item:hover {
  background: var(--bg-app);
}
.nav-item.active {
  background: var(--emerald-soft);
  color: var(--emerald);
}
.nav-item.disabled {
  opacity: 0.45;
  pointer-events: none;
}

.sidebar-profile {
  margin-top: auto;
  padding: 12px;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  background: var(--bg-app);
}
.avatar {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--emerald);
  color: var(--white);
  font-weight: 700;
  display: grid;
  place-items: center;
  font-size: 0.875rem;
}
.profile-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.profile-meta strong {
  display: block;
  font-size: 0.9rem;
}
.profile-meta span {
  font-size: 0.75rem;
  color: var(--slate-500);
}
.sidebar-logout {
  margin-top: 10px;
}

.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.app-header {
  padding: 24px 28px 12px;
  background: var(--bg-app);
}
.app-header h1 {
  margin: 0;
  font-size: 1.5rem;
}
.app-header p {
  margin: 6px 0 0;
  color: var(--slate-500);
  font-size: 0.9375rem;
}

.app-content {
  padding: 8px 28px 40px;
  flex: 1;
}

@media (max-width: 900px) {
  .app-shell {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
  }
  .nav-items {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-profile {
    width: 100%;
  }
}

.thread {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
}
.bubble {
  max-width: min(720px, 100%);
  padding: 14px 16px;
  border-radius: var(--radius-2xl);
  border: 1px solid var(--slate-200);
  background: var(--white);
}
.bubble.user {
  align-self: flex-end;
  background: var(--white);
}
.bubble.assistant {
  align-self: flex-start;
  background: var(--emerald-soft);
  border-color: rgba(59, 130, 246, 0.35);
}
.bubble .role-label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--emerald);
  margin-bottom: 6px;
}
.bubble .body {
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 0.9375rem;
}
.sources-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--slate-200);
  font-size: 0.8125rem;
  color: var(--slate-500);
}
.sources-block ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.table-list {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-2xl);
  overflow: hidden;
}
.table-list th,
.table-list td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.9375rem;
}
.table-list th {
  background: var(--bg-app);
  font-weight: 600;
  color: var(--slate-500);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.table-list tr:last-child td {
  border-bottom: none;
}

.skeleton {
  min-height: 120px;
  border-radius: var(--radius-xl);
  background: linear-gradient(
    90deg,
    var(--bg-app) 25%,
    #e8ecf1 50%,
    var(--bg-app) 75%
  );
  background-size: 200% 100%;
  animation: sk 1.2s ease-in-out infinite;
}
@keyframes sk {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

.acc-item {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-xl);
  margin-bottom: 8px;
  background: var(--white);
  overflow: hidden;
}
.acc-trigger {
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  background: var(--white);
  border: none;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.acc-trigger:hover {
  background: var(--bg-app);
}
.acc-panel {
  display: none;
  padding: 0 16px 14px;
  color: var(--slate-500);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.acc-item.open .acc-panel {
  display: block;
}

.hidden {
  display: none !important;
}

.demo-lead {
  max-width: 560px;
  margin: 0 0 16px;
  font-size: 0.95rem;
  color: var(--slate-500);
  line-height: 1.55;
}
.demo-hint-muted {
  font-size: 0.8125rem;
  color: var(--slate-500);
  margin: 10px 0 0;
}

.page-demo-chat {
  background: #ffffff;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
.page-demo-chat main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: #ffffff;
}
.page-demo-chat .site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
}

.demo-chat-page {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 10px 0 0;
}
.demo-chat-inner {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  max-width: 880px;
  padding-bottom: 174px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 18px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.05);
  padding-top: 10px;
  padding-left: 10px;
  padding-right: 10px;
}

.landing-stats {
  margin-top: 1.15rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.7rem;
}

.landing-stat-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.62));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(14px);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
}

.landing-stat-card__value {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.landing-stat-card__label {
  margin: 0.2rem 0 0;
  font-size: 0.82rem;
  color: #334155;
}
.demo-chat-toolbar {
  background: #ffffff;
  padding: 10px 0 12px;
  flex-shrink: 0;
}
.demo-chat-toolbar__inner {
  width: 100%;
  padding: 0 max(1.25rem, env(safe-area-inset-left, 0px)) 0 max(1.25rem, env(safe-area-inset-right, 0px));
  box-sizing: border-box;
}
.demo-back-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.45);
  background: #ffffff;
  color: #2563eb;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
  transition:
    border-color 0.15s ease,
    background 0.15s ease,
    color 0.15s ease,
    box-shadow 0.15s ease;
}
.demo-back-pill:hover {
  background: #eff6ff;
  border-color: #0457df;
  color: #1d4ed8;
  box-shadow: 0 2px 8px rgba(59, 130, 246, 0.12);
}
.demo-back-pill__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #0457df;
}
.demo-back-pill__text {
  letter-spacing: -0.01em;
}

.demo-thread {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 120px;
  overflow-y: auto;
  padding: 12px 8px 16px;
  -webkit-overflow-scrolling: touch;
}

.demo-msg {
  display: flex;
  width: 100%;
}
.demo-msg--assistant {
  justify-content: flex-start;
}
.demo-msg--user {
  justify-content: flex-end;
}

.demo-msg__row {
  display: flex;
  gap: 12px;
  max-width: min(720px, 100%);
  flex-wrap: wrap;
  flex-direction: column;
  align-content: stretch;
  justify-content: center;
}
.demo-msg__avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(160deg, #ffffff, #eff6ff);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
  display: grid;
  place-items: center;
}
.demo-msg__avatar img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  border-radius: 8px;
}
.demo-msg__avatar--wordmark {
  width: auto;
  max-width: 104px;
  height: 28px;
  padding: 2px 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.demo-msg__avatar--wordmark img {
  width: auto !important;
  height: 20px !important;
  max-width: 100px;
  object-fit: contain;
  border-radius: 0;
}
.demo-msg__name--brand-hidden {
  display: none;
}
.demo-msg__side {
  flex: 1;
  min-width: 0;
}
.demo-msg__name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #0457df;
  margin-bottom: 6px;
}
.demo-msg__bubble--ai {
  display: flex;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.07);
}
.demo-msg__accent {
  width: 4px;
  flex-shrink: 0;
  background: linear-gradient(180deg, #0457df, #2563eb);
}
.demo-msg__body {
  padding: 12px 14px 12px 12px;
  white-space: pre-wrap;
  line-height: 1.55;
  font-size: 0.9375rem;
  color: #111827;
  flex: 1;
  min-width: 0;
}
.demo-msg__body--typing {
  font-style: italic;
  opacity: 0.88;
}

.demo-msg__body--md {
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
}
.demo-msg__body--md > *:first-child {
  margin-top: 0;
}
.demo-msg__body--md > *:last-child {
  margin-bottom: 0;
}
.demo-msg__body--md h1,
.demo-msg__body--md h2,
.demo-msg__body--md h3,
.demo-msg__body--md h4 {
  margin: 0.65rem 0 0.4rem;
  font-weight: 700;
  line-height: 1.3;
  color: #0f172a;
}
.demo-msg__body--md h1 {
  font-size: 1.15rem;
}
.demo-msg__body--md h2 {
  font-size: 1.05rem;
}
.demo-msg__body--md h3,
.demo-msg__body--md h4 {
  font-size: 0.98rem;
}
.demo-msg__body--md p {
  margin: 0.45rem 0;
}
.demo-msg__body--md ul,
.demo-msg__body--md ol {
  margin: 0.45rem 0;
  padding-left: 1.35rem;
}
.demo-msg__body--md li {
  margin: 0.2rem 0;
}
.demo-msg__body--md table {
  border-collapse: collapse;
  width: 100%;
  margin: 0.55rem 0;
  font-size: 0.88rem;
}
.demo-msg__body--md th,
.demo-msg__body--md td {
  border: 1px solid rgba(15, 23, 42, 0.14);
  padding: 0.35rem 0.55rem;
  text-align: left;
  vertical-align: top;
}
.demo-msg__body--md th {
  background: rgba(15, 23, 42, 0.05);
  font-weight: 600;
}
.demo-msg__body--md code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.06);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
}
.demo-msg__body--md pre {
  margin: 0.5rem 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.06);
  overflow-x: auto;
  font-size: 0.86rem;
  line-height: 1.45;
}
.demo-msg__body--md pre code {
  background: transparent;
  padding: 0;
  font-size: inherit;
}
.demo-msg__body--md blockquote {
  margin: 0.5rem 0;
  padding-left: 0.75rem;
  border-left: 3px solid rgba(59, 130, 246, 0.45);
  color: #475569;
}
.demo-msg__body--md hr {
  border: none;
  border-top: 1px solid rgba(15, 23, 42, 0.1);
  margin: 0.65rem 0;
}
.demo-msg__body--md a {
  color: #2563eb;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.demo-msg__user-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  max-width: min(540px, 92%);
}
.demo-msg__bubble--user {
  border: 1px solid rgba(59, 130, 246, 0.3);
  border-radius: 16px;
  background: linear-gradient(160deg, #ffffff, #eff6ff);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}
.demo-msg__bubble--user .demo-msg__body {
  padding: 12px 14px;
  color: #111827;
}

.demo-msg__actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  padding-left: 2px;
}
.demo-msg__icon-btn {
  width: 32px;
  height: 32px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  border: 1px solid #d1dde9;
  padding: 0;
  cursor: pointer;
  color: #64748b;
  line-height: 0;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.demo-msg__icon-btn:hover {
  color: #334155;
  border-color: #9fb4ca;
  background: #f1f5f9;
  transform: translateY(-1px);
}
.demo-msg__icon-btn.is-active {
  color: #0457df;
  border-color: rgba(59, 130, 246, 0.44);
  background: rgba(59, 130, 246, 0.1);
}
.demo-msg__copy-under {
  align-self: flex-end;
  margin-top: 6px;
}
.demo-msg__copy-under.demo-msg__icon-btn {
  margin-right: 2px;
  width: 32px;
  height: 32px;
}

.demo-chat-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  background: linear-gradient(180deg, rgba(249, 250, 251, 0.7), #f9fafb 40%);
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom, 0px));
}
.demo-chat-footer__inner {
  max-width: 880px;
}

.demo-composer {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
}
/* Режим глубокого размышления (enable_thinking в шаблоне GGUF); см. t.demo_chat.deep_thinking_hint */
.deep-thinking-wrap {
  padding: 12px 16px;
  border-radius: 16px;
  background: linear-gradient(
    145deg,
    rgba(59, 130, 246, 0.07) 0%,
    rgba(124, 58, 237, 0.06) 48%,
    rgba(59, 130, 246, 0.04) 100%
  );
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.65),
    0 4px 14px rgba(15, 23, 42, 0.06);
}
.deep-thinking-toggle {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
  user-select: none;
}
.deep-thinking-toggle__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.deep-thinking-toggle__track {
  flex-shrink: 0;
  width: 46px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3f4f6, #e5e7eb);
  position: relative;
  transition:
    background 0.22s ease,
    box-shadow 0.22s ease;
  margin-top: 1px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.06);
}
.deep-thinking-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff, #f9fafb);
  box-shadow:
    0 2px 6px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.04);
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
.deep-thinking-toggle__input:checked + .deep-thinking-toggle__track {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.25),
    0 0 0 1px rgba(124, 58, 237, 0.2);
}
.deep-thinking-toggle__input:checked + .deep-thinking-toggle__track .deep-thinking-toggle__thumb {
  transform: translateX(18px);
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}
.deep-thinking-toggle__input:focus-visible + .deep-thinking-toggle__track {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}
.deep-thinking-toggle__copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1;
}
.deep-thinking-toggle__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.3;
}
.deep-thinking-toggle__title::before {
  content: "";
  display: block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #a855f7);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.deep-thinking-toggle__input:checked ~ .deep-thinking-toggle__copy .deep-thinking-toggle__title::before {
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2);
}
.deep-thinking-toggle__hint {
  font-size: 0.75rem;
  color: #6b7280;
  line-height: 1.4;
  max-width: 52ch;
}
.deep-thinking-wrap--mini {
  padding: 8px 10px;
  border-radius: 12px;
}
.deep-thinking-wrap--mini .deep-thinking-toggle {
  gap: 10px;
}
.deep-thinking-wrap--mini .deep-thinking-toggle__track {
  width: 40px;
  height: 24px;
}
.deep-thinking-wrap--mini .deep-thinking-toggle__thumb {
  width: 16px;
  height: 16px;
  top: 3px;
  left: 3px;
}
.deep-thinking-wrap--mini .deep-thinking-toggle__input:checked + .deep-thinking-toggle__track .deep-thinking-toggle__thumb {
  transform: translateX(16px);
}
.deep-thinking-wrap--mini .deep-thinking-toggle__title {
  font-size: 0.8125rem;
}
.deep-thinking-wrap--mini .deep-thinking-toggle__hint {
  font-size: 0.6875rem;
  max-width: none;
}
.demo-msg__thinking-strip {
  margin: 0 0 12px;
  padding: 11px 14px 12px;
  border-radius: 14px;
  background: rgba(248, 250, 252, 0.94);
  border: 1px dashed rgba(148, 163, 184, 0.42);
  box-shadow:
    0 -10px 22px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
  opacity: 0.97;
}
.demo-msg__thinking-strip__label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 6px;
}
.demo-msg__thinking-strip__text {
  font-size: 0.8125rem;
  line-height: 1.48;
  color: #64748b;
  white-space: pre-wrap;
  max-height: min(38vh, 220px);
  overflow-y: auto;
}
.demo-msg__body--streaming {
  white-space: pre-wrap;
}

.demo-msg__body--reveal {
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.demo-msg__body--reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.demo-composer__field {
  flex: 1;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 7px 8px 7px 18px;
  min-height: 54px;
  border: 1px solid rgba(59, 130, 246, 0.5);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}
.demo-composer__field:focus-within {
  border-color: #0457df;
  box-shadow:
    0 0 0 3px rgba(59, 130, 246, 0.18),
    0 12px 22px rgba(59, 130, 246, 0.12);
}
.demo-composer__textarea {
  flex: 1;
  border: none;
  outline: none;
  resize: none;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  max-height: 120px;
  padding: 0px 0px;
  min-height: 35px;
  background: transparent;
  color: #111827;
}
.demo-composer__textarea::placeholder {
  color: #9ca3af;
}
.demo-composer__send {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 50%;
  border: 1px solid rgba(59, 130, 246, 0.24);
  background: linear-gradient(145deg, #0457df, #2563eb);
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 1px;
  box-shadow: 0 8px 18px rgba(59, 130, 246, 0.28);
}
.demo-composer__send:hover:not(:disabled) {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
}
.demo-composer__send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.demo-chat-disclaimer {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
}

.landing-transition-layer {
  transition: opacity 0.25s ease, transform 0.25s ease;
}
body.page-transition-out .landing-transition-layer {
  opacity: 0;
  transform: translateY(10px);
}
body.page-demo-chat .demo-chat-page {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.28s ease, transform 0.28s ease;
}
body.page-demo-chat.page-transition-in .demo-chat-page {
  opacity: 0;
  transform: translateY(10px);
}

.page-landing {
  background: var(--landing-bg);
  color: var(--landing-text);
}

.page-landing main {
  position: relative;
  background: var(--landing-bg);
  overflow: hidden;
}

.landing-main {
  position: relative;
}

#landing-molecules-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.92;
}

.landing-main .section,
.landing-main .hero,
.landing-main .container {
  position: relative;
  z-index: 1;
}

.page-landing .site-header {
  background: rgba(249, 250, 251, 0.96);
  border-bottom: none;
}

.lang-dropdown__menu .lang-dropdown__flag {
  margin-right: 6px;
}

.brand--with-logo {
  text-decoration: none;
  color: var(--landing-text) !important;
}
.brand--with-logo:hover {
  color: var(--landing-text) !important;
}
.brand-logo-img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
}
.brand-text {
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.brand-wordmark-img {
  display: block;
  width: 220px;
  height: 45px;
  margin-left: 20px;
  max-width: none;
  object-fit: contain;
  flex: 0 0 auto;
}

.page-landing .header-register,
.page-landing .btn-primary {
  background: var(--brand-teal);
  color: #fff;
}
.page-landing .header-register:hover,
.page-landing .btn-primary:hover {
  background: var(--brand-teal-hover);
}
.page-landing .header-register {
  border-radius: 999px;
  padding: 9px 18px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.14);
  font-size: 0.875rem;
}
.page-landing .header-register:hover {
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.22);
}

.header-link {
  font-weight: 600;
  color: #1f2937 !important;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.9rem;
}
.header-link:hover {
  color: var(--brand-teal) !important;
  border-color: rgba(203, 213, 225, 0.8);
  background: #ffffff;
}

.lang-dropdown {
  position: relative;
  margin-right: 2px;
}
.lang-dropdown__globe {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  flex-shrink: 0;
}
.lang-dropdown__flag {
  font-size: 1.1rem;
  line-height: 1;
  margin-right: 2px;
}
.lang-dropdown__summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 11px;
  border: 1px solid rgba(203, 213, 225, 0.85);
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--landing-text);
  background: #ffffff;
  cursor: pointer;
}
.lang-dropdown__summary:hover {
  border-color: rgba(148, 163, 184, 0.95);
}
.lang-dropdown__summary::-webkit-details-marker {
  display: none;
}
.lang-dropdown__chev {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #64748b;
  margin-top: 2px;
}
.lang-dropdown[open] .lang-dropdown__chev {
  transform: rotate(180deg);
}
.lang-dropdown__menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  min-width: 120px;
  padding: 8px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.1);
  z-index: 80;
}
.lang-dropdown__link {
  display: block;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 600;
  color: #1f2937 !important;
}
.lang-dropdown__link:hover {
  background: #f5f7fa;
  color: var(--brand-teal) !important;
}

.hero--landing {
  padding: 44px 0 8px;
  position: relative;
  overflow: hidden;
  background: transparent;
}
.hero--landing::before {
  display: none;
}
.hero__blobs {
  position: absolute;
  inset: -20% -10% 0;
  pointer-events: none;
  background:
    radial-gradient(circle 340px at 15% 20%, rgba(59, 130, 246, 0.18), transparent 72%),
    radial-gradient(circle 380px at 85% 25%, rgba(59, 130, 246, 0.12), transparent 70%),
    radial-gradient(circle 260px at 50% 60%, rgba(156, 163, 175, 0.14), transparent 65%);
  filter: blur(56px);
  opacity: 0.95;
}
.hero--landing .hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
}
.hero-title {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--landing-text);
}
.hero-title__line {
  display: block;
}
.hero-title__line--green {
  margin-top: 0.08em;
  color: var(--brand-teal);
  font-weight: 800;
}
.hero--landing .hero-sub {
  max-width: 640px;
  margin: 0 auto 34px;
  padding: 0 16px;
  color: var(--landing-muted);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 400;
  text-align: center;
  box-sizing: border-box;
}
.hero-pill {
  display: flex;
  align-items: center;
  max-width: 760px;
  margin: 0 auto;
  padding: 7px 8px 7px 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 9999px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 12px 28px rgba(15, 23, 42, 0.09);
}
.hero-pill__input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  font-size: 1rem;
  font-family: inherit;
  padding: 14px 8px;
  outline: none;
  color: var(--landing-text);
}
.hero-pill__input::placeholder {
  color: #9ca3af;
}
.hero-pill__submit {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(59, 130, 246, 0.38);
  border-radius: 50%;
  background: linear-gradient(145deg, #0457df, #2563eb);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(59, 130, 246, 0.3),
    0 0 0 0 rgba(59, 130, 246, 0.26);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}
.hero-pill__submit:hover {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  transform: translateY(-1px) scale(1.03);
  box-shadow:
    0 14px 26px rgba(59, 130, 246, 0.34),
    0 0 0 6px rgba(59, 130, 246, 0.14);
}
.hero-pill__submit:active {
  transform: translateY(0) scale(0.98);
}
.hero-pill__submit svg {
  width: 24px;
  height: 24px;
}
.hero-fine-print {
  margin: 14px auto 0;
  max-width: 640px;
  padding: 0 16px;
  font-size: 0.8125rem;
  color: #9ca3af;
  text-align: center;
  box-sizing: border-box;
}

.section--features {
  padding: 32px 0 48px;
  background: transparent;
}
.section--how {
  padding: 48px 0;
  background: transparent;
}
.section--audience {
  position: relative;
  padding: 48px 0 56px;
  background: transparent;
  overflow: hidden;
}
.page-landing .section-title {
  text-align: center;
  font-size: clamp(1.5rem, 2.8vw, 1.875rem);
  font-weight: 700;
  margin: 0 0 36px;
  color: var(--landing-text);
  letter-spacing: -0.02em;
}
.section-title {
  text-align: center;
  font-size: clamp(1.45rem, 2.8vw, 1.85rem);
  font-weight: 700;
  margin: 0 0 36px;
  color: #1a1a1a;
  letter-spacing: -0.02em;
}

.grid-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
@media (max-width: 720px) {
  .grid-features {
    grid-template-columns: 1fr;
  }
}
.feature-card {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 18px;
  padding: 24px 24px 26px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 24px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 28px rgba(15, 23, 42, 0.08);
  border-color: rgba(96, 165, 250, 0.56);
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.feature-card:hover::after {
  opacity: 1;
}

.feature-card--v1 {
  position: relative;
  border-color: rgba(147, 197, 253, 0.45);
}
.feature-card--v1::after {
  background: radial-gradient(140px 44px at 24% 100%, rgba(59, 130, 246, 0.1), transparent);
}
.feature-card--v2 {
  position: relative;
  border-color: rgba(96, 165, 250, 0.46);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.44));
}
.feature-card--v2::after {
  background: radial-gradient(160px 44px at 82% 100%, rgba(59, 130, 246, 0.1), transparent);
}
.feature-card--v3 {
  position: relative;
  border-color: rgba(147, 197, 253, 0.5);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.5));
}
.feature-card--v3::after {
  background: radial-gradient(140px 44px at 50% 100%, rgba(59, 130, 246, 0.1), transparent);
}
.feature-card--v4 {
  position: relative;
  overflow: hidden;
  border-color: rgba(147, 197, 253, 0.48);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.92), rgba(239, 246, 255, 0.52));
}
.feature-card--v4::before {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  right: -34px;
  bottom: -62px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.1), rgba(59, 130, 246, 0));
  pointer-events: none;
}
.feature-card--v4::after {
  background: radial-gradient(150px 44px at 72% 100%, rgba(59, 130, 246, 0.1), transparent);
}

/* Unify all feature cards to one visual style */
.feature-card--v1,
.feature-card--v2,
.feature-card--v3,
.feature-card--v4 {
  border-color: rgba(147, 197, 253, 0.45);
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
}
.feature-card--v1::after,
.feature-card--v2::after,
.feature-card--v3::after,
.feature-card--v4::after {
  background: radial-gradient(140px 44px at 75% 100%, rgba(59, 130, 246, 0.1), transparent);
}
.feature-card--v4::before {
  display: none;
}
.feature-card__icon {
  width: auto;
  height: auto;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 16px;
  color: var(--brand-teal);
  background: transparent;
  border-radius: 0;
}
.feature-card__icon svg {
  display: block;
}
.feature-card__icon--v1,
.feature-card__icon--v2,
.feature-card__icon--v3,
.feature-card__icon--v4 {
  width: auto;
  height: auto;
  min-height: 32px;
  border-radius: 0;
  justify-content: flex-start;
  border: none;
  background: transparent;
  box-shadow: none;
  padding: 0;
  color: #0457df;
}
.feature-card__icon--v1 {
  color: #0457df;
}
.feature-card__icon--v2 {
  color: #0457df;
}
.feature-card__icon--v3 {
  color: #0457df;
}
.feature-card__icon--v4 {
  color: #0457df;
}
.feature-card__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}
.page-landing .feature-card__title {
  color: var(--landing-text);
}
.feature-card__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a4a4a;
}
.page-landing .feature-card__text {
  color: var(--landing-muted);
}

.steps--landing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  text-align: left;
}
.step-landing {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 100%;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.82));
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 18px;
  padding: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.step-landing:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 28px rgba(15, 23, 42, 0.08);
}
.step-landing--v1 {
  border-color: rgba(147, 197, 253, 0.45);
}
.step-landing--v2 {
  border-color: rgba(74, 222, 128, 0.46);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.9), rgba(239, 246, 255, 0.48));
}
.step-landing--v3 {
  border-color: rgba(147, 197, 253, 0.48);
  background: linear-gradient(168deg, rgba(255, 255, 255, 0.9), rgba(219, 234, 254, 0.46));
}
@media (max-width: 900px) {
  .steps--landing {
    grid-template-columns: 1fr;
  }
}
.step-landing__title {
  margin: 0 0 10px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a1a1a;
}
.step-landing__text {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: #4a4a4a;
}
.steps--landing .step-num {
  margin-bottom: 16px;
  width: 48px;
  height: 48px;
  font-size: 1.125rem;
  background: var(--brand-teal);
  color: #fff;
}
.step-num--v1 {
  background: linear-gradient(145deg, #0457df, #2563eb);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.24);
}
.step-num--v2 {
  background: linear-gradient(145deg, #0457df, #2563eb);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.22);
}
.step-num--v3 {
  background: linear-gradient(145deg, #0457df, #2563eb);
  box-shadow: 0 8px 16px rgba(59, 130, 246, 0.22);
}

.audience-cols--landing {
  gap: 20px;
}
.aud-card--landing {
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.9), rgba(248, 250, 252, 0.8));
  border: 1px solid rgba(147, 197, 253, 0.45);
  border-radius: 18px;
  padding: 22px 20px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.62),
    0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.aud-card--landing:hover {
  transform: translateY(-2px);
  border-color: rgba(96, 165, 250, 0.56);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.74),
    0 12px 28px rgba(15, 23, 42, 0.08);
}
.aud-card--landing h3 {
  margin: 0 0 10px;
  font-size: 1.02rem;
  font-weight: 700;
  color: #1a1a1a;
}
.aud-card--landing p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #4a4a4a;
}

.page-landing .aud-card--landing {
  text-align: center;
}
.page-landing .aud-card--landing h3,
.page-landing .aud-card--landing p {
  text-align: center;
}

.cta-band--landing .btn-cta-outline {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.95);
  font-weight: 600;
}
.cta-band--landing .btn-cta-outline:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  filter: none;
}

.cta-band--landing {
  position: relative;
  background: linear-gradient(145deg, #0457df 0%, #2563eb 52%, #1d4ed8 100%);
  border: 1px solid rgba(59, 130, 246, 0.45);
  border-radius: 24px;
  margin-bottom: 40px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 22px 44px rgba(15, 23, 42, 0.14);
  overflow: hidden;
}
.cta-band--landing::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -90px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0));
  pointer-events: none;
}
.cta-band--landing h2 {
  color: #fff;
}
.cta-band--landing p {
  color: rgba(255, 255, 255, 0.95);
}
.cta-band--landing .btn-white {
  color: #1d4ed8;
  font-weight: 700;
  border-radius: 999px;
  padding: 12px 24px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
}
.cta-band--landing .btn-white:hover {
  transform: translateY(-1px);
  filter: brightness(0.99);
}

.cta-band--landing .btn-cta-outline {
  border-radius: 999px;
  padding: 12px 24px;
  border-width: 1px;
}
.cta-band--landing .btn-cta-outline:hover {
  transform: translateY(-1px);
}

.page-app {
  background: rgb(249, 250, 251);
}
.page-app body,
.page-app .app-shell,
.page-app .app-main,
.page-app .sidebar,
.page-app .app-sidebar,
.page-app .app-content,
.page-app .app-help {
  background: rgb(249, 250, 251);
}
.page-app .sidebar,
.page-app .app-sidebar {
  background: #ffffff;
}
.page-app .app-shell {
  min-height: 100vh;
}
.page-app .sidebar {
  width: 280px;
  padding: 20px 16px 24px;
  align-items: stretch;
  border-right-color: #e6ebf1;
}
.app-sidebar-brand {
  margin-bottom: 24px;
  text-align: center;
}
.app-sidebar-brand-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}
.app-sidebar-logo {
  width: 78px;
  height: 78px;
  border-radius: 14px;
  flex-shrink: 0;
  object-fit: contain;
}
.app-sidebar-brand-title {
  font-weight: 800;
  font-size: 1.72rem;
  letter-spacing: -0.02em;
  color: #111827;
  line-height: 1.2;
  text-align: center;
}

.app-sidebar-wordmark {
  display: block;
  width: 210px;
  height: 36px;
  max-width: 100%;
  object-fit: contain;
  flex: 0 0 auto;
}
.app-sidebar-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-bottom: 22px;
  padding: 13px 16px;
  border-radius: 14px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(145deg, #ffffff, #eff6ff);
  color: #1d4ed8;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.05);
}
.app-sidebar-cta:hover {
  background: linear-gradient(145deg, #eff6ff, #eff6ff);
  color: #1d4ed8;
  border-color: rgba(59, 130, 246, 0.48);
  box-shadow: 0 10px 18px rgba(59, 130, 246, 0.14);
  transform: translateY(-1px);
}
.app-nav-label {
  margin: 0 0 8px 4px;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9ca3af;
}
.app-nav-label:not(:first-of-type) {
  margin-top: 18px;
}
.app-nav-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.app-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  color: #374151;
  font-weight: 500;
  font-size: 0.9375rem;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}
.app-nav-item:hover {
  background: #f3f4f6;
  color: #111827;
}
.app-nav-item.active {
  background: #eff6ff;
  color: #2563eb;
}
.app-nav-item.active svg {
  color: #0457df;
}
.app-sidebar-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid #e5e7eb;
}
.app-sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.app-sidebar-avatar {
  width: 40px;
  height: 40px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 0.95rem;
}
.app-sidebar-user-meta strong {
  display: block;
  font-size: 0.9rem;
  color: #111827;
}
.app-sidebar-user-meta span {
  font-size: 0.75rem;
  color: #6b7280;
}
.app-sidebar-logout {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-weight: 500;
  font-size: 0.9rem;
  cursor: pointer;
}
.app-sidebar-logout:hover {
  background: #f9fafb;
}

.app-masthead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 28px 16px;
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 30;
}
.app-masthead-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-width: 0;
}
.app-masthead-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: contain;
  flex-shrink: 0;
}
.app-masthead-title {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}
.app-masthead-sub {
  margin: 4px 0 0;
  font-size: 0.9375rem;
  color: #6b7280;
  line-height: 1.45;
}
.app-masthead-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.app-masthead-home {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  text-decoration: none;
  transition:
    background 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease;
}
.app-masthead-home:hover {
  background: #f9fafb;
  border-color: #d1d5db;
  color: #0457df;
}
.app-masthead-home-icon {
  display: flex;
  color: #6b7280;
}
.app-masthead-home:hover .app-masthead-home-icon {
  color: #0457df;
}
.lang-dropdown--app .lang-dropdown__summary {
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  padding: 8px 12px;
  background: #fff;
}
.app-masthead-userchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid #e5e7eb;
  border-radius: 999px;
  background: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  color: #111827;
}
.app-masthead-userchip-icon {
  display: flex;
  color: #6b7280;
}

.page-app .app-content {
  padding: 24px 28px 40px;
  background: #ffffff;
}

.app-panel {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 28px 32px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.05);
}
.app-form-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
@media (max-width: 720px) {
  .app-form-split {
    grid-template-columns: 1fr;
  }
}
.app-input-with-icon {
  position: relative;
}
.app-input-with-icon input {
  width: 100%;
  padding-right: 40px;
}
.app-input-with-icon__ic {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  display: flex;
}
.page-app .form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 8px;
  display: block;
}
.page-app .form-field input,
.page-app .form-field select,
.page-app .form-field textarea {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  font-family: inherit;
  font-size: 0.9375rem;
}
.page-app .form-field textarea {
  resize: vertical;
  min-height: 55px;
}
.app-form-submit-wrap {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}
.app-case-submit {
  margin-top: 0;
  padding: 14px 32px;
  font-size: 1rem;
  min-width: 220px;
}
.app-result-area {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #e5e7eb;
}
.app-result-area__title {
  margin: 0 0 12px;
  font-size: 1.05rem;
}
.app-sources-heading {
  margin: 16px 0 8px;
  font-size: 0.85rem;
  color: #6b7280;
}
.app-sources-list {
  margin: 0;
  padding-left: 18px;
  color: #6b7280;
  font-size: 0.875rem;
}

.ai-check {
  margin-top: 4px;
  padding: 16px 18px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
}
.ai-check--reveal {
  animation: aiCheckReveal 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}
.ai-check--green {
  background: #eff6ff;
  border-color: #0457df;
}
.ai-check--yellow {
  background: #fffbeb;
  border-color: #fde68a;
}
.ai-check--red {
  background: #fef2f2;
  border-color: #fecaca;
}
.ai-check__summary {
  margin: 0 0 12px;
  font-size: 0.95rem;
  line-height: 1.55;
  color: #111827;
}
.ai-check__block {
  margin-top: 12px;
}
.ai-check__heading {
  margin: 0 0 8px;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #6b7280;
}
.ai-check__list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #374151;
}
.ai-check__list li + li {
  margin-top: 6px;
}

.app-profile-stack {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-profile-card {
  margin: 0;
}
.app-profile-hero {
  display: flex;
  align-items: center;
  gap: 20px;
}
.app-profile-avatar-lg {
  width: 88px;
  height: 88px;
  font-size: 2rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
}
.app-profile-name {
  margin: 0 0 8px;
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}
.app-profile-reg {
  margin: 0;
  font-size: 0.9375rem;
  color: #6b7280;
}
.app-profile-section-title {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #0457df;
}
.app-profile-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.app-icon-tile {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #eff6ff;
  color: #0457df;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.app-icon-tile--sm {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.app-profile-contact-label {
  font-size: 0.75rem;
  color: #6b7280;
  margin-bottom: 4px;
}
.app-profile-contact-value {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  word-break: break-all;
}

.app-settings-stack {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.app-settings-overline {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7280;
}
.app-settings-account-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.app-settings-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #111827;
}
.app-settings-email {
  margin-top: 4px;
  font-size: 0.9375rem;
  color: #6b7280;
}
.btn-outline {
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #374151;
  font-weight: 500;
  padding: 10px 18px;
  border-radius: 10px;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
}
.btn-outline:hover {
  background: #f9fafb;
}
.app-settings-logout {
  flex-shrink: 0;
}
.app-settings-lang-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.app-settings-overline--inline {
  margin: 0;
}
.app-lang-toggle {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.app-lang-toggle__btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #6b7280;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}
.app-lang-toggle__btn:hover {
  border-color: #d1d5db;
  color: #374151;
}
.app-lang-toggle__btn.is-active {
  background: #0457df;
  border-color: #0457df;
  color: #fff;
}

.app-help {
  max-width: 960px;
  margin: 0 auto;
  background: #ffffff;
}
.page-app .app-main,
.page-app .app-content,
.page-app .app-help,
.page-app .app-help-card,
.page-app .app-help-faq,
.page-app .app-help-faq-list {
  background: #ffffff !important;
}
.page-app .app-help-card {
  border-color: #e5e7eb;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}
.app-help-section-label {
  margin: 0 0 16px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6b7280;
}
.app-help-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
@media (max-width: 900px) {
  .app-help-features {
    grid-template-columns: 1fr;
  }
}
.app-help-feature {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid rgba(59, 130, 246, 0.22);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.app-help-feature::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -38px;
  width: 98px;
  height: 98px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.16), rgba(59, 130, 246, 0));
  pointer-events: none;
}
.app-help-feature:hover {
  transform: translateY(-2px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
}
.app-help-feature-title {
  margin: 12px 0 8px;
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}
.app-help-feature-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b5563;
}
.app-help-faq {
  margin-top: 28px;
  background: #ffffff;
}
.app-help-faq-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-help-faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #ffffff;
  overflow: hidden;
}
.app-help-faq-trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-align: left;
  padding: 14px 16px;
  background: #ffffff;
  border: none;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: #111827;
  cursor: pointer;
}
.app-help-faq-chev {
  color: #9ca3af;
  font-size: 1.1rem;
  transition: transform 0.2s ease;
}
.app-help-faq-item.open .app-help-faq-chev {
  transform: rotate(90deg);
}
.app-help-faq-panel {
  padding: 0 16px 14px;
  background: #ffffff;
  font-size: 0.9rem;
  line-height: 1.55;
  color: #4b5563;
}
.app-help-important {
  margin-top: 26px;
  padding: 20px 22px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(145deg, #0457df, #2563eb);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    0 14px 28px rgba(59, 130, 246, 0.26);
}
.app-help-important-title {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
}
.app-help-important-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
}

.app-chat-disclaimer {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.8125rem;
  color: #9ca3af;
}
.app-chat-composer {
  margin-top: 20px;
}

@media (max-width: 900px) {
  .header-inner--fullwidth {
    padding: 8px max(0.85rem, env(safe-area-inset-left, 0px)) 8px max(0.85rem, env(safe-area-inset-right, 0px));
    gap: 10px;
  }
  .brand-logo-img {
    width: 26px;
    height: 26px;
  }
  .brand-text {
    font-size: 0.95rem;
  }
  .header-actions {
    gap: 6px;
  }
  .lang-dropdown__summary {
    min-height: 36px;
    padding: 7px 11px;
  }
  .btn {
    padding: 9px 14px;
    font-size: 0.875rem;
  }
  .page-landing .header-register {
    padding: 9px 16px;
  }
  .page-app .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
  }
  .app-masthead {
    position: relative;
  }
}

/* Final landing card style (match provided reference) */
.page-landing .feature-card,
.page-landing .step-landing,
.page-landing .aud-card--landing {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 18px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.04);
}

.page-landing .feature-card::before,
.page-landing .step-landing::before,
.page-landing .aud-card--landing::before {
  content: "";
  position: absolute;
  width: 120px;
  height: 120px;
  right: -42px;
  bottom: -56px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.14), rgba(59, 130, 246, 0));
  pointer-events: none;
}

.page-landing .feature-card::after,
.page-landing .step-landing::after,
.page-landing .aud-card--landing::after {
  display: none;
}

.page-landing .feature-card:hover,
.page-landing .step-landing:hover,
.page-landing .aud-card--landing:hover {
  transform: none;
  border-color: rgba(59, 130, 246, 0.24);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
}

.page-landing .feature-card__icon,
.page-landing .feature-card__icon--v1,
.page-landing .feature-card__icon--v2,
.page-landing .feature-card__icon--v3,
.page-landing .feature-card__icon--v4 {
  width: auto;
  height: auto;
  min-height: 0;
  margin-bottom: 12px;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #0457df;
}

.page-landing .feature-card__icon svg {
  width: 26px;
  height: 26px;
  opacity: 0.9;
  transform: translateY(0);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.page-landing .feature-card:hover .feature-card__icon svg {
  opacity: 1;
  transform: translateY(-1px);
}

.page-landing .step-landing {
  align-items: flex-start;
  text-align: left;
  padding: 22px 18px 20px;
}

.page-landing .steps--landing .step-num,
.page-landing .step-num--v1,
.page-landing .step-num--v2,
.page-landing .step-num--v3 {
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: #0457df;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(59, 130, 246, 0.26);
  font-size: 0.95rem;
}

/* Card hover polish + brighter CTA + visible logo */
.page-landing .feature-card,
.page-landing .step-landing,
.page-landing .aud-card--landing {
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    background 0.22s ease;
}

.page-landing .feature-card:hover,
.page-landing .step-landing:hover,
.page-landing .aud-card--landing:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow:
    0 14px 30px rgba(15, 23, 42, 0.1),
    0 0 0 1px rgba(59, 130, 246, 0.1);
}

.page-landing .feature-card::before,
.page-landing .step-landing::before,
.page-landing .aud-card--landing::before {
  transition: transform 0.34s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.24s ease;
  z-index: 0;
}

.page-landing .feature-card:hover::before,
.page-landing .step-landing:hover::before,
.page-landing .aud-card--landing:hover::before {
  transform: scale(1.08);
  opacity: 0.95;
}

.page-landing .feature-card > *,
.page-landing .step-landing > *,
.page-landing .aud-card--landing > * {
  position: relative;
  z-index: 1;
}

.page-landing .landing-reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition:
    opacity 0.55s ease var(--reveal-delay, 0ms),
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1) var(--reveal-delay, 0ms),
    box-shadow 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.22s ease,
    background 0.22s ease;
}

.page-landing .landing-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}


.cta-band--landing {
  background: linear-gradient(140deg, #0457df 0%, #2563eb 55%, #1d4ed8 100%);
  border-color: rgba(59, 130, 246, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.28),
    0 20px 40px rgba(59, 130, 246, 0.26);
}

.cta-band--landing::before {
  width: 240px;
  height: 240px;
  right: -56px;
  top: -80px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
}

.cta-band--landing .btn-cta-outline {
  color: #eff6ff;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.09);
  font-weight: 700;
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.22);
}

.cta-band--landing .btn-cta-outline:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.95);
}

.brand-logo-wrap {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(59, 130, 246, 0.4);
  background: linear-gradient(145deg, rgba(239, 246, 255, 1), rgba(219, 234, 254, 0.92));
  box-shadow: 0 5px 14px rgba(59, 130, 246, 0.16);
}

.brand-logo-img {
  width: 30px;
  height: 30px;
  border-radius: 0;
  display: block;
}

.brand-logo-wrap .brand-logo-img {
  width: 24px;
  height: 24px;
  object-fit: contain;
  display: block;
}

.section--features,
.section--how,
.section--audience {
  padding-top: 52px;
  padding-bottom: 52px;
}

.page-landing .section-title {
  margin: 0 0 32px;
}

.page-landing .feature-card::before,
.page-landing .step-landing::before,
.page-landing .aud-card--landing::before {
  width: 136px;
  height: 136px;
  right: -24px;
  bottom: -36px;
  opacity: 0.94;
}

.page-landing .feature-card--v4::before {
  display: block;
}

/* Micro icon hover animation */
.page-landing .feature-card__icon svg {
  opacity: 0.9;
  transform: translateY(0);
  transition: transform 0.22s ease, opacity 0.22s ease, filter 0.22s ease;
}

.page-landing .feature-card:hover .feature-card__icon svg {
  opacity: 1;
  transform: translateY(-1px);
  filter: drop-shadow(0 2px 4px rgba(59, 130, 246, 0.18));
}

/* Header polish requested */
.header-inner--fullwidth {
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  padding: 10px 18px;
  border-radius: 999px;
}

.brand-logo-wrap {
  width: 34px;
  height: 34px;
  border-radius: 999px;
}

.brand-logo-img,
.brand-logo-wrap .brand-logo-img {
  width: 22px;
  height: 22px;
  border-radius: 0;
}

.header-link {
  border: 1px solid rgba(148, 163, 184, 0.44);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
}

.header-link:hover {
  border-color: rgba(59, 130, 246, 0.5);
  background: #f8fffc;
}

.lang-dropdown__menu {
  min-width: 170px;
}

@media (max-width: 900px) {
  .header-inner--fullwidth {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand {
    padding: 9px 14px;
  }

  .brand-logo-img,
  .brand-logo-wrap .brand-logo-img {
    width: 20px;
    height: 20px;
  }
}

/* Header controls equal sizing */
.header-actions .lang-dropdown__summary,
.header-actions .header-link,
.header-actions .header-register {
  min-height: 46px;
  min-width: 142px;
  padding: 0 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.header-actions .lang-dropdown__summary {
  gap: 8px;
}

.header-actions .header-link {
  font-size: 1.02rem;
  font-weight: 700;
}

.header-actions .header-register {
  font-size: 1.02rem;
  font-weight: 700;
}

/* Language menu: EN + English format */
.lang-dropdown__link {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.lang-dropdown__link strong {
  min-width: 30px;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #0f172a;
}

.lang-dropdown__link span {
  font-size: 0.9rem;
  font-weight: 500;
  color: #334155;
}

@media (max-width: 900px) {
  .header-actions .lang-dropdown__summary,
  .header-actions .header-link,
  .header-actions .header-register {
    min-height: 42px;
    min-width: 118px;
    padding: 0 14px;
  }
}

/* App consultation page polish */
.page-app .app-content {
  padding-top: 28px;
  background: #ffffff;
}

.app-panel {
  max-width: 760px;
  border-radius: 20px;
  border: 1px solid rgba(203, 213, 225, 0.6);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.75),
    0 14px 36px rgba(15, 23, 42, 0.06);
}

.app-case-form {
  display: grid;
  gap: 2px;
}

.page-app .form-field label {
  font-size: 0.84rem;
  color: #334155;
}

.page-app .form-field input,
.page-app .form-field select,
.page-app .form-field textarea {
  border-radius: 14px;
  border-color: #dbe2ea;
  background: #ffffff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.page-app .form-field input:focus,
.page-app .form-field select:focus,
.page-app .form-field textarea:focus {
  border-color: rgba(59, 130, 246, 0.55);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.14);
}

.page-app .form-field textarea {
  min-height: 88px;
}

.app-case-submit {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid rgba(59, 130, 246, 0.35);
  background: linear-gradient(145deg, #0457df, #2563eb);
  box-shadow: 0 10px 20px rgba(59, 130, 246, 0.22);
}

.app-case-submit:hover {
  background: linear-gradient(145deg, #2563eb, #1d4ed8);
  transform: translateY(-1px);
}

.app-case-submit.is-loading {
  border-color: rgba(96, 165, 250, 0.65);
  background: linear-gradient(145deg, #0457df, #2563eb);
  box-shadow:
    0 12px 26px rgba(59, 130, 246, 0.28),
    0 0 0 6px rgba(59, 130, 246, 0.09);
  animation: checkButtonPulse 1.2s ease-in-out infinite;
}

.app-panel--consult {
  margin-left: 0;
  margin-right: auto;
}

.mini-assist {
  position: fixed;
  right: 24px;
  bottom: 34px;
  z-index: 65;
}

.mini-assist__toggle {
  position: relative;
  width: 66px;
  height: 66px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(145deg, #0457df, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 22px rgba(59, 130, 246, 0.3);
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}
.mini-assist__toggle::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(96, 165, 250, 0.24);
  opacity: 0;
  pointer-events: none;
}
.mini-assist__toggle:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 28px rgba(59, 130, 246, 0.36);
}
.mini-assist.has-suggestion .mini-assist__toggle {
  background: linear-gradient(145deg, #0457df, #2563eb);
  animation: miniAssistSuggest 1.05s ease-in-out infinite;
}
.mini-assist.has-suggestion .mini-assist__toggle::after {
  border-color: rgba(96, 165, 250, 0.55);
  animation: miniAssistSuggestRing 1.05s ease-out infinite;
}
.mini-assist__toggle svg {
  width: 26px;
  height: 26px;
}

.mini-assist__panel {
  position: absolute;
  right: 0;
  bottom: 80px;
  width: 320px;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.28);
  background: #ffffff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.14);
  overflow: hidden;
  opacity: 0;
  transform: translateY(10px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.mini-assist__panel.is-open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.mini-assist__head {
  padding: 10px 12px;
  border-bottom: 1px solid #ecf1f5;
  color: #2563eb;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
}
.mini-assist__wordmark {
  display: block;
  width: 120px;
  height: auto;
  max-height: 22px;
  object-fit: contain;
}

.mini-assist__thread {
  height: 240px;
  overflow-y: auto;
  padding: 10px;
  background: #fcfefe;
}

.mini-assist__msg {
  display: flex;
  margin-bottom: 8px;
}

.mini-assist__msg--user {
  justify-content: flex-end;
}

.mini-assist__bubble {
  max-width: 88%;
  border: 1px solid rgba(148, 163, 184, 0.34);
  border-radius: 12px;
  padding: 8px 10px;
  background: #ffffff;
  font-size: 0.86rem;
  line-height: 1.45;
  color: #111827;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mini-assist__msg--user .mini-assist__bubble {
  border-color: rgba(59, 130, 246, 0.4);
  background: #eff6ff;
}

.mini-assist__bubble--typing {
  font-style: italic;
  opacity: 0.86;
}

.mini-assist__thinking-strip {
  margin: 0;
  padding: 8px 10px 9px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.94);
  border: 1px dashed rgba(148, 163, 184, 0.42);
  box-shadow:
    0 -8px 16px rgba(15, 23, 42, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.85);
}
.mini-assist__thinking-strip__label {
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 4px;
}
.mini-assist__thinking-strip__text {
  font-size: 0.78rem;
  line-height: 1.42;
  color: #64748b;
  white-space: pre-wrap;
  max-height: 120px;
  overflow-y: auto;
}
.mini-assist__bubble-main {
  min-height: 1.15em;
}

.mini-assist__foot {
  border-top: 1px solid #ecf1f5;
}
.mini-assist__foot .deep-thinking-wrap {
  margin: 8px 10px 4px;
}
.mini-assist__composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
}

.mini-assist__input {
  flex: 1;
  min-width: 0;
  height: 36px;
  border: 1px solid #d7e1ea;
  border-radius: 10px;
  padding: 0 10px;
  font-size: 0.86rem;
}

.mini-assist__send {
  width: 36px;
  height: 36px;
  min-width: 36px;
  border-radius: 999px;
  border: 1px solid rgba(59, 130, 246, 0.3);
  background: linear-gradient(145deg, #0457df, #2563eb);
  color: #fff;
  cursor: pointer;
}

.app-sidebar {
  border-right-color: #e6ebf1;
}

.app-nav-item {
  border: 1px solid transparent;
}

.app-nav-item.active {
  border-color: rgba(59, 130, 246, 0.3);
  box-shadow: 0 6px 14px rgba(59, 130, 246, 0.1);
}

.app-masthead {
  border-bottom-color: #e6ebf1;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
}

/* Demo chat final polish */
.page-demo-chat,
.page-demo-chat main,
.demo-chat-page,
.demo-chat-toolbar,
.demo-chat-footer {
  background: transparent;
}

.demo-chat-inner {
  background: transparent;
  border: none;
  box-shadow: none;
}

.demo-msg__avatar {
  width: 34px;
  height: 34px;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

.demo-msg__avatar img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 0;
}

.demo-msg__avatar--wordmark {
  width: auto;
  max-width: 96px;
  height: 26px;
}

.demo-msg__avatar--wordmark img {
  width: auto !important;
  height: 24px !important;
  max-width: 110px;
}

.demo-msg__bubble--ai {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.demo-msg__name {
  color: #0457df;
  text-shadow: 0 0 12px rgba(59, 130, 246, 0.12);
}

.demo-msg__accent {
  width: 3px;
  background: linear-gradient(180deg, #0457df 0%, #2563eb 72%, #1d4ed8 100%);
  box-shadow: 0 0 12px rgba(59, 130, 246, 0.22);
}

#demo-typing .demo-msg__accent {
  animation: aiAccentBreathe 1.2s ease-in-out infinite;
}

#demo-typing .demo-msg__bubble--ai {
  border-color: rgba(59, 130, 246, 0.3);
  background:
    radial-gradient(circle at 18% 20%, rgba(96, 165, 250, 0.1), transparent 30%),
    linear-gradient(180deg, #ffffff, #f8fffc);
  box-shadow:
    0 8px 22px rgba(15, 23, 42, 0.06),
    0 0 0 1px rgba(59, 130, 246, 0.04),
    0 0 24px rgba(59, 130, 246, 0.09);
}

#mini-assist-typing .mini-assist__bubble {
  border-color: rgba(59, 130, 246, 0.28);
  background:
    radial-gradient(circle at 18% 20%, rgba(96, 165, 250, 0.11), transparent 32%),
    linear-gradient(180deg, #ffffff, #f8fffc);
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.08);
}

.demo-msg__body {
  line-height: 1.62;
}

.demo-msg__actions {
  gap: 6px;
}

.demo-msg__icon-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.34);
  background: #ffffff;
  color: #64748b;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.demo-msg__icon-btn:hover {
  border-color: rgba(59, 130, 246, 0.5);
  color: #1d4ed8;
  background: #f8fffc;
  transform: translateY(-1px);
}

.demo-msg__icon-btn.is-active {
  color: #2563eb;
  border-color: rgba(59, 130, 246, 0.5);
  background: rgba(59, 130, 246, 0.1);
}

/* AI thinking + word-by-word reveal */
.hero-pill {
  position: relative;
  overflow: hidden;
}

.hero-pill::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.13), transparent);
  opacity: 0;
  transform: translateX(-70%);
}

.hero-pill--thinking {
  border-color: rgba(59, 130, 246, 0.42);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.92),
    0 14px 34px rgba(59, 130, 246, 0.16);
}

.hero-pill--thinking::after {
  opacity: 1;
  animation: aiScan 1.05s ease-in-out infinite;
}

.hero-pill--thinking .hero-pill__submit {
  animation: aiPulseButton 0.95s ease-in-out infinite;
}

.hero-pill--thinking .hero-pill__submit svg {
  animation: aiFloatArrow 0.95s ease-in-out infinite;
}

.demo-msg__body--typing,
.mini-assist__bubble--typing {
  font-style: normal;
  opacity: 1;
}

.ai-thinking {
  position: relative;
  display: block;
  min-width: 238px;
  max-width: min(360px, 100%);
  padding: 2px 2px 3px 0;
  color: #0457df;
  overflow: hidden;
}

.ai-thinking--mini {
  min-width: 190px;
  max-width: 100%;
}

.ai-thinking::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.58), transparent);
  transform: translateX(-100%);
  animation: aiThinkingGlass 1.45s ease-in-out infinite;
  pointer-events: none;
}

.ai-thinking__content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 6px;
  min-width: 0;
}

.ai-thinking__head {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  width: max-content;
  max-width: 100%;
}

.ai-thinking__text {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: max-content;
  max-width: 100%;
  color: #0457df;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-shadow: 0 0 14px rgba(59, 130, 246, 0.12);
}

.ai-thinking__signals {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding-top: 1px;
}

.ai-thinking__signals i {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: #0457df;
  box-shadow: 0 0 9px rgba(59, 130, 246, 0.42);
  opacity: 0.34;
  transform: translateY(0) scale(0.9);
  animation: aiSignalDot 1.15s ease-in-out infinite;
}

.ai-thinking__signals i:nth-child(2) {
  animation-delay: 0.16s;
}

.ai-thinking__signals i:nth-child(3) {
  animation-delay: 0.32s;
}

.ai-thinking__ecg {
  position: relative;
  display: block;
  width: 210px;
  max-width: 100%;
  height: 23px;
  overflow: hidden;
  opacity: 1;
  color: #0457df;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px),
    linear-gradient(180deg, rgba(239, 246, 255, 0.78), rgba(255, 255, 255, 0.28));
  background-size: 16px 100%, 100% 100%;
  box-shadow: inset 0 0 0 1px rgba(59, 130, 246, 0.1);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.ai-thinking--mini .ai-thinking__ecg {
  width: 164px;
  height: 20px;
}

.ai-thinking__ecg::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -45%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.34), transparent);
  animation: aiEcgSweep 1.05s ease-in-out infinite;
}

.ai-thinking__ecg::before {
  content: "";
  position: absolute;
  z-index: 2;
  left: 8px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #0457df;
  box-shadow:
    0 0 0 4px rgba(96, 165, 250, 0.13),
    0 0 14px rgba(59, 130, 246, 0.56);
  transform: translate(-50%, -50%);
  animation: aiEcgPulseDot 1.05s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.ai-thinking__ecg svg {
  position: absolute;
  left: 8px;
  top: 1px;
  z-index: 1;
  width: calc(100% - 16px);
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  filter: drop-shadow(0 0 7px rgba(59, 130, 246, 0.48));
  animation: aiEcgTrace 1.05s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

.demo-msg__body--streaming::after,
.mini-assist__bubble-main--streaming::after,
.mini-assist__bubble--streaming:not(:has(.mini-assist__bubble-main))::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 1.05em;
  margin-left: 3px;
  border-radius: 999px;
  background: #0457df;
  vertical-align: -0.16em;
  animation: aiCaretBlink 0.72s steps(2, start) infinite;
}

.demo-msg__actions.is-hidden {
  opacity: 0;
  transform: translateY(3px);
  pointer-events: none;
}

.demo-msg__actions {
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@keyframes aiAccentBreathe {
  0%,
  100% {
    opacity: 0.82;
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.18);
  }
  50% {
    opacity: 1;
    box-shadow: 0 0 18px rgba(96, 165, 250, 0.42);
  }
}

@keyframes aiSignalDot {
  0%,
  78%,
  100% {
    opacity: 0.34;
    transform: translateY(0) scale(0.9);
  }
  36% {
    opacity: 1;
    transform: translateY(-2px) scale(1.08);
  }
}

@keyframes aiEcgTrace {
  0% {
    stroke-dashoffset: 100;
    opacity: 0.2;
  }
  46%,
  74% {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  100% {
    stroke-dashoffset: -100;
    opacity: 0.2;
  }
}

@keyframes aiEcgPulseDot {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  16% {
    opacity: 1;
  }
  74% {
    opacity: 1;
    transform: translate(176px, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(202px, -50%) scale(0.72);
  }
}

.ai-thinking--mini .ai-thinking__ecg::before {
  animation-name: aiEcgPulseDotMini;
}

@keyframes aiEcgPulseDotMini {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  16% {
    opacity: 1;
  }
  74% {
    opacity: 1;
    transform: translate(132px, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(154px, -50%) scale(0.72);
  }
}

@keyframes aiEcgSweep {
  0% {
    transform: translateX(0);
    opacity: 0;
  }
  18%,
  72% {
    opacity: 1;
  }
  100% {
    transform: translateX(330%);
    opacity: 0;
  }
}

@keyframes aiThinkingGlass {
  0% {
    transform: translateX(-100%);
  }
  55%,
  100% {
    transform: translateX(100%);
  }
}

@keyframes aiCaretBlink {
  50% {
    opacity: 0;
  }
}

@keyframes checkButtonPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 12px 26px rgba(59, 130, 246, 0.28),
      0 0 0 4px rgba(59, 130, 246, 0.08);
  }
  50% {
    transform: translateY(-1px) scale(1.015);
    box-shadow:
      0 16px 32px rgba(59, 130, 246, 0.34),
      0 0 0 9px rgba(96, 165, 250, 0.1);
  }
}

@keyframes aiCheckReveal {
  0% {
    opacity: 0;
    transform: translateY(10px) scale(0.985);
    box-shadow: 0 0 0 rgba(59, 130, 246, 0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
  }
}

@keyframes miniAssistSuggest {
  0%,
  100% {
    transform: translateY(0) scale(1);
    box-shadow:
      0 12px 22px rgba(59, 130, 246, 0.32),
      0 0 0 4px rgba(59, 130, 246, 0.1);
  }
  50% {
    transform: translateY(-2px) scale(1.045);
    box-shadow:
      0 18px 34px rgba(59, 130, 246, 0.42),
      0 0 0 10px rgba(96, 165, 250, 0.12);
  }
}

@keyframes miniAssistSuggestRing {
  0% {
    opacity: 0.85;
    transform: scale(0.88);
  }
  100% {
    opacity: 0;
    transform: scale(1.2);
  }
}

@keyframes aiScan {
  0% {
    transform: translateX(-70%);
  }
  100% {
    transform: translateX(70%);
  }
}

@keyframes aiPulseButton {
  0%,
  100% {
    box-shadow: 0 10px 22px rgba(59, 130, 246, 0.3), 0 0 0 0 rgba(59, 130, 246, 0.22);
  }
  50% {
    box-shadow: 0 14px 28px rgba(59, 130, 246, 0.36), 0 0 0 8px rgba(59, 130, 246, 0.1);
  }
}

@keyframes aiFloatArrow {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-pill--thinking::after,
  .hero-pill--thinking .hero-pill__submit,
  .hero-pill--thinking .hero-pill__submit svg,
  .ai-thinking::after,
  .ai-thinking__signals i,
  .ai-thinking__ecg::before,
  .ai-thinking__ecg::after,
  .ai-thinking__ecg svg,
  #demo-typing .demo-msg__accent,
  .app-case-submit.is-loading,
  .ai-check--reveal,
  .mini-assist__toggle,
  .mini-assist__toggle::after,
      .demo-msg__body--streaming::after,
      .mini-assist__bubble-main--streaming::after,
      .mini-assist__bubble--streaming:not(:has(.mini-assist__bubble-main))::after {
        animation: none !important;
      }
  body.page-transition-prepare:not(.page-demo-chat) main,
  body.page-transition-prepare .app-content,
  body.page-transition-ready:not(.page-demo-chat) main,
  body.page-transition-ready .app-content,
  body.page-transition-out:not(.page-demo-chat) main,
  body.page-transition-out .app-content,
  .page-landing .landing-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .brand-logo-wrap .brand-logo-img {
    width: 22px;
    height: 22px;
  }

  .brand-wordmark-img {
    width: 132px;
    height: 23px;
    max-width: none;
  }

  .app-sidebar-wordmark {
    width: 170px;
    height: 29px;
  }
}

/* Final safe overrides: clean logo + smaller card circles */
.brand {
  border: 0px solid rgba(203, 213, 225, 0.75);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
}

.brand-logo-wrap {
  width: auto;
  height: auto;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
  padding: 0;
}

.brand-logo-img,
.brand-logo-wrap .brand-logo-img {
  width: 28px;
  height: 28px;
  border-radius: 0;
  object-fit: contain;
  display: block;
}

.page-landing .feature-card::before,
.page-landing .step-landing::before,
.page-landing .aud-card--landing::before {
  width: 96px;
  height: 96px;
  right: -34px;
  bottom: -44px;
  opacity: 0.78;
}

.page-landing .feature-card--v4::before {
  display: block !important;
}

/* Apple-like landing refresh */
.page-landing {
  background:
    radial-gradient(1200px 520px at 12% -8%, rgba(56, 189, 248, 0.22), transparent 58%),
    radial-gradient(1200px 520px at 88% -10%, rgba(99, 102, 241, 0.2), transparent 56%),
    linear-gradient(180deg, #f6f8ff 0%, #ffffff 42%, #f8fafc 100%);
}

.page-landing .hero--landing {
  padding-top: 2.8rem;
  padding-bottom: 1.9rem;
}

.page-landing .hero-title {
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-size: clamp(2.2rem, 4.8vw, 4.1rem);
  text-wrap: balance;
}

.page-landing .hero-title__line--green {
  background: none;
  color: #004bf1;
}

.page-landing .zamona-llm-highlight {
  color: #0457df;
  font-weight: 800;
}

.page-landing .hero-title .hero-title__line .zamona-llm-highlight {
  color: inherit;
}

.page-landing .hero-sub {
  max-width: 760px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.page-landing .hero-pill {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(248, 250, 252, 0.9));
  box-shadow:
    0 30px 55px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

.page-landing .landing-stats {
  margin-top: 1.35rem;
  gap: 0.85rem;
}

.page-landing .landing-stat-card {
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0.64));
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 22px 34px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(16px);
}

.page-landing .landing-stat-card__value {
  font-size: 1.36rem;
  letter-spacing: -0.035em;
  color: #0457df;
}

.page-landing .section--features,
.page-landing .section--how,
.page-landing .section--audience {
  position: relative;
}

.page-landing .section--features::before,
.page-landing .section--how::before,
.page-landing .section--audience::before {
  content: "";
  position: absolute;
  inset: 12px max(1.4rem, 3vw);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.46));
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
  pointer-events: none;
  z-index: 0;
}

.page-landing .section--features .container,
.page-landing .section--how .container,
.page-landing .section--audience .container {
  position: relative;
  z-index: 1;
  padding-top: 0.8rem;
  padding-bottom: 0.8rem;
}

.page-landing .feature-card,
.page-landing .step-landing,
.page-landing .aud-card--landing {
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.74);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(248, 250, 252, 0.74));
  box-shadow: 0 15px 28px rgba(15, 23, 42, 0.08);
}

.page-landing .feature-card:hover,
.page-landing .step-landing:hover,
.page-landing .aud-card--landing:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 24px 40px rgba(37, 99, 235, 0.14);
}

.page-landing .cta-band--landing {
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  background:
    radial-gradient(620px 280px at 15% 0%, rgba(59, 130, 246, 0.26), transparent 60%),
    radial-gradient(580px 260px at 85% 100%, rgba(14, 165, 233, 0.22), transparent 62%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 70%, #111827 100%);
  box-shadow: 0 30px 48px rgba(15, 23, 42, 0.26);
}

.page-landing .cta-band--landing h2,
.page-landing .cta-band--landing p {
  color: #f8fafc;
}

/* Diagonal hover sweep: bottom-right -> top-left */
.landing-hover-card {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.landing-hover-card > * {
  position: relative;
  z-index: 1;
}

.landing-hover-card .landing-card-sweep {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    radial-gradient(
      circle at 100% 100%,
      rgba(191, 219, 254, 0.34) 0%,
      rgba(186, 230, 253, 0.28) 34%,
      rgba(224, 231, 255, 0.2) 58%,
      rgba(255, 255, 255, 0.02) 100%
    ),
    radial-gradient(
      circle at 86% 92%,
      rgba(147, 197, 253, 0.18) 0%,
      rgba(125, 211, 252, 0.08) 42%,
      transparent 74%
    );
  clip-path: circle(0% at 100% 100%);
  transition: clip-path 0.56s cubic-bezier(0.2, 0.88, 0.2, 1);
}

.landing-hover-card:hover .landing-card-sweep {
  clip-path: circle(150% at 100% 100%);
}

/* Мягкое ослабление анимации на тач-устройствах */
@media (hover: none) {
  .landing-hover-card .landing-card-sweep {
    transition-duration: 0.32s;
  }
}

/* Landing performance mode: disable decorative hover animations */
.page-landing .landing-hover-card,
.page-landing .feature-card,
.page-landing .step-landing,
.page-landing .aud-card--landing {
  transition: none !important;
}

.page-landing .feature-card:hover,
.page-landing .step-landing:hover,
.page-landing .aud-card--landing:hover {
  transform: none !important;
  border-color: rgba(255, 255, 255, 0.74) !important;
  box-shadow: 0 15px 28px rgba(15, 23, 42, 0.08) !important;
}

.page-landing .landing-hover-card .landing-card-sweep {
  display: none !important;
  clip-path: none !important;
  transition: none !important;
}

.page-landing .feature-card__icon svg,
.page-landing .feature-card:hover .feature-card__icon svg {
  transform: none !important;
  filter: none !important;
  transition: none !important;
}

/* Disable soft blue circle fill on card hover */
.page-landing .feature-card::before,
.page-landing .step-landing::before,
.page-landing .aud-card--landing::before,
.page-landing .feature-card:hover::before,
.page-landing .step-landing:hover::before,
.page-landing .aud-card--landing:hover::before {
  transform: none !important;
  opacity: 0 !important;
  transition: none !important;
}

/* Mobile-first polish for landing + auth */
@media (max-width: 768px) {
  .page-landing .header-inner--fullwidth {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    padding: 10px 12px;
  }

  .page-landing .brand-wordmark-img {
    width: 136px;
    height: 26px;
    display: block;
    margin: 0 auto;
  }

  .page-landing .header-actions {
    width: 100%;
    gap: 8px;
    justify-content: space-between;
    flex-wrap: nowrap;
  }

  .page-landing .header-actions .lang-dropdown {
    margin-right: 0;
    flex: 0 0 auto;
  }

  .page-landing .header-actions .lang-dropdown__summary,
  .page-landing .header-actions .header-link,
  .page-landing .header-actions .header-register {
    min-width: 0;
    min-height: 40px;
    padding: 0 12px;
    font-size: 0.86rem;
  }

  .page-landing .header-actions .header-link,
  .page-landing .header-actions .header-register {
    flex: 1 1 0;
  }

  .page-landing .hero--landing {
    padding-top: 1.25rem;
    padding-bottom: 0.9rem;
  }

  .page-landing .hero-title {
    font-size: clamp(1.55rem, 8vw, 2.2rem);
    line-height: 1.08;
    margin-bottom: 10px;
  }

  .page-landing .hero-sub {
    font-size: 0.96rem;
    line-height: 1.5;
    margin-bottom: 18px;
    padding: 0 4px;
  }

  .page-landing .hero-pill {
    max-width: 100%;
    border-radius: 16px;
    padding: 5px 6px 5px 12px;
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.1);
  }

  .page-landing .hero-pill__input {
    font-size: 0.95rem;
    padding: 10px 6px;
  }

  .page-landing .hero-pill__submit {
    width: 44px;
    height: 44px;
  }

  .page-landing .hero-fine-print {
    margin-top: 10px;
    font-size: 0.75rem;
  }

  .page-landing .landing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
  }

  .page-landing .landing-stat-card {
    border-radius: 14px;
    padding: 0.68rem 0.72rem;
  }

  .page-landing .landing-stat-card__value {
    font-size: 1.1rem;
  }

  .page-landing .landing-stat-card__label {
    font-size: 0.74rem;
  }

  .page-landing .section--features,
  .page-landing .section--how,
  .page-landing .section--audience {
    padding-top: 34px;
    padding-bottom: 34px;
  }

  .page-landing .section--features::before,
  .page-landing .section--how::before,
  .page-landing .section--audience::before {
    inset: 8px 10px;
    border-radius: 18px;
  }

  .page-landing .section-title {
    font-size: clamp(1.18rem, 5.8vw, 1.5rem);
    margin-bottom: 20px;
  }

  .page-landing .grid-features,
  .page-landing .steps--landing,
  .page-landing .audience-cols--landing {
    gap: 12px;
  }

  .page-landing .feature-card,
  .page-landing .step-landing,
  .page-landing .aud-card--landing {
    border-radius: 16px;
    padding: 16px 14px;
  }

  .page-landing .feature-card__title,
  .page-landing .step-landing__title,
  .page-landing .aud-card--landing h3 {
    font-size: 0.98rem;
    margin-bottom: 8px;
  }

  .page-landing .feature-card__text,
  .page-landing .step-landing__text,
  .page-landing .aud-card--landing p {
    font-size: 0.875rem;
    line-height: 1.5;
  }

  .page-landing .cta-band--landing {
    margin-top: 8px;
    margin-bottom: 26px;
    border-radius: 18px;
    padding: 24px 14px;
  }

  .page-landing .cta-band--landing h2 {
    font-size: 1.24rem;
  }

  .page-landing .cta-band--landing p {
    font-size: 0.92rem;
    margin-bottom: 16px;
  }

  .page-landing .cta-band--landing .btn-white,
  .page-landing .cta-band--landing .btn-cta-outline {
    width: 100%;
    min-height: 44px;
  }

  .auth-page {
    justify-content: flex-start;
    padding: 20px 14px 24px;
  }

  .auth-hero {
    margin-bottom: 14px;
  }

  .auth-heading {
    font-size: 1.28rem;
  }

  .auth-tagline {
    font-size: 0.875rem;
    margin-top: 7px;
  }

  .auth-wordmark-img {
    width: min(195px, 86vw);
    max-height: 40px;
  }

  .auth-card-shell {
    width: 100%;
    border-radius: 14px;
    padding: 18px 14px 14px;
    box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  }

  .auth-form .form-field--auth {
    margin-bottom: 14px;
  }

  .page-auth .form-field input {
    min-height: 46px;
    font-size: 16px;
  }

  .btn-auth-submit {
    min-height: 46px;
    font-size: 0.95rem;
    padding: 12px 14px !important;
  }

  .auth-switch,
  .auth-back-wrap {
    margin-top: 10px;
  }

  .google-btn-wrap > div,
  .google-btn-wrap iframe {
    width: 100% !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .page-landing .container {
    width: min(1120px, 100% - 20px);
  }

  .page-landing .header-actions .lang-dropdown__summary,
  .page-landing .header-actions .header-link,
  .page-landing .header-actions .header-register {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.8rem;
  }

  .page-landing .hero-pill {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 6px;
    padding-right: 5px;
  }

  .page-landing .landing-stats {
    grid-template-columns: 1fr;
  }

  .page-landing .cta-actions {
    gap: 8px;
  }

  .auth-page {
    padding-left: 10px;
    padding-right: 10px;
  }

  .auth-card-shell {
    border-radius: 12px;
    padding: 16px 12px 12px;
  }

  .auth-heading {
    font-size: 1.18rem;
  }
}

/* Extra auth mobile tuning */
.auth-page {
  min-height: 100dvh;
}

.auth-card-shell .auth-form > p,
.auth-card-shell .auth-form center {
  text-align: center;
}

.auth-card-shell .auth-form > p {
  margin: 0 0 10px;
}

.google-btn-wrap {
  width: 100%;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 768px) {
  .auth-card-shell {
    overflow: hidden;
  }

  .auth-switch {
    font-size: 0.98rem;
    line-height: 1.45;
  }

  .auth-back {
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .auth-page {
    padding-top: 14px;
    padding-bottom: 18px;
  }

  .auth-hero {
    margin-bottom: 10px;
  }

  .auth-tagline {
    font-size: 0.84rem;
  }

  .auth-card-shell {
    padding-top: 14px;
  }

  .auth-switch {
    font-size: 0.93rem;
  }

  .google-btn-wrap {
    max-width: 100%;
  }
}
