@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800&display=swap');

:root {
  --background: #f9fafb;
  --card: #ffffff;
  --text: #1f2937;
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --border: #e5e7eb;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  --radius: 12px;
  --focus: #2563eb;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Montserrat', sans-serif;
  background: var(--background);
  color: var(--text);
  overflow-x: hidden;
}

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

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

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
}

h1 {
  font-size: clamp(2.4rem, 5vw, 48px);
  font-weight: 800;
  line-height: 1.1;
}

h2 {
  font-size: clamp(1.9rem, 4vw, 32px);
  font-weight: 700;
  line-height: 1.2;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

p,
li,
span,
label,
input,
textarea,
button {
  font-size: 16px;
}

p {
  margin: 0;
  line-height: 1.6;
  color: #4b5563;
}

small {
  display: inline-block;
  color: var(--accent);
}

.container {
  width: min(1200px, calc(100% - 40px));
  margin: 0 auto;
}

.section {
  padding: 80px 0;
}

.section-soft {
  background: #f3f4f6;
}

.card,
.feature-card,
.contact-shell,
.dashboard,
.dash-main,
.dash-side div,
.cta-card,
.image-card,
.floating-card,
.hero-metrics article,
.hero-proof-grid article,
.trust-row div,
.info-card,
.story-list article {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.topbar {
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}

.topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
}

.topbar-inner a {
  color: var(--accent);
  font-weight: 700;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(249, 250, 251, 0.96);
  border-bottom: 1px solid transparent;
  transition: box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.98);
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.nav-shell {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

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

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 600;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.mobile-menu-btn {
  display: none;
  border: none;
  background: transparent;
  color: var(--text);
  font-size: 1.2rem;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

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

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

.btn-secondary {
  background: #ffffff;
  color: var(--text);
  border-color: var(--border);
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.btn-block {
  width: 100%;
}

.hero {
  padding-top: 24px;
}

.hero-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: center;
}

.split-grid,
.product-grid,
.contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  align-items: start;
}

.hero-copy p {
  margin-top: 16px;
  max-width: 520px;
}

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
}

.bullet-list {
  margin: 20px 0 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: #4b5563;
}

.hero-bullets {
  max-width: 360px;
}

.hero-stage {
  position: relative;
  padding: 28px;
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f3f4f6);
  border: 1px solid var(--border);
}

.hero-dashboard-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #ffffff;
  box-shadow: var(--shadow);
}

.hero-dashboard-card video,
.image-card img,
.dash-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-dashboard-card {
  aspect-ratio: 16 / 10;
}

.floating-card {
  position: absolute;
  padding: 14px 16px;
  max-width: 190px;
}

.floating-card small {
  font-size: 12px;
  font-weight: 700;
}

.floating-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 18px;
}

.floating-card span {
  font-size: 13px;
  color: #4b5563;
}

.floating-card-top {
  top: 16px;
  left: 16px;
}

.floating-card-right {
  top: 92px;
  right: 16px;
}

.floating-card-bottom {
  left: 24px;
  bottom: 16px;
}

.hero-metrics,
.trust-row,
.services-grid,
.info-card-list,
.story-list {
  display: grid;
  gap: 24px;
}

.hero-metrics {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 32px;
}

.hero-metrics article,
.info-card,
.story-list article {
  padding: 24px;
}

.hero-metrics strong,
.info-card strong,
.story-list strong {
  display: block;
  margin: 8px 0;
}

.trust-strip {
  padding-top: 0;
}

.trust-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.trust-row div {
  padding: 18px;
  text-align: center;
  font-weight: 700;
}

.section-intro {
  max-width: 720px;
  margin: 0 auto 32px;
  text-align: center;
}

.section-intro p,
.content-copy p,
.contact-copy p {
  margin-top: 12px;
}

.media-panel {
  display: grid;
  gap: 24px;
}

.image-card {
  overflow: hidden;
}

.image-card-large {
  min-height: 520px;
}

.services-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-card {
  padding: 24px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feature-card:hover,
.card:hover {
  transform: translateY(-5px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  background: rgba(194, 65, 12, 0.08);
  color: var(--accent);
}

.cta-section {
  padding-top: 0;
}

.cta-card {
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.cta-card p {
  margin-top: 8px;
}

.dashboard {
  padding: 12px;
}

.dashboard-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
}

.dashboard-top span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.dashboard-body {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 12px;
}

.dash-main,
.dash-side div {
  padding: 20px;
}

.dash-preview {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.dash-main strong {
  display: block;
  margin-top: 8px;
}

.dash-main em {
  display: block;
  margin-top: 8px;
  font-style: normal;
  color: #4b5563;
}

.dash-side {
  display: grid;
  gap: 24px;
}

.dash-side strong {
  display: block;
  margin-top: 8px;
}

.dash-side .accent {
  background: var(--accent);
  border-color: var(--accent);
}

.dash-side .accent small,
.dash-side .accent strong {
  color: #ffffff;
}

.chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 150px;
  margin-top: 24px;
}

.bar {
  flex: 1;
  border-radius: 8px 8px 0 0;
  background: #d1d5db;
}

.bar.active {
  background: var(--accent);
}

.h40 { height: 40%; }
.h52 { height: 52%; }
.h62 { height: 62%; }
.h66 { height: 66%; }
.h78 { height: 78%; }

.contact-grid {
  align-items: start;
}

.contact-shell {
  padding: 28px;
}

.contact-form {
  display: grid;
  gap: 24px;
}

.form-row {
  display: grid;
  gap: 24px;
}

.form-row-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.form-row-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-group {
  display: grid;
  gap: 8px;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
}

.form-control {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font: inherit;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.form-control:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

textarea.form-control {
  min-height: 140px;
  resize: vertical;
}

.alert {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.alert-success {
  background: #ffffff;
  color: #059669;
  border-color: #10b981;
}

.alert-danger {
  background: #ffffff;
  color: #dc2626;
  border-color: #f87171;
}

.error-text {
  color: #dc2626;
  font-size: 13px;
  font-weight: 500;
  margin-top: -12px;
}

.footer {
  padding: 48px 0 24px;
  background: #ffffff;
  border-top: 1px solid var(--border);
}

.footer-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 32px;
}

.footer-brand img {
  height: 32px;
  width: auto;
}

.footer-brand p {
  margin-top: 12px;
}

.footer-links {
  display: grid;
  gap: 12px;
}

.footer-links a:hover,
.footer-meta a:hover {
  color: var(--accent);
}

.footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

#ai-chat-widget {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

#chat-toggle {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #ffffff;
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 0.95rem;
}

#chat-toggle:hover {
  background: var(--accent-hover);
}

#chat-window {
  width: 280px;
  margin-bottom: 12px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(10px) scale(0.98);
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
}

#chat-window.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.chat-profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-profile strong {
  font-size: 14px;
}

.chat-profile span {
  display: block;
  margin-top: 2px;
  color: #6b7280;
  font-size: 11px;
}

.chat-profile-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: rgba(194, 65, 12, 0.08);
  color: var(--accent);
}

.chat-profile-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

#chat-close {
  border: none;
  background: transparent;
  color: #6b7280;
  font-size: 0.95rem;
  cursor: pointer;
}

.chat-subheader {
  padding: 10px 14px;
  font-size: 12px;
  color: #6b7280;
  background: #f9fafb;
  border-bottom: 1px solid var(--border);
}

.chat-body {
  height: 250px;
  overflow-y: auto;
  padding: 14px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.ai-msg,
.user-msg {
  max-width: 88%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
}

.ai-msg {
  background: #f9fafb;
  border: 1px solid var(--border);
  color: var(--text);
}

.user-msg {
  align-self: flex-end;
  background: var(--accent);
  color: #ffffff;
}

.typing-msg {
  display: inline-flex;
  gap: 5px;
  align-items: center;
  min-width: 54px;
}

.typing-msg span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(194, 65, 12, 0.7);
  animation: pulse 0.9s infinite ease-in-out;
}

.typing-msg span:nth-child(2) {
  animation-delay: 0.12s;
}

.typing-msg span:nth-child(3) {
  animation-delay: 0.24s;
}

.chat-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: #ffffff;
}

.chat-form {
  display: flex;
  gap: 8px;
}

.chat-input {
  flex: 1;
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--text);
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
}

.chat-input:focus {
  outline: none;
  border-color: var(--focus);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.chat-send-btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.chat-send-btn:hover {
  background: var(--accent-hover);
}

.chat-send-btn:disabled,
.chat-input:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

@keyframes pulse {
  0%, 80%, 100% { transform: scale(0.72); opacity: 0.5; }
  40% { transform: scale(1); opacity: 1; }
}

@media (max-width: 1100px) {
  .services-grid,
  .hero-metrics,
  .trust-row,
  .hero-layout,
  .split-grid,
  .product-grid,
  .contact-grid,
  .dashboard-body {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    max-width: none;
    margin-top: 16px;
  }

  .hero-stage {
    display: grid;
    gap: 16px;
  }
}

@media (max-width: 820px) {
  .navbar .nav-links {
    position: absolute;
    top: calc(100% + 10px);
    right: 20px;
    left: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 18px;
    background: #ffffff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--shadow);
  }

  .navbar .nav-links.active {
    display: flex;
  }

  .mobile-menu-btn {
    display: block;
  }

  .nav-cta,
  .cta-card .btn {
    width: 100%;
  }

  .topbar-inner,
  .cta-card,
  .footer-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  .form-row-two,
  .form-row-three,
  .footer-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container {
    width: min(100% - 28px, 1200px);
  }

  .section {
    padding: 64px 0;
  }

  .hero {
    padding-top: 72px;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-stage,
  .cta-card,
  .contact-shell {
    padding: 20px;
  }

  .image-card-large {
    min-height: 320px;
  }

  #chat-window {
    width: min(280px, calc(100vw - 32px));
  }
}

/* ─────────────────────────────────────────────
   COOKIE BANNER
───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: var(--card);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  transform: translateY(100%);
  color: var(--text);
  border-top: 1px solid var(--border);
}

.cookie-banner.show {
  transform: translateY(0);
}

.cookie-banner-content {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  max-width: 70%;
}

.cookie-icon {
  font-size: 2rem;
  color: var(--accent);
}

.cookie-banner p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: #4b5563;
}

.cookie-banner a {
  color: var(--accent);
  font-weight: 500;
  text-decoration: underline;
}

.cookie-actions {
  display: flex;
  gap: 12px;
}

.btn-cookie {
  padding: 10px 20px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
  font-family: 'Montserrat', sans-serif;
}

.btn-cookie-accept {
  background: var(--accent);
  color: #fff;
}

.btn-cookie-accept:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(194, 65, 12, 0.2);
}

.btn-cookie-decline {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn-cookie-decline:hover {
  background: var(--background);
  border-color: #d1d5db;
}

@media (max-width: 768px) {
  .cookie-banner {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
    text-align: center;
  }
  .cookie-banner-content {
    flex-direction: column;
    max-width: 100%;
    gap: 1rem;
  }
  .cookie-actions {
    width: 100%;
    justify-content: stretch;
  }
  .btn-cookie {
    flex: 1;
  }
}
