:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --text: #151823;
  --muted: #5e6577;
  --brand: #7b3ff2;
  --brand-2: #e3165b;
  --dark: #0f121a;
  --line: #e5e8ef;
  --radius: 14px;
  --shadow: 0 16px 40px rgba(9, 14, 26, 0.12);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #f9fafc 0%, #f3f5f9 100%);
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid var(--line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text);
}

.brand img {
  width: 170px;
  height: auto;
  display: block;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 10px;
  padding: 8px 10px;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px 0;
  background: var(--text);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-links a {
  text-decoration: none;
  color: #2f3545;
  font-weight: 500;
}

.nav-links a.active {
  color: var(--brand);
}

.btn {
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  color: #fff;
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(123, 63, 242, 0.35);
}

.btn-outline {
  color: var(--text);
  border: 1px solid var(--line);
  background: #fff;
}

.hero {
  padding: 72px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 30px;
  align-items: stretch;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 40px;
}

.kicker {
  color: var(--brand-2);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  margin-bottom: 12px;
}

h1, h2, h3 { line-height: 1.2; margin: 0 0 14px; }
h1 { font-size: clamp(30px, 4vw, 48px); }
h2 { font-size: clamp(24px, 3vw, 34px); }
p { margin: 0 0 16px; color: var(--muted); }

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.hero-media {
  min-height: 420px;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(123, 63, 242, 0.45), rgba(227, 22, 91, 0.25)),
    url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1200&q=80') center/cover;
}

.section {
  padding: 36px 0 68px;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature {
  padding: 24px;
}

.feature h3 { margin-bottom: 10px; font-size: 20px; }

.cta-strip {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius);
  background: linear-gradient(100deg, #111827, #1e293b);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.cta-strip p { color: rgba(255, 255, 255, 0.8); margin: 0; }

.page-hero {
  padding: 56px 0 26px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.list {
  padding-left: 18px;
  color: var(--muted);
}

.form {
  padding: 24px;
}

.field { margin-bottom: 12px; }

label {
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-bottom: 6px;
}

input, textarea {
  width: 100%;
  border: 1px solid #d6dbe8;
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  font: inherit;
}

textarea { resize: vertical; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px 0 34px;
  color: #6b7280;
  font-size: 14px;
}

.footer-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.chat-toggle {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 1001;
}

.chat-panel {
  position: fixed;
  right: 20px;
  bottom: 80px;
  width: min(360px, calc(100vw - 24px));
  background: #fff;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: none;
  z-index: 1001;
}

.chat-panel.open { display: block; }

.chat-head {
  background: #111827;
  color: #fff;
  font-weight: 700;
  padding: 12px 14px;
}

.chat-body {
  padding: 12px;
}

.chat-body .btn { width: 100%; margin-top: 6px; }

.chat-note {
  margin-top: 8px;
  font-size: 12px;
  color: #6b7280;
}

@media (max-width: 920px) {
  .hero-grid,
  .grid-3,
  .split {
    grid-template-columns: 1fr;
  }

  .hero-media {
    min-height: 290px;
  }

  .nav-toggle { display: inline-block; }

  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 4vw 18px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-links.open { display: flex; }

  .brand img { width: 148px; }
}
