:root {
  color-scheme: light;
  --bg: #f8fafc;
  --surface: rgba(255, 255, 255, 0.88);
  --surface-strong: #ffffff;
  --ink: #0f172a;
  --muted: #475569;
  --subtle: #64748b;
  --accent: #0284c7;
  --accent-bright: #38bdf8;
  --accent-soft: #e0f2fe;
  --border: rgba(148, 163, 184, 0.26);
  --border-accent: rgba(2, 132, 199, 0.24);
  --shadow: 0 20px 50px rgba(15, 23, 42, 0.07), 0 4px 14px rgba(2, 132, 199, 0.06);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background-color: var(--bg);
  background-image: url("assets/feather-bg.svg");
  background-size: cover;
  background-position: top center;
  background-attachment: fixed;
  color: var(--ink);
  font-family: "Plus Jakarta Sans", "Segoe UI Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  width: min(1100px, calc(100% - 36px));
  margin: 0 auto;
}

.ti {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
}

.ti-sm {
  width: 15px;
  height: 15px;
}

/* Header */
.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  margin-top: 12px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 16px;
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.05);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.brand img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 600;
  transition: color 0.16s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--ink);
  color: #ffffff !important;
}

.nav-cta:hover {
  background: var(--accent);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: center;
  gap: 44px;
  padding: 60px 0 44px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(224, 242, 254, 0.9);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 18px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--accent);
}

h1 {
  font-size: clamp(2.1rem, 4.5vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(120deg, #0284c7 0%, #38bdf8 55%, #6366f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: clamp(15.5px, 1.8vw, 17.5px);
  color: var(--muted);
  max-width: 52ch;
  margin-bottom: 26px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 20px;
  min-height: 46px;
  border-radius: 13px;
  font-size: 14.5px;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #0284c7, #0ea5e9);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(2, 132, 199, 0.26);
}

.btn-secondary {
  background: var(--surface-strong);
  color: var(--ink);
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.btn-secondary:hover {
  border-color: var(--border-accent);
}

.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 13px;
  color: var(--subtle);
}

.stats-row strong {
  color: var(--ink);
}

/* Hero visual / Discord preview */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.plume-backdrop {
  position: absolute;
  width: 320px;
  height: 320px;
  right: -14px;
  top: -34px;
  opacity: 0.92;
  pointer-events: none;
  animation: featherFloat 7s ease-in-out infinite;
}

@keyframes featherFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(1.2deg); }
}

.rpc-stage {
  position: relative;
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
  border-radius: 22px;
  padding: 18px;
}

.platform-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn img {
  width: 14px;
  height: 14px;
  border-radius: 4px;
}

.tab-btn.active {
  background: var(--accent-soft);
  border-color: var(--border-accent);
  color: var(--accent);
}

.rpc-card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.rpc-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--subtle);
  margin-bottom: 10px;
}

.rpc-body {
  display: flex;
  gap: 13px;
  align-items: center;
}

.rpc-art-wrap {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
}

.rpc-art {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 14px rgba(15, 23, 42, 0.12);
}

.rpc-badge {
  position: absolute;
  right: -5px;
  bottom: -5px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  background: #ffffff;
  object-fit: cover;
}

.rpc-meta {
  min-width: 0;
  flex: 1;
}

.rpc-title {
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rpc-sub {
  font-size: 12.5px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 8px;
}

.rpc-bar-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.rpc-bar {
  height: 5px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.rpc-bar-fill {
  height: 100%;
  width: 56%;
  border-radius: 999px;
  background: linear-gradient(90deg, #0284c7, #38bdf8);
  transition: width 0.25s ease;
}

.rpc-times {
  display: flex;
  justify-content: space-between;
  font-size: 10.5px;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

/* Sections */
section {
  padding: 28px 0;
}

.section-title {
  font-size: clamp(21px, 2.5vw, 25px);
  letter-spacing: -0.025em;
  margin-bottom: 6px;
}

.section-sub {
  color: var(--muted);
  font-size: 15px;
  margin-bottom: 22px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.grid-2 .card {
  display: flex;
  flex-direction: column;
}

.grid-2 .card-actions {
  margin-top: auto;
  padding-top: 6px;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.03);
}

.card-icon {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 12px;
}

.card h3 {
  font-size: 15.5px;
  margin-bottom: 6px;
  letter-spacing: -0.015em;
}

.card p {
  font-size: 13.5px;
  color: var(--muted);
}

.steps {
  list-style: none;
  display: grid;
  gap: 10px;
  margin: 14px 0 18px;
}

.steps li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--muted);
}

.step-num {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

code {
  background: #eff6ff;
  color: #0369a1;
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 12.5px;
  word-break: break-word;
}

/* Footer */
footer {
  padding: 28px 0 44px;
  margin-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: var(--subtle);
  font-size: 13.5px;
}

.footer-left,
.footer-right {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

footer a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s ease;
}

footer a:hover {
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .plume-backdrop { animation: none; }
}

@media (max-width: 960px) {
  body { background-attachment: scroll; }
  .hero { grid-template-columns: 1fr; padding: 38px 0 32px; gap: 32px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: 1fr; }
  .plume-backdrop { right: 0; width: 260px; height: 260px; }
}

@media (max-width: 640px) {
  .container { width: calc(100% - 28px); }
  .nav-inner { border-radius: 18px; padding: 10px 14px; }
  .nav-links { gap: 10px; }
  .nav-links a:not(.nav-cta) { font-size: 12.5px; }
  .grid-4 { grid-template-columns: 1fr; }
  .plume-backdrop { display: none; }
  footer {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 26px 0 38px;
    gap: 10px;
  }
  .footer-left,
  .footer-right {
    justify-content: center;
    gap: 8px 18px;
  }
  footer a {
    min-height: 32px;
  }
}

@media (max-width: 440px) {
  .nav-links a.hide-xs { display: none; }
  .hero-actions .btn,
  .card-actions .btn { width: 100%; }
  .rpc-stage { padding: 14px; }
}
