@font-face {
  font-family: "Samim";
  src: url("../fonts/Samim.woff") format("woff");
  font-display: swap;
}

@font-face {
  font-family: "SamimBold";
  src: url("../fonts/Samim-Bold.woff") format("woff");
  font-display: swap;
}

:root {
  --bg: #f5f8fc;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-strong: #ffffff;
  --surface-soft: #eef4fb;
  --line: rgba(19, 45, 74, 0.08);
  --line-strong: rgba(19, 45, 74, 0.14);
  --text: #102235;
  --muted: #667a91;
  --accent: #0ea5e9;
  --accent-strong: #0284c7;
  --accent-soft: rgba(14, 165, 233, 0.12);
  --accent-warm: #f59e0b;
  --shadow: 0 28px 80px rgba(31, 52, 79, 0.1);
  --shadow-md: 0 16px 42px rgba(31, 52, 79, 0.08);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --shell: min(1180px, calc(100% - 32px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.1), transparent 25%),
    radial-gradient(circle at 85% 10%, rgba(56, 189, 248, 0.08), transparent 20%),
    linear-gradient(180deg, #fbfdff 0%, #f3f8fd 52%, #edf3f9 100%);
}

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

code,
pre {
  font-family: "Consolas", "Courier New", monospace;
}

.ambient {
  position: fixed;
  inset: auto;
  width: 24rem;
  height: 24rem;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.65;
  z-index: 0;
}

.ambient--one {
  top: 3rem;
  left: -8rem;
  background: rgba(14, 165, 233, 0.12);
}

.ambient--two {
  top: 10rem;
  right: -4rem;
  background: rgba(59, 130, 246, 0.08);
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}

.hero,
.section,
.footer {
  width: var(--shell);
  margin: 0 auto;
}

.hero {
  padding: 28px 0 30px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 42px;
  padding: 0 18px;
  min-height: 76px;
  border: 1px solid rgba(16, 34, 53, 0.05);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  background: rgba(245, 248, 252, 0.78);
  box-shadow: var(--shadow-md);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #fff;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-size: 1.45rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), #67e8f9);
  box-shadow: 0 12px 30px rgba(14, 165, 233, 0.26);
}

.brand__text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand__text strong,
.section__header h2,
.download-card h3,
.fact-card h3,
.eco-card strong,
.code-card h3,
.footer strong,
.signal-list strong,
.signal-card__head {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
}

.brand__text small,
.topbar__links a,
.lede,
.signal-list span,
.signal-card__footer small,
.section__header p,
.download-card p,
.eco-card p,
.footer p,
.download-list li span,
.fact-card dt {
  color: var(--muted);
}

.topbar__links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.topbar__links a {
  padding: 10px 0;
  transition: color 0.18s ease;
}

.topbar__links a:hover,
.footer__links a:hover {
  color: var(--accent-strong);
}

.hero__content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.78fr);
  gap: 28px;
}

.hero__copy,
.hero__panel,
.download-card,
.fact-card,
.eco-card,
.code-card {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero__copy {
  padding: 42px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.84)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 34%);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: rgba(14, 165, 233, 0.06);
  color: var(--accent-strong);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero h1,
.section__header h2 {
  margin: 18px 0 16px;
  line-height: 1.02;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 5.1rem);
  letter-spacing: -0.05em;
}

.lede {
  max-width: 64ch;
  font-size: 1.04rem;
  line-height: 1.72;
}

.hero__actions,
.download-card__actions,
.footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.hero__actions {
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.eco-card:hover {
  transform: translateY(-2px);
}

.button--primary {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 16px 30px rgba(14, 165, 233, 0.22);
}

.button--ghost {
  border-color: var(--line-strong);
  background: #fff;
}

.button--dark {
  color: var(--text);
  background: linear-gradient(135deg, #113a5c 0%, #0c587f 100%);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}

.hero__stats article,
.signal-card,
.download-card,
.fact-card,
.eco-card,
.code-card {
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(10px);
}

.hero__stats article {
  padding: 18px 16px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
}

.hero__stats strong {
  display: block;
  margin-bottom: 4px;
  font-family: "SamimBold", "Segoe UI", sans-serif;
  font-size: 1.16rem;
}

.hero__stats span {
  color: var(--muted);
  font-size: 0.9rem;
}

.hero__panel {
  padding: 18px;
  border-radius: var(--radius-xl);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(247, 251, 255, 0.84)),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 34%);
}

.signal-card {
  height: 100%;
  padding: 24px;
}

.signal-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.status-dot {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: #10b981;
  box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.12);
}

.signal-list,
.download-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.signal-list {
  display: grid;
  gap: 14px;
}

.signal-list li,
.fact-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.signal-card__footer {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.section {
  padding: 46px 0 24px;
}

.section__header {
  max-width: 760px;
  margin-bottom: 24px;
}

.download-grid,
.network-grid,
.ecosystem-grid,
.launch-layout {
  display: grid;
  gap: 18px;
}

.download-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.download-card,
.fact-card,
.eco-card,
.code-card {
  padding: 24px;
}

.download-card__tag,
.eco-card__label {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.download-card--accent {
  background:
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 24%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 249, 255, 0.94));
}

.download-list {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.download-list li {
  position: relative;
  padding-left: 18px;
}

.download-list li::before {
  content: "";
  position: absolute;
  top: 0.72rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent-warm);
}

.network-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.fact-card dl {
  display: grid;
  gap: 14px;
  margin: 18px 0 0;
}

.fact-card dd {
  margin: 0;
}

.ecosystem-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.eco-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.eco-card:hover {
  border-color: var(--line-strong);
  background: var(--surface-strong);
}

.eco-card--note {
  justify-content: flex-start;
}

.launch-layout {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.code-card pre {
  margin: 16px 0 0;
  overflow-x: auto;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
  color: var(--text);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 0 42px;
}

.footer__links {
  align-items: flex-start;
}

.is-placeholder {
  opacity: 0.72;
}

@media (max-width: 1080px) {
  .hero__content,
  .network-grid,
  .ecosystem-grid,
  .launch-layout,
  .download-grid {
    grid-template-columns: 1fr;
  }

  .hero h1 {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .topbar,
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__copy,
  .hero__panel,
  .download-card,
  .fact-card,
  .eco-card,
  .code-card {
    padding: 20px;
  }

  .hero__stats {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .footer {
    width: min(100% - 20px, 1180px);
  }

  .hero h1 {
    font-size: 2.25rem;
  }

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

  .topbar__links {
    gap: 12px 16px;
  }
}
