/* Base reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #050816;
  color: #e5e7eb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* Layout */
.page-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(
    to right,
    rgba(15, 23, 42, 0.95),
    rgba(15, 23, 42, 0.85)
  );
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 0.9rem;
  background: radial-gradient(circle at 10% 0, #f97316, #e11d48 45%, #0ea5e9 100%);
  box-shadow: 0 0 20px rgba(248, 250, 252, 0.38);
}

.logo-text-main {
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.logo-text-sub {
  font-size: 0.75rem;
  color: #9ca3af;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.nav-links a {
  color: #e5e7eb;
  padding-bottom: 0.1rem;
  border-bottom: 1px solid transparent;
}

.nav-links a:hover {
  border-color: rgba(248, 250, 252, 0.7);
}

.nav-cta {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease,
    border-color 0.15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
  box-shadow: 0 14px 30px rgba(34, 197, 94, 0.4);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px rgba(22, 163, 74, 0.55);
}

.btn-outline {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.7);
  color: #e5e7eb;
}

.btn-outline:hover {
  border-color: #f97316;
  background: rgba(15, 23, 42, 0.85);
}

main {
  flex: 1;
}

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 3rem;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  align-items: center;
  gap: 2.5rem;
  padding: 2rem 0 2.75rem;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #a5b4fc;
  background: rgba(15, 23, 42, 0.9);
  border-radius: 999px;
  padding: 0.2rem 0.65rem 0.2rem 0.2rem;
  border: 1px solid rgba(129, 140, 248, 0.7);
}

.hero-kicker-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #f97316, #facc15);
  color: #0f172a;
  font-weight: 700;
  font-size: 0.8rem;
}

.hero-title {
  font-size: clamp(2.1rem, 3.3vw + 1rem, 3rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  margin: 0.9rem 0 0.75rem;
}

.hero-title-gradient {
  background: linear-gradient(120deg, #f97316, #facc15, #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  color: #9ca3af;
  max-width: 36rem;
  font-size: 0.99rem;
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.35rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-top: 1.25rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-meta-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-meta-dot {
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.9);
}

.hero-image {
  margin-top: 1.5rem;
  max-width: 260px;
}

.hero-image img {
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.9);
}

.hero-image figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.hero-card {
  border-radius: 1.25rem;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background:
    radial-gradient(circle at top left, rgba(56, 189, 248, 0.18), transparent 60%),
    radial-gradient(circle at bottom right, rgba(244, 114, 182, 0.2), transparent 65%),
    rgba(15, 23, 42, 0.96);
  padding: 1.5rem 1.4rem;
  box-shadow: 0 28px 80px rgba(15, 23, 42, 0.85);
}

.hero-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.hero-chip {
  font-size: 0.75rem;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(129, 140, 248, 0.8);
  color: #c7d2fe;
  background: rgba(15, 23, 42, 0.9);
}

.hero-tagline {
  font-size: 0.8rem;
  color: #e5e7eb;
  font-weight: 500;
}

.hero-list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  font-size: 0.84rem;
}

.hero-list li {
  display: flex;
  gap: 0.5rem;
}

.hero-list-bullet {
  margin-top: 0.3rem;
  color: #22c55e;
}

.hero-card-footer {
  margin-top: 1.1rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.6);
  font-size: 0.75rem;
  color: #9ca3af;
  display: flex;
  justify-content: space-between;
  gap: 0.9rem;
  flex-wrap: wrap;
}

/* Content layout */
.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 1.6fr);
  gap: 2rem;
  margin-top: 1.5rem;
}

article {
  background: rgba(15, 23, 42, 0.95);
  border-radius: 1.25rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  padding: 1.5rem 1.4rem 1.6rem;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.9);
}

.article-breadcrumbs {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 0.5rem;
}

.article-breadcrumbs a {
  color: #c4b5fd;
}

.article-breadcrumbs span {
  margin: 0 0.3rem;
  color: #4b5563;
}

.article-meta {
  font-size: 0.78rem;
  color: #9ca3af;
  margin-bottom: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.article-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  font-size: 0.72rem;
  color: #e5e7eb;
}

.badge.badge-success {
  border-color: rgba(34, 197, 94, 0.9);
  color: #bbf7d0;
}

.badge-dot {
  width: 0.35rem;
  height: 0.35rem;
  border-radius: 999px;
  background: currentColor;
}

.article-title {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
}

.article-subtitle {
  color: #9ca3af;
  font-size: 0.97rem;
  margin-bottom: 1.1rem;
}

.article-section {
  margin-top: 1.2rem;
}

.article-section h2 {
  font-size: 1.15rem;
  margin-bottom: 0.45rem;
}

.article-section h3 {
  font-size: 1rem;
  margin: 0.4rem 0 0.2rem;
}

.article-section p {
  font-size: 0.95rem;
  color: #d1d5db;
  margin-bottom: 0.55rem;
}

.article-section ul {
  margin: 0.25rem 0 0.75rem 1.1rem;
  padding-left: 0.2rem;
}

.article-section li {
  margin-bottom: 0.4rem;
  font-size: 0.94rem;
  color: #e5e7eb;
}

.article-image {
  margin: 1.2rem 0 0.8rem;
}

.article-image img {
  width: 100%;
  max-width: 560px;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.9);
}

.article-image figcaption {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: #9ca3af;
}

.article-highlight {
  border-left: 3px solid rgba(56, 189, 248, 0.9);
  padding-left: 0.75rem;
  margin: 0.75rem 0;
  color: #e0f2fe;
  font-size: 0.9rem;
}

.article-note {
  border-radius: 0.8rem;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: rgba(15, 23, 42, 0.95);
  padding: 0.8rem 0.9rem;
  font-size: 0.86rem;
  color: #9ca3af;
  margin-top: 0.9rem;
}

.download-panel {
  margin-top: 1.4rem;
  padding: 1rem 1.1rem;
  border-radius: 0.9rem;
  border: 1px dashed rgba(74, 222, 128, 0.7);
  background: rgba(22, 163, 74, 0.12);
}

.download-panel-title {
  font-size: 0.98rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.download-panel p {
  font-size: 0.87rem;
  color: #dcfce7;
  margin-bottom: 0.7rem;
}

.download-panel .btn-primary {
  font-size: 0.9rem;
  padding-inline: 1.3rem;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-card {
  border-radius: 1.1rem;
  border: 1px solid rgba(55, 65, 81, 0.9);
  background: radial-gradient(circle at top, rgba(56, 189, 248, 0.18), transparent 55%),
    rgba(15, 23, 42, 0.96);
  padding: 1.1rem 1rem 1.1rem;
}

.sidebar-card h2 {
  font-size: 0.98rem;
  margin-bottom: 0.5rem;
}

.sidebar-card p {
  font-size: 0.86rem;
  color: #d1d5db;
  margin-bottom: 0.5rem;
}

.sidebar-list {
  list-style: none;
  margin-top: 0.2rem;
}

.sidebar-list li {
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
}

.sidebar-list a {
  color: #c4b5fd;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.tag {
  font-size: 0.7rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  color: #d1d5db;
}

/* Footer */
footer {
  border-top: 1px solid rgba(31, 41, 55, 0.9);
  background: radial-gradient(circle at top, rgba(37, 99, 235, 0.2), transparent 60%),
    #020617;
  margin-top: 2rem;
}

.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.75rem 1.25rem 1.6rem;
  font-size: 0.82rem;
  color: #9ca3af;
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-col-main {
  max-width: 20rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.4rem;
}

.footer-links a {
  color: #e5e7eb;
}

.footer-bottom {
  margin-top: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  justify-content: space-between;
  align-items: center;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.footer-meta span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.footer-meta-dot {
  width: 0.32rem;
  height: 0.32rem;
  border-radius: 999px;
  background: #f97316;
}

/* Utility */
.mt-lg {
  margin-top: 1.6rem;
}

.text-center {
  text-align: center;
}

.text-muted {
  color: #9ca3af;
}

.sr-only {
  border: 0;
  clip: rect(0, 0, 0, 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1.1fr);
  }

  .hero-card {
    order: -1;
  }

  .content-grid {
    grid-template-columns: minmax(0, 1.1fr);
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: inline-flex;
  }

  .container {
    padding-inline: 1rem;
  }

  .hero {
    padding-top: 1.4rem;
  }

  article {
    padding-inline: 1.1rem;
  }

  .article-title {
    font-size: 1.4rem;
  }

  .footer-inner {
    padding-inline: 1rem;
  }
}
