@import url("https://fonts.googleapis.com/css2?family=Baloo+2:wght@700;800&family=Exo+2:wght@300;400;500;600;700&family=Fredoka:wght@600;700&family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@500;600&display=swap");

/* RESET */
* {
  box-sizing: border-box;
}

html,
body {
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #050608;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
}

body {
  min-width: 320px;
}

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

/* VARIABLES */
:root {
  --nav-height: 88px;
  --cyan: #00f5ff;
  --cream: #fff2dc;
  --brick: #b33a22;
  --meter-yellow: #f6cf18;
  --meter-shadow: rgba(0, 0, 0, 0.58);
  --title-row: clamp(8.2rem, 9.8vw, 10rem);
  --copy-row: 2rem;
  --button-row: 64px;
}

/* NAVBAR */
.site-navbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  width: auto;
  pointer-events: none;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 34px;
  height: 88px;
  padding: 0 22px 0 20px;
  background:
    radial-gradient(circle at 50% 15%, rgba(110, 180, 255, 0.16), transparent 34%),
    linear-gradient(90deg, #06111d 0%, #0a1d31 22%, #12304d 50%, #0e2238 78%, #07131f 100%);
  border: 1px solid rgba(110, 180, 255, 0.18);
  border-top: 0;
  border-radius: 0 0 28px 28px;
  box-shadow:
    0 14px 35px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  pointer-events: auto;
}

.nav-logo {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  height: 62px;
  text-decoration: none;
}

.nav-logo img {
  display: block;
  width: auto;
  max-width: 280px;
  height: 52px;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.2));
  object-fit: contain;
}

/* HERO LAYOUT */
.hero {
  position: relative;
  display: grid;
  grid-template-columns: 50vw 50vw;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  border-top-left-radius: 34px;
  border-top-right-radius: 34px;
  isolation: isolate;
}

.panel {
  position: relative;
  min-width: 0;
  height: 100vh;
  overflow: hidden;
}

.panel-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  transform: scale(1.006);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1), filter 900ms ease;
  will-change: transform;
}

.panel::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
}

.panel:hover .panel-bg,
.panel:focus-within .panel-bg,
.hero.left-active .panel-left .panel-bg,
.hero.right-active .panel-right .panel-bg {
  transform: scale(1.038);
}

.hero-content {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 5;
  display: grid;
  grid-template-rows: var(--title-row) var(--copy-row) var(--button-row);
  row-gap: 1.18rem;
  align-items: start;
  width: min(520px, 38vw);
  transform: translate(-50%, -42%);
  pointer-events: auto;
}

.hero-content h1,
.hero-content p {
  margin: 0;
}

.hero-content h1 {
  align-self: end;
  text-wrap: balance;
}

.hero-content p {
  align-self: center;
  min-width: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: clamp(1rem, 1.33vw, 1.52rem);
  line-height: 1.2;
  white-space: nowrap;
  text-shadow: 0 7px 18px rgba(0, 0, 0, 0.45);
}

/* SOLUTIONS PANEL */
.panel-left .panel-bg {
  background-image: url("./assets/images/solutions-bg.png");
  background-position: center;
  filter: saturate(0.98) contrast(1.04) brightness(0.92);
}

.panel-left::before {
  display: none;
}

.panel-left::after {
  background:
    radial-gradient(ellipse at 50% 52%, rgba(0, 0, 0, 0.2), transparent 34%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 14, 20, 0.48), rgba(0, 0, 0, 0.22));
}

.left-content h1 {
  color: #f8fbff;
  font-family: "Exo 2", sans-serif;
  font-size: clamp(3.25rem, 4.5vw, 5.15rem);
  font-weight: 300;
  line-height: 1.1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow:
    0 0 1px rgba(255, 255, 255, 0.8),
    0 0 22px rgba(0, 214, 255, 0.12),
    0 14px 34px rgba(0, 0, 0, 0.52);
}

.left-content p {
  font-family: "Inter", Arial, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* DESIGN PANEL */
.panel-right .panel-bg {
  background-image: url("./assets/images/design-bg.png");
  background-position: center;
  filter: saturate(1.04) contrast(1.01) brightness(1.01);
}

.panel-right::before {
  display: none;
}

.panel-right::after {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.12));
}

.right-content h1 {
  color: var(--cream);
  font-family: "Baloo 2", "Fredoka", "Cooper Black", "Arial Rounded MT Bold", sans-serif;
  font-size: clamp(4.6rem, 6.55vw, 6.9rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-shadow: 0 8px 28px rgba(49, 20, 0, 0.28);
}

.right-content h1 span {
  display: inline-block;
  letter-spacing: -0.04em;
}

.right-content p {
  color: #fff0df;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(1.05rem, 1.42vw, 1.6rem);
  font-weight: 500;
  letter-spacing: 0;
}

/* MEASURE DIVIDER */
.measure-divider {
  position: fixed;
  top: 0;
  left: 50%;
  width: 22px;
  height: 100vh;
  transform: translateX(-50%);
  z-index: 40;
  background-image: url("./assets/images/measure-divider.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: 100% 100%;
  box-shadow:
    0 0 14px rgba(0, 0, 0, 0.65),
    2px 0 5px rgba(0, 0, 0, 0.45),
    -2px 0 5px rgba(0, 0, 0, 0.45);
  pointer-events: none;
}

/* BUTTONS */
.btn {
  align-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 260px;
  height: 64px;
  padding: 0 28px;
  border: 1.5px solid currentColor;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.28);
  transition:
    transform 180ms ease,
    color 180ms ease,
    background-color 180ms ease,
    box-shadow 180ms ease,
    border-color 180ms ease;
}

.btn span[aria-hidden="true"] {
  display: inline-block;
  font-size: 1.55em;
  line-height: 0;
  transform: translateY(-1px);
  transition: transform 180ms ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.btn:hover span[aria-hidden="true"],
.btn:focus-visible span[aria-hidden="true"] {
  transform: translate(0.35rem, -1px);
}

.btn-solutions {
  color: var(--cyan);
  background: rgba(0, 20, 25, 0.25);
  border-color: var(--cyan);
  box-shadow:
    0 0 0 1px rgba(0, 242, 255, 0.18),
    0 12px 34px rgba(0, 0, 0, 0.42),
    inset 0 0 18px rgba(0, 242, 255, 0.03);
}

.btn-solutions:hover,
.btn-solutions:focus-visible {
  color: #041417;
  background: var(--cyan);
  border-color: var(--cyan);
  box-shadow:
    0 0 22px rgba(0, 242, 255, 0.34),
    0 16px 38px rgba(0, 0, 0, 0.38);
}

.btn-design {
  color: var(--brick);
  background: rgba(255, 244, 225, 0.92);
  border-color: var(--brick);
  box-shadow:
    0 12px 34px rgba(63, 21, 0, 0.2),
    inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.btn-design:hover,
.btn-design:focus-visible {
  color: #fff4e3;
  background: var(--brick);
  border-color: var(--brick);
  box-shadow:
    0 13px 34px rgba(111, 23, 9, 0.32),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* LANGUAGE */
/* Language copy is handled in script.js. The current homepage navbar uses only the NOVOWIT logo. */

/* RESPONSIVE */
@media (max-width: 1180px) {
  :root {
    --title-row: clamp(7.6rem, 10vw, 9rem);
  }

  .left-content h1 {
    font-size: clamp(3rem, 4.45vw, 4.25rem);
  }

  .right-content h1 {
    font-size: clamp(3.85rem, 6.7vw, 5.6rem);
  }

  .hero-content p {
    font-size: clamp(0.88rem, 1.4vw, 1.1rem);
  }
}

@media (max-width: 700px) {
  .site-navbar {
    top: 0;
    max-width: 100vw;
  }

  .nav-pill {
    max-width: calc(100vw - 20px);
    height: 72px;
    padding: 0 14px;
    gap: 16px;
  }

  .nav-logo {
    height: 48px;
    flex: 0 0 auto;
  }

  .nav-logo img {
    height: 38px;
    max-width: 190px;
  }

}

@media (max-width: 768px) {
  html,
  body {
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .hero {
    display: flex;
    flex-direction: column;
    width: 100vw;
    height: auto;
    min-height: 100vh;
    overflow-x: hidden;
    overflow-y: auto;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
  }

  .panel {
    position: relative;
    width: 100%;
    min-height: 50vh;
    height: 50vh;
  }

  .panel-left,
  .panel-right {
    min-height: 50vh;
  }

  .panel-bg {
    background-size: cover;
    background-position: center;
  }

  .measure-divider {
    position: relative;
    top: auto;
    left: auto;
    width: 100%;
    height: 20px;
    flex: 0 0 20px;
    transform: none;
    z-index: 30;
    background-image: url("./assets/images/measure-divider-horizontal.png");
    background-repeat: repeat-x;
    background-position: center;
    background-size: auto 100%;
    box-shadow:
      0 0 14px rgba(0, 0, 0, 0.65),
      0 2px 5px rgba(0, 0, 0, 0.45),
      0 -2px 5px rgba(0, 0, 0, 0.45);
  }

  .hero-content {
    left: 50%;
    top: 56%;
    width: min(86vw, 420px);
    grid-template-rows: auto auto auto;
    justify-items: center;
    row-gap: 0.5rem;
    text-align: center;
    transform: translate(-50%, -50%);
  }

  .hero-content h1 {
    align-self: auto;
  }

  .left-content h1,
  .right-content h1 {
    font-size: clamp(2.1rem, 10vw, 3.6rem);
    line-height: 0.95;
  }

  .left-content h1 {
    letter-spacing: 0.055em;
  }

  .hero-content p {
    margin-top: 12px;
    font-size: 0.78rem;
    white-space: normal;
  }

  .btn {
    width: 210px;
    height: 48px;
    margin-inline: auto;
    margin-top: 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 480px) {
  .site-navbar {
    top: 0;
  }

  .nav-pill {
    max-width: calc(100vw - 12px);
    height: 64px;
    padding: 0 12px;
  }

  .nav-logo img {
    height: 34px;
    max-width: 168px;
  }

  .hero-content {
    top: 54%;
  }
}

@media (max-width: 520px) {
  .nav-pill {
    max-width: calc(100vw - 12px);
    height: 64px;
    padding: 0 12px;
  }

  .nav-logo {
    height: 42px;
  }

  .nav-logo img {
    height: 34px;
    max-width: 168px;
  }

}
