/* TorraOs public landing hero v2
   Scoped to the top section so the rest of the landing page stays unchanged. */

:root {
  --hero-v2-navy: #0b2a57;
  --hero-v2-blue: #1683ff;
  --hero-v2-muted: #64758d;
}

header {
  height: 92px;
  background: linear-gradient(180deg, rgba(255,255,255,.97), rgba(255,255,255,.88) 72%, rgba(255,255,255,0));
}

header .nav.wrap {
  max-width: 1510px;
  width: calc(100% - 96px);
}

/* User requested no mascot in the new top design. Keep the TorraOs wordmark. */
header .brand img {
  display: none !important;
}

header .brand {
  gap: 0;
  min-width: 170px;
}

header .brand b {
  color: var(--hero-v2-navy);
  font-size: 27px;
  letter-spacing: -.045em;
  line-height: 1.05;
}

header .brand small {
  margin-top: 5px;
  color: #6d7f99;
  font-size: 10px;
}

header .nav nav {
  gap: 24px;
  font-size: 14px;
}

header .nav nav > a:not(.primary) {
  color: #17375f;
  font-weight: 600;
  padding: 9px 3px;
  position: relative;
}

header .nav nav > a:not(.primary):hover,
header .nav nav > a.is-active {
  color: #087eff;
}

header .nav nav > a.is-active::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: #087eff;
}

header .language {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(200,218,238,.72);
  box-shadow: 0 8px 24px rgba(28,72,120,.06);
}

header .torra-login {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  color: #17375f;
  font-weight: 650;
}

header .primary.small {
  min-height: 52px;
  padding: 12px 24px;
  box-shadow: 0 10px 28px rgba(8,126,255,.18);
}

.hero {
  max-width: none;
  width: 100%;
  min-height: 900px;
  background: #fbfaf6;
  overflow: hidden;
}

.hero .hero-photo {
  position: absolute;
  inset: 0 0 0 auto;
  width: 71%;
  height: 100%;
  overflow: hidden;
}

.hero .hero-photo > img,
.hero .hero-photo > .story-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 55% center;
}

/* Clean readable copy area while letting the lifestyle image flow naturally into it. */
.hero::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg,
      #fbfaf6 0%,
      #fbfaf6 24%,
      rgba(251,250,246,.97) 31%,
      rgba(251,250,246,.72) 40%,
      rgba(251,250,246,.12) 53%,
      rgba(251,250,246,0) 66%);
}

.hero .hero-inner {
  z-index: 2;
  max-width: 1510px;
  width: calc(100% - 96px);
  min-height: 900px;
  padding-top: 205px;
  padding-bottom: 74px;
}

.hero .hero-copy {
  max-width: 520px;
}

.hero .hero-copy .eyebrow {
  margin-bottom: 24px;
  color: #376aa2;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .28em;
}

/* Smaller than the previous oversized hero headline, as requested. */
.hero .hero-copy h1 {
  max-width: 520px;
  color: var(--hero-v2-navy);
  font-size: clamp(48px, 4.05vw, 64px);
  line-height: 1.32;
  letter-spacing: -.045em;
}

.hero .hero-copy .lead {
  margin-top: 26px;
  color: #17375f;
  font-size: 22px;
  font-weight: 500;
  line-height: 1.55;
}

.hero .hero-copy .intro {
  max-width: 465px;
  margin: 14px 0 30px;
  color: var(--hero-v2-muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero .hero-copy .primary {
  min-width: 240px;
  min-height: 56px;
  padding: 14px 28px;
  font-size: 16px;
  box-shadow: 0 14px 32px rgba(8,126,255,.20);
}

.hero .hero-notes {
  top: 145px;
  right: 10px;
  gap: 14px;
}

.hero .note {
  width: 205px;
  min-height: 80px;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(222,233,244,.8);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 16px 44px rgba(32,72,112,.11);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #17375f;
  font-size: 13px;
}

.hero .note svg {
  width: 27px;
  height: 27px;
}

.hero .note b {
  margin-top: 2px;
  color: var(--hero-v2-navy);
  font-size: 14px;
}

.hero .note-1 svg { color: #765bff; }
.hero .note-2 svg { color: #10b981; }

.hero .scroll {
  left: 0;
  bottom: 38px;
  gap: 12px;
  color: #365877;
  font-size: 12px;
}

/* Keep the motion background, but remove the visible video control in this hero design. */
.hero .video-toggle {
  display: none !important;
}

.hero .video-ink {
  right: 36px;
  bottom: 60px;
  max-width: 275px;
  font-size: 16px;
}

/* Decorative mascot elements are not part of the new hero. */
.hero .scroll-mascot,
.hero .hero-mascot,
.hero [data-mascot="true"] {
  display: none !important;
}

@media (max-width: 1100px) {
  header .nav.wrap,
  .hero .hero-inner {
    width: calc(100% - 56px);
  }

  .hero .hero-copy {
    max-width: 455px;
  }

  .hero .hero-copy h1 {
    font-size: 50px;
  }

  .hero .hero-notes {
    right: 0;
  }
}

/* The landing already uses a fixed-width viewport on phones. Keep the same visual composition
   rather than introducing a second mobile layout that can drift from the approved design. */
@media (max-width: 700px) {
  header {
    position: absolute;
    height: 84px;
    background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(255,255,255,.75), rgba(255,255,255,0));
  }

  header .nav.wrap,
  .hero .hero-inner {
    width: calc(100% - 48px);
  }

  header .nav nav > a:not(.primary),
  header .torra-login {
    display: none;
  }

  .hero {
    display: block;
    min-height: 780px;
  }

  .hero .hero-photo {
    position: absolute;
    right: 0;
    width: 72%;
    height: 100%;
  }

  .hero .hero-inner {
    min-height: 780px;
    padding-top: 175px;
    padding-bottom: 65px;
  }

  .hero .hero-copy {
    max-width: 430px;
  }

  .hero .hero-copy h1 {
    font-size: 48px;
  }

  .hero .hero-copy .lead {
    font-size: 19px;
  }

  .hero .hero-notes {
    position: absolute;
    top: 128px;
    right: 0;
    display: grid;
    gap: 10px;
  }

  .hero .note {
    width: 184px;
    min-height: 70px;
    padding: 13px 15px;
    font-size: 11px;
  }

  .hero .video-ink {
    right: 18px;
    bottom: 28px;
    max-width: 240px;
    font-size: 13px;
  }
}
