/**
 * Nutty Globe
 *
 * LIGHT is the default. Dark values override in the [data-ne-theme="dark"]
 * block, and that attribute is set by nutty-globe-theme.js.
 */

#ne-globe.ne-globe {
  --ne-text: #171238;
  --ne-soft: rgba(23, 18, 56, 0.72);
  --ne-muted: rgba(23, 18, 56, 0.66);
  --ne-lilac: #7c3aed;

  --ne-bg: radial-gradient(115% 78% at 74% 48%, #ffffff 0%, #efeafc 56%, #e6edf9 100%);
  --ne-veil: linear-gradient(90deg, #f6f3fe 0%, rgba(246, 243, 254, 0.92) 25%,
                             rgba(246, 243, 254, 0.5) 45%, transparent 64%);
  --ne-veil-m: linear-gradient(180deg, rgba(246, 243, 254, 0.45) 0%, transparent 30%);

  --ne-line: rgba(23, 18, 56, 0.14);
  --ne-line-hi: rgba(23, 18, 56, 0.3);
  --ne-glass: rgba(255, 255, 255, 0.5);
  --ne-glass-hi: rgba(255, 255, 255, 0.72);
  --ne-sheen: rgba(255, 255, 255, 0.9);
  --ne-shadow: rgba(60, 48, 120, 0.14);
  --ne-shadow-hi: rgba(60, 48, 120, 0.22);
  --ne-icon-bg: rgba(255, 255, 255, 0.62);
  --ne-hint-bg: rgba(255, 255, 255, 0.86);

  --ne-accent-1: #7c3aed;  --ne-tint-1: rgba(124, 58, 237, 0.14);
  --ne-accent-2: #2563eb;  --ne-tint-2: rgba(37, 99, 235, 0.13);

  position: relative;
  display: flex;
  align-items: center;
  min-height: min(880px, 94vh);
  background: var(--ne-bg);
  padding: 96px 24px 104px;
  box-sizing: border-box;
  overflow: hidden;
  transition: background 0.3s ease;
}

#ne-globe.ne-globe[data-ne-theme="dark"] {
  --ne-text: #ffffff;
  --ne-soft: rgba(255, 255, 255, 0.82);
  --ne-muted: rgba(255, 255, 255, 0.66);
  --ne-lilac: #c4b5fd;

  --ne-bg: radial-gradient(115% 78% at 74% 48%, #15102e 0%, #0c0b1a 56%, #08080f 100%);
  --ne-veil: linear-gradient(90deg, #08080f 0%, rgba(8, 8, 15, 0.92) 25%,
                             rgba(8, 8, 15, 0.5) 45%, transparent 64%);
  --ne-veil-m: linear-gradient(180deg, rgba(8, 8, 15, 0.45) 0%, transparent 30%);

  --ne-line: rgba(255, 255, 255, 0.16);
  --ne-line-hi: rgba(255, 255, 255, 0.3);
  --ne-glass: rgba(255, 255, 255, 0.05);
  --ne-glass-hi: rgba(255, 255, 255, 0.09);
  --ne-sheen: rgba(255, 255, 255, 0.16);
  --ne-shadow: rgba(6, 5, 20, 0.32);
  --ne-shadow-hi: rgba(6, 5, 20, 0.42);
  --ne-icon-bg: rgba(255, 255, 255, 0.12);
  --ne-hint-bg: rgba(12, 10, 26, 0.78);

  --ne-accent-1: #c4b5fd;  --ne-tint-1: rgba(167, 139, 250, 0.17);
  --ne-accent-2: #93c5fd;  --ne-tint-2: rgba(96, 165, 250, 0.17);
}

#ne-globe *, #ne-globe *::before, #ne-globe *::after { box-sizing: border-box; }

/* Sized well past the section edges so the planet never meets a wall.
   The canvas is transparent, so there is no visible box — only the arcs
   needed room, and now they have it. */
#ne-globe .ne-globe-field {
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -13%;
  transform: translateY(-50%);
  width: min(1180px, 86vw);
  height: min(1180px, 110vh);
  touch-action: pan-y;
  /* Set from JS: the grab hand appears only over the planet itself. */
  cursor: default;
}
#ne-globe .ne-globe-field canvas { display: block; }

#ne-globe::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: var(--ne-veil);
  transition: background 0.3s ease;
}

#ne-globe .ne-globe-inner {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  width: 100%;
  margin-inline: auto;
  /* This wrapper is 1200px wide but only ~540px of it holds anything.
     Without this it sits on top of the globe and eats every drag. */
  pointer-events: none;
}
#ne-globe .ne-globe-copy { max-width: 540px; pointer-events: auto; }

#ne-globe .ne-globe-eyebrow {
  display: inline-block;
  margin: 0 0 18px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--ne-line);
  background: var(--ne-glass);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--ne-soft);
}

#ne-globe .ne-globe-title {
  margin: 0;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ne-text);
}
@media (min-width: 900px) {
  #ne-globe .ne-globe-title { font-size: 42px; }
}

#ne-globe .ne-globe-lead {
  margin: 20px 0 0;
  max-width: 46ch;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ne-muted);
}

#ne-globe .ne-globe-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 13px;
}
#ne-globe .ne-globe-points li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ne-soft);
}
#ne-globe .ne-globe-points li::before {
  content: "";
  flex-shrink: 0;
  width: 6px; height: 6px;
  margin-top: 8px;
  border-radius: 50%;
  background: var(--ne-lilac);
}

#ne-globe .ne-globe-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}
#ne-globe .ne-globe-card {
  --ne-card-accent: var(--ne-lilac);
  --ne-card-tint: var(--ne-tint-1);
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 20px 18px 18px;
  border-radius: 18px;
  border: 1px solid var(--ne-line);
  background:
    linear-gradient(150deg, var(--ne-card-tint), transparent 60%),
    var(--ne-glass);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  box-shadow: 0 8px 32px var(--ne-shadow), inset 0 1px 0 var(--ne-sheen);
  text-decoration: none !important;
  transition: transform 0.22s ease, border-color 0.22s ease,
              box-shadow 0.22s ease, background 0.22s ease;
}

/* Themes tend to underline links with fairly specific selectors, so this
   needs the extra weight to win. */
#ne-globe .ne-globe-card:link,
#ne-globe .ne-globe-card:visited,
#ne-globe .ne-globe-card:hover,
#ne-globe .ne-globe-card:focus,
#ne-globe .ne-globe-card:active,
#ne-globe .ne-globe-card * {
  text-decoration: none !important;
  border-bottom: 0 !important;
}

#ne-globe .ne-globe-card--platform { --ne-card-accent: var(--ne-accent-1); --ne-card-tint: var(--ne-tint-1); }
#ne-globe .ne-globe-card--hardware { --ne-card-accent: var(--ne-accent-2); --ne-card-tint: var(--ne-tint-2); }

#ne-globe .ne-globe-card:hover,
#ne-globe .ne-globe-card:focus-visible {
  transform: translateY(-3px);
  border-color: var(--ne-line-hi);
  background:
    linear-gradient(150deg, var(--ne-card-tint), transparent 60%),
    var(--ne-glass-hi);
  box-shadow: 0 18px 44px var(--ne-shadow-hi), inset 0 1px 0 var(--ne-sheen);
}
#ne-globe .ne-globe-card:focus-visible {
  outline: 2px solid var(--ne-card-accent);
  outline-offset: 3px;
}

#ne-globe .ne-globe-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--ne-line);
  background: var(--ne-icon-bg);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--ne-card-accent);
}
#ne-globe .ne-globe-card-icon svg { width: 21px; height: 21px; display: block; }

#ne-globe .ne-globe-card-title {
  margin-top: 16px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ne-text);
}

#ne-globe .ne-globe-card-list {
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
#ne-globe .ne-globe-card-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ne-soft);
}
#ne-globe .ne-globe-card-list li::before {
  content: "";
  flex-shrink: 0;
  width: 5px; height: 5px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--ne-card-accent);
}

/* margin-top:auto keeps both CTAs on the same baseline even when one card's
   list wraps to more lines than the other. */
#ne-globe .ne-globe-card-cta {
  margin-top: auto;
  padding-top: 18px;
  font-size: 14px;
  font-weight: 700;
  color: var(--ne-text);
}
#ne-globe .ne-globe-card-cta span { display: inline-block; transition: transform 0.22s ease; }
#ne-globe .ne-globe-card:hover .ne-globe-card-cta span { transform: translateX(4px); }

/* Appears briefly when someone scrolls over the globe without the modifier,
   or first touches it, so the gesture is learnable without parking permanent
   chrome on top of the artwork. */
#ne-globe .ne-globe-hint {
  position: absolute;
  z-index: 4;
  right: max(28px, 3.5vw);
  bottom: 40px;
  margin: 0;
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--ne-line);
  background: var(--ne-hint-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 12px;
  line-height: 1.3;
  color: var(--ne-muted);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
#ne-globe .ne-globe-hint.is-on { opacity: 1; transform: none; }

@media (max-width: 899px) {
  #ne-globe .ne-globe-hint {
    right: 50%;
    transform: translateX(50%) translateY(5px);
    bottom: 18px;
  }
  #ne-globe .ne-globe-hint.is-on { transform: translateX(50%); }

  #ne-globe.ne-globe { display: block; min-height: 0; padding: 72px 24px 40px; }
  #ne-globe .ne-globe-field {
    position: relative;
    top: auto; right: auto;
    transform: none;
    width: 136%;
    margin: 8px 0 0 -18%;
    height: 420px;
  }
  #ne-globe::after { background: var(--ne-veil-m); }
  #ne-globe .ne-globe-copy { max-width: none; }
}

@media (max-width: 599px) {
  #ne-globe .ne-globe-field { height: 340px; }
  #ne-globe .ne-globe-cards { grid-template-columns: minmax(0, 1fr); }
}
