/* CryptoIndia — site styles
   ---------------------------------------------------------------------------
   Palette is taken from the product itself rather than picked fresh: #05070F is
   the app's Scaffold background, #00D4AA its primary, and the golds are lifted
   from the logo's chrome-and-gold mark. Gold is the deliberate odd choice here —
   fintech reaches for blue or acid green — but it is the brand's own metal, and
   it carries "premium" without the word.

   Type: Space Grotesk for display (instrument-like, slightly mechanical
   letterforms), IBM Plex Sans for prose, IBM Plex Mono for every price, symbol
   and condition. The mono is functional: tabular digits keep decimal points
   aligned down a column, which is how a trader reads a scanner.
--------------------------------------------------------------------------- */

:root {
  --void: #05070F;
  --surface: #0B1018;
  --raised: #121926;
  --line: #1D2634;
  --line-bright: #2A3547;

  --teal: #00D4AA;
  --teal-dim: #0A7D67;
  --gold: #E3B341;
  --gold-dim: #8A6B21;
  --rise: #26C281;
  --fall: #E8483F;

  --ink: #F2F5F9;
  --ink-soft: #A8B2C3;
  --ink-mute: #6C7789;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --body: 'IBM Plex Sans', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;

  --gutter: clamp(1.25rem, 5vw, 4rem);
  --measure: 1140px;
}

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

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

body {
  margin: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Ambient grid — a faint chart lattice, not a decorative gradient blob.
   Fixed so it reads as graph paper the content sits on. */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(42, 53, 71, 0.22) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(42, 53, 71, 0.22) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 20%, transparent 75%);
}

a { color: inherit; }
img { max-width: 100%; display: block; }

.shell {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
  position: relative;
  z-index: 1;
}

/* ---------------------------------------------------------------- masthead */
.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(5, 7, 15, 0.78);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.masthead[data-stuck='true'] {
  border-bottom-color: var(--line);
  background: rgba(5, 7, 15, 0.94);
}
.masthead__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.01em;
  font-size: 1.05rem;
}
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.brand span i { color: var(--gold); font-style: normal; }

.masthead nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
}
.masthead nav a {
  font-size: .875rem;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color .2s ease;
}
.masthead nav a:hover { color: var(--ink); }
@media (max-width: 720px) {
  .masthead nav a.is-optional { display: none; }
}

/* -------------------------------------------------------------------- type */
.eyebrow {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin: 0 0 1rem;
}
.eyebrow em { color: var(--teal); font-style: normal; }

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.05;
  margin: 0;
  text-wrap: balance;
}
h1 { font-size: clamp(2.4rem, 6.6vw, 4.6rem); }
h2 { font-size: clamp(1.85rem, 4vw, 2.9rem); }
h3 { font-size: 1.1rem; letter-spacing: -.015em; }

.lede {
  font-size: clamp(1.02rem, 1.7vw, 1.2rem);
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 1.4rem 0 0;
}

/* ------------------------------------------------------------------ layout */
.band { padding-block: clamp(4.5rem, 10vw, 8.5rem); }
.band--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.band + .band { border-top: 1px solid var(--line); }

.band__head { max-width: 62ch; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.band__head p { color: var(--ink-soft); margin: 1rem 0 0; }

/* ------------------------------------------------------------------- hero */
.hero { padding-block: clamp(3.5rem, 9vw, 7rem) clamp(4rem, 8vw, 6rem); }
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: center;
}
@media (min-width: 1000px) {
  .hero__grid { grid-template-columns: 0.92fr 1.08fr; }
}
h1 .accent {
  background: linear-gradient(96deg, var(--gold) 0%, #F6D98A 55%, var(--teal) 130%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: .85rem;
  margin-top: 2.25rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .9rem 1.5rem;
  border-radius: 11px;
  font-family: var(--body);
  font-size: .95rem;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn--go {
  background: var(--teal);
  color: #04140F;
  box-shadow: 0 10px 30px -12px rgba(0, 212, 170, .55);
}
.btn--go:hover { transform: translateY(-2px); box-shadow: 0 16px 38px -12px rgba(0, 212, 170, .7); }
.btn--ghost { border-color: var(--line-bright); color: var(--ink); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem 1.5rem;
  margin-top: 1.75rem;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .06em;
  color: var(--ink-mute);
  text-transform: uppercase;
}
.hero__meta b { color: var(--ink-soft); font-weight: 500; }

/* ---------------------------------------------------- the scanner panel
   The signature element. A condition types itself, then matched rows arrive
   one by one and their prices tick — the app's actual loop, running on the
   page rather than described in a paragraph. */
.scanner {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, var(--raised) 0%, var(--surface) 100%);
  overflow: hidden;
  box-shadow: 0 40px 90px -50px rgba(0, 0, 0, .95), 0 0 0 1px rgba(227, 179, 65, .06);
}
.scanner__bar {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, .5);
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-bright); }
.dot--live { background: var(--rise); box-shadow: 0 0 0 0 rgba(38, 194, 129, .7); animation: ping 2.4s ease-out infinite; }
@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(38, 194, 129, .55); }
  70%  { box-shadow: 0 0 0 7px rgba(38, 194, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(38, 194, 129, 0); }
}
.scanner__bar span {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.scanner__bar span.tf { margin-left: auto; color: var(--gold); }

.scanner__query {
  padding: 1.15rem 1rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: clamp(.76rem, 1.6vw, .9rem);
  line-height: 1.75;
  color: var(--ink-soft);
  min-height: 4.6rem;
}
.scanner__query .k { color: var(--gold); }
.scanner__query .fn { color: var(--teal); }
.scanner__query .n { color: var(--ink); }
.caret {
  display: inline-block;
  width: 7px;
  height: 1.05em;
  background: var(--teal);
  vertical-align: -.18em;
  animation: blink 1s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.scanner__rows { list-style: none; margin: 0; padding: 0; }
.scanner__rows li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 1rem;
  align-items: center;
  padding: .8rem 1rem;
  border-bottom: 1px solid rgba(29, 38, 52, .6);
  font-family: var(--mono);
  font-size: .85rem;
  opacity: 0;
  transform: translateY(6px);
}
.scanner__rows li.in { animation: land .45s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes land { to { opacity: 1; transform: none; } }
.sym { color: var(--ink); letter-spacing: .02em; }
.px { color: var(--ink-soft); font-variant-numeric: tabular-nums; transition: color .25s ease; }
.px.up { color: var(--rise); }
.px.down { color: var(--fall); }
.chg {
  font-variant-numeric: tabular-nums;
  font-size: .8rem;
  padding: .18rem .5rem;
  border-radius: 6px;
  background: rgba(38, 194, 129, .12);
  color: var(--rise);
  min-width: 68px;
  text-align: right;
}
.scanner__foot {
  padding: .7rem 1rem;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--ink-mute);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.scanner__foot b { color: var(--teal); font-weight: 500; }

/* ------------------------------------------------------------------- cards */
.cards {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr));
}
.card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.6rem;
  background: linear-gradient(170deg, var(--surface), rgba(11, 16, 24, .35));
  transition: border-color .25s ease, transform .25s ease;
}
.card:hover { border-color: var(--line-bright); transform: translateY(-3px); }
.card code {
  display: block;
  font-family: var(--mono);
  font-size: .74rem;
  color: var(--teal);
  margin-bottom: 1rem;
  letter-spacing: .01em;
}
.card h3 { margin-bottom: .55rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: .92rem; }

/* ------------------------------------------------------- indicator lattice */
.lattice {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
}
.chip {
  font-family: var(--mono);
  font-size: .76rem;
  padding: .42rem .7rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink-soft);
  background: rgba(18, 25, 38, .5);
}
.chip--gold { border-color: var(--gold-dim); color: var(--gold); }

/* ------------------------------------------------------------------ tiers */
.tiers {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  align-items: start;
}
.tier {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.9rem;
  background: var(--surface);
}
.tier--paid {
  border-color: var(--gold-dim);
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(227, 179, 65, .09), transparent 55%),
    var(--surface);
}
.tier__name {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.tier--paid .tier__name { color: var(--gold); }
.tier__price {
  font-family: var(--display);
  font-size: 2.5rem;
  letter-spacing: -.03em;
  margin: .5rem 0 .2rem;
}
.tier__price small { font-family: var(--body); font-size: .85rem; color: var(--ink-mute); letter-spacing: 0; }
.tier ul { list-style: none; margin: 1.4rem 0 0; padding: 0; }
.tier li {
  display: grid;
  grid-template-columns: 1.3rem 1fr;
  gap: .5rem;
  padding: .42rem 0;
  font-size: .92rem;
  color: var(--ink-soft);
}
.tier li b { color: var(--ink); font-weight: 600; font-family: var(--mono); font-size: .85rem; }
.tier li i { font-style: normal; color: var(--teal); }
.tier--free li i { color: var(--ink-mute); }

/* ------------------------------------------------------------------- prose */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 3rem; font-size: clamp(1.35rem, 2.6vw, 1.7rem); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 2rem; color: var(--gold); }
.prose p, .prose li { color: var(--ink-soft); }
.prose p { margin: 1rem 0; }
.prose ul { padding-left: 1.15rem; margin: 1rem 0; }
.prose li { margin: .45rem 0; }
.prose strong { color: var(--ink); font-weight: 600; }
.prose a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.prose code {
  font-family: var(--mono);
  font-size: .88em;
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .1rem .38rem;
  color: var(--gold);
}
.stamp {
  font-family: var(--mono);
  font-size: .75rem;
  color: var(--ink-mute);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .6rem .85rem;
  display: inline-block;
  margin-bottom: 2.5rem;
}

.notice {
  border: 1px solid var(--gold-dim);
  border-left-width: 3px;
  border-radius: 10px;
  background: rgba(227, 179, 65, .05);
  padding: 1.1rem 1.3rem;
  margin: 2rem 0;
}
.notice p { margin: 0; color: var(--ink-soft); font-size: .93rem; }
.notice p + p { margin-top: .6rem; }

.table-wrap { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; font-size: .88rem; min-width: 460px; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-family: var(--mono);
  font-size: .7rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}
td { color: var(--ink-soft); }
td:first-child { color: var(--ink); }

/* ------------------------------------------------------------------ footer */
.footer { border-top: 1px solid var(--line); padding-block: 3rem 2.5rem; }
.footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  justify-content: space-between;
  align-items: flex-start;
}
.footer p { color: var(--ink-mute); font-size: .85rem; margin: .8rem 0 0; max-width: 42ch; }
.footer nav { display: grid; gap: .55rem; }
.footer nav a { font-size: .88rem; color: var(--ink-soft); text-decoration: none; }
.footer nav a:hover { color: var(--teal); }
.footer__legal {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  font-size: .78rem;
  color: var(--ink-mute);
}

/* --------------------------------------------------------- scroll reveals */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.3,1); }
.reveal.seen { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .scanner__rows li { opacity: 1; transform: none; }
}
