/* Natiora brand tokens - light mode only */
:root {
  color-scheme: light;
  --primary: #aa2b1d;
  --secondary: #cc561e;
  --tertiary: #ef8d32;
  --accent: #d3e163;
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #2a2420;
  --text-muted: #6b6258;
  --border: rgba(42, 36, 32, 0.1);
  --radius: 12px;
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --shadow: 0 18px 48px rgba(170, 43, 29, 0.08);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
}

.page {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem 1.25rem 2rem;
}

.page__grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 50;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Header */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.5rem 0 1.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: inherit;
}

.logo__mark {
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
}

.logo__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
}

.header__locale {
  margin: 0;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Hero */
.main {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
  padding-top: 0.5rem;
}

@media (min-width: 768px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    gap: 3rem;
    padding-top: 1rem;
  }
}

.hero__status {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--secondary);
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.03em;
  max-width: 18ch;
}

.hero__title-accent {
  color: var(--primary);
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 42ch;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow);
  transition: background 0.2s ease, transform 0.15s ease;
}

.cta:hover {
  background: var(--secondary);
}

.cta:active {
  transform: scale(0.98);
}

.cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* Route visual */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero__visual {
  display: flex;
  justify-content: center;
  padding: 1rem 0;
}

@media (min-width: 768px) {
  .hero__visual {
    justify-content: flex-end;
  }
}

.route-map {
  position: relative;
  width: min(100%, 460px);
  aspect-ratio: 480 / 280;
  margin: 0;
}

.route-map__land {
  position: absolute;
  display: block;
  height: auto;
  filter: brightness(0) saturate(100%) invert(9%) sepia(18%) saturate(742%)
    hue-rotate(169deg) brightness(92%) contrast(92%);
}

.route-map__land--madagascar {
  left: 2%;
  top: 50%;
  width: 14%;
  height: 42%;
  object-fit: contain;
  object-position: left center;
  transform: translateY(-50%);
}

.route-map__land--china {
  right: 0;
  top: 50%;
  width: 66%;
  height: 76%;
  object-fit: contain;
  object-position: right center;
  transform: translateY(-50%);
}

.route-map__marker {
  position: absolute;
  z-index: 2;
  width: 1.125rem;
  height: 1.125rem;
  object-fit: contain;
  transform: translate(-50%, -100%);
  filter: invert(18%) sepia(74%) saturate(2748%) hue-rotate(346deg)
    brightness(92%) contrast(93%);
}

.route-map__marker--china {
  left: 80%;
  top: 64%;
}

.route-map__marker--madagascar {
  left: 9%;
  top: 56%;
}

.route-map__overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  color: var(--primary);
}

.route-map__arrow {
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Footer */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.75rem 1.5rem;
}

.footer__note {
  margin: 0;
  max-width: 48ch;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer__copy {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Entry animation */
@media (prefers-reduced-motion: no-preference) {
  .hero__copy,
  .hero__visual {
    animation: fade-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }

  .hero__visual {
    animation-delay: 0.1s;
  }

  @keyframes fade-up {
    from {
      opacity: 0;
      transform: translateY(16px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
