:root {
  --desktop-art-width: 1440px;
  --container-width: 1200px;
  --page-gutter: clamp(20px, 4vw, 56px);
  --navy-950: #010817;
  --navy-900: #03142d;
  --navy-850: #051b37;
  --white: #f7f8fb;
  --muted: #aab3c2;
  --muted-2: #818da0;
  --red: #f2383c;
  --red-border: rgba(239, 67, 80, 0.72);
  --border: rgba(127, 158, 190, 0.44);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-950);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  color: var(--white);
  background-color: var(--navy-950);
  background-image: url("../img/page-background-1440.webp");
  background-position: center 610px;
  background-repeat: repeat-y;
  background-size: max(var(--desktop-art-width), 100vw) auto;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

.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;
}

.layout-container {
  width: min(calc(100% - (var(--page-gutter) * 2)), var(--container-width));
  margin-inline: auto;
  max-width: 1024px;
}

/* Header background is a real 1440 px image. It is never rendered below
   1440 px in desktop/tablet mode; smaller viewports crop its lateral area. */
.hero-section {
  position: relative;
  /* min-height: 650px; */
  overflow: hidden;
  background-color: #02142f;
  /* background-image: url("../img/bg-new.png"); */
  background-position: 0 120%;
  background-repeat: no-repeat;
  background-size: max(var(--desktop-art-width), 100vw) auto;
  isolation: isolate;
}

.hero-section::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: -1;
  height: 145px;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 12, 29, 0), rgba(0, 12, 29, 0.78) 65%, #000c1d 100%);
}

.hero-section__inner {
  /* min-height: 650px; */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-link {
  margin-top: 54px;
  text-decoration: none;
}

.brand-logo--header {
  width: clamp(245px, 20vw, 300px);
  height: auto;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-top: 60px;
  text-align: center;
}

.hero-title {
  margin: -10px;
  color: var(--white);
  line-height: 1;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.38);
}

.hero-title__primary,
.hero-title__secondary {
  display: block;
}

.hero-title__primary {
  font-size: clamp(48px, 4.35vw, 64px);
  font-weight: 600;
  letter-spacing: -0.045em;
}

.hero-title__secondary {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.22em;
  margin-top: 25px;
  font-size: clamp(46px, 4.2vw, 62px);
  font-weight: 500;
  letter-spacing: -0.045em;
}

.hero-title__secondary strong {
  color: var(--red);
  font-weight: 600;
}

.signal-divider {
  width: min(520px, 58vw);
  height: 68px;
  margin-top: 31px;
  overflow: visible;
}

.signal-divider img,
.footer-signal img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  filter: saturate(1.07);
}

.development-label {
  margin: 50px 0 0;
  color: #b9c5d4;
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.34em;
}

.site-main {
  position: relative;
  z-index: 1;
  margin-top: 4rem;
}

.product-section {
  margin-top: -31px;
}

.product-panel {
  position: relative;
  min-height: 226px;
  padding: 34px 34px 31px;
  overflow: hidden;
  text-align: center;
  border: 1px solid rgba(127, 158, 190, 0.54);
  border-radius: 29px;
  background:
    linear-gradient(180deg, rgba(5, 31, 61, 0.38), rgba(1, 14, 32, 0.50)),
    url("../img/panel-texture.webp") center / cover no-repeat;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.035),
    inset 0 -28px 60px rgba(0, 5, 18, 0.20),
    0 24px 60px rgba(0, 0, 0, 0.15);
}

.product-panel::after,
.launch-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.038), transparent 27%, transparent 78%, rgba(255, 255, 255, 0.018));
}

.smartbooking-logo {
  width: clamp(320px, 35vw, 470px);
  height: 92px;
  margin: 0 auto 15px;
  object-fit: contain;
}

.product-panel__line {
  margin: 0;
  color: #f1f3f7;
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.09em;
}

.product-panel__line--small {
  margin-top: 9px;
  letter-spacing: 0.18em;
}

.features-section {
  margin-top: 64px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(24px, 2.65vw, 40px);
}

.feature-card {
  position: relative;
  min-height: 315px;
  padding: 36px 22px 31px;
  text-align: center;
  border: 1px solid rgba(111, 148, 184, 0.45);
  border-radius: 18px;
  background: rgba(2, 18, 39, 0.18);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.022),
    0 18px 38px rgba(0, 0, 0, 0.07);
  transition:
    transform 260ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
  will-change: transform;
}

.feature-card:hover,
.feature-card:focus-within {
  transform: translateY(-8px);
  border-color: var(--red-border);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.03),
    0 24px 52px rgba(0, 0, 0, 0.18),
    0 0 22px rgba(239, 67, 80, 0.06);
}

.feature-card__icon {
  width: 84px;
  height: 84px;
  margin: 0 auto 25px;
  object-fit: contain;
}

.feature-card h2 {
  margin: 0;
  color: #f4f5f8;
  font-size: clamp(10px, 0.95vw, 13px);
  font-weight: 500;
  line-height: 1.3;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.feature-card__accent {
  display: block;
  width: 43px;
  height: 2px;
  margin: 18px auto 18px;
  background: var(--red);
  box-shadow: 0 0 8px rgba(242, 56, 60, 0.28);
}

.feature-card p {
  margin: 0;
  color: #b1bac8;
  font-size: clamp(11px, 1vw, 14px);
  font-weight: 400;
  line-height: 1.58;
}

.launch-section {
  margin-top: 66px;
}

.launch-panel {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 146px;
  padding: 26px 58px 26px 44px;
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  border: 1px solid rgba(132, 153, 182, 0.50);
  border-radius: 16px;
  background:
    linear-gradient(90deg, rgba(3, 24, 49, 0.78), rgba(6, 25, 51, 0.75) 66%, rgba(57, 16, 42, 0.40)),
    url("../img/cta-glow.webp") right center / 53% 100% no-repeat,
    url("../img/panel-texture.webp") center / cover no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
  transition: border-color 250ms ease, transform 250ms ease, box-shadow 250ms ease;
}

.launch-panel:hover,
.launch-panel:focus-visible {
  transform: translateY(-3px);
  border-color: var(--red-border);
  box-shadow: 0 17px 46px rgba(0, 0, 0, 0.21), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  outline: none;
}

.launch-panel__icon {
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  margin-right: 35px;
}

.launch-panel__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.launch-panel__copy strong {
  margin-bottom: 10px;
  color: #f6f7fa;
  font-size: clamp(15px, 1.3vw, 18px);
  font-weight: 500;
  line-height: 1.25;
}

.launch-panel__copy > span {
  color: #8e9aae;
  font-size: clamp(12px, 1.1vw, 15px);
  font-weight: 300;
  line-height: 1.6;
}

.site-footer {
  padding: 54px 0 42px;
}

.footer-signal {
  width: 100%;
  height: 53px;
  margin-bottom: 21px;
  overflow: hidden;
}

.footer-signal img {
  opacity: 0.76;
  transform: scaleX(1.52);
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1.05fr 1.33fr;
  width: 100%;
  min-height: 112px;
}

.footer-link {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 13px;
  min-width: 0;
  padding: 5px 18px 0;
  color: #abb4c2;
  text-decoration: none;
}

.footer-link--middle::before,
.footer-link--middle::after {
  content: "";
  position: absolute;
  top: 3px;
  width: 1px;
  height: 102px;
  background: rgba(126, 147, 174, 0.28);
}

.footer-link--middle::before { left: 0; }
.footer-link--middle::after { right: 0; }

.footer-link img {
  width: 57px;
  height: 57px;
  object-fit: contain;
}

.footer-link span {
  display: block;
  color: #aeb7c4;
  font-size: clamp(9px, 0.8vw, 11px);
  font-weight: 400;
  line-height: 1.4;
  white-space: nowrap;
  text-align: center;
}

.footer-link:hover span,
.footer-link:focus-visible span,
.footer-link--policies a:hover,
.footer-link--policies a:focus-visible {
  color: #f4f5f8;
}

.footer-link:focus-visible,
.footer-link--policies a:focus-visible {
  outline: 1px solid rgba(242, 56, 60, 0.75);
  outline-offset: 4px;
}

.footer-link--policies a {
  color: inherit;
  text-decoration: none;
}

.footer-link--policies b {
  padding: 0 8px;
  color: #9aa5b5;
  font-weight: 400;
}

.brand-logo--footer {
  width: 232px;
  height: auto;
  margin: 49px auto 0;
}

.copyright {
    margin: 21px 0 0;
    color: #69768a;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
}

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .product-panel.reveal.is-visible,
.js .launch-panel.reveal.is-visible,
.js .feature-card.reveal.is-visible {
  transition:
    opacity 700ms ease,
    transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 260ms ease,
    box-shadow 260ms ease;
}

.js .feature-card.reveal.is-visible:hover,
.js .feature-card.reveal.is-visible:focus-within {
  transform: translateY(-8px);
}

.features .reveal:nth-child(2).is-visible { transition-delay: 80ms; }
.features .reveal:nth-child(3).is-visible { transition-delay: 160ms; }

/* Tablet */
@media (max-width: 991.98px) {
  :root {
    --page-gutter: clamp(24px, 5vw, 44px);
  }

  .hero-section,
  .hero-section__inner {
   /* min-height: 610px; */
  }

  .hero-section {
    background-size: 1440px auto;
  }

  .brand-link {
    margin-top: 48px;
  }

  .hero-copy {
    margin-top: 128px;
  }

  .hero-title__primary {
    font-size: clamp(42px, 6.2vw, 54px);
  }

  .hero-title__secondary {
    font-size: clamp(40px, 6vw, 52px);
  }

  .product-section {
    margin-top: -25px;
  }

  .feature-card {
    min-height: 285px;
    padding-inline: 14px;
  }

  .feature-card__icon {
    width: 74px;
    height: 74px;
  }

  .launch-panel {
    padding-right: 38px;
  }
}

/* Real mobile layout: every horizontal group becomes a vertical stack. */
@media (max-width: 767.98px) {
  :root {
    --page-gutter: 20px;
  }

  body {
    background-position: center 520px;
    background-size: 768px auto;
  }

  .hero-section,
  .hero-section__inner {
    /* min-height: 555px; */
  }

  .hero-section {
    /* background-image: url("../img/hero-background-mobile.webp"); */
    background-size: cover;
    background-position: center top;
  }

  .brand-link {
    margin-top: 38px;
  }

  .brand-logo--header {
    width: min(230px, 70vw);
  }

  .hero-copy {
    margin-top: 126px;
  }

  .hero-title__primary {
    font-size: clamp(34px, 9.5vw, 42px);
    letter-spacing: -0.035em;
  }

  .hero-title__secondary {
    gap: 8px 0.2em;
    margin-top: 19px;
    padding-inline: 4px;
    font-size: clamp(31px, 8.4vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }

  .signal-divider {
    width: min(408px, 105vw);
    height: 53px;
    margin-top: 24px;
  }

  .development-label {
    margin-top: 2px;
    font-size: 10px;
    letter-spacing: 0.30em;
  }

  .product-section {
    margin-top: -17px;
  }

  .product-panel {
    min-height: 0;
    padding: 31px 18px 28px;
    border-radius: 24px;
  }

  .smartbooking-logo {
    width: min(330px, 92%);
    height: 77px;
    margin-bottom: 13px;
  }

  .product-panel__line {
    font-size: 10px;
    line-height: 1.55;
    letter-spacing: 0.07em;
  }

  .product-panel__line--small {
    margin-top: 9px;
    letter-spacing: 0.16em;
  }

  .features-section {
    margin-top: 42px;
  }

  .features {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .feature-card {
    width: 100%;
    min-height: 272px;
    padding: 30px 22px 28px;
    border-radius: 16px;
    background: rgba(2, 18, 39, 0.14);
  }

  .feature-card__icon {
    width: 76px;
    height: 76px;
    margin-bottom: 21px;
  }

  .feature-card h2 {
    font-size: 11px;
  }

  .feature-card p {
    font-size: 12px;
  }

  .launch-section {
    margin-top: 42px;
  }

  .launch-panel {
    flex-direction: column;
    justify-content: center;
    min-height: 230px;
    padding: 28px 25px 30px;
    text-align: center;
    background:
      linear-gradient(180deg, rgba(3, 24, 49, 0.79), rgba(6, 25, 51, 0.75) 68%, rgba(57, 16, 42, 0.39)),
      url("../img/cta-glow.webp") center bottom / 130% 78% no-repeat,
      url("../img/panel-texture.webp") center / cover no-repeat;
  }

  .launch-panel__icon {
    flex-basis: auto;
    width: 75px;
    height: 75px;
    margin: 0 0 19px;
  }

  .launch-panel__copy strong {
    margin-bottom: 9px;
    font-size: 14px;
  }

  .launch-panel__copy > span {
    font-size: 11px;
    line-height: 1.55;
  }

  .launch-panel__copy br {
    display: none;
  }

  .site-footer {
    padding-top: 40px;
  }

  .footer-signal {
    height: 45px;
    margin-bottom: 20px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .footer-link {
    min-height: 126px;
    justify-content: center;
    padding: 18px 12px;
  }

  .footer-link--middle::before,
  .footer-link--middle::after {
    top: 0;
    left: 12%;
    right: 12%;
    width: auto;
    height: 1px;
  }

  .footer-link--middle::before { bottom: auto; }
  .footer-link--middle::after {
    top: auto;
    bottom: 0;
  }

  .footer-link img {
    width: 50px;
    height: 50px;
  }

  .footer-link span {
    font-size: 9px;
    white-space: normal;
  }

  .footer-link--policies span {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 5px 0;
  }

  .brand-logo--footer {
    width: 210px;
    margin-top: 43px;
  }

  .copyright {
    padding-inline: 10px;
    font-size: 8px;
    line-height: 1.5;
  }
}

@media (max-width: 380px) {
  .hero-title__primary {
    font-size: 33px;
  }

  .hero-title__secondary {
    font-size: 29px;
  }

  .development-label {
    font-size: 9px;
  }

  .product-panel__line {
    font-size: 9px;
  }
}

@media (hover: none) {
  .feature-card:hover,
  .feature-card:focus-within,
  .js .feature-card.reveal.is-visible:hover,
  .js .feature-card.reveal.is-visible:focus-within {
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
