:root {
  --bg: #0f172a;
  --panel: #111827;
  --card: #ffffff;
  --muted: #64748b;
  --text: #0f172a;
  --white: #ffffff;
  --primary: #f97316;
  --primary-dark: #ea580c;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --shadow: 0 24px 70px rgba(15, 23, 42, .18);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--soft);
}

a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 70px);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226,232,240,.8);
}

.brand { display: flex; gap: 10px; align-items: center; font-weight: 800; }
.brand-mark {
  display: grid; place-items: center;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: var(--primary);
  color: white;
}
nav { display: flex; gap: 22px; color: #334155; font-weight: 600; }
nav a:hover { color: var(--primary); }

.hero {
  min-height: 86vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  padding: 70px clamp(20px, 5vw, 70px);
  background:
    radial-gradient(circle at top left, rgba(249,115,22,.24), transparent 34%),
    linear-gradient(135deg, #fff 0%, #fff7ed 48%, #f8fafc 100%);
}

.hero-content h1 { font-size: clamp(38px, 6vw, 76px); line-height: .96; margin: 12px 0 22px; letter-spacing: -0.055em; }
.hero-text { font-size: 19px; line-height: 1.7; color: #475569; max-width: 680px; }
.eyebrow { color: var(--primary-dark); font-weight: 800; text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button {
  border: 0;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--primary); color: white; box-shadow: 0 14px 30px rgba(249, 115, 22, .28); }
.button.primary:hover { background: var(--primary-dark); }
.button.secondary { background: white; color: var(--text); border: 1px solid var(--line); }
.button.full { width: 100%; border-radius: 16px; font-size: 16px; }

.hero-card { border-radius: 34px; overflow: hidden; box-shadow: var(--shadow); background: white; padding: 14px; }
.carousel { position: relative; height: min(62vh, 560px); border-radius: 26px; overflow: hidden; background: #111827; }
.carousel-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); transition: opacity .8s ease, transform 1.2s ease; }
.carousel-image.active { opacity: 1; transform: scale(1); }
.carousel-dots { position: absolute; left: 0; right: 0; bottom: 18px; display: flex; justify-content: center; gap: 8px; }
.carousel-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.55); }
.carousel-dots span.active { background: white; }

.section { padding: 80px clamp(20px, 5vw, 70px); }
.split { display: grid; grid-template-columns: .75fr 1.25fr; gap: 40px; }
.section h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.05; letter-spacing: -.04em; margin: 10px 0 20px; }
.section-heading { max-width: 760px; margin-bottom: 32px; }
.section-heading p, .contact-copy p { color: #475569; line-height: 1.65; }
.feature-grid, .video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-grid { grid-template-columns: repeat(2, 1fr); }
.feature-card, .video-card, .contact-form {
  background: white;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 26px;
  box-shadow: 0 12px 40px rgba(15,23,42,.06);
}
.feature-card h3, .video-card h3 { margin: 0 0 10px; }
.feature-card p, .video-card p { color: #64748b; line-height: 1.6; }
.video-card video { width: 100%; border-radius: 20px; background: #0f172a; aspect-ratio: 16/9; object-fit: cover; }

.contact-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 42px; align-items: start; background: #fff; }
.contact-form { display: grid; gap: 18px; }
.contact-form label { display: grid; gap: 8px; font-weight: 750; color: #334155; }
.contact-form input[type="text"], .contact-form input[type="email"] {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 15px 16px;
  font-size: 16px;
  outline: none;
}
.contact-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 4px rgba(249,115,22,.14); }
.form-row { display: grid; grid-template-columns: 180px 1fr; gap: 16px; }
.checkbox-line { grid-template-columns: 22px 1fr !important; align-items: start; font-weight: 500 !important; color: #475569 !important; line-height: 1.55; }
.checkbox-line input { margin-top: 5px; width: 18px; height: 18px; }
.form-message { margin: 0; font-weight: 700; min-height: 24px; }
.form-message.success { color: #15803d; }
.form-message.error { color: #b91c1c; }

.chat-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 50;
  width: 62px; height: 62px; border-radius: 50%; border: none;
  background: var(--primary); color: white; font-size: 25px; cursor: pointer;
  box-shadow: 0 18px 40px rgba(249,115,22,.35);
}
.chatbot {
  position: fixed; right: 22px; bottom: 96px; z-index: 51;
  width: min(370px, calc(100vw - 32px));
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: none;
}
.chatbot.open { display: block; }
.chat-header { background: var(--bg); color: white; padding: 16px; display: flex; justify-content: space-between; align-items: center; }
.chat-header span { display: block; font-size: 12px; opacity: .72; margin-top: 2px; }
.chat-header button { background: transparent; color: white; border: 0; font-size: 26px; cursor: pointer; }
.chat-messages { padding: 16px; display: grid; gap: 10px; max-height: 280px; overflow-y: auto; }
.message { padding: 11px 13px; border-radius: 16px; line-height: 1.45; font-size: 14px; }
.message.bot { background: #f1f5f9; justify-self: start; }
.message.user { background: var(--primary); color: white; justify-self: end; }
.quick-replies { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 0 16px 16px; }
.quick-replies button { border: 1px solid var(--line); background: white; border-radius: 14px; padding: 10px; font-weight: 700; cursor: pointer; }
.quick-replies button:hover { border-color: var(--primary); color: var(--primary-dark); }

.site-footer { padding: 30px clamp(20px, 5vw, 70px); background: #0f172a; color: rgba(255,255,255,.75); text-align: center; }

@media (max-width: 900px) {
  nav { display: none; }
  .hero, .split, .contact-section { grid-template-columns: 1fr; }
  .feature-grid, .video-grid { grid-template-columns: 1fr; }
  .carousel { height: 420px; }
}

@media (max-width: 560px) {
  .site-header { padding: 14px 16px; }
  .brand span:last-child { display: none; }
  .hero { padding: 48px 18px; }
  .section { padding: 58px 18px; }
  .form-row { grid-template-columns: 1fr; }
  .carousel { height: 320px; }
}
