
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Tahoma, "Segoe UI", Arial, sans-serif;
}

button {
  font: inherit;
  cursor: pointer;
}

body {
  --ink: #fff;
  --muted: #d6d9f0;
  --panel: rgba(5, 15, 47, .86);
  --stroke: rgba(241, 188, 88, .35);
  --gold: #ffca5c;
  --bg: #020719;
  background: var(--bg);
  color: var(--ink);
}

body[data-theme="light"] {
  --ink: #111c40;
  --muted: #354265;
  --panel: rgba(255, 255, 255, .86);
  --stroke: rgba(183, 126, 37, .3);
  --gold: #aa6b14;
  --bg: #faf9fd;
}

.shell {
  min-height: 100svh;
  overflow: hidden;
  position: relative;
  background:
    radial-gradient(ellipse at 26% 55%, #101c6b 0, transparent 49%),
    radial-gradient(ellipse at 82% 75%, #271049 0, transparent 46%),
    linear-gradient(135deg, #020614, #080f32 60%, #020614);
}

body[data-theme="light"] .shell {
  background:
    radial-gradient(ellipse at 23% 53%, #e1eaff 0, transparent 55%),
    radial-gradient(ellipse at 85% 70%, #fff1dc 0, transparent 49%),
    linear-gradient(135deg, #fff, #f8f6fc 65%, #fff);
}

/* HEADER */
.top {
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 1.5vw, 25px);
  min-height: 79px;
  padding: 10px clamp(16px, 2.4vw, 44px);
  background: var(--panel);
  border-bottom: 1px solid var(--stroke);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  direction: ltr;
  color: var(--ink);
  white-space: nowrap;
}

.brand-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand strong {
  font: 900 26px Arial, sans-serif;
}

.brand small {
  font-size: 12px;
  font-weight: 800;
  direction: rtl;
}

.mark {
  display: inline-block;
  min-width: 40px;
  font: 900 45px/1 Arial, sans-serif;
  color: #e6ad55;
  text-shadow:
    1px 2px 0 #ad6a32,
    0 0 9px #f9ca7780;
}

.top nav {
  flex: 1;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  gap: clamp(14px, 2vw, 38px);
}

.top nav button {
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: var(--ink);
  font-size: clamp(12px, 1vw, 15px);
  font-weight: 700;
  white-space: nowrap;
  padding: 12px 0;
}

.top nav button.active,
.top nav button:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.actions button {
  border: 1px solid var(--stroke);
  border-radius: 10px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  white-space: nowrap;
}

.actions .theme {
  font-size: 29px;
  color: var(--gold);
  border: 0;
}

.actions .lang,
.actions .login {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}

.actions .login {
  background: linear-gradient(#ffdf83, #efa729);
  color: #1c1731;
  border: 1px solid #fbe09e;
}

.actions .menu {
  display: none;
}

body[data-theme="light"] .actions .login {
  border-color: #d79e3d;
  background: linear-gradient(180deg, #ffe8a0, #efae38);
  color: #473021;
  box-shadow: 0 4px 12px #b88b3b36;
}

body[data-theme="light"] .actions .lang {
  background: rgba(255, 255, 255, .8);
  color: #26344d;
  border-color: #d7c8b6;
}

body[data-theme="light"] .actions .theme {
  color: #d69c32;
}

body[data-theme="light"] .brand strong {
  color: #202c4c;
}

body[data-theme="light"] .brand small {
  color: #293653;
}

/* MAIN SCENE */
main {
  position: relative;
  min-height: calc(100svh - 79px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 32px 20px 28px;
  isolation: isolate;
}

.scenery {
  position: absolute;
  z-index: -1;
  top: 9%;
  height: 65%;
  width: 46%;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  pointer-events: none;
  filter: saturate(1.12) contrast(1.07);
}

.scenery.left {
  left: -3%;
  background-image: url("assets/dark-left.webp");
  -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent);
  mask-image: linear-gradient(90deg, #000 65%, transparent);
}

.scenery.right {
  right: -2%;
  background-image: url("assets/dark-right.webp");

  /* Hide the text baked into the left edge of the dark image */
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 32%,
    #000 49%,
    #000 100%
  );
  mask-image: linear-gradient(
    90deg,
    transparent 0%,
    transparent 32%,
    #000 49%,
    #000 100%
  );
}

body[data-theme="light"] .scenery.left {
  background-image: url("assets/light-left-clean.webp");
  -webkit-mask-image: linear-gradient(90deg, #000 65%, transparent);
  mask-image: linear-gradient(90deg, #000 65%, transparent);
}

body[data-theme="light"] .scenery.right {
  background-image: url("assets/light-right-clean.webp");
  -webkit-mask-image: linear-gradient(270deg, #000 60%, transparent);
  mask-image: linear-gradient(270deg, #000 60%, transparent);
}

/* HERO */
.hero {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 570px;
  margin: auto auto 22px;
  text-shadow: 0 2px 15px #0005;
}

.eyebrow {
  font-size: clamp(27px, 3.5vw, 49px);
  font-weight: 900;
}

.hero h1 {
  font: 900 clamp(58px, 7vw, 100px)/1.08 Arial, sans-serif;
  letter-spacing: -3px;
  margin: 4px 0;
  background: linear-gradient(#fff1b1, #ffc24b 45%, #b96b13);
  color: transparent;
  background-clip: text;
  -webkit-background-clip: text;
  filter: drop-shadow(0 6px 9px #0008);
}

.hero h2 {
  font-size: clamp(20px, 2vw, 29px);
  margin: 10px 0;
}

.hero h2 em {
  color: var(--gold);
  font-style: normal;
}

.hero p {
  font-size: 15px;
  line-height: 1.9;
  color: var(--muted);
  font-weight: 600;
}

.start {
  margin-top: 10px;
  background: linear-gradient(170deg, #ffe58c, #f6b338 65%, #e49126);
  border: 1px solid #ffe5a6;
  border-radius: 15px;
  color: #211524;
  padding: 14px 35px;
  font-weight: 900;
  font-size: 20px;
  box-shadow: 0 9px 30px #e49b3e50;
  cursor: default;
}

/* TOP BAR MESSAGES */
.detail {
  position: relative;
  z-index: 2;
  max-width: 610px;
  width: 95%;
  text-align: center;
  padding: 25px 32px;
  margin: auto auto 18px;
  border: 1px solid var(--stroke);
  border-radius: 23px;
  background: var(--panel);
  backdrop-filter: blur(20px);
  box-shadow: 0 12px 35px #0003;
}

.detail[hidden] {
  display: none;
}

.hero.hidden h2,
.hero.hidden p,
.hero.hidden .start {
  display: none;
}

.detail h2 {
  color: var(--gold);
  margin: 0 0 14px;
}

.detail p {
  line-height: 1.9;
  margin: 0;
}

.detail:not([hidden]) ~ .features {
  margin-top: 10px;
}

/* FEATURE BAR */
.features {
  width: min(980px, 92vw);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--panel);
  border: 1px solid var(--stroke);
  border-radius: 24px;
  padding: 18px 10px;
  box-shadow: 0 12px 50px #0004;
  backdrop-filter: blur(16px);
}

.features article {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 9px;
  padding: 0 13px;
}

.features article + article {
  border-inline-start: 1px solid var(--stroke);
}

.feature-icon {
  color: #ffcb6b;
  font-size: 29px;
  filter: drop-shadow(0 0 10px #8a6bff);
}

.features b {
  font-size: 14px;
}

.features small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

/* APPROVED LIGHT-MODE APPEARANCE */
body[data-theme="light"] .hero {
  text-shadow: none;
}

body[data-theme="light"] .hero h1 {
  background: linear-gradient(
    180deg,
    #fce2a1 0%,
    #dca24b 43%,
    #ad6d2d 100%
  );
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 2px #91602535);
}

body[data-theme="light"] .hero p {
  color: #1a2a48;
  font-size: clamp(16px, 1.25vw, 19px);
  font-weight: 800;
  line-height: 1.85;
  text-shadow: 0 1px 0 #ffffff90;
}

body[data-theme="light"] .features {
  background: rgba(255, 255, 255, .94);
  border-color: rgba(158, 112, 48, .37);
  box-shadow: 0 10px 32px #5360821c;
}

body[data-theme="light"] .features b {
  color: #14203d;
  font-weight: 900;
  font-size: clamp(15px, 1.15vw, 17px);
  line-height: 1.65;
}

body[data-theme="light"] .features small {
  color: #253553;
  font-size: clamp(13px, .99vw, 15px);
  font-weight: 750;
  line-height: 1.85;
}

body[data-theme="light"] .feature-icon {
  color: #a67527;
  filter: none;
}

body[data-theme="light"] .eyebrow {
  color: #14213d;
}

body[data-theme="light"] .hero h2 {
  color: #182441;
}

body[data-theme="light"] .hero h2 em {
  color: #b47a2b;
}

/* RESPONSIVE DIMENSIONS */
@media (max-width: 1200px) {
  .top {
    gap: 10px;
  }

  .top nav {
    gap: 10px;
  }

  .top nav button {
    font-size: 11px;
  }

  .brand strong {
    font-size: 22px;
  }

  .actions button {
    padding: 8px;
  }

  .scenery {
    opacity: .82;
  }
}

@media (max-width: 980px) {
  .top nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 10px;
    right: 10px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 15px;
    background: var(--panel);
    border: 1px solid var(--stroke);
    border-radius: 15px;
  }

  .top nav.open {
    display: flex;
  }

  .top nav button {
    text-align: start;
    font-size: 16px;
  }

  .actions .menu {
    display: block;
  }

  .scenery {
    opacity: .45;
    width: 54%;
  }

  .hero {
    margin-top: 50px;
  }
}

@media (max-width: 620px) {
  .top {
    min-height: 66px;
    padding: 8px;
  }

  .brand strong {
    font-size: 17px;
  }

  .brand small {
    font-size: 10px;
  }

  .mark {
    min-width: 28px;
    font-size: 32px;
  }

  .actions {
    gap: 3px;
  }

  .actions button {
    padding: 7px;
    font-size: 11px;
  }

  .actions .theme {
    font-size: 20px;
  }

  .actions .login {
    font-size: 10px;
  }

  main {
    min-height: calc(100svh - 66px);
    padding: 20px 12px;
  }

  .scenery {
    top: 8%;
    height: 42%;
    width: 68%;
    opacity: .36;
  }

  .scenery.left {
    left: -32%;
  }

  .scenery.right {
    right: -30%;
  }

  .hero {
    margin-top: 40px;
  }

  .hero h1 {
    font-size: clamp(49px, 13vw, 77px);
  }

  .hero p,
  body[data-theme="light"] .hero p {
    font-size: 14px;
  }

  .features {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
    gap: 18px 0;
    padding: 16px 5px;
  }

  .features article:nth-child(3) {
    border-inline-start: 0;
  }

  .features article:nth-child(-n+2) {
    padding-bottom: 14px;
    border-bottom: 1px solid var(--stroke);
  }

  .features b,
  body[data-theme="light"] .features b {
    font-size: 13px;
  }

  .features small,
  body[data-theme="light"] .features small {
    font-size: 12px;
  }

  .start {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

#detail-title {
  white-space: pre-line;
}

/* NOVORA - FINAL RESPONSIVE REFINEMENTS */

html {
  -webkit-text-size-adjust: 100%;
}

.top,
main,
.hero,
.detail,
.features {
  min-width: 0;
}

.detail {
  max-width: min(610px, 100%);
  overflow-wrap: break-word;
}

#detail-title {
  white-space: pre-line;
  overflow-wrap: break-word;
}

/* Tablets and smaller laptops */
@media (max-width: 980px) {
  .top nav.open {
    z-index: 30;
    max-height: 65svh;
    overflow-y: auto;
  }

  .hero {
    width: 100%;
    max-width: 570px;
  }

  .detail {
    margin-inline: auto;
  }
}

/* Mobile phones */
@media (max-width: 620px) {
  .top {
    flex-wrap: wrap;
    gap: 6px;
  }

  .brand {
    margin-inline-end: auto;
  }

  .actions {
    max-width: 100%;
  }

  .actions button {
    flex-shrink: 0;
  }

  main {
    height: auto;
    justify-content: flex-start;
  }

  .hero {
    margin: 35px auto 24px;
  }

  .hero.hidden {
    margin-bottom: 8px;
  }

  .eyebrow {
    font-size: clamp(25px, 7vw, 38px);
  }

  .detail {
    width: 100%;
    padding: 20px 15px;
    margin: 10px auto 24px;
  }

  .detail h2 {
    font-size: clamp(18px, 5vw, 23px);
    line-height: 1.6;
  }

  .detail p {
    font-size: 14px;
    line-height: 1.85;
  }

  .features {
    margin-top: auto;
  }
}

/* Very narrow phones */
@media (max-width: 380px) {
  .brand strong {
    font-size: 15px;
  }

  .brand small {
    font-size: 9px;
  }

  .mark {
    font-size: 29px;
    min-width: 25px;
  }

  .actions {
    gap: 2px;
  }

  .actions button {
    padding: 6px;
  }

  .features {
    gap: 12px 0;
  }
}
html[data-theme="dark"] body {
  --ink: #fff;
  --muted: #d6d9f0;
  --panel: rgba(5, 15, 47, .86);
  --stroke: rgba(241, 188, 88, .35);
  --gold: #ffca5c;
  --bg: #020719;
}

html[data-theme="light"] body {
  --ink: #111c40;
  --muted: #354265;
  --panel: rgba(255, 255, 255, .86);
  --stroke: rgba(183, 126, 37, .3);
  --gold: #aa6b14;
  --bg: #faf9fd;
}