/* Sticky header, hero band, and the device mockups the product screenshots sit inside. */

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  z-index: 40;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  transition: box-shadow var(--dur) var(--ease);
}

.site-header.is-scrolled {
  box-shadow: var(--shadow-card);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  height: 100%;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  color: var(--ink-900);
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

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

/* Logotype: the design puts the product word in green and the second word in the accent orange.
   WCAG 1.4.3 exempts logo/brand-name text from the contrast minimum, so the accent is safe here —
   it is never used as body copy. */
.brand span {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  word-spacing: -0.08em;
}

.brand span b {
  color: var(--accent-500);
  font-weight: 800;
}

.brand--footer span {
  color: var(--on-dark);
}

.site-nav {
  display: flex;
  gap: var(--space-1);
  margin-inline: auto;
}

.site-nav a {
  display: block;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-btn);
  color: var(--ink-700);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-nav a:hover {
  background: var(--brand-50);
  color: var(--brand-700);
  text-decoration: none;
}

.site-nav a[aria-current='true'] {
  color: var(--brand-700);
}

.site-header__actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: var(--space-3);
}

.site-header__actions .btn {
  min-height: 42px;
  padding-inline: var(--space-5);
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-700);
  font-size: var(--fs-sm);
  font-weight: 500;
}

.lang .icon {
  width: 17px;
  height: 17px;
  color: var(--ink-500);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  color: var(--ink-900);
  cursor: pointer;
}

.nav-toggle .icon--close {
  display: none;
}

[data-nav-open] .nav-toggle .icon--open {
  display: none;
}

[data-nav-open] .nav-toggle .icon--close {
  display: block;
}

.nav-drawer {
  display: none;
}

/* ---------------------------------------------------------------- hero */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  /* The bottom padding is what the stats card overlaps — it must exceed the pull-up in sections.css. */
  padding-block: 72px 180px;
  background: linear-gradient(180deg, #eef6fc 0%, #f7fbfd 62%, var(--surface-alt) 100%);
}

.hero__bg {
  position: absolute;
  z-index: -2;
  inset: 0 0 0 auto;
  width: 62%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* The design fades the photograph out to the left so the headline sits on clean, light ground. */
.hero::after {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(90deg, #eef6fc 0%, #eef6fc 34%, rgba(238, 246, 252, 0.72) 52%, rgba(238, 246, 252, 0) 78%);
  content: '';
}

.hero__grid {
  display: grid;
  align-items: center;
  gap: var(--space-12);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-5);
  padding: 7px var(--space-4);
  border: 1px solid var(--brand-100);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.8);
  color: var(--brand-700);
  font-size: var(--fs-xs);
  font-weight: 600;
}

.hero__badge .icon {
  width: 16px;
  height: 16px;
}

.hero h1 {
  margin-bottom: var(--space-5);
}

.hero h1 em {
  color: var(--brand-700);
  font-style: normal;
}

.hero__sub {
  max-width: 48ch;
  margin-bottom: var(--space-8);
  color: var(--ink-500);
  font-size: var(--fs-lead);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-4);
}

/* ---------------------------------------------------------------- device mockups */

.hero__devices {
  position: relative;
}

.laptop {
  display: block;
  width: 100%;
}

.laptop__screen {
  overflow: hidden;
  border: 10px solid #16283f;
  border-radius: 16px 16px 6px 6px;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.laptop__screen img {
  display: block;
  width: 100%;
  height: auto;
}

.laptop__base {
  position: relative;
  width: 108%;
  height: 13px;
  margin-left: -4%;
  border-radius: 0 0 12px 12px;
  background: linear-gradient(180deg, #1d3350, #16283f);
}

.laptop__base::after {
  position: absolute;
  top: 0;
  left: 50%;
  width: 92px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 0 0 6px 6px;
  background: rgba(255, 255, 255, 0.16);
  content: '';
}

/* The phone tucks under the laptop's left edge in the design. */
.hero__phone {
  position: absolute;
  bottom: -34px;
  left: -18px;
  width: 27%;
  max-width: 150px;
}

.phone {
  overflow: hidden;
  border: 6px solid #16283f;
  border-radius: 22px;
  background: #16283f;
  box-shadow: var(--shadow-lift);
}

.phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}

/* Floating capability chips stacked on the right of the hero mockup. */
.hero__chips {
  position: absolute;
  top: 6%;
  right: -6px;
  display: grid;
  gap: var(--space-3);
}

.float-chip {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 9px var(--space-4) 9px 9px;
  border-radius: var(--radius-badge);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  font-size: var(--fs-xs);
  font-weight: 600;
  white-space: nowrap;
}

.float-chip .icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.float-chip .icon-badge .icon {
  width: 17px;
  height: 17px;
}

.float-chip--green {
  color: var(--brand-700);
}

.float-chip--orange {
  color: var(--accent-700);
}

.float-chip--blue {
  color: var(--blue-700);
}
