:root {
  --bg: #0a0d10;
  --bg2: #0f1419;
  --surface: #141a21;
  --card: #181f28;
  --line: #243040;
  --line2: #2e3d52;
  --text: #e8eef6;
  --muted: #8b9bb0;
  --faint: #5a6b80;
  --teal: #2dd4bf;
  --teal2: #14b8a6;
  --teal-dim: rgba(45, 212, 191, 0.14);
  --amber: #f5c542;
  --bad: #f07178;
  --good: #7fd99a;
  --radius: 14px;
  --font: "DM Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
a { color: var(--teal); text-decoration: none; }
a:hover { color: #5eead4; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

.ca-strip {
  background: #0c1015;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: flex; justify-content: center; gap: 10px; align-items: center;
  padding: 7px 16px;
  letter-spacing: 0.02em;
}
.ca-strip b { color: var(--text); font-weight: 600; }
.ca-strip .pill {
  font-family: var(--mono); font-size: 11px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 2px 10px; color: var(--teal);
}

.top {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; letter-spacing: 0.04em; font-size: 18px; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 18px; }
.nav a { color: var(--muted); font-size: 14px; font-weight: 500; }
.nav a.here, .nav a:hover { color: var(--text); }
.wbtn {
  background: var(--card); border: 1px solid var(--line2); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--text);
}
.wbtn.on { border-color: var(--teal); color: var(--teal); }

.hero {
  max-width: 1120px; margin: 0 auto; padding: 28px 20px 10px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center;
}
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } .nav { display: none; } }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal); font-weight: 600; margin: 0 0 14px;
}
.kicker i { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px var(--teal-dim); }
h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 0 0 14px; letter-spacing: -0.03em; font-weight: 700; }
h1 span { color: var(--teal); }
.lead { color: var(--muted); font-size: 17px; line-height: 1.55; max-width: 36ch; margin: 0 0 22px; }
.ctas { display: flex; gap: 10px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--teal); color: #042f2e; font-weight: 700; font-size: 14px;
  border: 0; border-radius: 12px; padding: 12px 18px; letter-spacing: 0.02em;
}
.btn:hover { background: #5eead4; color: #042f2e; }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--line2); }
.btn.ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.panel {
  background: linear-gradient(180deg, #161d26, #121820);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 18px 18px 16px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.35);
}
.panel .phead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.panel h2, .panel h3 { margin: 0; font-size: 14px; font-weight: 600; color: var(--muted); letter-spacing: 0.04em; text-transform: uppercase; }
.hcRow { display: flex; justify-content: space-between; font-size: 14px; margin: 8px 0 4px; color: var(--muted); }
.hcRow b { color: var(--text); font-family: var(--mono); font-weight: 600; }
.hcRow b.teal { color: var(--teal); }
.bar { height: 8px; background: #0c1117; border-radius: 99px; overflow: hidden; margin-bottom: 6px; }
.bar i { display: block; height: 100%; background: #3a4a5e; border-radius: 99px; }
.bar i.teal { background: linear-gradient(90deg, var(--teal2), var(--teal)); }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 14px 0 0; }
.facts div { background: #0e141b; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.facts dt { margin: 0; font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: 0.06em; }
.facts dd { margin: 4px 0 0; font-family: var(--mono); font-size: 15px; font-weight: 600; color: var(--text); }
.hint { font-size: 12px; color: var(--faint); margin: 12px 0 0; line-height: 1.45; }

.features {
  max-width: 1120px; margin: 40px auto 10px; padding: 0 20px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
@media (max-width: 860px) { .features { grid-template-columns: 1fr; } }
.feature {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px;
}
.feature .fnum { font-family: var(--mono); color: var(--teal); font-size: 12px; }
.feature h3 { margin: 8px 0 6px; font-size: 16px; }
.feature p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.how { max-width: 1120px; margin: 36px auto; padding: 0 20px; }
.how h2 { font-size: 22px; margin: 0 0 14px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; counter-reset: s; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
.steps li {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.steps li b { font-size: 14px; }
.steps li span { font-size: 13px; color: var(--muted); line-height: 1.4; }

.latest { max-width: 1120px; margin: 20px auto 50px; padding: 0 20px; }
.secHead { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.secHead h2 { margin: 0; font-size: 20px; }
.tokenGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.tcard {
  display: flex; gap: 12px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px;
  color: inherit;
}
.tcard:hover { border-color: var(--line2); }
.tcard img { width: 44px; height: 44px; border-radius: 10px; background: #0c1117; object-fit: cover; }
.tcard .meta { min-width: 0; }
.tcard .meta b { display: block; font-size: 14px; }
.tcard .meta span { font-size: 12px; color: var(--muted); font-family: var(--mono); }

.foot {
  max-width: 1120px; margin: 0 auto; padding: 28px 20px 40px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between;
  font-size: 12px; color: var(--faint);
}
.foot nav { display: flex; gap: 14px; }
.foot a { color: var(--muted); }
.foot .ca { font-family: var(--mono); color: var(--teal); }

/* Launch page */
.layout { max-width: 1120px; margin: 0 auto; padding: 10px 20px 50px; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 18px; }
@media (max-width: 920px) { .layout { grid-template-columns: 1fr; } }
.intro { grid-column: 1 / -1; margin-bottom: 4px; }
.intro h1 { font-size: clamp(28px, 4vw, 40px); }
.intro p { color: var(--muted); margin: 8px 0 0; max-width: 60ch; }

.bigMoney {
  display: flex; align-items: baseline; gap: 4px;
  font-size: 42px; font-weight: 700; font-family: var(--mono); letter-spacing: -0.03em;
  margin: 6px 0 14px;
}
.bigMoney i { color: var(--faint); font-style: normal; font-size: 28px; }
.bigMoney input {
  background: transparent; border: 0; outline: 0; width: 100%;
  font: inherit; color: var(--teal); padding: 0;
}

.track {
  position: relative; height: 28px; touch-action: none;
  margin: 8px 0 4px;
}
.track .fill {
  position: absolute; left: 0; top: 10px; height: 8px; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal2), var(--teal));
  width: 40%;
}
.track::before {
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 8px;
  background: #0c1117; border-radius: 99px; border: 1px solid var(--line);
}
.track .knob {
  position: absolute; top: 3px; width: 22px; height: 22px; margin-left: -11px;
  border-radius: 50%; background: var(--text); border: 3px solid var(--teal);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4); z-index: 2;
}
.track .normal {
  position: absolute; top: 0; bottom: 0; width: 2px; background: var(--amber); opacity: 0.7;
  z-index: 1;
}
.track .normal span {
  position: absolute; top: -16px; left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--amber); white-space: nowrap; letter-spacing: 0.04em;
}
.ticks { position: relative; height: 18px; margin-bottom: 8px; color: var(--faint); font-size: 10px; font-family: var(--mono); }
.ticks span { position: absolute; transform: translateX(-50%); }

.chart {
  height: 160px; margin-top: 12px; background: #0c1117; border: 1px solid var(--line);
  border-radius: 12px; position: relative; overflow: hidden;
}
.chart svg { width: 100%; height: 100%; display: block; }
.chart .label { position: absolute; left: 10px; top: 8px; font-size: 11px; color: var(--faint); }

.form .step { margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.form .step:last-of-type { border-bottom: 0; }
.form h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 13px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.form h3 b { color: var(--teal); font-family: var(--mono); }
.form input, .form textarea, .form select {
  width: 100%; background: #0e141b; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 8px;
}
.form input:focus, .form textarea:focus, .form select:focus { outline: 1px solid var(--teal); border-color: var(--teal); }
.coinRow { display: flex; gap: 10px; }
.img {
  width: 72px; height: 72px; flex: 0 0 72px; border-radius: 12px; border: 1px dashed var(--line2);
  display: flex; align-items: center; justify-content: center; background: #0e141b; overflow: hidden;
  color: var(--faint); font-size: 12px; cursor: pointer;
}
.img img { width: 100%; height: 100%; object-fit: cover; }
.coinFields { flex: 1; }
.seg { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; }
.seg button {
  background: #0e141b; border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font-size: 12px; font-weight: 600; color: var(--muted);
}
.seg button.on { border-color: var(--teal); color: var(--teal); background: var(--teal-dim); }
.money { display: flex; align-items: center; gap: 8px; background: #0e141b; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; }
.money input { border: 0; background: transparent; margin: 0; padding: 10px 0; }
.money i { font-style: normal; color: var(--faint); font-family: var(--mono); font-size: 13px; }
.go {
  width: 100%; background: var(--teal); color: #042f2e; border: 0; border-radius: 12px;
  padding: 14px; font-weight: 800; font-size: 15px; letter-spacing: 0.03em; margin-top: 6px;
}
.go:disabled { opacity: 0.4; cursor: not-allowed; }
.log { list-style: none; padding: 0; margin: 12px 0 0; font-size: 13px; font-family: var(--mono); }
.log li { padding: 6px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.log li.ok { color: var(--good); }
.log li.err { color: var(--bad); }
.warn { color: var(--bad); font-size: 13px; }

.docs { max-width: 900px; margin: 0 auto; padding: 20px 20px 60px; display: grid; grid-template-columns: 180px 1fr; gap: 28px; }
@media (max-width: 720px) { .docs { grid-template-columns: 1fr; } .toc { display: none; } }
.toc { position: sticky; top: 20px; align-self: start; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.toc a { color: var(--muted); }
.toc a:hover { color: var(--teal); }
.doc h1 { font-size: 32px; margin: 0 0 8px; }
.doc .lead { color: var(--muted); margin-bottom: 24px; }
.doc h2 { font-size: 18px; margin: 28px 0 10px; color: var(--text); }
.doc p, .doc li { color: var(--muted); line-height: 1.55; font-size: 15px; }
.doc ul { padding-left: 18px; }
.doc .note {
  background: var(--teal-dim); border: 1px solid rgba(45,212,191,0.25);
  border-radius: 12px; padding: 12px 14px; color: var(--text); font-size: 14px; margin: 12px 0;
}

.wpick {
  border: 1px solid var(--line2); border-radius: 16px; background: var(--card); color: var(--text);
  padding: 18px; max-width: 360px;
}
.wpick::backdrop { background: rgba(0,0,0,0.65); }
.wpick h3 { margin: 0 0 12px; }
.wpick ul { list-style: none; padding: 0; margin: 0 0 12px; }
.wpick li button {
  width: 100%; display: flex; gap: 10px; align-items: center;
  background: #0e141b; border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; margin-bottom: 6px; text-align: left;
}
.wpick li button:hover { border-color: var(--teal); }
.wpick img { width: 22px; height: 22px; border-radius: 6px; }
.wpick .wclose { width: 100%; background: transparent; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: var(--muted); }

.tag {
  font-size: 11px; font-family: var(--mono); color: var(--teal);
  background: var(--teal-dim); border-radius: 999px; padding: 3px 8px;
}

/* ——— effects shell ——— */
#ript-water, .water-css {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.water-css {
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(45,212,191,0.10), transparent 55%),
    radial-gradient(80% 60% at 20% 80%, rgba(20,184,166,0.07), transparent 50%),
    linear-gradient(180deg, #0a0d10 0%, #0c1218 50%, #0a1014 100%);
  animation: waterDrift 18s ease-in-out infinite alternate;
}
@keyframes waterDrift {
  from { filter: hue-rotate(0deg); transform: scale(1); }
  to { filter: hue-rotate(8deg); transform: scale(1.03); }
}
.fx-off #ript-water, .fx-off .water-css { display: none; }
.ca-strip, .top, main, .foot, .mnav, #ript-loader { position: relative; z-index: 1; }
body { min-height: 100vh; overflow-x: hidden; }
main { animation: riseIn 0.55s ease both; }
@keyframes riseIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  main { animation: none; }
  .water-css { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ——— loader ——— */
#ript-loader {
  position: fixed; inset: 0; z-index: 9999;
  display: grid; place-items: center;
  background: #070a0d;
  transition: opacity 0.45s ease, visibility 0.45s ease;
}
#ript-loader.gone { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-mark {
  position: relative; width: 96px; height: 96px;
  display: grid; place-items: center;
}
.loader-mark img {
  width: 72px; height: 72px; border-radius: 18px;
  position: relative; z-index: 2;
  animation: logoPop 0.7s cubic-bezier(.2,.8,.2,1) both;
}
.loader-ring {
  position: absolute; inset: 0; border-radius: 50%;
  border: 1.5px solid rgba(45,212,191,0.35);
  animation: ringOut 1.35s ease-out infinite;
}
.loader-ring:nth-child(2) { animation-delay: 0.35s; }
.loader-ring:nth-child(3) { animation-delay: 0.7s; }
.loader-word {
  margin-top: 22px; font-weight: 700; letter-spacing: 0.22em;
  font-size: 12px; color: var(--teal); text-transform: uppercase;
  opacity: 0; animation: fadeWord 0.5s 0.25s ease forwards;
}
@keyframes logoPop {
  from { opacity: 0; transform: scale(0.82) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes ringOut {
  0% { transform: scale(0.55); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}
@keyframes fadeWord { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .loader-mark img, .loader-ring, .loader-word { animation: none; opacity: 1; }
}

/* ——— nav polish ——— */
.top {
  backdrop-filter: blur(10px);
  background: rgba(10,13,16,0.55);
  border-bottom: 1px solid transparent;
  position: sticky; top: 0; z-index: 40;
  max-width: none; padding-left: max(20px, calc((100% - 1120px) / 2 + 20px));
  padding-right: max(20px, calc((100% - 1120px) / 2 + 20px));
}
.nav { gap: 6px; flex-wrap: wrap; justify-content: center; }
.nav a {
  color: var(--muted); font-size: 13px; font-weight: 500;
  padding: 6px 10px; border-radius: 999px;
  transition: color 0.15s, background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
.nav a.here {
  color: var(--teal); background: var(--teal-dim);
  border-color: rgba(45,212,191,0.25);
}
.nav a:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.brand { transition: opacity 0.15s; }
.brand:hover { opacity: 0.85; color: var(--text); }
.wbtn { transition: border-color 0.15s, color 0.15s, transform 0.15s; }
.wbtn:hover { border-color: var(--teal); transform: translateY(-1px); }
.btn, .go, .seg button {
  transition: transform 0.15s, background 0.15s, border-color 0.15s, color 0.15s, box-shadow 0.15s;
}
.btn:hover, .go:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(45,212,191,0.22); }
.panel, .feature, .tcard, .steps li {
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  background: rgba(24,31,40,0.78);
  backdrop-filter: blur(8px);
}
.panel:hover, .feature:hover, .tcard:hover, .steps li:hover {
  border-color: rgba(45,212,191,0.28);
  box-shadow: 0 12px 40px rgba(0,0,0,0.28);
}
.tcard:hover { transform: translateY(-2px); color: inherit; }
.feature:hover { transform: translateY(-2px); }

/* page shell */
.pageHead {
  max-width: 1120px; margin: 0 auto; padding: 24px 20px 8px;
}
.pageHead h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 8px; letter-spacing: -0.03em; }
.pageHead p { color: var(--muted); margin: 0; max-width: 56ch; line-height: 1.5; }

/* claim / portfolio cards */
.grid2 {
  max-width: 1120px; margin: 0 auto; padding: 12px 20px 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
}
@media (max-width: 860px) { .grid2 { grid-template-columns: 1fr; } }
.emptyState {
  max-width: 1120px; margin: 20px auto; padding: 40px 20px;
  text-align: center; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 18px;
  background: rgba(20,26,33,0.55);
}
.emptyState b { display: block; color: var(--text); font-size: 18px; margin-bottom: 6px; }

/* mobile bottom tabs */
.mnav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  background: rgba(10,13,16,0.92); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  justify-content: space-around;
}
.mnav a {
  flex: 1; text-align: center; color: var(--faint);
  font-size: 10px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 8px 4px; border-radius: 10px;
}
.mnav a.here { color: var(--teal); background: var(--teal-dim); }
.mnav a span { display: block; font-size: 16px; margin-bottom: 2px; line-height: 1; }
@media (max-width: 860px) {
  .mnav { display: flex; }
  .nav { display: none; }
  body { padding-bottom: 72px; }
  .top { padding: 14px 16px; }
}

/* ——— Why Riptide ——— */
.why {
  max-width: 1120px; margin: 28px auto 10px; padding: 0 20px;
}
.why .whyHead { margin: 0 0 18px; }
.why .whyHead h2 { margin: 0 0 8px; font-size: clamp(22px, 3vw, 28px); }
.why .whyHead p { margin: 0; color: var(--muted); max-width: 62ch; line-height: 1.5; font-size: 15px; }
.whyGrid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px;
}
@media (max-width: 720px) { .whyGrid { grid-template-columns: 1fr; } }
.whyCard {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px;
}
.whyCard .wtag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px; color: var(--teal); letter-spacing: 0.04em;
  text-transform: uppercase; margin-bottom: 8px;
}
.whyCard .wtag i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--teal);
  box-shadow: 0 0 0 3px var(--teal-dim);
}
.whyCard h3 { margin: 0 0 6px; font-size: 16px; }
.whyCard p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.whyCompare {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden;
}
.whyCompare .cht { padding: 14px 16px 6px; font-size: 15px; margin: 0; }
.whyCompare .csub { padding: 0 16px 12px; margin: 0; color: var(--faint); font-size: 12px; }
.cmpWrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp {
  width: 100%; border-collapse: collapse; min-width: 520px; font-size: 13px;
}
.cmp th, .cmp td {
  text-align: left; padding: 11px 16px; border-top: 1px solid var(--line); vertical-align: top;
}
.cmp th {
  font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--faint); font-weight: 600; background: #0e141b;
}
.cmp th.hi { color: var(--teal); }
.cmp td.hi { color: var(--text); font-weight: 500; }
.cmp td { color: var(--muted); }
.cmp tr:hover td { background: rgba(45, 212, 191, 0.03); }
.cmp .feat { color: var(--text); font-weight: 500; width: 28%; }
