/* quantum.css · partea 1/4 */
/* Phyastro — Expediție prin jungla cunoașterii */

:root {
  --j-cream: #fbf7e8;
  --j-sand: #efe3bd;
  --j-paper: #fffdf5;
  --j-mist: #e3f4dd;
  --j-forest: #174b3c;
  --j-forest-deep: #0e352c;
  --j-leaf: #3b965c;
  --j-lime: #9bd64d;
  --j-lagoon: #22aaa0;
  --j-sky: #65c8ef;
  --j-coral: #ff7658;
  --j-sun: #ffc83f;
  --j-purple: #7658a8;
  --j-ink: #18372f;
  --j-muted: #5f746d;
  --j-line: rgba(23, 75, 60, 0.18);
  --ivory: var(--j-cream);
  --paper: var(--j-paper);
  --ink: var(--j-ink);
  --indigo: var(--j-forest-deep);
  --indigo-2: var(--j-purple);
  --teal: var(--j-lagoon);
  --teal-dark: #147b72;
  --teal-pale: #daf3eb;
  --muted: var(--j-muted);
  --line: var(--j-line);
  --serif: Georgia, "Times New Roman", serif;
}

html,
body {
  color: var(--j-ink);
  background: var(--j-cream);
}

body {
  position: relative;
  background:
    radial-gradient(circle at 8% 12%, rgba(155, 214, 77, 0.15), transparent 26rem),
    radial-gradient(circle at 96% 38%, rgba(101, 200, 239, 0.13), transparent 28rem),
    var(--j-cream);
}

body::before {
  content: "";
  position: fixed;
  z-index: 90;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    radial-gradient(circle at center, transparent 0 18px, rgba(23, 75, 60, 0.08) 19px, transparent 20px),
    radial-gradient(circle at center, transparent 0 42px, rgba(23, 75, 60, 0.055) 43px, transparent 44px);
  background-size: 150px 150px;
  mask-image: linear-gradient(to bottom, #000, transparent 75%);
}

::selection {
  color: var(--j-forest-deep);
  background: var(--j-sun);
}

.site-shell {
  background: transparent;
}

/* Meniu central, ca o bară de orientare */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 92px;
  border-color: rgba(23, 75, 60, 0.14);
  background: rgba(255, 253, 245, 0.91);
  box-shadow: 0 10px 32px rgba(28, 74, 57, 0.08);
  backdrop-filter: blur(18px) saturate(1.25);
}

.header-inner {
  position: relative;
  width: min(100% - 56px, 1450px);
}

.brand {
  color: var(--j-forest-deep);
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-mark {
  color: var(--j-forest);
  filter: drop-shadow(0 4px 6px rgba(23, 75, 60, 0.13));
}

.brand-mark i {
  background: var(--j-coral);
  box-shadow: 0 0 0 3px var(--j-paper);
}

.primary-navigation {
  position: absolute;
  left: 50%;
  top: 50%;
  height: 54px;
  padding: 5px;
  gap: 3px;
  align-items: center;
  border: 1px solid rgba(23, 75, 60, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 9px 25px rgba(25, 72, 56, 0.09);
  transform: translate(-50%, -50%);
}

.primary-navigation a {
  height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  color: #476159;
  font-size: 0.76rem;
  white-space: nowrap;
}

.primary-navigation a::after {
  display: none;
}

.primary-navigation a:hover,
.primary-navigation a.active {
  color: white;
  background: var(--j-forest);
  box-shadow: 0 7px 18px rgba(23, 75, 60, 0.2);
}

.primary-navigation .account-nav {
  min-height: 42px;
  margin: 0;
  padding: 0 15px;
  border-color: rgba(255, 118, 88, 0.4);
  color: #a63d27;
  background: #fff1e8;
}

.primary-navigation .account-nav:hover,
.primary-navigation .account-nav.active {
  color: #532014;
  border-color: var(--j-coral);
  background: var(--j-coral);
}

.menu-toggle {
  color: var(--j-forest);
  border-color: var(--j-line);
  background: white;
}

.kicker,
.kicker-dark {
  color: #19796a;
}

.button {
  border-radius: 999px;
}

.button-primary,
.button-domain {
  color: #15382f;
  border: 1px solid #f2ad24;
  background: linear-gradient(120deg, var(--j-sun), #ffe881);
  box-shadow: 0 11px 25px rgba(235, 156, 18, 0.23);
}

.button-primary:hover,
.button-domain:hover {
  border-color: #e69914;
  background: #ffd554;
  box-shadow: 0 15px 28px rgba(235, 156, 18, 0.29);
}

.button-secondary,
.button-ghost-light {
  color: var(--j-forest-deep);
  border-color: rgba(23, 75, 60, 0.28);
  background: rgba(255, 255, 255, 0.62);
  backdrop-filter: blur(8px);
}

.button-secondary:hover,
.button-ghost-light:hover {
  color: white;
  border-color: var(--j-forest);
  background: var(--j-forest);
}

/* Intrarea în junglă */

.home-hero {
  min-height: calc(100vh - 92px);
  overflow: hidden;
  background:
    radial-gradient(circle at 11% 14%, rgba(255, 200, 63, 0.2), transparent 22rem),
    linear-gradient(115deg, #f7f0ca 0%, #eaf5d7 50%, #d7f0db 100%);
}

.home-hero::before {
  right: 0;
  height: 100%;
  opacity: 0.28;
  background-image:
    repeating-radial-gradient(ellipse at 80% 50%, transparent 0 34px, rgba(23, 75, 60, 0.16) 35px 36px, transparent 37px 58px);
  mask-image: linear-gradient(90deg, transparent 30%, #000);
}

.home-hero::after {
  content: "EXPLORE";
  position: absolute;
  z-index: 0;
  left: 2vw;
  bottom: -0.12em;
  color: rgba(23, 75, 60, 0.055);
  font-size: clamp(7rem, 18vw, 18rem);
  font-weight: 900;
  line-height: 0.7;
  letter-spacing: -0.08em;
}

.hero-copy {
  position: relative;
  z-index: 4;
}

.hero-copy h1 {
  color: var(--j-forest-deep);
  font-size: clamp(4rem, 5.7vw, 6.7rem);
  font-weight: 520;
  line-height: 0.91;
  letter-spacing: -0.055em;
}

.hero-copy h1 em {
  display: inline-block;
  color: var(--j-coral);
  font-style: italic;
  text-decoration: underline;
  text-decoration-color: var(--j-sun);
  text-decoration-thickness: 0.1em;
  text-underline-offset: 0.09em;
}

.hero-lede {
  color: #536b63;
}

.trust-row {
  color: #577068;
}

.trust-row span::before {
  color: var(--j-leaf);
}

.hero-cosmos {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #94ddf4 0%, #ccebd5 49%, #7fbd76 50%, #377858 100%);
  filter: none;
}

.hero-cosmos::before {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  opacity: 0.4;
  background: linear-gradient(90deg, rgba(234, 245, 215, 0.92), transparent 36%);
}

.hero-cosmos::after {
  content: "";
  position: absolute;
  z-index: 4;
  inset: auto 0 0;
  height: 40%;
  background:
    radial-gradient(ellipse at 10% 100%, #174b3c 0 22%, transparent 23%),
    radial-gradient(ellipse at 40% 110%, #245f47 0 31%, transparent 32%),
    radial-gradient(ellipse at 78% 108%, #174b3c 0 34%, transparent 35%);
}

.jungle-scene {
  position: absolute;
  z-index: 2;
  inset: 0;
}

.jungle-sun {
  position: absolute;
  right: 14%;
  top: 13%;
  width: 116px;
  height: 116px;
  border-radius: 50%;
  background: #ffe06a;
  box-shadow: 0 0 0 20px rgba(255, 224, 106, 0.18), 0 0 65px rgba(255, 214, 70, 0.48);
}

.ridge {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: 24%;
  height: 36%;
  display: block;
  background: #70b778;
  clip-path: polygon(0 100%, 0 73%, 12% 54%, 22% 69%, 37% 28%, 48% 56%, 61% 18%, 73% 62%, 86% 36%, 100% 68%, 100% 100%);
}

.ridge-far {
  bottom: 34%;
  opacity: 0.7;
  background: #7dc38c;
}

.ridge-near {
  background: #397c58;
}

.leaf {
  position: absolute;
  z-index: 6;
  width: 100px;
  height: 180px;
  display: block;
  border-radius: 100% 0 100% 0;
  background: linear-gradient(145deg, #5fba5b, #176447);
  box-shadow: inset -12px -8px 0 rgba(9, 74, 48, 0.17);
  transform-origin: bottom center;
}

.leaf::after {
  content: "";
  position: absolute;
  left: 48%;
  top: 8%;
  bottom: 4%;
  width: 2px;
  background: rgba(255, 255, 255, 0.26);
  transform: rotate(26deg);
}

.leaf-a { right: -12px; top: 3%; transform: rotate(-25deg) scale(1.18); }

.leaf-b { left: 5%; bottom: -7%; transform: rotate(19deg) scale(1.08); }

.leaf-c { right: 18%; bottom: -12%; transform: rotate(-6deg) scale(0.82); }

.compass-mark {
  position: absolute;
  z-index: 7;
  right: 14%;
  top: 36%;
  width: 190px;
  height: 190px;
  border: 2px solid rgba(255, 253, 245, 0.85);
  border-radius: 50%;
  background: rgba(255, 253, 245, 0.18);
  box-shadow: 0 17px 45px rgba(15, 65, 47, 0.25);
  backdrop-filter: blur(5px);
}

.compass-mark::before,
.compass-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: rgba(255, 255, 255, 0.72);
}

.compass-mark::after {
  transform: rotate(90deg);
}

.compass-mark > span {
  position: absolute;
  left: 50%;
  top: 12px;
  color: white;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.7rem;
  font-weight: 800;
  transform: translateX(-50%);
}

.compass-mark > i,
.compass-mark > b {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  width: 24px;
  height: 76px;
  background: var(--j-coral);
  clip-path: polygon(50% 0, 100% 100%, 50% 78%, 0 100%);
  transform: translate(-50%, -78%) rotate(24deg);
}

.compass-mark > b {
  background: white;
  transform: translate(-50%, -22%) rotate(204deg);
}

.hero-annotation {
  z-index: 8;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 2px 8px rgba(12, 59, 43, 0.42);
}

/* Harta cu borne legate */

.domain-section {
  background: transparent;
}

.trail-section {
  width: min(100% - 80px, 1360px);
  padding-top: 105px;
}

.section-heading h2,
.home-feature h2,
.module-section h2,
.subject-cta h2,
.ranking-heading h2,
.scoring-section h2,
.account-explainer h2 {
  color: var(--j-forest-deep);
}

.section-heading > p,
.home-feature > p {
  color: var(--j-muted);
}

.trail-map {
  position: relative;
  height: 870px;
  margin-top: 38px;
  overflow: hidden;
  border: 1px solid rgba(23, 75, 60, 0.14);
  border-radius: 36px;
  background:
    radial-gradient(circle at 8% 5%, rgba(255, 200, 63, 0.25), transparent 15rem),
    radial-gradient(circle at 91% 83%, rgba(101, 200, 239, 0.2), transparent 19rem),
    repeating-radial-gradient(ellipse at 48% 48%, transparent 0 38px, rgba(23, 75, 60, 0.06) 39px 40px, transparent 41px 62px),
    #f7f3dc;
  box-shadow: inset 0 0 70px rgba(77, 121, 75, 0.07), 0 24px 60px rgba(33, 76, 59, 0.09);
}

.trail-line {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.trail-line path {
  fill: none;
  stroke: #4d8d5c;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 8 14;
}

.trail-line circle {
  fill: var(--j-sun);
  stroke: white;
  stroke-width: 5;
}

.trail-label {
  position: absolute;
  padding: 8px 12px;
  border-radius: 999px;
  color: white;
  background: var(--j-forest);
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.trail-label-start { left: 26px; top: 25px; }

.trail-label-finish { right: 28px; bottom: 25px; background: var(--j-coral); }

.trail-stop {
  position: absolute;
  z-index: 3;
  width: min(430px, 38%);
  display: flex;
  align-items: center;
  gap: 17px;
  color: inherit;
  transition: transform 180ms ease;
}

.trail-stop-1 { left: 4%; top: 43px; }

.trail-stop-2 { right: 4%; top: 210px; flex-direction: row-reverse; text-align: right; }

.trail-stop-3 { left: 15%; top: 445px; }

.trail-stop-4 { right: 14%; top: 650px; flex-direction: row-reverse; text-align: right; }

.trail-stop:hover {
  transform: translateY(-7px);
}

.trail-pin {
  width: 76px;
  height: 76px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  border: 5px solid white;
  border-radius: 50% 50% 50% 12px;
  color: var(--j-forest-deep);
  background: var(--trail-color, var(--j-lime));
  box-shadow: 0 10px 24px rgba(24, 73, 56, 0.19);
  transform: rotate(-45deg);
}

.trail-pin i,
.trail-pin b {
  grid-area: 1 / 1;
  font-style: normal;
  transform: rotate(45deg);
}

.trail-pin i {
  margin-top: -14px;
  font-size: 1.25rem;
}

.trail-pin b {
  margin-top: 23px;
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.56rem;
}

.trail-stop-copy {
  min-width: 0;
  padding: 18px 21px;
  display: grid;
  border: 1px solid rgba(23, 75, 60, 0.16);
  border-radius: 20px;
  background: rgba(255, 253, 245, 0.94);
  box-shadow: 0 14px 32px rgba(34, 77, 59, 0.1);
}

.trail-stop:hover .trail-stop-copy {
  border-color: var(--trail-color);
  box-shadow: 0 18px 38px rgba(34, 77, 59, 0.14);
}

.trail-stop-copy small {
  color: var(--trail-dark, var(--j-leaf));
  font-family: var(--font-geist-mono), monospace;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.trail-stop-copy strong {
  margin-top: 5px;
  color: var(--j-forest-deep);
  font-family: var(--serif);
  font-size: 1.55rem;
  line-height: 1.05;
}

.trail-stop-copy em {
  margin-top: 9px;
  color: var(--j-muted);
  font-size: 0.73rem;
  font-style: normal;
  line-height: 1.55;
}

.trail-stop-copy > span {
  margin-top: 11px;
  color: var(--trail-dark, var(--j-leaf));
  font-size: 0.68rem;
  font-weight: 800;
}

.trail-fern { --trail-color: var(--j-lime); --trail-dark: #4d7f20; }

.trail-lagoon { --trail-color: var(--j-sky); --trail-dark: #217999; }

.trail-coral { --trail-color: var(--j-coral); --trail-dark: #b2422b; }

.trail-sun { --trail-color: var(--j-sun); --trail-dark: #956a00; }

.home-feature {
  color: var(--j-ink);
  border-color: rgba(23, 75, 60, 0.14);
  background:
    linear-gradient(90deg, rgba(255, 200, 63, 0.16), transparent 38%),
    #fffaf0;
}

.feature-number {
  color: rgba(255, 118, 88, 0.2);
}
