* { 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;
  --article-image-width: 760px;
  --article-inline-image-width: 720px;
}

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: flex-start;
  position: relative;
  background: none;
  border: none;
  padding: 0;
  z-index: 1;
  transition: transform 0.2s ease;
  min-width: 180px;
}
.brand::before {
  content: none;
}
.brand:hover { transform: scale(1.01); }
.brand img {
  display: block;
  width: 176px;
  max-width: 36vw;
  height: auto;
  max-height: 54px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.22));
  transition: transform 0.2s ease;
  transform: none;
  transform-origin: left center;
}
@media (max-width: 1100px) {
  .brand { min-width: 158px; }
  .brand img { width: 158px; }
}
@media (max-width: 850px) {
  .brand { min-width: 148px; }
  .brand img { width: 148px; max-width: 42vw; }
}
@media (max-width: 640px) {
  .brand { min-width: 132px; }
  .brand img { width: 132px; }
}
@media (max-width: 480px) {
  .brand { min-width: 118px; }
  .brand img { width: 118px; }
}


.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 {
  display: block;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(45, 183, 211, 0.2), rgba(240, 90, 0, 0.1));
}
.featured-media {
  min-height: 100%;
  aspect-ratio: 16 / 10;
}
.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: 1rem;
}
.blog-list.single-column {
  grid-template-columns: minmax(0, 960px);
  justify-content: center;
}
.post-card {
  display: grid;
  grid-template-columns: minmax(170px, 38%) minmax(0, 1fr);
  align-items: stretch;
  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 {
  width: 100%;
  height: 100%;
  min-height: 210px;
  aspect-ratio: auto;
}
.post-content {
  min-width: 0;
  padding: 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.post-card h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.22;
  margin-bottom: .65rem;
}
.post-card p {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: .96rem;
  line-height: 1.55;
}
.post-card .post-meta {
  gap: .45rem;
  margin-bottom: .65rem;
  font-size: .78rem;
}
.post-card .post-meta span {
  padding: .2rem .55rem;
}
.post-card .read-more {
  margin-top: .85rem;
  font-size: .92rem;
}
.blog-list.single-column .post-card {
  grid-template-columns: minmax(240px, 34%) minmax(0, 1fr);
  max-width: 960px;
}
.blog-list.single-column .post-thumb {
  aspect-ratio: auto;
  min-height: 230px;
  height: 100%;
}
.blog-list.single-column .post-content {
  padding: 1.4rem 1.55rem;
}
.blog-list.single-column .post-card h3 {
  font-size: clamp(1.35rem, 2vw, 1.8rem);
}
.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 {
  width: min(100%, var(--article-image-width));
  aspect-ratio: 21 / 9;
  max-height: 360px;
  margin: 1.25rem auto 0;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.05);
}
.article-cover img {
  height: 100%;
  aspect-ratio: auto;
}
.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 {
  width: min(100%, var(--article-inline-image-width));
  height: auto;
  max-height: 460px;
  object-fit: contain;
  border-radius: 16px;
  margin: 1.35rem auto;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
}
.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;
  }
  .post-card,
  .blog-list.single-column .post-card {
    grid-template-columns: minmax(190px, 34%) minmax(0, 1fr);
  }
  .featured-media {
    min-height: auto;
    aspect-ratio: 16 / 9;
  }
}
@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; }
  .article-cover {
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: none;
    border-radius: 14px;
  }
  .post-thumb {
    height: 180px;
    min-height: 0;
    aspect-ratio: auto;
  }
  .post-card {
    display: block;
  }
  .blog-list.single-column .post-card {
    display: block;
  }
  .blog-list.single-column .post-thumb {
    aspect-ratio: auto;
    min-height: 0;
    height: 180px;
  }
  .featured-content,
  .post-content,
  .post-body,
  .article-cta,
  .hero-panel { padding: 1.2rem; }
  .btn { width: 100%; }
  .hero-actions { flex-direction: column; }
}
