:root {
  --bg: #f6f8fc;
  --surface: #ffffff;
  --text: #1b2434;
  --muted: #5d677f;
  --primary: #4d57d8;
  --primary-strong: #3741bb;
  --line: #dbe1ee;
}

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

body {
  margin: 0;
  font-family: Inter, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 248, 252, 0.92);
  backdrop-filter: blur(8px);
}

.nav {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-links {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand img {
  height: 44px;
  width: auto;
}

nav {
  display: flex;
  gap: 1.1rem;
}

nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 500;
}

nav a:hover {
  color: var(--primary);
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
}

.lang-toggle a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.3rem 0.58rem;
}

.lang-toggle a.active {
  background: var(--primary);
  color: #fff;
}

.hero {
  padding: 5rem 0 3.5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.2rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 0.8rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
}

h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 1rem;
}

h2 {
  font-size: clamp(1.4rem, 2.2vw, 2rem);
  margin: 0 0 1rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.5rem;
}

.btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 0.7rem 1.2rem;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-secondary {
  border-color: var(--line);
  background: var(--surface);
}

.section {
  padding: 4rem 0;
}

.section-alt {
  background: #edf1fa;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
}

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

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

.ai-readiness {
  max-width: 860px;
}

.tag-row {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.tag-row span {
  border: 1px solid #c8d0e6;
  border-radius: 999px;
  padding: 0.38rem 0.85rem;
  background: #fff;
  color: var(--muted);
  font-size: 0.9rem;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.2rem;
}

.contact-form {
  display: grid;
  gap: 0.62rem;
}

input,
textarea {
  width: 100%;
  border: 1px solid #cad3e6;
  border-radius: 10px;
  padding: 0.68rem 0.75rem;
  font: inherit;
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid #bac5ff;
  outline-offset: 1px;
}

.form-status {
  min-height: 1.3rem;
  margin: 0;
  color: var(--muted);
}

.contact-direct a {
  color: var(--primary-strong);
}

.chat-toggle,
.chat-widget {
  display: none;
}

.chat-enabled .chat-toggle {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 12;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 0;
  background: var(--primary);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.chat-enabled .chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 4.8rem;
  width: min(360px, 92vw);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 12px 28px rgba(18, 29, 58, 0.16);
  overflow: hidden;
}

.chat-enabled .chat-widget header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.72rem 0.8rem;
  border-bottom: 1px solid var(--line);
}

.chat-enabled .chat-widget h3 {
  margin: 0;
  font-size: 1rem;
}

.chat-enabled .chat-widget header button {
  border: 0;
  background: transparent;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.chat-log {
  min-height: 180px;
  max-height: 280px;
  overflow-y: auto;
  padding: 0.8rem;
  display: grid;
  gap: 0.55rem;
}

.chat-message {
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
  font-size: 0.92rem;
}

.chat-message.bot {
  background: #eef1fd;
}

.chat-message.user {
  background: #f4f5f9;
  text-align: right;
}

.chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.72rem;
  border-top: 1px solid var(--line);
}

.chat-form input {
  flex: 1;
}

.chat-form button {
  border: 0;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  padding: 0.45rem 0.8rem;
  cursor: pointer;
}

.site-footer {
  padding: 2rem 0;
}

.site-footer .container {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer img {
  height: 34px;
  width: auto;
}

@media (max-width: 960px) {
  .hero-grid,
  .grid-4,
  .grid-2,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  nav {
    display: none;
  }

  .header-links {
    margin-left: auto;
  }
}
