* { box-sizing: border-box; }
:root {
  --bg: #06101d;
  --bg-2: #091523;
  --panel: rgba(255, 255, 255, 0.06);
  --line: rgba(255, 255, 255, 0.10);
  --text: #ffffff;
  --muted: #b7c2d3;
  --muted-2: #8c97aa;
  --cyan: #2DB7D3;
  --orange: #F05A00;
  --orange-2: #FF8A00;
  --max-width: 1280px;
}

html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", system-ui, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 10% 20%, rgba(45, 183, 211, 0.12), transparent 35%),
              radial-gradient(circle at 90% 80%, rgba(240, 90, 0, 0.08), transparent 30%),
              linear-gradient(145deg, #06101d 0%, #0a1828 100%);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.container { width: min(100% - 2rem, var(--max-width)); margin: 0 auto; }
.narrow { width: min(100% - 2rem, 860px); margin: 0 auto; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(6, 16, 29, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 80px;
}


.menu {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
}

.menu a {
  color: var(--muted);
  transition: color 0.2s, border-bottom 0.2s;
  font-size: 1rem;
  padding-bottom: 4px;
  border-bottom: 1px solid transparent;
}

.menu a:hover {
  color: white;
  border-bottom-color: var(--orange);
}

.mobile-menu-btn {
  display: none;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 40px;
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  color: white;
  gap: 0.5rem;
  align-items: center;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  width: 100%;
  background: rgba(8, 20, 32, 0.98);
  backdrop-filter: blur(20px);
  border-radius: 2rem;
  padding: 1.2rem;
  margin-top: 0.5rem;
  gap: 1rem;
  border: 1px solid var(--line);
  position: relative;
}

.mobile-menu a {
  color: var(--muted);
  font-weight: 500;
  padding: 0.6rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 1.1rem;
}

.mobile-menu .close-menu {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0.7;
}

.mobile-menu.show { display: flex; }

.topbar-cta { white-space: nowrap; }

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  z-index: 1;
  transition: transform 0.2s ease;
}
.brand::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  z-index: -1;
  pointer-events: none;
  transition: transform 0.2s ease;
}
.brand:hover { transform: scale(1.01); }
.brand img {
  display: block;
  max-height: 52px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  transition: transform 0.2s ease;
  transform: scaleX(5) scaleY(4);
  transform-origin: left center;
}
.brand::before {
  transform: scaleX(4.5) scaleY(3.6);
  transform-origin: left center;
}
@media (max-width: 1100px) {
  .brand img { transform: scaleX(3.75) scaleY(3); }
  .brand::before { transform: scaleX(3.375) scaleY(2.7); }
}
@media (max-width: 850px) {
  .brand img { transform: scaleX(2.75) scaleY(2.2); }
  .brand::before { transform: scaleX(2.475) scaleY(1.98); }
}
@media (max-width: 640px) {
  .brand img { transform: scale(1.9); transform-origin: left center; }
  .brand::before { transform: scale(1.71); transform-origin: left center; }
}
@media (max-width: 480px) {
  .brand img { transform: scale(1.6); }
  .brand::before { transform: scale(1.44); }
}


.hero { padding: 4.5rem 0 3rem; }
.hero-compact { padding-top: 4rem; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 2rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  background: rgba(45, 183, 211, 0.12);
  border: 1px solid rgba(45, 183, 211, 0.25);
  border-radius: 100px;
  padding: .4rem 1rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #9fe8f3;
  margin-bottom: 1.2rem;
}
.hero h1, .article-title {
  margin: 0 0 1rem;
  font-size: clamp(2.1rem, 5vw, 4rem);
  line-height: 1.05;
}
.hero p, .section-copy, .article-summary {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 1.7rem;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .82rem 1.4rem;
  border-radius: 999px;
  font-weight: 800;
  transition: transform .2s ease, filter .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary {
  background: linear-gradient(105deg, var(--orange), var(--orange-2));
  color: #fff;
  box-shadow: 0 8px 18px rgba(240, 90, 0, 0.25);
}
.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: #eef3ff;
}

.hero-panel,
.post-card,
.featured-post,
.article-cta,
.post-body,
.empty-state {
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--line);
  border-radius: 28px;
}
.hero-panel {
  padding: 1.5rem;
}
.hero-panel h2, .article-cta h2 {
  margin: 0 0 .8rem;
  font-size: 1.35rem;
}
.reader-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .8rem;
}
.reader-list li {
  padding: .95rem 1rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 18px;
  color: var(--muted);
}

.section, .featured-section, .post-body-wrap { padding: 1rem 0 4rem; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 1rem;
  margin-bottom: 1.6rem;
}
.section-head h2 {
  margin: .2rem 0 .5rem;
  font-size: clamp(1.7rem, 3vw, 2.6rem);
}
.tag {
  font-size: .72rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  font-weight: 800;
}

.featured-post {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  overflow: hidden;
}
.featured-media,
.post-thumb {
  position: relative;
  background: linear-gradient(135deg, rgba(45, 183, 211, 0.2), rgba(240, 90, 0, 0.1));
}
.featured-media { min-height: 100%; }
.featured-media img,
.post-thumb img,
.article-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.featured-placeholder,
.thumb-placeholder {
  min-height: 260px;
  width: 100%;
  background: linear-gradient(135deg, rgba(45, 183, 211, 0.18), rgba(240, 90, 0, 0.12));
}
.featured-content {
  padding: 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-meta {
  display: flex;
  gap: .9rem;
  flex-wrap: wrap;
  margin-bottom: .9rem;
  color: var(--muted-2);
  font-size: .88rem;
}
.post-meta span {
  padding: .25rem .7rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
}
.featured-content h3,
.post-card h3 {
  margin: 0 0 .85rem;
  font-size: clamp(1.5rem, 2vw, 2.15rem);
  line-height: 1.15;
}
.featured-content p,
.post-card p {
  color: var(--muted);
  margin: 0;
}
.read-more {
  display: inline-flex;
  margin-top: 1.15rem;
  font-weight: 800;
  color: #fff;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}
.blog-list.single-column { grid-template-columns: 1fr; }
.post-card {
  overflow: hidden;
  min-height: 100%;
  transition: transform .2s ease, background .2s ease;
}
.post-card:hover { transform: translateY(-4px); background: rgba(255,255,255,0.08); }
.post-thumb { aspect-ratio: 16 / 9; }
.post-content { padding: 1.35rem; }
.post-card h3 { font-size: 1.45rem; }
.pin {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: linear-gradient(135deg, var(--orange), var(--orange-2));
  color: white;
  border-radius: 999px;
  padding: .42rem .78rem;
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.empty-state {
  padding: 1.5rem;
  color: var(--muted);
}

.article-breadcrumbs {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  color: var(--muted-2);
  margin-bottom: 1rem;
}
.article-breadcrumbs a:hover { color: white; }
.post-badges {
  display: flex;
  gap: .8rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.meta-badge {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--muted);
  border-radius: 999px;
  padding: .42rem .84rem;
  font-size: .88rem;
}
.article-summary {
  margin: 0 0 1.5rem;
}
.article-cover {
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}
.article-cover img {
  aspect-ratio: 16 / 9;
}
.post-body {
  padding: 2rem;
}
.typography { color: #ebf1fb; }
.typography > *:first-child { margin-top: 0; }
.typography h1, .typography h2, .typography h3, .typography h4 {
  line-height: 1.18;
  margin: 1.5rem 0 .8rem;
}
.typography p, .typography li, .typography blockquote {
  color: #d7e0ef;
  font-size: 1.03rem;
}
.typography p, .typography ul, .typography ol, .typography blockquote, .typography figure {
  margin: 0 0 1rem;
}
.typography a {
  color: #9fe8f3;
  text-decoration: underline;
}
.typography img {
  border-radius: 20px;
  margin: 1.2rem 0;
}
.typography blockquote {
  margin: 1.2rem 0;
  padding: 1rem 1.2rem;
  border-left: 4px solid var(--cyan);
  background: rgba(45, 183, 211, 0.08);
  border-radius: 0 16px 16px 0;
}
.typography table {
  width: 100%;
  border-collapse: collapse;
  display: block;
  overflow-x: auto;
}
.typography th, .typography td {
  border: 1px solid rgba(255,255,255,0.08);
  padding: .75rem;
}
.typography code, .typography pre {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.typography pre {
  overflow-x: auto;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(0,0,0,0.28);
  border: 1px solid rgba(255,255,255,0.08);
}
.article-cta {
  margin-top: 1.6rem;
  padding: 1.6rem;
}
.article-cta p { color: var(--muted); margin: 0; }

.footer {
  border-top: 1px solid var(--line);
  padding: 1.6rem 0 2rem;
  text-align: center;
  color: var(--muted-2);
  font-size: .9rem;
}

@media (max-width: 1000px) {
  .hero-grid,
  .featured-post,
  .blog-list {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .container, .narrow { width: min(100% - 1.4rem, var(--max-width)); }
  .topbar-inner { min-height: 76px; }
  .top-links { width: 100%; justify-content: space-between; }
  .hero { padding-top: 3rem; }
  .featured-content,
  .post-content,
  .post-body,
  .article-cta,
  .hero-panel { padding: 1.2rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
