/* ==========================================================================
   IndoLinessa Market — "Obsidian Glass"
   Lapisan di atas app.css. Kanvas obsidian, kaca cair, tipografi editorial.
   Tanpa gradient dekoratif dan tanpa animasi latar yang berat.
   ========================================================================== */

@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/spacegrotesk-latin.woff2') format('woff2');
}

/* ---------- 1. Token ---------- */

:root {
  --obsidian: #07070a;
  --obsidian-2: #0a0a0f;
  --glass-bg: rgba(14, 14, 20, 0.55);
  --glass-bg-hi: rgba(20, 20, 28, 0.66);
  --glass-line: rgba(255, 255, 255, 0.10);
  --glass-line-hi: rgba(255, 255, 255, 0.20);
  --glass-blur: 14px;
  --glass-sat: 145%;

  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 30px;

  --ease-cine: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);

  --lift-1: 0 1px 0 rgba(255, 255, 255, 0.05), 0 24px 50px -38px #000;
  --lift-2: 0 1px 0 rgba(255, 255, 255, 0.06), 0 50px 100px -70px #000;

  --font: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ---------- 2. Kanvas ---------- */

html {
  background: var(--obsidian);
}

body {
  background-color: var(--obsidian);
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.014) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.014) 1px, transparent 1px);
  background-size: 48px 48px;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent);
  color: #16110a;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Latar: satu warna obsidian, tanpa lapisan blur atau butir film. */

header.nav,
main,
footer,
.mobile-nav,
.ticker {
  position: relative;
  z-index: 2;
}

/* ---------- 3. Tipografi ---------- */

body,
h1,
h2,
h3,
h4,
.btn,
.nav-links a,
.brand-text b {
  font-family: var(--display);
}

h1,
h2,
h3 {
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.hero h1 {
  font-size: clamp(42px, 6.1vw, 82px);
  line-height: 0.94;
  font-weight: 600;
  letter-spacing: -0.042em;
}

.hero .lead {
  font-size: 16.5px;
  line-height: 1.62;
  color: rgba(244, 244, 245, 0.72);
}

.section-head h2 {
  font-size: clamp(30px, 3.9vw, 50px);
  line-height: 1.0;
  font-weight: 600;
  letter-spacing: -0.038em;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.42);
}

.grad-text {
  color: var(--accent);
}

/* ---------- 4. Nav kaca ---------- */

.nav {
  background: rgba(7, 7, 10, 0.42);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  transition:
    background 0.4s var(--ease-soft),
    border-color 0.4s var(--ease-soft),
    box-shadow 0.4s var(--ease-soft);
}

body.is-scrolled .nav {
  background: rgba(8, 8, 12, 0.72);
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 24px 50px -44px #000;
}

.brand img {
  border-radius: 10px;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.55));
}

.brand-text b {
  font-weight: 600;
  letter-spacing: -0.03em;
}

.brand-text small {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.44);
}

.nav-links a {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.56);
  transition: color 0.3s var(--ease-soft);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a.active::after {
  background: var(--accent);
  height: 1px;
}

.nav-login-link {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nav-balance {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.nav-balance span {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.44);
}

.nav-user {
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.nav-user .avatar {
  border-radius: 8px;
  background: rgba(233, 180, 76, 0.14);
  color: var(--accent);
  border: 1px solid rgba(233, 180, 76, 0.28);
}

.icon-btn {
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.03);
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.20);
}

.notif-panel {
  border-radius: var(--r-md);
  border: 1px solid var(--glass-line);
  background: rgba(11, 11, 16, 0.92);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  backdrop-filter: blur(24px) saturate(150%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.10),
    var(--lift-2);
}

/* ---------- 5. Ticker ---------- */

.ticker {
  height: 34px;
  background: rgba(9, 9, 13, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
}

.ticker::after {
  background: none;
}

.tick {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.tick b {
  letter-spacing: 0.1em;
}

/* ---------- 6. Hero ---------- */

.hero {
  position: relative;
  padding: clamp(64px, 9vw, 118px) 0 clamp(48px, 6vw, 82px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

/* Kata hantu raksasa sudah dihapus. */

.hero .container,
.hero .container > .hero-grid {
  position: relative;
  z-index: 1;
}

.hero-grid {
  gap: clamp(34px, 4.4vw, 68px);
}

.hero-badge {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.10);
}

.hero-note {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: rgba(244, 244, 245, 0.42);
}

.hero-chip {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.025);
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.5);
}

.hero-chip b {
  color: var(--text);
  letter-spacing: 0.02em;
}

/* Kartu market: slab kaca dengan bibir cahaya. */
.hero-visual {
  position: relative;
}

.hero-visual::before {
  content: "";
  position: absolute;
  inset: -14% -8%;
  background: rgba(233, 180, 76, 0.05);
  filter: blur(70px);
  border-radius: 50%;
  pointer-events: none;
}

.market-card {
  position: relative;
  z-index: 1;
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-line);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    inset 0 -1px 0 rgba(0, 0, 0, 0.5),
    var(--lift-2);
  padding: 20px;
  will-change: transform;
}

.market-card-top {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  padding-bottom: 14px;
}

.market-card-price .price {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.04em;
}

.market-card-rows {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  margin-top: 14px;
}

.mc-row {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
  transition: background 0.25s var(--ease-soft);
}

.mc-row:hover {
  background: rgba(255, 255, 255, 0.035);
}

.market-card-foot {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.42);
}

/* Petunjuk gulir */
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 7px 13px;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.55);
  background: rgba(8, 8, 12, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 999px;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: none;
  z-index: 4;
}

.scroll-cue i {
  display: block;
  width: 22px;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  position: relative;
  overflow: hidden;
}

.scroll-cue i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: var(--text);
  animation: cue-slide 2.2s var(--ease-soft) infinite;
}

@keyframes cue-slide {
  0% { transform: translateX(-110%); opacity: 0; }
  30% { opacity: 1; }
  100% { transform: translateX(260%); opacity: 0; }
}

body[data-page="landing"] .scroll-cue {
  display: inline-flex;
}

body:not([data-page="landing"]) .scroll-cue {
  display: none;
}

/* ---------- 7. Tombol ---------- */

.btn {
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.035);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-weight: 500;
  letter-spacing: -0.008em;
  transition:
    transform 0.18s var(--ease-soft),
    background 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.btn:hover {
  background: rgba(255, 255, 255, 0.075);
  border-color: rgba(255, 255, 255, 0.22);
}

.btn:active {
  transform: translateY(1px) scale(0.985);
}

.btn-primary {
  background: var(--accent);
  border-color: rgba(255, 255, 255, 0.20);
  color: var(--accent-ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.45),
    0 18px 36px -28px rgba(233, 180, 76, 0.9);
}

.btn-primary:hover {
  background: var(--accent-hover);
  border-color: rgba(255, 255, 255, 0.26);
}

/* ---------- 8. Statistik ---------- */

.stats-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.018);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-radius: 0;
}

.stats-strip > div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}

.stats-strip .l {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(244, 244, 245, 0.40);
}

.stats-strip .v {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

/* ---------- 9. Permukaan kaca ---------- */

.card,
.feature,
.cta-panel {
  background: var(--glass-bg);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  backdrop-filter: blur(var(--glass-blur)) saturate(var(--glass-sat));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.13),
    inset 0 -1px 0 rgba(0, 0, 0, 0.4),
    var(--lift-1);
}

.card {
  border-radius: var(--r-lg);
}

.card-tight {
  overflow: hidden;
}

.card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}

.feature {
  border-radius: var(--r-md);
  transition:
    transform 0.5s var(--ease-cine),
    border-color 0.5s var(--ease-cine),
    background 0.5s var(--ease-cine);
}

.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.18);
  background: var(--glass-bg-hi);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    var(--lift-2);
}

.feature .ico {
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
}

.cta-panel {
  border-radius: var(--r-xl);
  padding: clamp(28px, 4vw, 52px);
  overflow: clip;
}

.trust-strip {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.015);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.trust-item {
  background: transparent;
}

.trust-item + .trust-item {
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.trust-item b {
  font-family: var(--display);
  letter-spacing: -0.01em;
}

/* ---------- 10. Tabel & daftar market ---------- */

table.data {
  font-family: var(--display);
}

table.data th {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: rgba(244, 244, 245, 0.38);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

table.data td {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

table.data tbody tr:hover {
  background: rgba(255, 255, 255, 0.03);
}

table.data .num,
table.data .sym {
  font-family: var(--mono);
  font-size: 11.5px;
}

.mm-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.mm-card:hover {
  background: rgba(255, 255, 255, 0.03);
}

.mm-sym {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
}

.mm-price {
  font-family: var(--mono);
}

.code-pill {
  border-radius: 6px;
  border: 1px solid rgba(233, 180, 76, 0.22);
  background: rgba(233, 180, 76, 0.08);
  color: var(--accent);
}

.step {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.step::before {
  color: var(--accent);
  letter-spacing: 0.18em;
}

.step h3 {
  font-size: 17px;
  letter-spacing: -0.02em;
}

/* ---------- 11. Footer & nav mobile ---------- */

footer {
  background: var(--obsidian-2);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.foot-brand p {
  color: rgba(244, 244, 245, 0.52);
}

.foot-col h4 {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(244, 244, 245, 0.40);
}

.foot-col a {
  color: rgba(244, 244, 245, 0.68);
}

.foot-col a:hover {
  color: var(--text);
}

.foot-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(244, 244, 245, 0.40);
}

.mobile-nav {
  background: rgba(8, 8, 12, 0.78);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(20px) saturate(150%);
  backdrop-filter: blur(20px) saturate(150%);
}

.mnav-item {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

/* ---------- 12. Ritme section & reveal sinematik ---------- */

body[data-page="landing"] .eyebrow .chapter {
  display: inline-block;
  margin-right: 10px;
  padding-right: 10px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--accent);
  font-weight: 500;
}

body[data-page="landing"] .section-head.between {
  max-width: none;
  align-items: flex-end;
  gap: 28px;
}

body[data-page="landing"] .section-head.between > div {
  max-width: 640px;
}

body[data-page="landing"] .section-head.between > .btn {
  margin-bottom: 6px;
}

@supports (animation-timeline: view()) {
  .reveal {
    animation: rise-in linear both;
    animation-timeline: view();
    animation-range: entry 2% cover 24%;
  }

  .hero-copy {
    animation: scene-in linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 55%;
  }

  .hero-visual {
    animation: scene-in linear both;
    animation-timeline: view();
    animation-range: entry 6% entry 62%;
  }

  @keyframes scene-in {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
  }

  @keyframes rise-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
  }
}

/* ---------- 13. Layar kecil ---------- */

@media (max-width: 900px) {
  .scroll-cue {
    display: none !important;
  }

  .hero {
    padding-top: 46px;
  }

  .stats-strip {
    background: rgba(255, 255, 255, 0.014);
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: clamp(34px, 10vw, 46px);
  }

  /* Sparkline 168px tidak muat di samping harga di layar sempit. */
  .hero-mini-chart {
    display: none;
  }

  .card,
  .feature,
  .cta-panel {
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }
}

/* ---------- 14. Reduced transparency (bukan motion) ---------- */

@media (prefers-reduced-transparency: reduce) {
  .nav,
  .ticker,
  .market-card,
  .card,
  .feature,
  .cta-panel,
  .stats-strip,
  .trust-strip,
  .btn,
  .hero-badge,
  .notif-panel {
    background: rgba(10, 10, 14, 0.97);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
}

/* ---------- 15. Jaring aman layout sempit ----------
   Halaman panduan punya blok panjang (tabel & kode) yang bisa memaksa
   grid melebar melewati layar HP. Kolom dibuat boleh menyusut dan
   tabel diberi scroll sendiri, jadi tidak ada geser horizontal. */

@media (max-width: 980px) {
  .guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .guide-grid > * {
    min-width: 0;
  }

  .guide-nav {
    min-width: 0;
  }

  .guide-nav a {
    overflow-wrap: anywhere;
  }

  .guide-section {
    min-width: 0;
    overflow-wrap: break-word;
  }

  .guide-section table.data {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}