/* Magnus InterGlobe — site styles */

:root {
  --ink: #0B1F3A;
  --ink-2: #142A4A;
  --ocean: #1E3A5F;
  --moss: #0E6E4F;
  --moss-2: #0B5A41;
  --bone: #FAF8F3;
  --cream: #F2EFE7;
  --line: #E5DFD0;
  --line-2: #D9D2BE;
  --muted: #6B6A60;
  --muted-2: #908D7E;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background: var(--bone);
  color: var(--ink);
  font-family: "Inter Tight", ui-sans-serif, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
}

.font-display {
  font-family: "Newsreader", ui-serif, Georgia, serif;
  font-weight: 350;
  letter-spacing: -0.02em;
  font-feature-settings: "ss03";
}

.font-mono {
  font-family: "JetBrains Mono", ui-monospace, monospace;
}

/* eyebrow label */
.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.eyebrow .dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--moss);
  border-radius: 999px;
  margin-right: 8px;
  vertical-align: 1px;
}

/* numbered eyebrow */
.numbered {
  display: flex;
  align-items: baseline;
  gap: 14px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.numbered::before {
  content: attr(data-num);
  color: var(--ink);
  font-weight: 600;
}
.numbered::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-2);
  margin-left: 6px;
}

/* warm striped image placeholder */
.placeholder {
  position: relative;
  background:
    repeating-linear-gradient(135deg,
      rgba(11, 31, 58, 0.04) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, #ECE6D4 0%, #E1D9C2 100%);
  border: 1px solid var(--line);
  overflow: hidden;
  isolation: isolate;
}
.placeholder.dark {
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, #142A4A 0%, #0B1F3A 100%);
  color: #E5DFD0;
  border-color: rgba(255, 255, 255, 0.08);
}
.placeholder.moss {
  background:
    repeating-linear-gradient(135deg,
      rgba(255, 255, 255, 0.05) 0 1px,
      transparent 1px 14px),
    linear-gradient(180deg, #0F7855 0%, #0A5A3F 100%);
  color: #EFEAD9;
  border-color: rgba(255, 255, 255, 0.08);
}
.placeholder .ph-label {
  position: absolute;
  left: 14px;
  bottom: 12px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(11, 31, 58, 0.55);
}
.placeholder.dark .ph-label,
.placeholder.moss .ph-label {
  color: rgba(255, 255, 255, 0.6);
}
.placeholder .ph-corner {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 10px;
  height: 10px;
  border-top: 1px solid rgba(11, 31, 58, 0.35);
  border-right: 1px solid rgba(11, 31, 58, 0.35);
}
.placeholder.dark .ph-corner,
.placeholder.moss .ph-corner {
  border-color: rgba(255, 255, 255, 0.5);
}

/* abstract decorative elements inside placeholders */
.ph-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(40px);
  opacity: 0.55;
}

/* real photo container - matches .placeholder visually but renders an <img> */
.photo {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
  border: 1px solid var(--line);
}
.photo > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 0;
}
.photo > .photo-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11, 31, 58, 0.55) 0%,
    rgba(11, 31, 58, 0.10) 28%,
    rgba(11, 31, 58, 0.10) 60%,
    rgba(11, 31, 58, 0.78) 100%
  );
  pointer-events: none;
}
.photo > .photo-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  color: #FAF8F3;
}
.photo > .ph-corner {
  z-index: 3;
  border-color: rgba(255, 255, 255, 0.6);
}

/* hairline divider */
.hr {
  border: 0;
  border-top: 1px solid var(--line);
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: all 220ms cubic-bezier(.4,0,.2,1);
  border-radius: 0;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bone);
}
.btn-primary:hover {
  background: var(--moss);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--bone);
}
.btn-light {
  background: rgba(255, 255, 255, 0.1);
  color: var(--bone);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.btn-light:hover {
  background: var(--bone);
  color: var(--ink);
}
.btn .arr {
  display: inline-block;
  transition: transform 220ms ease;
}
.btn:hover .arr {
  transform: translateX(4px);
}

/* nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 248, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav a.nav-link {
  font-size: 13.5px;
  color: var(--ink);
  position: relative;
  padding: 8px 0;
  letter-spacing: 0.005em;
}
.nav a.nav-link:hover { color: var(--moss); }
.nav a.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  bottom: -1px;
  height: 1px;
  background: var(--moss);
}

/* logo mark */
.logo-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ink);
  color: var(--bone);
  font-family: "Newsreader", serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1;
}
.logo-mark .dot {
  width: 5px;
  height: 5px;
  background: var(--moss);
  border-radius: 999px;
  position: absolute;
  margin-top: 12px;
  margin-left: 22px;
}

/* hover lift */
.lift {
  transition: transform 320ms cubic-bezier(.4,0,.2,1), border-color 220ms;
}
.lift:hover {
  transform: translateY(-3px);
  border-color: var(--ink) !important;
}

/* card with corner accent */
.acc-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  padding: 28px;
  transition: all 320ms cubic-bezier(.4,0,.2,1);
}
.acc-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 28px;
  height: 1px;
  background: var(--moss);
  transition: width 320ms ease;
}
.acc-card:hover::before { width: 64px; }
.acc-card:hover {
  border-color: var(--ink);
}

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 800ms cubic-bezier(.2,.6,.2,1), transform 800ms cubic-bezier(.2,.6,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

/* big hero numerals */
.bignum {
  font-family: "Newsreader", serif;
  font-weight: 300;
  font-size: clamp(56px, 8vw, 112px);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

/* link with arrow */
.linkarr {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-weight: 500;
  font-size: 14px;
  border-bottom: 1px solid currentColor;
  padding-bottom: 2px;
}
.linkarr:hover { color: var(--moss); }
.linkarr .arr { transition: transform 220ms ease; }
.linkarr:hover .arr { transform: translateX(4px); }

/* dropcap section */
.dropcap::first-letter {
  font-family: "Newsreader", serif;
  font-weight: 350;
  float: left;
  font-size: 64px;
  line-height: 0.95;
  padding: 6px 12px 0 0;
  color: var(--ink);
}

/* dotted globe bg */
.dotgrid {
  background-image: radial-gradient(rgba(11,31,58,0.18) 1px, transparent 1px);
  background-size: 16px 16px;
}

/* badge */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--cream);
  border: 1px solid var(--line);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink);
}
.badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: var(--moss);
}

/* spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.spec-table th {
  font-weight: 500;
  color: var(--muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--cream);
}
.spec-table tr:hover td { background: rgba(11,31,58,0.02); }

/* form */
.field {
  display: block;
  width: 100%;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  transition: border-color 200ms, box-shadow 200ms;
}
.field:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(14,110,79,0.12);
}
.field-label {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}

/* footer */
.footer {
  background: var(--ink);
  color: #C8C2AE;
}
.footer h4 {
  color: var(--bone);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
}
.footer a:hover { color: var(--bone); }

/* mobile menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: var(--bone);
  z-index: 100;
  transform: translateY(-100%);
  transition: transform 380ms cubic-bezier(.4,0,.2,1);
}
.mobile-menu.open { transform: translateY(0); }

/* utility */
.container-x { max-width: 1280px; margin-inline: auto; padding-inline: clamp(20px, 4vw, 48px); }

/* selection */
::selection { background: var(--moss); color: var(--bone); }

/* image kbd-style number tile */
.tile-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink);
}

/* hero accent line */
.accent-line {
  height: 1px;
  background: linear-gradient(90deg, var(--ink) 0%, var(--moss) 35%, transparent 100%);
}

/* marquee */
.marquee {
  display: flex;
  gap: 64px;
  animation: marq 40s linear infinite;
  white-space: nowrap;
}
@keyframes marq {
  to { transform: translateX(-50%); }
}

/* product card image fill */
.card-img {
  aspect-ratio: 4 / 3;
}

/* timeline */
.timeline-node {
  position: relative;
}
.timeline-node::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 28px;
  bottom: -28px;
  width: 1px;
  background: var(--line);
}
.timeline-node:last-child::before { display: none; }
.timeline-dot {
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  background: var(--bone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.timeline-dot::after {
  content: "";
  width: 6px; height: 6px;
  background: var(--moss);
  border-radius: 999px;
}

/* world map dots (simple SVG) */
.map-dot {
  fill: var(--ink);
  opacity: 0.18;
}
.map-dot-active {
  fill: var(--moss);
  opacity: 1;
}
