:root {
  --primary: #0f1f2e;
  --primary-light: #1a3044;
  --primary-dark: #080f18;
  --primary-rgb: 15, 31, 46;
  --accent: #0e9aa7;
  --accent-light: #12b0be;
  --accent-dark: #0b8290;
  --accent-rgb: 14, 154, 167;
  --accent-gradient: linear-gradient(135deg, var(--accent), var(--accent-light));
  --warm-white: #f8f9fa;
  --off-white: #f0f4f7;
  --gray: #5a6472;
  --gray-light: #dce6ee;
  --gray-dark: #1e2a35;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 8px 28px rgba(0, 0, 0, 0.13);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.2);
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --font-display: 'Barlow', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--gray-dark);
  background: var(--off-white);
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(var(--primary-rgb), 0.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  color: var(--warm-white);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-md);
  background: rgba(var(--accent-rgb), 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-light);
}

.brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.05rem;
}

.brand span {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.64);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.95rem;
}

.header-links a { color: rgba(255, 255, 255, 0.82); }
.header-links a:hover { color: var(--warm-white); }

.hero {
  background:
    linear-gradient(120deg, rgba(8, 15, 24, 0.96), rgba(15, 31, 46, 0.88)),
    radial-gradient(circle at top right, rgba(var(--accent-rgb), 0.14), transparent 32%);
  color: var(--warm-white);
  padding: 4.5rem 0 3.5rem;
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.9rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  color: var(--accent-light);
  text-transform: uppercase;
}

h1, h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.05;
}

.hero-copy p {
  margin: 0 0 1.35rem;
  max-width: 42rem;
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.8);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.hero-points span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  font-size: 0.9rem;
}

.hero-media {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-media img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.hero-media figcaption {
  padding: 0.9rem 1rem 1rem;
  font-size: 0.92rem;
  color: rgba(255, 255, 255, 0.76);
}

.content-shell {
  padding: 2.2rem 0 5rem;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.panel,
.contact-box {
  background: var(--warm-white);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(15, 31, 46, 0.06);
}

.panel {
  padding: 2rem;
  display: grid;
  gap: 2rem;
}

.section-block { display: grid; gap: 1rem; }

.section-block h2 {
  margin: 0;
  font-size: 1.55rem;
  color: var(--primary);
}

.section-block h3 {
  margin: 0;
  font-size: 1.1rem;
  color: var(--primary);
}

.section-block p,
.section-block li {
  margin: 0;
  color: var(--gray);
  line-height: 1.8;
  font-size: 1rem;
}

.section-block ul {
  margin: 0;
  padding-left: 1.15rem;
  display: grid;
  gap: 0.65rem;
}

.visual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.visual-card {
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--off-white);
  border: 1px solid rgba(15, 31, 46, 0.06);
}

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

.visual-card figcaption {
  padding: 0.85rem 0.95rem 1rem;
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--gray);
}

.include-grid,
.faq-grid,
.related-grid {
  display: grid;
  gap: 1rem;
}

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

.include-card,
.faq-item,
.related-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(15, 31, 46, 0.08);
  background: var(--off-white);
}

.include-card,
.faq-item {
  padding: 1.1rem 1rem;
}

.include-card p,
.faq-item p { font-size: 0.96rem; }

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

.related-card {
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

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

.related-card-body {
  padding: 1rem;
  display: grid;
  gap: 0.55rem;
}

.related-card-body h3 { font-size: 1.05rem; }
.related-card-body p { font-size: 0.95rem; line-height: 1.65; color: var(--gray); }
.related-card-body span {
  font-weight: 700;
  color: var(--accent-dark);
}

.contact-box {
  padding: 1.5rem;
  position: sticky;
  top: 5.75rem;
}

.contact-box h2 {
  margin: 0;
  color: var(--primary);
  font-size: 1.35rem;
}

.contact-box p {
  color: var(--gray);
  line-height: 1.75;
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin: 1rem 0 0;
}

.contact-item {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  color: var(--gray);
  line-height: 1.65;
}

.contact-item svg {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

.cta-row {
  display: flex;
  gap: 0.85rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.btn-primary,
.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  cursor: pointer;
}

.btn-primary {
  background: var(--accent-gradient);
  color: var(--warm-white);
  box-shadow: 0 8px 30px rgba(var(--accent-rgb), 0.3);
}

.btn-secondary {
  border: 2px solid var(--accent);
  color: var(--accent);
  background: transparent;
}

.site-footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: 3rem 0 5rem;
  border-top: 3px solid var(--accent);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 1.5rem;
}

.footer-brand {
  display: grid;
  gap: 1rem;
}

.footer-brand .brand { color: var(--warm-white); }
.footer-brand p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}

.footer-col h4 {
  margin: 0 0 0.85rem;
  color: var(--warm-white);
  font-family: var(--font-display);
  font-size: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.82);
}

.footer-col a:hover,
.footer-bottom a:hover {
  color: var(--warm-white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p,
.footer-bottom a {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
}

.chat-dock {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 300;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-preview {
  background: rgba(var(--primary-rgb), 0.94);
  color: var(--warm-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow-lg);
}

.chat-preview strong {
  display: block;
  font-size: 0.92rem;
}

.chat-fab {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 50%;
  background: var(--accent-gradient);
  color: var(--warm-white);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

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

.chat-widget {
  position: fixed;
  right: 1rem;
  bottom: 5.75rem;
  width: min(92vw, 360px);
  background: var(--warm-white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 310;
}

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

.chat-head,
.chat-input-row { padding: 0.9rem 1rem; }

.chat-head {
  background: var(--primary);
  color: var(--warm-white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.chat-head-info {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.chat-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-head strong {
  display: block;
  font-family: var(--font-display);
}

.chat-head span {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

.chat-close-btn {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.chat-messages {
  max-height: 300px;
  overflow-y: auto;
  padding: 1rem;
  background: var(--off-white);
  display: grid;
  gap: 0.75rem;
}

.chat-msg {
  max-width: 88%;
  padding: 0.8rem 0.9rem;
  border-radius: var(--radius-md);
  font-size: 0.96rem;
  line-height: 1.55;
  box-shadow: var(--shadow-sm);
}

.chat-msg.assistant {
  background: var(--warm-white);
  color: var(--gray-dark);
}

.chat-msg.user {
  margin-left: auto;
  background: var(--accent);
  color: var(--warm-white);
}

.chat-input-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  background: var(--warm-white);
  border-top: 1px solid var(--gray-light);
}

.chat-input-row input {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--gray-light);
  border-radius: var(--radius-md);
  font-size: 1rem;
}

.chat-input-row button {
  border: 0;
  border-radius: var(--radius-md);
  background: var(--accent-gradient);
  color: var(--warm-white);
  width: 48px;
  cursor: pointer;
}

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

.mobile-toolbar {
  display: none;
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 290;
  padding: 0.8rem 1rem calc(0.8rem + env(safe-area-inset-bottom));
  background: rgba(var(--primary-rgb), 0.96);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  gap: 0.75rem;
}

.toolbar-btn {
  flex: 1;
  min-height: 48px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
  color: var(--warm-white);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-weight: 700;
}

.toolbar-btn.primary {
  background: var(--accent-gradient);
  border-color: transparent;
}

.typing-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 4px;
  border-radius: 50%;
  background: var(--gray);
  animation: typing-bounce 1.2s infinite ease-in-out;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; margin-right: 0; }

@keyframes typing-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.45; }
  40% { transform: translateY(-4px); opacity: 1; }
}

@media (max-width: 1024px) {
  .hero-inner,
  .content-grid,
  .related-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .contact-box { position: static; }
}

@media (max-width: 768px) {
  .hero { padding: 3.8rem 0 3rem; }
  .panel,
  .contact-box { padding: 1.35rem; }
  .visual-grid,
  .include-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .header-inner,
  .footer-bottom {
    align-items: flex-start;
  }

  .header-links {
    justify-content: flex-end;
  }

  .chat-input-row input { font-size: 16px; }
  .chat-dock { display: none; }
  .mobile-toolbar { display: flex; }
  .chat-widget {
    right: 0.75rem;
    bottom: 5.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
