:root {
  --bg: #070b14;
  --bg-soft: #0f1728;
  --text: #edf1fa;
  --muted: #98a7bf;
  --accent: #3ef0ae;
  --accent-2: #00d3ff;
  --card: rgba(14, 23, 40, 0.78);
  --border: rgba(255, 255, 255, 0.14);
  --shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 500px at 10% 5%, rgba(0, 211, 255, 0.14), transparent 60%),
    radial-gradient(900px 400px at 95% 20%, rgba(62, 240, 174, 0.16), transparent 60%),
    linear-gradient(140deg, #05070f 0%, var(--bg) 42%, #0a1020 100%);
  overflow-x: hidden;
}

.site-header,
main,
.site-footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
  z-index: 2;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 20px 0;
}

.header-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.logo-wrap {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.logo-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  box-shadow: 0 0 18px rgba(0, 211, 255, 0.9);
}

.logo-text {
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
}

main {
  padding-bottom: 24px;
}

.hero {
  margin-top: 28px;
  padding: 56px 32px;
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(12, 19, 33, 0.9), rgba(7, 12, 23, 0.62));
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
}

.eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  margin: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-top: 16px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4.8vw, 3.9rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.highlight {
  color: var(--accent);
  text-shadow: 0 0 24px rgba(62, 240, 174, 0.45);
}

.hero-text {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 26px;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 999px;
  padding: 12px 19px;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px) scale(1.01);
}

.btn:focus-visible {
  outline: 2px solid rgba(62, 240, 174, 0.9);
  outline-offset: 2px;
}

.btn-primary {
  background: linear-gradient(125deg, var(--accent), var(--accent-2));
  color: #031019;
  box-shadow: 0 10px 26px rgba(0, 211, 255, 0.28), inset 0 -2px 5px rgba(0, 0, 0, 0.18);
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: -100% auto auto -40%;
  width: 44%;
  height: 300%;
  background: linear-gradient(
    to right,
    transparent,
    rgba(255, 255, 255, 0.56),
    transparent
  );
  transform: rotate(18deg);
  transition: left 0.45s ease;
}

.btn-primary:hover::after {
  left: 130%;
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.04);
}

.btn-detail {
  border: 1px dashed rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.btn-detail.copied {
  border-style: solid;
  border-color: rgba(62, 240, 174, 0.9);
  color: #b3ffe3;
}

.mini-btn {
  color: #051018;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: 999px;
  background: linear-gradient(125deg, #cafef0 0%, #73fbd3 55%, #29cfff 100%);
  box-shadow: 0 10px 24px rgba(0, 211, 255, 0.2);
}

.mini-btn-alt {
  color: #dff7ff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: none;
}

.stats {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.stats article {
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  padding: 14px;
}

.stats h3 {
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 1.35rem;
  margin-bottom: 6px;
}

.stats p {
  margin: 0;
  color: var(--muted);
}

.section-title {
  margin-bottom: 20px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: clamp(1.55rem, 3vw, 2.4rem);
  letter-spacing: -0.01em;
}

.link-section {
  margin-top: 52px;
}

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

.link-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.link-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62, 240, 174, 0.55);
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.52);
}

.link-card::before {
  content: "";
  position: absolute;
  inset: -60% auto auto -20%;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at center, rgba(62, 240, 174, 0.2), transparent 68%);
  z-index: -1;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 6px 11px;
  margin-bottom: 14px;
  background: rgba(0, 211, 255, 0.18);
  border: 1px solid rgba(0, 211, 255, 0.48);
  color: #c5f7ff;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.link-card h3 {
  margin-bottom: 10px;
  font-family: "Syne", "Segoe UI", sans-serif;
  font-size: 1.65rem;
}

.link-card p {
  margin-bottom: 18px;
  color: var(--muted);
  line-height: 1.65;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.about-section {
  margin-top: 52px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(9, 15, 28, 0.75);
  padding: 26px;
}

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

.pill {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.03);
  padding: 8px 13px;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin: 26px auto 34px;
  color: var(--muted);
  font-size: 0.92rem;
}

.bg-orb {
  position: fixed;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  filter: blur(84px);
  opacity: 0.32;
  pointer-events: none;
  z-index: 0;
}

.orb-a {
  left: -120px;
  top: -110px;
  background: #00d6ff;
}

.orb-b {
  right: -120px;
  top: 260px;
  background: #3ef0ae;
}

.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 36px 22px;
  }

  .site-header,
  main,
  .site-footer {
    width: min(1120px, calc(100% - 26px));
  }

  .site-footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
