:root {
  color-scheme: dark;
  --canvas: #000000;
  --ink: #f5f5f0;
  --line: rgba(255, 255, 255, 0.12);
  --soft: rgba(255, 255, 255, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: "Segoe UI", Arial, Helvetica, sans-serif;
}

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

.video-shell {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) brightness(0.82);
}

.video-overlay {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.12), transparent 26%),
    linear-gradient(180deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0.52));
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  padding: 1.25rem 0 0;
}

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

.nav-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 1.5rem;
}

.brand-link {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 0.8rem !important;
  width: max-content !important;
  margin: 0 !important;
}

.brand-mark {
  width: 3.4rem;
  height: auto;
}

.brand-wordmark {
  width: 12rem;
  height: auto;
}

.site-nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.82);
}

.site-nav a {
  color: inherit;
  transition: color 0.2s ease;
}

.site-nav a:hover {
  color: #fff;
}

.mobile-nav-btn {
  display: none;
}


.page-shell {
  position: relative;
  z-index: 5;
  padding-bottom: 0;
}

.home-shell {
  height: 100vh;
  overflow: hidden;
  padding-bottom: 0;
  position: relative;
}

body:has(.home-shell) {
  overflow: hidden;
}


.snap-section {
  scroll-snap-align: none;
  scroll-snap-stop: normal;
}

.hero-section {
  flex: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 5.5rem 0 1rem;
  position: relative;
  isolation: isolate;
  overflow-y: auto;
}

.hero-section > .container,
.content-section > .container {
  margin-top: auto;
  margin-bottom: auto;
}

.hero-copy h1,
.section-heading h1,
.section-heading h2 {
  margin: 0;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  letter-spacing: 0.03em;
  line-height: 0.9;
  text-transform: uppercase;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-copy h1 {
  font-size: clamp(4rem, 11vw, 9rem);
}

.lead,
.section-heading p,
.panel p,
.contact-row,
.social-card span {
  color: var(--soft);
  line-height: 1.8;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.8rem;
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.75);
}

.hero-actions,
.contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-weight: 600;
}

.button-solid {
  background: #fff;
  color: #000;
}

.button-outline {
  background: transparent;
  color: #fff;
}

.text-link {
  align-self: center;
  font-weight: 600;
}

.content-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 5.5rem 0 2rem;
  overflow-y: auto;
}

.has-video-bg,
.has-image-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.section-video,
.section-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6) grayscale(0.3);
}

.video-right .section-video {
  object-position: 100% center;
}

.chat-image-right {
  position: relative;
  overflow: hidden;
}

.chat-image-right .container {
  position: relative;
  z-index: 1;
}

.chat-image-right .chat-image {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: min(40vw, 520px);
  max-height: 80%;
  height: auto;
  z-index: 0;
  opacity: 0.9;
}

.section-heading {
  max-width: 54rem;
  margin-bottom: 1.5rem;
}

.align-right .section-heading {
  margin-left: auto;
  text-align: right;
}

.align-right .container {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.align-right .contact-row {
  justify-content: flex-end;
}

.section-heading h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.section-heading h2 {
  font-size: clamp(2.5rem, 7vw, 5rem);
}

.card-grid {
  display: grid;
  gap: 1.25rem;
}

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

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

.panel {
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
  padding: 1.5rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
}

.panel:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.3);
}

.panel h3 {
  margin: 0 0 0.9rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.panel-step {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.step-index,
.metric-card strong {
  display: block;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: 2.5rem;
  color: rgba(255, 255, 255, 0.4);
}

.metric-card strong {
  font-size: 3rem;
  color: #fff;
}

.social-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* ── Chat Widget ── */
.chat-widget {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 50;
}

.chat-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  min-height: 3.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(20, 20, 20, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #fff;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.chat-trigger:hover {
  transform: translateY(-2px) scale(1.02);
  background: rgba(30, 30, 30, 0.95);
  border-color: rgba(255, 255, 255, 0.3);
}

.chat-window {
  position: absolute;
  bottom: 0;
  right: 0;
  width: min(24rem, calc(100vw - 3rem));
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  
  /* Animation states */
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
}

.chat-widget.is-open .chat-window {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.chat-widget.is-open .chat-trigger {
  transform: scale(0.9);
  opacity: 0;
  pointer-events: none;
}

.chat-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-title {
  margin: 0 0 0.2rem;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #a5b4fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.chat-subtitle {
  margin: 0;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.chat-close {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0;
  line-height: 1;
  transition: color 0.2s;
}

.chat-close:hover {
  color: #fff;
}

.chat-thread {
  padding: 1.5rem;
  max-height: 20rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.chat-bubble {
  max-width: 85%;
  padding: 0.85rem 1rem;
  border-radius: 1rem;
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-bubble-ai {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.85);
  border-bottom-left-radius: 0.25rem;
}

.chat-bubble-user {
  margin-left: auto;
  background: #a5b4fc;
  color: #000;
  font-weight: 500;
  border-bottom-right-radius: 0.25rem;
}

.chat-input-area {
  padding: 1rem 1.5rem;
  display: flex;
  gap: 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.chat-input-area input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.95rem;
}

.chat-input-area input::placeholder {
  color: rgba(255, 255, 255, 0.3);
}

.chat-send {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 50%;
  border: none;
  background: #fff;
  color: #000;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s;
}

.chat-send:hover {
  transform: scale(1.05);
  background: #a5b4fc;
}

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

/* ── Slideshow ── */
.home-shell .slideshow {
  position: relative;
  width: 100%;
  height: 100vh;
  isolation: isolate;
}

.slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  visibility: hidden;
  opacity: 0;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.slide.active {
  z-index: 2;
  visibility: visible;
  opacity: 1;
}

@keyframes slideUpFade {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

.slide .eyebrow,
.slide .section-heading h2,
.slide .section-heading h1,
.slide .section-heading p,
.slide .hero-copy h1,
.slide .hero-copy p,
.slide .hero-actions,
.slide .card-grid .panel,
.slide .social-card,
.slide .contact-row {
  opacity: 0;
}

.slide.active .eyebrow,
.slide.active .section-heading h2,
.slide.active .section-heading h1,
.slide.active .section-heading p,
.slide.active .hero-copy h1,
.slide.active .hero-copy p,
.slide.active .hero-actions {
  animation: slideUpFade 0.6s ease both;
}

.slide.active .section-heading h2,
.slide.active .hero-copy h1 { animation-delay: 0.1s; }
.slide.active .section-heading p,
.slide.active .hero-copy p { animation-delay: 0.2s; }
.slide.active .hero-actions { animation-delay: 0.3s; }

.slide.active .card-grid .panel,
.slide.active .social-card,
.slide.active .contact-row {
  animation: slideUpFade 0.6s ease both;
}

.slide.active .card-grid .panel:nth-child(1), .slide.active .social-card:nth-child(1) { animation-delay: 0.3s; }
.slide.active .card-grid .panel:nth-child(2), .slide.active .social-card:nth-child(2) { animation-delay: 0.4s; }
.slide.active .card-grid .panel:nth-child(3), .slide.active .social-card:nth-child(3) { animation-delay: 0.5s; }
.slide.active .card-grid .panel:nth-child(4), .slide.active .social-card:nth-child(4) { animation-delay: 0.6s; }
.slide.active .contact-row { animation-delay: 0.4s; }



.slide-dots {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 30;
  display: flex;
  gap: 0.6rem;
}

.slide-dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: transparent;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, border-color 0.3s ease;
}

.slide-dot.active {
  background: #fff;
  border-color: #fff;
}

.slide-dot:hover {
  background: rgba(255, 255, 255, 0.45);
}

.inner-page {
  padding-top: 1rem;
}

/* ── Responsive: Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  .mobile-nav-btn {
    display: none !important;
  }

  .site-nav {
    display: none !important;
  }

  .nav-row {
    justify-content: flex-start;
  }

  .brand-mark { width: 2.6rem; }
  .brand-wordmark { width: 9rem; }

  .hero-section {
    padding: 6rem 0 2rem;
    justify-content: flex-start !important;
  }

  .hero-copy {
    text-align: center;
    margin-top: 1rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.5rem, 10vw, 4.5rem);
  }

  .hero-copy .lead {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .hero-actions {
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
  }

  .hero-actions .button {
    min-height: 2.4rem;
    padding: 0 0.9rem;
    font-size: 0.85rem;
  }

  .content-section {
    padding: 6rem 0 2rem;
    justify-content: flex-start !important;
  }

  .section-heading {
    margin-bottom: 1rem;
    text-align: center;
  }

  .section-heading h2 {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .section-heading p {
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 auto;
    max-width: 90%;
  }

  .card-grid-two,
  .card-grid-three {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .panel {
    padding: 1rem;
    border-radius: 1rem;
  }

  .panel h3 {
    font-size: 1.25rem;
    margin-bottom: 0.4rem;
  }

  .panel p {
    font-size: 0.85rem;
    line-height: 1.4;
    margin: 0;
  }

  .contact-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .contact-row .button {
    width: 100%;
    text-align: center;
  }

  .chat-image-right .chat-image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 60%;
    max-width: 280px;
    max-height: 180px;
    margin: 0 auto 1.5rem;
    display: block;
  }

  .chat-image-right .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .slide-dots { bottom: 1.5rem; }
  .chatbot-shell { width: min(20rem, calc(100% - 2rem)); }

  .inner-page {
    min-height: 100vh;
    min-height: 100dvh;
    padding-bottom: 5rem;
  }

  .inner-page .content-section {
    justify-content: flex-start;
    padding-top: 1.5rem;
  }
}

/* ── Responsive: Phone (≤ 480px) ── */
@media (max-width: 480px) {
  .container {
    width: calc(100% - 1.5rem);
  }

  .site-header {
    padding: 0.8rem 0 0;
  }

  .brand-mark { width: 2.8rem; }
  .brand-wordmark { width: 9rem; margin-left: -0.8rem !important; }

  .hero-section {
    padding: 5rem 0 1.5rem;
    justify-content: flex-start !important;
  }

  .hero-copy h1 {
    font-size: clamp(2rem, 11vw, 3.5rem);
  }

  .hero-copy .lead {
    font-size: 0.88rem;
  }

  .eyebrow {
    font-size: 0.65rem;
    padding: 0.3rem 0.65rem;
  }

  .hero-actions .button {
    min-height: 2.4rem;
    padding: 0 0.85rem;
    font-size: 0.82rem;
  }

  .section-heading h2 {
    font-size: clamp(1.5rem, 8vw, 2.5rem);
  }

  .section-heading p {
    font-size: 0.85rem;
  }

  .panel {
    padding: 1rem;
    border-radius: 1rem;
  }

  .panel h3 {
    font-size: 1.25rem;
  }

  .panel p {
    font-size: 0.84rem;
  }

  .chat-image-right .chat-image {
    position: relative;
    right: auto;
    top: auto;
    transform: none;
    width: 60%;
    max-width: 220px;
    margin: 0 auto 1.5rem;
    display: block;
  }

  .slide-dots { bottom: 1rem; gap: 0.5rem; }
  .slide-dot { width: 0.55rem; height: 0.55rem; }
  .chatbot-shell { width: min(18rem, calc(100% - 1.5rem)); }
}

/* ── Responsive: Small phone (≤ 375px) ── */
@media (max-width: 375px) {
  .hero-copy h1 {
    font-size: clamp(1.8rem, 10vw, 3rem);
  }

  .hero-copy .lead {
    font-size: 0.82rem;
  }

  .section-heading h2 {
    font-size: clamp(1.3rem, 7vw, 2rem);
  }

  .panel h3 {
    font-size: 1.1rem;
  }

  .button {
    min-height: 2.2rem;
    padding: 0 0.8rem;
    font-size: 0.8rem;
  }
}
