:root {
  --slate-50: #f8fafc;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-500: #64748b;
  --slate-700: #334155;
  --slate-800: #1e293b;
  --slate-900: #0f172a;
  --cyan-400: #22d3ee;
  --cyan-500: #06b6d4;
  --cyan-600: #0891b2;
  --cyan-700: #0e7490;
  --white: #ffffff;
  --shadow-lg: 0 10px 30px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 20px 60px rgba(14, 116, 144, 0.25);
  --radius-lg: 24px;
  --max-width: 1120px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--slate-900);
  background: var(--slate-50);
  -webkit-font-smoothing: antialiased;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO */
.hero {
  position: relative;
  background-size: cover;
  background-position: center;
  color: var(--white);
  padding: 64px 0 96px;
  isolation: isolate;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.72);
  z-index: -1;
}

.hero__content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  min-height: 50vh;
  justify-content: center;
  text-align: center;
}

.hero__brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--slate-900);
  padding: 16px 32px;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.hero__logo {
  height: 36px;
  width: auto;
  display: block;
}

.hero__brand-name {
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--slate-900);
}

.hero__title {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 600;
  line-height: 1.4;
  max-width: 720px;
}

/* SECTIONS */
.section {
  padding: 72px 0;
  position: relative;
}

@media (min-width: 768px) {
  .section {
    padding: 96px 0;
  }
}

.section--light {
  background: var(--white);
}

.section--dark {
  background: var(--slate-900);
  color: var(--white);
}

.section--dark .section__title {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.section--contact {
  background-size: cover;
  background-position: center;
  color: var(--white);
  isolation: isolate;
  text-align: center;
}

.section__overlay {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.80);
  z-index: -1;
}

.section__eyebrow {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--cyan-600);
  margin-bottom: 12px;
}

.section__title {
  font-size: clamp(28px, 4vw, 38px);
  font-weight: 600;
  margin-bottom: 40px;
  line-height: 1.25;
}

/* PRODUCTS GRID */
.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.product-card {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.product-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.product-card h3 {
  font-size: 18px;
  font-weight: 600;
  padding: 20px 24px 24px;
  color: var(--slate-900);
}

/* ABOUT PROSE */
.prose {
  max-width: 760px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  text-align: left;
}

.prose p + p {
  margin-top: 20px;
}

/* CAPABILITY CARDS */
.cards-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .cards-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.capability-card {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}

.capability-card h3 {
  font-size: 18px;
  font-weight: 600;
  color: var(--slate-900);
  margin-bottom: 16px;
}

.capability-card ul {
  list-style: none;
}

.capability-card li {
  font-size: 14px;
  color: var(--slate-700);
  padding: 4px 0;
  position: relative;
  padding-left: 16px;
}

.capability-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan-500);
}

/* CONTACT */
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
  margin-bottom: 32px;
}

.contact-info a {
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  transition: color 0.2s;
}

.contact-info a:hover {
  color: var(--cyan-400);
}

.contact-info a[href^="tel:"] {
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-address {
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 560px;
  margin: 0 auto;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.contact-address p + p {
  margin-top: 8px;
  text-transform: none;
  letter-spacing: 0;
}

/* CHAT WIDGET */
.chat-toggle {
  position: fixed;
  bottom: 40px;
  right: 40px;
  z-index: 40;
  background: var(--cyan-500);
  color: var(--slate-900);
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: var(--shadow-lg);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}

.chat-toggle:hover {
  background: var(--cyan-400);
  transform: translateY(-2px);
}

.chat-toggle--open {
  background: var(--white);
  color: var(--cyan-700);
}

.chat-panel {
  position: fixed;
  bottom: 112px;
  right: 40px;
  z-index: 50;
  width: calc(100vw - 48px);
  max-width: 400px;
  height: 560px;
  max-height: calc(100vh - 120px);
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 24px;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.96);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-panel--open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-panel__header {
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
  padding: 14px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-700);
}

.chat-panel__close {
  background: transparent;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: var(--slate-500);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}

.chat-panel__close:hover {
  background: var(--white);
  color: var(--slate-800);
}

.chat-panel__messages {
  flex: 1;
  overflow-y: auto;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.message {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.5;
  word-wrap: break-word;
}

.message ul,
.message ol {
  padding-left: 1.25em;
}

.message--bot {
  background: var(--slate-100);
  color: var(--slate-900);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message--user {
  background: var(--cyan-500);
  color: var(--slate-900);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.message--error {
  background: var(--slate-100);
  color: var(--slate-700);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.message--typing {
  color: var(--slate-700);
}

.chat-panel__form {
  border-top: 1px solid var(--slate-200);
  padding: 12px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--white);
}

.chat-panel__form input {
  flex: 1;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.chat-panel__form input:focus {
  border-color: var(--cyan-500);
}

.chat-panel__form button {
  background: var(--cyan-500);
  color: var(--slate-900);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  flex-shrink: 0;
}

.chat-panel__form button:hover:not(:disabled) {
  background: var(--cyan-400);
}

.chat-panel__form button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
