:root {
  --ink: #f5f2ea;
  --muted: rgba(245, 242, 234, 0.68);
  --black: #050607;
  --charcoal: #101417;
  --ridge: #17231f;
  --pine: #2f6f54;
  --glacier: #8fc7d8;
  --orange: #ff7a2f;
  --stone: #d8d1bf;
  --line: rgba(216, 209, 191, 0.16);
  --panel: rgba(12, 17, 18, 0.76);
  --panel-soft: rgba(245, 242, 234, 0.075);
  --font: "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color-scheme: dark;
  font-family: var(--font);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 0%, rgba(143, 199, 216, 0.16), transparent 28rem),
    radial-gradient(circle at 90% 26%, rgba(47, 111, 84, 0.2), transparent 34rem),
    linear-gradient(180deg, #050607 0%, #0d1112 46%, #131715 100%);
  color: var(--ink);
  font-family: var(--font);
}

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

button,
select,
input {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 20;
  top: 20px;
  left: 50%;
  width: min(1120px, calc(100% - 28px));
  min-height: 58px;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.76);
  backdrop-filter: blur(18px);
}

.brand {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand span {
  font-weight: 800;
  letter-spacing: 0;
  font-size: 1rem;
}

.brand small {
  color: var(--glacier);
  font-size: 0.68rem;
}

nav {
  display: flex;
  justify-content: center;
  gap: clamp(10px, 2vw, 24px);
  color: var(--muted);
  font-size: 0.9rem;
}

nav a:hover {
  color: var(--ink);
}

.cart-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 122, 47, 0.45);
  border-radius: 8px;
  background: rgba(255, 122, 47, 0.1);
}

.cart-pill strong {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--orange);
  color: #15100b;
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: 116px 0 70px;
}

.hero-stage,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-stage {
  width: 100%;
  height: 100%;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 6, 7, 0.92) 0%, rgba(5, 6, 7, 0.48) 48%, rgba(5, 6, 7, 0.74) 100%),
    linear-gradient(180deg, transparent 62%, #0d1112 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(1120px, calc(100% - 34px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.48fr);
  gap: 32px;
  align-items: end;
}

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

.eyebrow {
  display: block;
  color: var(--glacier);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
  margin-bottom: 14px;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(3.2rem, 8.6vw, 8rem);
  line-height: 0.92;
  margin-bottom: 24px;
  letter-spacing: 0;
  max-width: 880px;
}

h2 {
  font-size: clamp(2rem, 4vw, 4.5rem);
  line-height: 1;
  letter-spacing: 0;
  margin-bottom: 18px;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.08;
  margin-bottom: 12px;
}

p {
  color: var(--muted);
  line-height: 1.6;
}

.hero-copy p {
  max-width: 620px;
  font-size: 1.08rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.product-bottom button,
.kit-form button {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 800;
}

.button.primary,
.kit-form button {
  background: var(--orange);
  color: #160d08;
}

.button.secondary {
  border: 1px solid rgba(143, 199, 216, 0.45);
  background: rgba(143, 199, 216, 0.08);
}

.summit-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(11, 16, 17, 0.76);
  backdrop-filter: blur(16px);
}

.summit-panel div {
  padding: 12px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.summit-panel span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  margin-bottom: 5px;
}

.summit-panel strong {
  display: block;
  font-size: 0.98rem;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 1px;
  height: 50px;
  transform: translateX(-50%);
  background: rgba(245, 242, 234, 0.18);
}

.scroll-cue span {
  display: block;
  width: 1px;
  height: 18px;
  background: var(--glacier);
  animation: cue 1.6s ease-in-out infinite;
}

.section-band {
  position: relative;
  padding: clamp(70px, 9vw, 130px) max(17px, calc((100vw - 1120px) / 2));
}

.section-head {
  max-width: 790px;
  margin-bottom: 34px;
}

.section-head.compact {
  max-width: 620px;
}

.planner-grid,
.route-grid,
.profile-grid,
.partner-layout {
  display: grid;
  gap: 14px;
}

.planner-grid,
.foundation-layout {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.planner-card,
.route-card,
.profile-card,
.partner-card,
.kit-form,
.checkout-lines {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.planner-card,
.route-card,
.profile-card,
.partner-card {
  padding: 20px;
}

.planner-card span,
.route-card-top span,
.profile-card span,
.partner-card span,
.product-copy span {
  display: block;
  color: var(--glacier);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.planner-card.active,
.route-card.sponsored,
.partner-card.sponsored {
  border-color: rgba(255, 122, 47, 0.48);
  background: linear-gradient(145deg, rgba(255, 122, 47, 0.14), rgba(12, 17, 18, 0.82));
}

.map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.42fr);
  gap: 18px;
  align-items: stretch;
}

.route-map {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 199, 216, 0.14), transparent 34%),
    radial-gradient(circle at 62% 28%, rgba(47, 111, 84, 0.28), transparent 34%),
    repeating-linear-gradient(160deg, rgba(216, 209, 191, 0.06) 0 1px, transparent 1px 22px),
    #07100f;
}

.route-map svg {
  position: absolute;
  inset: 28px;
  width: calc(100% - 56px);
  height: calc(100% - 56px);
  overflow: visible;
}

.terrain-line {
  fill: none;
  stroke: rgba(216, 209, 191, 0.28);
  stroke-width: 2;
}

.route-line {
  fill: none;
  stroke: var(--orange);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-dasharray: 10 14;
  filter: drop-shadow(0 0 12px rgba(255, 122, 47, 0.46));
}

.route-line.alt {
  stroke: var(--glacier);
  opacity: 0.58;
  stroke-width: 3;
}

.map-label,
.map-pin,
.map-meta {
  position: absolute;
  z-index: 2;
}

.map-label {
  padding: 7px 10px;
  border: 1px solid rgba(143, 199, 216, 0.28);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.58);
  color: var(--stone);
  font-weight: 800;
  font-size: 0.8rem;
}

.map-label.bucegi { left: 12%; top: 18%; }
.map-label.crai { right: 11%; top: 21%; }
.map-label.fagaras { left: 33%; bottom: 16%; }

.map-pin {
  width: 18px;
  height: 18px;
  border: 4px solid rgba(255, 122, 47, 0.92);
  border-radius: 50%;
  background: #050607;
  box-shadow: 0 0 0 8px rgba(255, 122, 47, 0.14);
  animation: pulsePin 1.9s ease-in-out infinite;
}

.pin-a { left: 22%; bottom: 25%; }
.pin-b { left: 55%; top: 40%; animation-delay: 0.45s; }
.pin-c { right: 14%; top: 20%; animation-delay: 0.9s; }

.map-meta {
  left: 18px;
  bottom: 18px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.72);
  border: 1px solid var(--line);
}

.map-meta span {
  color: var(--muted);
}

.route-detail-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.route-detail-panel dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0;
}

.route-detail-panel dl div {
  padding: 12px;
  border-radius: 6px;
  background: var(--panel-soft);
}

.route-detail-panel dt {
  color: var(--muted);
  font-size: 0.74rem;
}

.route-detail-panel dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.route-grid,
.profile-grid,
.partner-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.route-card {
  min-height: 210px;
  display: flex;
  flex-direction: column;
}

.route-card-top strong {
  display: block;
  font-size: 1.38rem;
  line-height: 1.04;
}

.route-card small {
  display: block;
  margin-top: auto;
  color: var(--stone);
}

.profile-card,
.partner-card {
  min-height: 226px;
}

.profile-card.guide {
  background: linear-gradient(145deg, rgba(143, 199, 216, 0.12), rgba(12, 17, 18, 0.82));
}

.profile-card.brand-profile {
  background: linear-gradient(145deg, rgba(47, 111, 84, 0.2), rgba(12, 17, 18, 0.82));
}

.kit-builder {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.72fr);
  gap: 38px;
  align-items: start;
}

.kit-copy {
  max-width: 590px;
}

.kit-form {
  padding: 18px;
  display: grid;
  gap: 14px;
}

.kit-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.84rem;
}

.kit-form select,
.kit-form input[type="range"] {
  width: 100%;
}

.kit-form select {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1112;
  color: var(--ink);
  padding: 0 12px;
}

.kit-result {
  display: grid;
  gap: 6px;
  padding: 14px;
  border-radius: 6px;
  background: rgba(47, 111, 84, 0.16);
}

.kit-result span {
  color: var(--muted);
}

.checkout-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(300px, 0.62fr);
  gap: 30px;
  align-items: center;
}

.checkout-lines {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.checkout-lines span {
  display: block;
  padding: 14px;
  border-radius: 6px;
  background: var(--panel-soft);
  color: var(--stone);
}

.earth-section {
  padding-top: 40px;
}

.earth-shell {
  min-height: 660px;
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(5, 6, 7, 0.72);
}

.earth-sidebar,
.earth-view {
  min-width: 0;
}

.earth-sidebar {
  padding: 16px;
  background: rgba(8, 13, 14, 0.9);
  border-color: var(--line);
}

.left-panel {
  border-right: 1px solid var(--line);
}

.right-panel {
  border-left: 1px solid var(--line);
}

.mini-profile,
.route-card-large,
.nearby-stack,
.gear-stack {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.mini-profile {
  padding: 14px;
  margin-bottom: 14px;
}

.mini-profile span,
.quick-list span,
.earth-camera span {
  display: block;
  color: var(--glacier);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.mini-profile strong,
.nearby-stack strong,
.gear-stack strong {
  display: block;
  margin-bottom: 8px;
}

.earth-sidebar label {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.82rem;
}

.earth-sidebar select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0c1112;
  color: var(--ink);
  padding: 0 10px;
}

.level-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 14px 0;
}

.level-tabs button,
.quick-list button,
.earth-toolbar button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(245, 242, 234, 0.06);
  color: var(--ink);
  cursor: pointer;
}

.level-tabs button {
  min-height: 36px;
}

.level-tabs button.active,
.quick-list button.active,
.earth-toolbar button.active {
  border-color: rgba(255, 122, 47, 0.54);
  background: rgba(255, 122, 47, 0.14);
}

.quick-list {
  display: grid;
  gap: 8px;
}

.quick-list button {
  min-height: 76px;
  padding: 12px;
  text-align: left;
  font-weight: 800;
}

.earth-view {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  background:
    radial-gradient(circle at 52% 34%, rgba(143, 199, 216, 0.18), transparent 24rem),
    radial-gradient(circle at 70% 60%, rgba(47, 111, 84, 0.22), transparent 20rem),
    linear-gradient(155deg, rgba(20, 30, 28, 0.88), rgba(5, 6, 7, 0.96));
}

.earth-toolbar {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.earth-toolbar button {
  min-height: 32px;
  padding: 0 10px;
  font-size: 0.78rem;
  background: rgba(5, 6, 7, 0.64);
}

.earth-grid-bg {
  position: absolute;
  inset: 0;
  transform: perspective(680px) rotateX(58deg) translateY(80px);
  transform-origin: center bottom;
  background:
    linear-gradient(rgba(143, 199, 216, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 199, 216, 0.1) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.32;
}

.earth-view svg {
  position: absolute;
  inset: 92px 24px 44px;
  width: calc(100% - 48px);
  height: calc(100% - 136px);
  filter: drop-shadow(0 28px 40px rgba(0, 0, 0, 0.38));
}

.earth-contour,
.earth-track {
  fill: none;
  stroke-linecap: round;
}

.earth-contour {
  stroke: rgba(216, 209, 191, 0.32);
  stroke-width: 3;
  stroke-dasharray: 2 16;
}

.earth-track {
  stroke: var(--orange);
  stroke-width: 7;
  stroke-dasharray: 18 12;
}

.earth-track.secondary {
  stroke: var(--glacier);
  stroke-width: 4;
  opacity: 0.58;
}

.earth-poi,
.protected-zone,
.earth-camera {
  position: absolute;
  z-index: 3;
}

.earth-poi {
  padding: 7px 9px;
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.72);
  border: 1px solid rgba(143, 199, 216, 0.34);
  color: var(--stone);
  font-size: 0.76rem;
  font-weight: 800;
}

.poi-rest { left: 28%; top: 55%; }
.poi-picnic { left: 44%; top: 42%; }
.poi-refuge { right: 20%; top: 31%; }
.poi-food { right: 14%; bottom: 24%; }

.protected-zone {
  right: 18%;
  top: 48%;
  width: 168px;
  min-height: 92px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(47, 111, 84, 0.66);
  border-radius: 50%;
  background: rgba(47, 111, 84, 0.14);
  color: rgba(245, 242, 234, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
}

.earth-camera {
  left: 16px;
  bottom: 16px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(5, 6, 7, 0.72);
}

.earth-camera strong {
  display: block;
}

.route-card-large {
  padding: 16px;
  margin-bottom: 12px;
}

.difficulty-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.difficulty-row strong {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 122, 47, 0.16);
  color: var(--orange);
}

.difficulty-row span {
  color: var(--muted);
  font-size: 0.82rem;
}

.route-card-large dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 12px 0;
}

.route-card-large dl div {
  padding: 10px;
  border-radius: 6px;
  background: rgba(5, 6, 7, 0.32);
}

.route-card-large dt {
  color: var(--muted);
  font-size: 0.72rem;
}

.route-card-large dd {
  margin: 4px 0 0;
  font-weight: 800;
}

.nearby-stack,
.gear-stack {
  padding: 14px;
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.nearby-stack span,
.gear-stack span {
  display: block;
  padding: 9px;
  border-radius: 6px;
  background: rgba(5, 6, 7, 0.32);
  color: var(--stone);
  font-size: 0.86rem;
}

.integration-note {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid rgba(143, 199, 216, 0.26);
  border-radius: 8px;
  background: rgba(143, 199, 216, 0.07);
}

.integration-note span {
  color: var(--muted);
  line-height: 1.55;
}

.foundation-section {
  padding-top: 40px;
  padding-bottom: 120px;
  background:
    linear-gradient(180deg, rgba(5, 6, 7, 0) 0%, rgba(143, 199, 216, 0.06) 100%),
    rgba(5, 6, 7, 0.22);
}

.foundation-card {
  min-height: 246px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 17, 18, 0.82);
}

.foundation-card span {
  display: block;
  color: var(--glacier);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 20px;
}

.foundation-card strong {
  display: block;
  min-height: 58px;
  font-size: 1.48rem;
  line-height: 1.05;
  margin-bottom: 18px;
}

@keyframes cue {
  0% { transform: translateY(0); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateY(32px); opacity: 0; }
}

@keyframes pulsePin {
  0%, 100% { transform: scale(1); opacity: 0.86; }
  50% { transform: scale(1.18); opacity: 1; }
}

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  nav a {
    white-space: nowrap;
  }

  .hero-content,
  .kit-builder,
  .checkout-section {
    grid-template-columns: 1fr;
  }

  .planner-grid,
  .route-grid,
  .profile-grid,
  .partner-layout,
  .foundation-layout {
    grid-template-columns: 1fr 1fr;
  }

  .map-layout {
    grid-template-columns: 1fr;
  }

  .earth-shell {
    grid-template-columns: 1fr;
  }

  .left-panel,
  .right-panel {
    border: 0;
    border-bottom: 1px solid var(--line);
  }

  .earth-view {
    min-height: 560px;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 10px;
    width: calc(100% - 18px);
  }

  .cart-pill span {
    display: none;
  }

  .hero {
    min-height: 96svh;
    padding-top: 124px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5.4rem);
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .planner-grid,
  .route-grid,
  .profile-grid,
  .partner-layout,
  .foundation-layout {
    grid-template-columns: 1fr;
  }

  .route-map {
    min-height: 360px;
  }

  .earth-view {
    min-height: 510px;
  }

  .earth-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 5px;
  }

  .earth-toolbar button {
    white-space: nowrap;
  }

  .route-card-large dl {
    grid-template-columns: 1fr;
  }
}
