:root {
  --bg: #0b1020;
  --panel: #121a31;
  --panel-alt: #18223f;
  --text: #edf2ff;
  --muted: #b7c3e0;
  --border: #263354;
  --accent: #7aa2ff;
  --accent-strong: #5c87f8;
  --success: #9fe3b1;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --radius: 18px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: linear-gradient(180deg, #08101e 0%, #0d1427 100%);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(8, 12, 24, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

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

.brand {
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

nav a {
  color: var(--muted);
  font-weight: 600;
}

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

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.1;
  margin: 0 0 1rem;
}

.hero-text {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 720px;
}

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

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

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 12px;
  padding: 0.9rem 1.2rem;
  font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.2s ease;
  text-decoration: none;
}

.button:hover {
  transform: translateY(-1px);
  text-decoration: none;
}

.button.primary {
  background: var(--accent);
  color: #0b1120;
}

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

.button.secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.button.full {
  width: 100%;
}

.hero-card,
.card,
.chat-card {
  background: linear-gradient(180deg, rgba(21, 30, 54, 0.95), rgba(16, 24, 44, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 1.5rem;
}

.hero-card h2 {
  margin-top: 0;
}

.hero-card ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

.section.alt {
  background: rgba(255, 255, 255, 0.02);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
  margin: 0.2rem 0 0.8rem;
}

.section-heading p {
  color: var(--muted);
}

.card-grid,
.features-grid,
.pricing-grid,
.contact-grid {
  display: grid;
  gap: 1.25rem;
}

.card-grid,
.features-grid,
.pricing-grid,
.contact-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.card,
.feature,
.pricing-card {
  padding: 1.4rem;
}

.card h3,
.feature h3,
.pricing-card h3 {
  margin-top: 0;
}

.card p,
.feature p,
.pricing-card p,
.pricing-note,
.assistant-note {
  color: var(--muted);
}

.feature {
  background: linear-gradient(180deg, rgba(19, 28, 49, 0.95), rgba(12, 20, 38, 0.95));
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: start;
}

.chat-card {
  padding: 1rem;
}

.messages {
  height: 340px;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: rgba(4, 8, 18, 0.65);
  margin-bottom: 1rem;
}

.message {
  margin-bottom: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: 12px;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.message.user {
  background: rgba(122, 162, 255, 0.16);
  border: 1px solid rgba(122, 162, 255, 0.28);
}

.message.bot {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.message.error {
  background: rgba(255, 93, 93, 0.12);
  border: 1px solid rgba(255, 93, 93, 0.24);
}

.message-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 0.35rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chat-form textarea {
  width: 100%;
  resize: vertical;
  min-height: 100px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(3, 8, 18, 0.7);
  color: var(--text);
  padding: 1rem;
  font: inherit;
  margin-bottom: 0.8rem;
}

.chat-form textarea:focus {
  outline: 2px solid rgba(122, 162, 255, 0.3);
  border-color: var(--accent);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-list details {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.1rem;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 700;
}

.contact-section {
  padding-bottom: 5rem;
}

.site-footer {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 1.5rem 0 2rem;
  color: var(--muted);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .hero-grid,
  .split,
  .card-grid,
  .features-grid,
  .pricing-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .nav {
    flex-direction: column;
    align-items: flex-start;
  }

  nav {
    gap: 0.75rem;
  }

  .hero {
    padding-top: 3.5rem;
  }
}
