/* Public homepage polish: a consistent, responsive layer over the legacy theme. */
:root {
  --home-bg: #07111f;
  --home-surface: rgba(13, 28, 47, 0.94);
  --home-border: rgba(148, 163, 184, 0.17);
  --home-text: #f8fafc;
  --home-muted: #b9c7d9;
  --home-blue: #38bdf8;
  --home-cyan: #22d3ee;
  --home-coral: #fb7185;
  --home-radius: 18px;
  --home-shadow: 0 24px 64px rgba(1, 8, 20, 0.28);
}

body.landing {
  background: var(--home-bg);
  color: var(--home-muted);
}

body.landing #page-wrapper {
  overflow: clip;
  background:
    radial-gradient(circle at 85% 8%, rgba(14, 165, 233, 0.09), transparent 28rem),
    var(--home-bg);
}

body.landing #header {
  height: 4.5rem;
  padding: 0 clamp(1rem, 3vw, 3rem);
  background: rgba(7, 17, 31, 0.88);
  border-bottom: 1px solid rgba(148, 163, 184, 0.13);
  box-shadow: 0 8px 28px rgba(1, 8, 20, 0.14);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.landing #header #logo a {
  height: 4.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
}

body.landing #header #logo img { height: 2.35rem; }
body.landing #header .brand-text { font-weight: 700; letter-spacing: -0.01em; }

body.landing #nav > ul > li > a {
  font-size: 0.83rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

body.landing #nav > ul > li > a:not(.button) {
  color: #d5dfeb;
}

body.landing #nav > ul > li > a:not(.button):hover {
  color: #ffffff;
}

body.landing .button {
  border-radius: 10px;
  font-weight: 750;
  letter-spacing: 0.025em;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

body.landing .button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(2, 132, 199, 0.2);
}

body.landing .button.primary {
  background: #dc2748;
  box-shadow: 0 10px 24px rgba(190, 24, 55, 0.2);
}

body.landing #banner {
  min-height: auto;
  padding-top: 4.5rem;
  background:
    linear-gradient(105deg, rgba(4, 13, 27, 0.98), rgba(9, 28, 48, 0.92)),
    url("../../images/banner.jpg") center / cover;
}

body.landing #banner .content {
  width: min(1240px, calc(100% - 3rem));
  padding: clamp(4.5rem, 7vw, 7.25rem) 0 clamp(4.5rem, 7vw, 6.75rem);
}

body.landing #banner .content header h2 {
  margin-bottom: 1.1rem;
  font-size: clamp(3.5rem, 7vw, 6.4rem);
  font-weight: 850;
  letter-spacing: -0.065em;
  line-height: 0.86;
  color: #ffffff;
}

body.landing #banner .content header p {
  max-width: 620px;
  margin-bottom: 0;
  color: #d9e7f5;
  font-weight: 450;
}

body.landing .hero-shell {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(2rem, 5vw, 5.5rem);
}

body.landing .hero-primary-actions { margin: 1.7rem 0 2rem; }
body.landing .hero-primary-actions .button { min-height: 3.25rem; padding-inline: 1.55rem; }

body.landing .hero-feature-grid {
  gap: 0;
  border: 1px solid var(--home-border);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(8, 22, 39, 0.86);
  box-shadow: 0 20px 52px rgba(1, 8, 20, 0.24);
}

body.landing .hero-feature-grid .human-chat-spotlight,
body.landing .hero-feature-grid .cloud-spotlight,
body.landing .hero-feature-grid .paas-spotlight {
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.landing .hero-feature-grid .human-chat-spotlight {
  border-bottom: 1px solid var(--home-border);
  background: rgba(255, 255, 255, 0.018);
}

body.landing .hero-feature-grid .cloud-spotlight {
  border-right: 1px solid var(--home-border);
  background: transparent;
}

body.landing .cloud-spotlight__kicker,
body.landing .paas-spotlight__kicker {
  color: #7dd3fc;
  letter-spacing: 0.08em;
}

body.landing .hero-media { align-self: center; }

body.landing .video-highlight {
  padding: 0.7rem;
  border: 1px solid rgba(186, 230, 253, 0.22);
  border-radius: 18px;
  background: rgba(2, 10, 22, 0.75);
  box-shadow: 0 30px 72px rgba(1, 8, 20, 0.48);
}

body.landing .video-highlight__title { padding: 0.25rem 0.3rem 0.45rem; }
body.landing .video-highlight__frame { border-radius: 15px; }
body.landing .hero-media__hint { color: #9fb2c8; }
body.landing .hero-media > .image { opacity: 0.88; }

body.landing .spotlight { min-height: 650px; }
body.landing .spotlight .image.main:after { background: linear-gradient(90deg, rgba(3, 11, 22, 0.3), rgba(3, 11, 22, 0.68)); }
body.landing .spotlight.left .image.main:after { background: linear-gradient(-90deg, rgba(3, 11, 22, 0.3), rgba(3, 11, 22, 0.68)); }

body.landing #one .content,
body.landing #two .content,
body.landing #three .content {
  width: min(39rem, 46%);
  padding: clamp(2rem, 4vw, 4rem);
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius);
  background: rgba(8, 22, 39, 0.88);
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

body.landing #one .content { margin: 0 auto 2.5rem; width: min(940px, calc(100% - 3rem)); }

body.landing .wrapper { padding: clamp(4rem, 7vw, 7rem) 0; }
body.landing .wrapper > .container { width: min(1160px, calc(100% - 3rem)); }

body.landing .wrapper header.major { margin-bottom: clamp(2rem, 4vw, 3.5rem); }
body.landing .wrapper header.major:after {
  width: 3.5rem;
  height: 2px;
  background: #38bdf8;
}
body.landing .wrapper header.major h2,
body.landing .spotlight .content h2 {
  font-size: clamp(1.9rem, 3.4vw, 3rem);
  line-height: 1.14;
  letter-spacing: -0.035em;
}

body.landing .wrapper header.major p { max-width: 760px; margin-inline: auto; color: var(--home-muted) !important; }

body.landing #bi-compare,
body.landing #carousel,
body.landing #clients,
body.landing #four,
body.landing #five {
  background: transparent;
  border-top: 1px solid rgba(148, 163, 184, 0.09);
}

body.landing .bi-compare-wrap,
body.landing .bi-strength-card,
body.landing #five .demo-form-shell {
  border-color: var(--home-border);
  background: var(--home-surface);
  box-shadow: var(--home-shadow);
}

body.landing .bi-compare-wrap { border-radius: 18px; padding: 0.75rem; }
body.landing .bi-compare-table th:first-child { border-radius: 10px 0 0 10px; }
body.landing .bi-compare-table th:last-child { border-radius: 0 10px 10px 0; }

body.landing .bi-strength-grid { gap: 1rem; }
body.landing .bi-strength-card { padding: 1.4rem; border-radius: 14px; box-shadow: none; }
body.landing .bi-strength-card h4 { color: var(--home-text) !important; }

body.landing .audela-carousel .slides {
  border: 1px solid var(--home-border);
  border-radius: var(--home-radius);
  box-shadow: var(--home-shadow);
}

body.landing .audela-carousel .caption {
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  max-width: 700px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  background: rgba(4, 14, 28, 0.84);
  backdrop-filter: blur(12px);
}

body.landing #clients ul.alt {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  max-width: 960px;
  margin-inline: auto;
}

body.landing #clients ul.alt li {
  padding: 1rem 1.15rem;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: var(--home-surface);
}

body.landing #four .box.alt .row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 1rem;
  margin: 0;
}
body.landing #four .box.alt section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: auto !important;
  min-height: 18rem;
  margin: 0 !important;
  height: 100%;
  padding: 1.5rem 1.25rem;
  border: 1px solid var(--home-border);
  border-radius: 14px;
  background: var(--home-surface);
  transition: border-color 180ms ease, background-color 180ms ease;
}

body.landing #four .box.alt section:hover { border-color: rgba(56, 189, 248, 0.4); background: rgba(17, 36, 59, 0.98); }
body.landing #four .icon.major {
  flex: 0 0 auto;
  margin-bottom: 1.25rem;
}
body.landing #four .box.alt section p {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin: 0;
}

body.landing #five .demo-form-shell { padding: clamp(1.25rem, 3vw, 2rem); border-radius: var(--home-radius); }

@media screen and (max-width: 1080px) {
  body.landing .hero-shell { grid-template-columns: 1fr; }
  body.landing .hero-media { max-width: 820px; margin: 0 auto; }
  body.landing .spotlight { min-height: 600px; }
}

@media screen and (max-width: 980px) {
  body.landing #header { height: 3.75rem; }
  body.landing #header #logo a { height: 3.75rem; }
  body.landing #banner { padding-top: 3.75rem; }
  body.landing #one .content,
  body.landing #two .content,
  body.landing #three .content { width: min(720px, calc(100% - 3rem)); }
  body.landing #two .content,
  body.landing #three .content { margin: 0 auto 2.5rem; }
  body.landing #four .box.alt .row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media screen and (max-width: 736px) {
  body.landing #banner .content,
  body.landing .wrapper > .container { width: min(100% - 2rem, 720px); }
  body.landing #banner .content { padding: 3.25rem 0 4rem; }
  body.landing #banner .content header h2 { font-size: clamp(3rem, 18vw, 4.6rem); }
  body.landing #banner .content header p { font-size: 1.02rem; line-height: 1.55; }
  body.landing .hero-primary-actions,
  body.landing .hero-primary-actions li,
  body.landing .hero-primary-actions .button { width: 100%; }
  body.landing .hero-feature-grid .human-chat-spotlight,
  body.landing .hero-feature-grid .cloud-spotlight,
  body.landing .hero-feature-grid .paas-spotlight { padding: 1rem; }
  body.landing .hero-feature-grid .cloud-spotlight { border-right: 0; border-bottom: 1px solid var(--home-border); }
  body.landing .video-highlight { padding: 0.45rem; border-radius: 16px; }
  body.landing .video-highlight__frame { border-radius: 12px; }
  body.landing .hero-media > .image { width: 7rem !important; height: 7rem !important; }
  body.landing .spotlight { min-height: auto; padding: 3rem 0; }
  body.landing .spotlight .image.main { position: absolute; opacity: 0.3; }
  body.landing #one .content,
  body.landing #two .content,
  body.landing #three .content {
    width: calc(100% - 2rem);
    margin: 0 auto;
    padding: 1.4rem;
    border-radius: 18px;
  }
  body.landing .wrapper { padding: 3.5rem 0; }
  body.landing .wrapper header.major h2,
  body.landing .spotlight .content h2 { font-size: 1.8rem; }
  body.landing #clients ul.alt { grid-template-columns: 1fr; gap: 0.7rem; }
  body.landing .bi-strength-grid { grid-template-columns: 1fr; }
  body.landing .audela-carousel .caption {
    position: static;
    max-width: none;
    border: 0;
    border-radius: 0;
    background: #0b1b2e;
  }
  body.landing #four .box.alt section { padding: 1.25rem 1rem; }
  body.landing #four .box.alt .row { grid-template-columns: 1fr; }
  body.landing #four .box.alt section { min-height: 15rem; }
  body.landing .discover-modal__dialog { width: calc(100% - 1rem); max-height: calc(100vh - 1rem); }
}

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