
:root {
  --bg-main: #050712;
  --bg-elevated: #0b1020;
  --accent: #f97316;
  --accent-soft: rgba(249, 115, 22, 0.1);
  --accent-strong: rgba(249, 115, 22, 0.6);
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
  --border-subtle: rgba(148, 163, 184, 0.35);
  --radius-lg: 18px;
  --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.9);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 0 0, #1f2933 0, transparent 55%),
    radial-gradient(circle at 100% 0, #2f1b0a 0, transparent 55%),
    radial-gradient(circle at 50% 100%, #111827 0, transparent 55%),
    var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.6;
}

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

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(22px);
  background: radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.94), rgba(15, 23, 42, 0.9));
  border-bottom: 1px solid var(--border-subtle);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.brand-badge {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 1px solid var(--accent-strong);
  background:
    radial-gradient(circle at 30% 0, #ffffff 0, transparent 45%),
    radial-gradient(circle at 70% 120%, #f97316 0, #7c2d12 52%, transparent 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.7);
}

.brand-badge span {
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.85rem;
}

.partner-link {
  padding: 0.4rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.16), transparent 55%);
  color: var(--text-main);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease,
    background 0.2s ease;
  white-space: nowrap;
  text-decoration: none;
}

.partner-link span {
  font-weight: 600;
  letter-spacing: 0.03em;
}

.partner-link small {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.7rem;
}

.partner-link:hover {
  border-color: var(--accent-strong);
  box-shadow: 0 0 24px rgba(249, 115, 22, 0.4);
  transform: translateY(-1px);
  background: radial-gradient(circle at 100% 0, rgba(249, 115, 22, 0.24), transparent 60%);
}

/* Layout helpers */

.page-main {
  padding: 2.4rem 0 3rem;
}

.hero {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.hero-title {
  font-size: clamp(2.3rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.hero-title span {
  display: inline-block;
  background: linear-gradient(120deg, #f97316, #facc15, #f97316);
  -webkit-background-clip: text;
  color: transparent;
  text-shadow: 0 0 18px rgba(249, 115, 22, 0.5);
}

.hero-subtitle {
  color: var(--text-muted);
  max-width: 34rem;
  font-size: 0.98rem;
}

.hero-tags {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.hero-tag {
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  background: linear-gradient(120deg, rgba(15, 23, 42, 0.9), rgba(17, 24, 39, 0.95));
}

.hero-card {
  border-radius: 22px;
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.18), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(15, 23, 42, 0.9), #020617);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-soft);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
    135deg,
    rgba(148, 163, 184, 0.06) 1px,
    transparent 1px
  );
  background-size: 18px 18px;
  opacity: 0.5;
  pointer-events: none;
  mix-blend-mode: soft-light;
}

.hero-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
  margin-bottom: 0.6rem;
}

.hero-card-title {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-card-text {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.9rem;
}

.hero-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.hero-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.9);
}

/* Article cards on index */

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: #e5e7eb;
}

.section-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 960px) {
  .cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.card {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.9), rgba(15, 23, 42, 0.98)),
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(17, 24, 39, 0.96));
  padding: 1.2rem 1.25rem 1.15rem;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.9);
  overflow: hidden;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.18s ease,
    background 0.18s ease;
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 110% -10%, rgba(249, 115, 22, 0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.7);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.95);
  background:
    radial-gradient(circle at 0 0, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.99)),
    linear-gradient(145deg, rgba(15, 23, 42, 0.97), rgba(17, 24, 39, 1));
}

.card:hover::before {
  opacity: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.8rem;
}

.card-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-muted);
}

.card-tag-pill {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #e5e7eb;
  background: linear-gradient(120deg, rgba(30, 64, 175, 0.65), rgba(15, 23, 42, 0.95));
}

.card-title {
  font-size: 1.02rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.card-excerpt {
  font-size: 0.9rem;
  color: #e5e7eb;
  margin-bottom: 0.7rem;
}

.card-list {
  list-style: none;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.95rem;
  padding-left: 0;
}

.card-list li {
  position: relative;
  padding-left: 1.1rem;
  margin-bottom: 0.3rem;
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0.35rem;
  top: 0.48rem;
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.7);
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Button */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 115, 22, 0.7);
  background: radial-gradient(circle at 0 0, rgba(249, 115, 22, 0.35), rgba(21, 24, 33, 1));
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: #0b1120;
  cursor: pointer;
  transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn span {
  color: #020617;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.9);
  background: radial-gradient(circle at 100% 0, rgba(250, 204, 21, 0.6), rgba(15, 23, 42, 1));
}

/* Article pages */

.article-wrapper {
  max-width: 760px;
  margin: 0 auto;
}

.breadcrumb {
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.article-title-main {
  font-size: clamp(1.7rem, 3vw, 2.1rem);
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.article-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.article-body {
  font-size: 0.95rem;
  color: #e5e7eb;
}

.article-body p {
  margin-bottom: 0.9rem;
}

.article-body h2 {
  font-size: 1.15rem;
  margin: 1.4rem 0 0.6rem;
}

.article-body h3 {
  font-size: 1.02rem;
  margin: 1.2rem 0 0.5rem;
}

.article-body ul {
  margin: 0.4rem 0 0.9rem;
  padding-left: 1.3rem;
}

.article-body li {
  margin-bottom: 0.35rem;
}

.article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.88em;
  background: rgba(15, 23, 42, 0.9);
  padding: 0.1rem 0.25rem;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 1.2rem 0 1.6rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  background: radial-gradient(circle at 50% 120%, rgba(15, 23, 42, 1), rgba(5, 7, 12, 1));
}

.site-footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.footer-links a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 0.16em;
}
