/* ============ w3arise · UI mock ============ */
:root {
  --bg: #060810;
  --bg-2: #0b0f1d;
  --panel: rgba(255, 255, 255, 0.04);
  --panel-border: rgba(255, 255, 255, 0.09);
  --text: #e8ecf5;
  --muted: #93a0bd;
  --muted-2: #6b7897;
  --brand: #6d5efc;
  --brand-2: #9b7bff;
  --cyan: #22d3ee;
  --green: #34e39b;
  --pink: #ff5ca8;
  --radius: 18px;
  --radius-sm: 12px;
  --maxw: 1180px;
  --shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.7);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 { font-family: "Space Grotesk", sans-serif; line-height: 1.1; letter-spacing: -0.02em; }

a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- Background FX ---------- */
.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}
.bg-glow {
  position: fixed; z-index: -2; border-radius: 50%;
  filter: blur(120px); opacity: 0.5; pointer-events: none;
}
.bg-glow--1 { width: 620px; height: 620px; top: -220px; left: -140px; background: radial-gradient(circle, #6d5efc, transparent 65%); }
.bg-glow--2 { width: 560px; height: 560px; top: 240px; right: -180px; background: radial-gradient(circle, #22d3ee, transparent 65%); opacity: 0.35; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.2s ease;
  white-space: nowrap;
}
.btn--lg { padding: 14px 26px; font-size: 15px; }
.btn--full { width: 100%; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  color: #fff; box-shadow: 0 10px 30px -8px rgba(109, 94, 252, 0.6);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -10px rgba(109, 94, 252, 0.75); }
.btn--ghost { background: var(--panel); color: var(--text); border-color: var(--panel-border); }
.btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); }

/* ---------- Construction notice ---------- */
.notice {
  background: rgba(255, 190, 80, 0.07);
  border-bottom: 1px solid rgba(255, 190, 80, 0.18);
  color: #d9b26a;
  font-size: 12.5px;
  letter-spacing: 0.01em;
}
.notice__inner {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding-top: 7px; padding-bottom: 7px; text-align: center;
}
.notice__dot {
  width: 6px; height: 6px; border-radius: 50%; flex: none;
  background: #ffbe50; box-shadow: 0 0 8px rgba(255, 190, 80, 0.8);
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(6, 8, 16, 0.55);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-bottom-color: var(--panel-border); background: rgba(6, 8, 16, 0.8); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__mark {
  width: 34px; height: 34px; border-radius: 10px; display: block;
  box-shadow: 0 6px 18px -6px rgba(109, 94, 252, 0.8);
}
.brand__name { font-family: "Space Grotesk"; font-size: 19px; letter-spacing: -0.02em; }
.nav__links { display: flex; gap: 26px; }
.nav__links a { color: var(--muted); font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--text); }
.nav__cta { display: flex; gap: 10px; }
.nav__burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__burger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: 84px 24px 72px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--panel-border);
  background: var(--panel); margin-bottom: 22px;
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,227,155,0.15); }
.hero__title { font-size: clamp(38px, 5.4vw, 66px); font-weight: 700; }
.grad { background: linear-gradient(120deg, var(--brand-2), var(--cyan)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad--alt { background: linear-gradient(120deg, var(--cyan), var(--green)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__sub { color: var(--muted); font-size: 17px; margin: 22px 0 30px; max-width: 520px; }
.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
.stat { border-left: 2px solid rgba(255,255,255,0.1); padding-left: 14px; }
.stat__num { font-family: "Space Grotesk"; font-size: 26px; font-weight: 700; }
.stat__label { color: var(--muted-2); font-size: 12.5px; }

/* Hero panel / terminal */
.hero__panel { position: relative; }
.terminal {
  border-radius: var(--radius); overflow: hidden; border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(19,24,42,0.95), rgba(10,13,26,0.95));
  box-shadow: var(--shadow); backdrop-filter: blur(8px);
}
.terminal__bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--panel-border); background: rgba(255,255,255,0.02); }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot--r { background: #ff5f57; } .dot--y { background: #febc2e; } .dot--g { background: #28c840; }
.terminal__title { margin-left: auto; font-family: "JetBrains Mono"; font-size: 12px; color: var(--muted-2); }
.terminal__body { padding: 22px; font-family: "JetBrains Mono"; font-size: 13px; line-height: 1.85; color: #cdd6f4; overflow-x: auto; }
.c-com { color: var(--muted-2); } .c-fn { color: var(--brand-2); } .c-str { color: var(--green); } .c-ok { color: var(--cyan); }

.orbit { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.orbit__chip {
  font-family: "JetBrains Mono"; font-size: 12px; font-weight: 700; letter-spacing: 0.05em;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--panel-border);
  background: var(--panel); color: var(--muted); animation: float 4s ease-in-out infinite;
}
.orbit__chip:nth-child(2){ animation-delay: .5s } .orbit__chip:nth-child(3){ animation-delay: 1s } .orbit__chip:nth-child(4){ animation-delay: 1.5s }
@keyframes float { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-6px) } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 1px solid var(--panel-border); background: rgba(255,255,255,0.015); padding: 16px 0; margin: 20px 0 10px; }
.marquee__track { display: flex; gap: 26px; white-space: nowrap; width: max-content; animation: scroll 34s linear infinite; }
.marquee__track span { font-family: "Space Grotesk"; font-weight: 600; font-size: 14px; letter-spacing: 0.14em; color: var(--muted-2); }
@keyframes scroll { from { transform: translateX(0) } to { transform: translateX(-50%) } }

/* ---------- Sections ---------- */
.section { padding: 84px 24px; }
.section__head { max-width: 680px; margin: 0 auto 48px; text-align: center; }
.eyebrow {
  display: inline-block; font-family: "JetBrains Mono"; font-size: 12px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--brand-2); margin-bottom: 14px;
}
.eyebrow--w3 { color: var(--cyan); }
.section__title { font-size: clamp(28px, 3.6vw, 42px); font-weight: 700; }
.section__lead { color: var(--muted); font-size: 16.5px; margin-top: 16px; }

/* ---------- Pillars ---------- */
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 26px; }
.pillar {
  position: relative; padding: 34px; border-radius: var(--radius);
  border: 1px solid var(--panel-border); background: var(--panel);
  overflow: hidden; transition: transform 0.25s, border-color 0.25s;
}
.pillar::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 100% 0%, rgba(109,94,252,0.18), transparent 55%); pointer-events: none; }
.pillar--w3::before { background: radial-gradient(circle at 100% 0%, rgba(34,211,238,0.18), transparent 55%); }
.pillar:hover { transform: translateY(-4px); border-color: rgba(255,255,255,0.2); }
.pillar__badge { display: inline-block; font-family: "JetBrains Mono"; font-size: 11px; letter-spacing: 0.12em; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.pillar__badge--it { background: rgba(109,94,252,0.15); color: var(--brand-2); border: 1px solid rgba(109,94,252,0.3); }
.pillar__badge--w3 { background: rgba(34,211,238,0.14); color: var(--cyan); border: 1px solid rgba(34,211,238,0.3); }
.pillar h3 { font-size: 24px; margin-bottom: 10px; }
.pillar p { color: var(--muted); margin-bottom: 20px; }

.ticks { list-style: none; display: grid; gap: 12px; }
.ticks--2col { grid-template-columns: 1fr 1fr; }
.ticks li { position: relative; padding-left: 28px; color: var(--text); font-size: 14.5px; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px;
  display: grid; place-items: center; border-radius: 50%; font-size: 11px; font-weight: 700;
  background: rgba(52,227,155,0.15); color: var(--green);
}
.link-arrow { display: inline-block; margin-top: 22px; color: var(--brand-2); font-weight: 600; font-size: 14px; transition: gap 0.2s; }
.link-arrow:hover { opacity: 0.85; }

/* ---------- Cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 34px; }
.card {
  padding: 26px; border-radius: var(--radius-sm); border: 1px solid var(--panel-border);
  background: var(--panel); transition: transform 0.2s, background 0.2s;
}
.card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.06); }
.card__icon { font-size: 26px; margin-bottom: 12px; }
.card h4 { font-size: 17px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }

/* ---------- Split (web3) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__text .section__title { text-align: left; }
.glass-stat {
  border-radius: var(--radius); border: 1px solid var(--panel-border);
  background: linear-gradient(180deg, rgba(34,211,238,0.06), rgba(255,255,255,0.02));
  padding: 28px; box-shadow: var(--shadow);
}
.glass-stat__row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 22px; }
.glass-stat__row span { color: var(--muted); font-size: 14px; }
.glass-stat__row strong { font-family: "JetBrains Mono"; font-size: 22px; color: var(--cyan); }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; margin-bottom: 20px; }
.bars span { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--cyan), rgba(109,94,252,0.4)); animation: rise 1s ease both; }
@keyframes rise { from { height: 0 } }
.glass-stat__foot { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.ok-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(52,227,155,0.15); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{ opacity: 1 } 50%{ opacity: 0.4 } }

/* ---------- RPC ---------- */
.rpc { display: grid; grid-template-columns: 280px 1fr; gap: 22px; }
.rpc__list { display: flex; flex-direction: column; gap: 6px; max-height: 460px; overflow-y: auto; padding-right: 6px; }
.chain-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: var(--panel); cursor: pointer; transition: all 0.18s; text-align: left; color: var(--text); font: inherit; width: 100%;
}
.chain-item:hover { background: rgba(255,255,255,0.07); }
.chain-item.active { border-color: rgba(109,94,252,0.5); background: rgba(109,94,252,0.12); }
.chain-item__logo { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-family: "JetBrains Mono"; font-weight: 700; font-size: 11px; color: #fff; flex-shrink: 0; }
.chain-item__name { font-size: 14px; font-weight: 600; }
.chain-item__sub { font-size: 11.5px; color: var(--muted-2); }

.rpc__panel { padding: 28px; border-radius: var(--radius); border: 1px solid var(--panel-border); background: var(--panel); }
.rpc__panel-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.rpc__net { display: block; font-family: "Space Grotesk"; font-size: 22px; font-weight: 700; }
.rpc__chainid { font-family: "JetBrains Mono"; font-size: 12.5px; color: var(--muted-2); }
.rpc__chainid b { color: var(--muted); }
.badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--panel-border); }
.badge--live { color: var(--green); background: rgba(52,227,155,0.08); border-color: rgba(52,227,155,0.25); }
.rpc__label { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin: 16px 0 8px; }
.copybox { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--panel-border); background: rgba(0,0,0,0.35); }
.copybox code { font-family: "JetBrains Mono"; font-size: 13.5px; color: var(--cyan); overflow-x: auto; white-space: nowrap; flex: 1; }
.copybtn { padding: 7px 14px; border-radius: 8px; border: 1px solid var(--panel-border); background: var(--panel); color: var(--text); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: 0.2s; }
.copybtn:hover { background: rgba(255,255,255,0.1); }
.copybtn.copied { background: rgba(52,227,155,0.18); color: var(--green); border-color: rgba(52,227,155,0.4); }
.rpc__metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 26px; }
.mini { padding: 14px; border-radius: var(--radius-sm); background: rgba(0,0,0,0.25); border: 1px solid var(--panel-border); }
.mini__label { display: block; font-size: 11.5px; color: var(--muted-2); margin-bottom: 4px; }
.mini__val { font-family: "JetBrains Mono"; font-size: 15px; }
.mini__val b { color: var(--cyan); }

/* ---------- Chips (networks) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.net-chip {
  display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid var(--panel-border); background: var(--panel); font-size: 14px; font-weight: 600;
  transition: transform 0.2s, border-color 0.2s;
}
.net-chip:hover { transform: translateY(-3px); border-color: rgba(255,255,255,0.25); }
.net-chip__logo { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-family: "JetBrains Mono"; font-weight: 700; font-size: 9px; color: #fff; }

/* ---------- Pricing ---------- */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  position: relative; padding: 32px; border-radius: var(--radius); border: 1px solid var(--panel-border);
  background: var(--panel); display: flex; flex-direction: column; transition: transform 0.25s;
}
.plan:hover { transform: translateY(-5px); }
.plan--featured { border-color: rgba(109,94,252,0.5); background: linear-gradient(180deg, rgba(109,94,252,0.12), rgba(255,255,255,0.02)); box-shadow: var(--shadow); }
.plan__tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); font-size: 11.5px; font-weight: 700; letter-spacing: 0.05em; padding: 5px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.plan__name { font-size: 20px; margin-bottom: 12px; }
.plan__price { font-family: "Space Grotesk"; font-size: 40px; font-weight: 700; margin-bottom: 6px; }
.plan__price span { font-size: 16px; color: var(--muted-2); font-weight: 500; }
.plan__desc { color: var(--muted); font-size: 14px; margin-bottom: 22px; }
.plan .ticks { margin-bottom: 26px; }
.plan .btn { margin-top: auto; }

/* ---------- CTA ---------- */
.cta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center;
  padding: 48px; border-radius: 26px; border: 1px solid var(--panel-border);
  background: linear-gradient(135deg, rgba(109,94,252,0.14), rgba(34,211,238,0.08));
  box-shadow: var(--shadow);
}
.cta__copy h2 { font-size: clamp(26px, 3vw, 36px); margin-bottom: 12px; }
.cta__copy p { color: var(--muted); font-size: 16px; }
.cta__form { display: grid; gap: 12px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cta__form input, .cta__form select, .cta__form textarea {
  width: 100%; padding: 13px 15px; border-radius: var(--radius-sm); border: 1px solid var(--panel-border);
  background: rgba(0,0,0,0.35); color: var(--text); font: inherit; font-size: 14.5px; resize: vertical;
}
.cta__form input::placeholder, .cta__form textarea::placeholder { color: var(--muted-2); }
.cta__form input:focus, .cta__form select:focus, .cta__form textarea:focus { outline: none; border-color: var(--brand); }
.cta__note { color: var(--green); font-size: 13.5px; text-align: center; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--panel-border); padding: 56px 0 28px; margin-top: 40px; background: rgba(255,255,255,0.01); }
.footer__inner { display: grid; grid-template-columns: 1.3fr 2fr; gap: 40px; }
.footer__brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 300px; }
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer__cols h5 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted-2); margin-bottom: 14px; }
.footer__cols a { display: block; color: var(--muted); font-size: 14px; margin-bottom: 10px; transition: color 0.2s; }
.footer__cols a:hover { color: var(--text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--panel-border); color: var(--muted-2); font-size: 13px; }
.footer__mock { font-family: "JetBrains Mono"; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .pillars, .cards, .plans, .split, .cta, .footer__inner { grid-template-columns: 1fr; }
  .rpc { grid-template-columns: 1fr; }
  .rpc__list { flex-direction: row; overflow-x: auto; max-height: none; }
  .chain-item { min-width: 190px; }
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }
  .nav__links.open { display: flex; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; padding: 20px 24px; background: rgba(6,8,16,0.97); border-bottom: 1px solid var(--panel-border); }
  .hero__stats { grid-template-columns: 1fr 1fr; }
  .cards, .rpc__metrics { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; gap: 10px; }
}
@media (max-width: 520px) {
  .hero__stats, .rpc__metrics, .cards { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .ticks--2col { grid-template-columns: 1fr; }
  .cta { padding: 30px; }
}
