/* Page-specific styles for index.html */

/* ================================================================
   HERO — manifesto with illustrated world fragment
   ================================================================ */
.hero {
  padding: 80px 0 48px;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) { .hero { padding: 40px 0 24px; } }

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
}

h1.display { max-width: 14ch; }
.hero-meta {
  display: flex; gap: 28px; flex-wrap: wrap;
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1px dashed var(--line-2);
  color: var(--ink-3);
  font-size: 13px;
  letter-spacing: 0.02em;
}
.hero-meta div { display: flex; align-items: center; gap: 10px; }
.hero-meta .k { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Hero illustrated "world fragment" ---------- */
.world-fragment {
  position: relative;
  aspect-ratio: 1 / 1.05;
  width: 100%;
  max-width: 520px;
  margin-left: auto;
}
@media (max-width: 980px) {
  .world-fragment { margin: 0 auto; }
}
.world-fragment .canvas {
  position: absolute; inset: 0;
  border-radius: 40% 60% 55% 45% / 50% 40% 60% 50%;
  background:
    radial-gradient(120% 90% at 35% 30%, #eef5f9 0%, #d7e3ec 55%, #b7ccdd 100%);
  box-shadow:
    0 50px 80px -40px rgba(20,40,60,0.35),
    inset 0 0 0 1px color-mix(in srgb, var(--line) 70%, transparent);
  overflow: hidden;
}
.world-fragment .canvas svg { width: 100%; height: 100%; display: block; }

/* "Coordinates" ticker around the fragment */
.world-coords {
  position: absolute; inset: -30px;
  pointer-events: none;
}
.world-coords .c {
  position: absolute;
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-3);
}
.world-coords .c.tl { top: 0; left: 6%; }
.world-coords .c.tr { top: 6%; right: 4%; }
.world-coords .c.br { bottom: 2%; right: 10%; }
.world-coords .c.bl { bottom: 8%; left: 0; }

.world-stamps {
  position: absolute;
  left: -14px; top: 18%;
  display: flex; flex-direction: column; gap: 10px;
}
.world-stamps .stamp:nth-child(2) { transform: rotate(2.2deg); }
.world-stamps .stamp:nth-child(3) { transform: rotate(-0.8deg); }

/* Animated pin ring */
.world-pin {
  position: absolute;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent);
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 15%, transparent),
              0 0 0 9px color-mix(in srgb, var(--accent) 8%, transparent);
}
.world-pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%;
  border: 1px solid var(--accent); opacity: 0.5;
  animation: ringPulse 2.4s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(0.5); opacity: 0.9; }
  100% { transform: scale(2.4); opacity: 0; }
}

[data-dir="compass"] .world-fragment .canvas {
  background:
    radial-gradient(120% 90% at 35% 30%, #1d3347 0%, #152738 55%, #0d1b26 100%);
  box-shadow:
    0 50px 80px -40px rgba(0,10,20,0.8),
    inset 0 0 0 1px color-mix(in srgb, var(--line-2) 60%, transparent);
}

/* ================================================================
   ETHOS — three-principle strip
   ================================================================ */
.ethos {
  padding: 72px 0 80px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
.ethos-grid {
  display: grid;
  grid-template-columns: 1fr repeat(3, 1.1fr);
  gap: 40px;
  align-items: start;
}
@media (max-width: 980px) {
  .ethos-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .ethos-grid > .lead { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .ethos-grid { grid-template-columns: 1fr; }
}
.ethos .lead h3 {
  font-size: clamp(24px, 2.5vw, 32px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin: 18px 0 0;
}
.ethos .item .num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.16em; color: var(--ink-3);
  margin-bottom: 16px; display: block;
}
.ethos .item h4 {
  font-size: 19px; letter-spacing: -0.015em; font-weight: 600;
  margin: 0 0 10px;
}
.ethos .item h4 .serif-i { color: var(--accent-ink); }
.ethos .item p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }

/* ================================================================
   PRODUCT — the horizon (roadmap of apps)
   ================================================================ */
.horizon {
  padding: 120px 0;
  position: relative;
}
@media (max-width: 600px) { .horizon { padding: 72px 0; } }

.horizon-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  margin-bottom: 64px;
  align-items: end;
}
@media (max-width: 900px) { .horizon-head { grid-template-columns: 1fr; } }
.horizon-head .right p { font-size: 17px; color: var(--ink-2); max-width: 42ch; }

.product-list {
  display: grid;
  gap: 12px;
}
.product-row {
  display: grid;
  grid-template-columns: 60px 1.4fr 1.8fr 160px 120px;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--line);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  position: relative;
}
.product-row:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
  box-shadow: 0 30px 60px -40px rgba(20,40,60,0.3);
}
@media (max-width: 980px) {
  .product-row { grid-template-columns: 60px 1fr 120px; gap: 18px; padding: 20px; }
  .product-row .p-desc, .product-row .p-status { display: none; }
}

.product-row .p-num {
  font-family: var(--font-mono);
  font-size: 11px; letter-spacing: 0.14em; color: var(--ink-3);
  border-right: 1px dashed var(--line-2);
  padding-right: 20px;
  align-self: stretch;
  display: flex; align-items: center;
}
.product-row .p-name h4 {
  margin: 0 0 4px;
  font-size: 20px; letter-spacing: -0.02em; font-weight: 600;
}
.product-row .p-name .tag {
  font-size: 12px; color: var(--ink-3);
}
.product-row .p-desc {
  font-size: 14.5px; color: var(--ink-2); line-height: 1.5;
}
.product-row .p-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.product-row .p-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--line-2);
}
.product-row[data-status="live"] .p-status { color: var(--accent-ink); }
.product-row[data-status="live"] .p-status .dot { background: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent); }
.product-row[data-status="soon"] .p-status { color: oklch(0.55 0.12 55); }
.product-row[data-status="soon"] .p-status .dot { background: oklch(0.62 0.14 55); }

.product-row .p-cta {
  justify-self: end;
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; color: var(--ink-2);
}
.product-row .p-cta svg { width: 14px; height: 14px; transition: transform .2s ease; }
.product-row:hover .p-cta svg { transform: translateX(3px); }

/* Featured row (Odyssey) */
.product-row.featured {
  grid-template-columns: 60px 1.4fr 1.8fr 160px 120px;
  padding: 0;
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
  overflow: hidden;
}
.product-row.featured .p-num { color: rgba(255,255,255,0.45); border-right-color: rgba(255,255,255,0.15); padding-left: 24px; }
.product-row.featured .p-name h4 { color: #fff; }
.product-row.featured .p-name .tag { color: rgba(255,255,255,0.6); }
.product-row.featured .p-desc { color: rgba(255,255,255,0.75); padding: 22px 0; }
.product-row.featured .p-status { color: oklch(0.82 0.09 230); }
.product-row.featured .p-status .dot { background: oklch(0.82 0.09 230); box-shadow: 0 0 0 3px color-mix(in srgb, oklch(0.82 0.09 230) 20%, transparent); }
.product-row.featured .p-cta { color: rgba(255,255,255,0.85); padding-right: 24px; }
.product-row.featured .p-name { padding: 22px 0; }
.product-row.featured .p-feature-art {
  grid-column: 1 / -1;
  height: 280px;
  background: linear-gradient(180deg, #1c3141 0%, #0f1e2a 100%);
  position: relative;
  overflow: hidden;
  display: none;
}
.product-row.featured:hover { transform: none; }

[data-dir="compass"] .product-row {
  background: var(--card);
  border-color: var(--line);
}
[data-dir="compass"] .product-row:hover {
  border-color: var(--accent);
  box-shadow: 0 30px 60px -40px rgba(0,0,0,0.6);
}
[data-dir="compass"] .product-row.featured {
  background: linear-gradient(135deg, var(--accent-soft) 0%, var(--card) 60%);
  border-color: var(--accent);
  color: var(--ink);
}
[data-dir="compass"] .product-row.featured .p-num { color: var(--ink-3); border-right-color: var(--line-2); padding-left: 24px; }
[data-dir="compass"] .product-row.featured .p-name h4 { color: var(--ink); }
[data-dir="compass"] .product-row.featured .p-name .tag { color: var(--ink-3); }
[data-dir="compass"] .product-row.featured .p-desc { color: var(--ink-2); padding: 22px 0; }
[data-dir="compass"] .product-row.featured .p-cta { color: var(--ink); padding-right: 24px; }
[data-dir="compass"] .product-row.featured .p-name { padding: 22px 0; }

/* ================================================================
   SPOTLIGHT — Odyssey Guide full showcase
   ================================================================ */
.spotlight {
  background: var(--ink);
  color: #dae7f0;
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}
@media (max-width: 600px) { .spotlight { padding: 72px 0; } }

.spotlight::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 15% 25%, rgba(200,225,245,0.12), transparent 50%),
    radial-gradient(1px 1px at 80% 70%, rgba(200,225,245,0.10), transparent 50%),
    radial-gradient(1px 1px at 50% 50%, rgba(200,225,245,0.06), transparent 50%);
  background-size: 120px 120px, 180px 180px, 240px 240px;
  opacity: 0.7;
}
.spotlight > .wrap { position: relative; z-index: 1; }

.spotlight .kicker { color: rgba(218,231,240,0.55); }
.spotlight .kicker::before { background: rgba(218,231,240,0.55); }
.spotlight h2.section-title { color: #eaf2f8; }
.spotlight h2.section-title .serif-i { color: oklch(0.78 0.09 230); }

.spotlight-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 72px;
  align-items: center;
  margin-top: 56px;
}
@media (max-width: 980px) {
  .spotlight-grid { grid-template-columns: 1fr; gap: 48px; }
  .spotlight-phone { max-width: 340px; margin: 0 auto; }
}

.spotlight-copy h3 {
  font-size: clamp(26px, 2.8vw, 34px);
  letter-spacing: -0.025em; line-height: 1.12; font-weight: 600;
  margin: 0 0 16px;
  color: #eaf2f8;
}
.spotlight-copy h3 .serif-i { color: oklch(0.78 0.09 230); }
.spotlight-copy p { font-size: 16.5px; color: rgba(218,231,240,0.75); margin: 0 0 20px; }

.spotlight-feats {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0;
  margin-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.spotlight-feats .sf {
  padding: 22px 24px 22px 0;
  border-right: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.spotlight-feats .sf:nth-child(2n) { border-right: 0; padding-left: 24px; padding-right: 0; }
.spotlight-feats .sf:nth-last-child(-n+2) { border-bottom: 0; }
.spotlight-feats .sf h5 {
  margin: 0 0 6px;
  font-size: 14.5px; letter-spacing: -0.01em; font-weight: 600;
  color: #eaf2f8;
}
.spotlight-feats .sf p {
  font-size: 13px; color: rgba(218,231,240,0.6); margin: 0; line-height: 1.5;
}
@media (max-width: 600px) {
  .spotlight-feats { grid-template-columns: 1fr; }
  .spotlight-feats .sf { border-right: 0; padding-left: 0 !important; padding-right: 0; }
}

.spotlight-cta {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: oklch(0.82 0.09 230);
  color: var(--ink);
  font-size: 14px; font-weight: 600;
  transition: transform .15s ease;
}
.spotlight-cta:hover { transform: translateY(-1px); }

/* Stylized phone screen */
.spotlight-phone {
  position: relative;
  aspect-ratio: 9 / 16;
  border-radius: 32px;
  background: linear-gradient(180deg, #f7fafc 0%, #e6eff5 100%);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.8) inset,
    0 60px 80px -40px rgba(0, 20, 40, 0.6),
    0 30px 40px -20px rgba(0, 20, 40, 0.4);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.15);
}
.spotlight-phone .status {
  display: flex; justify-content: space-between; align-items: center;
  padding: 16px 22px 8px;
  font-size: 13px; font-weight: 600; color: var(--ink);
}
.spotlight-phone .status .dots { display: flex; gap: 5px; }
.spotlight-phone .status .dots i {
  width: 5px; height: 5px; border-radius: 50%; background: var(--ink); display: inline-block;
}
.spotlight-phone .map-area {
  position: absolute; left: 0; right: 0; bottom: 0; top: 44px;
  background: radial-gradient(120% 80% at 30% 20%, #e6f0f6 0%, #d3e1ec 45%, #b8cddd 100%);
  overflow: hidden;
}
.spotlight-phone .map-area > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.spotlight-phone .pin {
  position: absolute;
  width: 28px; height: 28px; border-radius: 50%;
  background: oklch(0.55 0.08 230); color: #fff;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 600;
  box-shadow: 0 4px 10px rgba(20, 60, 100, 0.35), 0 0 0 4px rgba(255,255,255,0.9);
}
.spotlight-phone .pin.here {
  background: var(--ink); width: 20px; height: 20px;
  box-shadow: 0 0 0 4px rgba(255,255,255,0.9), 0 0 0 10px color-mix(in srgb, var(--ink) 18%, transparent);
}
.spotlight-phone .sheet {
  position: absolute; left: 14px; right: 14px; bottom: 14px;
  background: #fff;
  border-radius: 18px;
  padding: 14px 16px 16px;
  box-shadow: 0 10px 24px -12px rgba(30,20,0,0.18);
  border: 1px solid var(--line);
  color: var(--ink);
}
.spotlight-phone .sheet .handle {
  width: 34px; height: 4px; border-radius: 2px; background: var(--line-2);
  margin: 0 auto 10px;
}
.spotlight-phone .sheet .stop-row {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; color: var(--ink-3); margin-bottom: 6px;
}
.spotlight-phone .sheet .pill {
  font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px;
  background: oklch(0.93 0.025 230); color: oklch(0.38 0.07 235);
  font-weight: 600;
}
.spotlight-phone .sheet h3 {
  font-size: 16px; margin: 2px 0 4px; letter-spacing: -0.015em; font-weight: 600;
}
.spotlight-phone .sheet p {
  font-size: 12.5px; color: var(--ink-2); margin: 0 0 12px; line-height: 1.45;
}
.spotlight-phone .sheet .meta-row {
  display: flex; gap: 14px; font-size: 11.5px; color: var(--ink-3);
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.spotlight-phone .sheet .k { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }

/* ================================================================
   MANIFESTO — "how we think about travel"
   ================================================================ */
.manifesto {
  padding: 140px 0 120px;
}
@media (max-width: 600px) { .manifesto { padding: 80px 0; } }

.manifesto-quote {
  max-width: 22ch;
  font-size: clamp(36px, 5vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 56px;
}
.manifesto-quote .serif-i {
  color: var(--accent-ink);
}
.manifesto-quote .mark { color: var(--accent); font-family: var(--font-serif); font-style: italic; }

.manifesto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px dashed var(--line-2);
}
@media (max-width: 900px) { .manifesto-grid { grid-template-columns: 1fr; gap: 32px; } }
.manifesto-grid .item h5 {
  font-size: 15px; letter-spacing: -0.01em; font-weight: 600; margin: 0 0 8px;
}
.manifesto-grid .item p { font-size: 14.5px; color: var(--ink-2); margin: 0; line-height: 1.55; }
.manifesto-grid .item .num {
  display: block;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; color: var(--accent-ink);
  margin-bottom: 14px;
}

/* ================================================================
   CLOSING + signup
   ================================================================ */
.closing {
  text-align: center;
  padding: 140px 0 96px;
  border-top: 1px solid var(--line);
  background: var(--bg-2);
}
@media (max-width: 600px) { .closing { padding: 80px 0 56px; } }
.closing h2 {
  font-size: clamp(44px, 6vw, 84px);
  max-width: 20ch;
  margin: 20px auto 22px;
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.closing h2 .serif-i { color: var(--accent-ink); font-family: var(--font-serif); font-style: italic; font-weight: 500; }
.closing p {
  font-size: 18px; color: var(--ink-2); max-width: 56ch; margin: 0 auto 36px;
}
.signup-form {
  display: inline-flex; align-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 6px 6px 22px;
  min-width: 380px;
  max-width: 100%;
  box-shadow: 0 20px 40px -28px rgba(20,40,60,0.25);
}
.signup-form input {
  flex: 1;
  border: 0; background: none;
  font: inherit;
  color: var(--ink);
  outline: none;
  padding: 10px 0;
  min-width: 0;
}
.signup-form button {
  padding: 11px 20px;
  border-radius: 999px;
  background: var(--ink); color: var(--bg);
  font-size: 14px; font-weight: 500;
  transition: transform .15s ease;
}
.signup-form button:hover { transform: translateY(-1px); }

/* ================================================================
   FOOTER
   ================================================================ */
footer {
  padding: 48px 0 72px;
  color: var(--ink-3);
  font-size: 13px;
  border-top: 1px solid var(--line);
}
footer .row {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 40px;
}
@media (max-width: 780px) {
  footer .row { grid-template-columns: 1fr 1fr; gap: 32px; }
}
footer .col h6 {
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink); font-weight: 600;
  margin: 0 0 14px;
}
footer .col a { display: block; padding: 4px 0; color: var(--ink-2); }
footer .col a:hover { color: var(--ink); }
footer .col p { margin: 0; color: var(--ink-2); line-height: 1.55; max-width: 34ch; }
footer .bottom {
  margin-top: 56px;
  padding-top: 24px;
  border-top: 1px dashed var(--line-2);
  display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
}

/* ---------- Compass mode footer tweak ---------- */
[data-dir="compass"] .closing { background: var(--bg-2); }
[data-dir="compass"] .signup-form { background: var(--card); border-color: var(--line-2); }
[data-dir="compass"] .signup-form button { background: var(--accent); color: #0f1e2a; }
[data-dir="compass"] .spotlight { background: #060f17; }
[data-dir="compass"] .spotlight-cta { background: var(--accent); color: #0f1e2a; }
