/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
button,
input,
textarea {
  font-family: 'Inter', 'Segoe UI', Roboto, sans-serif;
  color: #e5e7f1;
}

button,
input,
textarea,
select {
  -webkit-appearance: none;
  appearance: none;
  font: inherit;
  color: inherit;
}

body {
  line-height: 1.7;
  background-color: #03050b;
}

/* Site header */
.site-header {
  width: 90%;
  margin: 0 auto;
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  gap: 1.5rem;
  text-align: center;
}

.logo-mark {
  width: 145px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(20, 184, 166, 0.35));
}

.site-title {
  font-size: 1.6rem;
  margin-bottom: 0.25rem;
  font-weight: 600;
  letter-spacing: 0.04rem;
}

.tagline {
  color: #9ca3af;
  font-size: 0.95rem;
}

.subscribe-pill {
  border: 1px solid rgba(99, 102, 241, 0.6);
  color: #e0e7ff;
  background: transparent;
  padding: 0.5rem 1.5rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.subscribe-pill:hover {
  background: rgba(99, 102, 241, 0.2);
}

/* Main navigation */
.main-nav {
  width: 100%;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  margin-bottom: 2rem;
  padding: 0.75rem 0;
}

.nav-links {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.nav-links a {
  color: #e5e7f1;
  text-decoration: none;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.05rem;
  opacity: 0.7;
  position: relative;
}

.nav-links a.active {
  opacity: 1;
}

.nav-links a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #14b8a6, #6366f1);
  left: 0;
  bottom: -6px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.nav-links a:hover {
  opacity: 1;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

/* Hero */
.hero {
  width: 90%;
  margin: 0 auto 2.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  background: radial-gradient(circle at 10% 20%, rgba(99, 102, 241, 0.3), transparent 60%),
    radial-gradient(circle at 80% 0%, rgba(20, 184, 166, 0.25), transparent 55%),
    #050914;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.hero-content {
  flex: 1 1 320px;
}

.hero-content h2 {
  font-size: 2rem;
  margin-bottom: 1rem;
}

.hero-content p {
  color: #d1d5db;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3rem;
  font-size: 0.7rem;
  color: #a5b4fc;
  margin-bottom: 0.7rem;
  display: inline-block;
}

.hero-cta {
  margin-top: 1.5rem;
  display: flex;
  gap: 0.75rem;
}

.primary-btn,
.ghost-btn {
  border: none;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
}

.primary-btn {
  background: linear-gradient(90deg, #14b8a6, #6366f1);
  color: #fff;
}

.ghost-btn {
  background: transparent;
  border: 1px solid rgba(229, 231, 241, 0.4);
  color: #e5e7f1;
}

.hero-metrics {
  flex: 1 1 220px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.hero-metrics li {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(15, 23, 42, 0.6);
}

.metric-value {
  font-size: 1.8rem;
  font-weight: 600;
  display: block;
}

.metric-label {
  font-size: 0.85rem;
  color: #9ca3af;
}

/* Layout */
.container {
  width: 90%;
  margin: 0 auto 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: flex-start;
}

.content {
  flex: 1 1 65%;
}

.post {
  width: 100%;
}

.sidebar {
  flex: 1 1 30%;
  font-size: 0.95rem;
  padding: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(15, 23, 42, 0.7);
}

.sidebar h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1rem;
  letter-spacing: 0.05rem;
  text-transform: uppercase;
  color: #c7d2fe;
}

.sidebar ul {
  list-style: none;
  padding-left: 0;
}

.sidebar li {
  margin-bottom: 0.4rem;
}

.sidebar a {
  color: #a5b4fc;
  text-decoration: none;
}

.sidebar a:hover {
  color: #f4f4ff;
}

.sidebar .search,
.sidebar .subscribe,
.sidebar .recent-posts,
.sidebar .connect,
.sidebar .brand-card {
  margin-bottom: 2rem;
}

.search-input,
.subscribe-input {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  font-size: 0.95rem;
  background: transparent;
  color: inherit;
}

.search-btn,
.subscribe-btn {
  display: inline-block;
  background: linear-gradient(90deg, #14b8a6, #6366f1);
  color: #fff;
  padding: 0.4rem 0.8rem;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  font-size: 0.9rem;
}

.search-btn:hover,
.subscribe-btn:hover {
  opacity: 0.85;
}

.subscribe .subscriber-count {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #94a3b8;
}

.connect h3 {
  margin-top: 0;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-transform: uppercase;
  letter-spacing: 0.03rem;
}

.social-icons {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.icon-link svg {
  width: 24px;
  height: 24px;
  fill: #a5b4fc;
  transition: fill 0.2s ease-in-out;
}

.icon-link:hover svg {
  fill: #c4b5fd;
}

/* Post styling */
.post h2 {
  margin-bottom: 0.5rem;
  font-size: 1.8rem;
}

.post-meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 1rem;
}

.post p {
  margin-bottom: 1rem;
  color: #d1d5db;
}

.footnotes {
  font-size: 0.8rem;
  margin-top: 1rem;
  padding-left: 1.2rem;
  list-style: decimal;
  color: #94a3b8;
}

.footnotes li {
  margin-bottom: 0.5rem;
}

/* Feature cards */
.featured-grid {
  margin: 2.5rem 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.feature-card {
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  padding: 1.25rem;
  background: rgba(26, 33, 51, 0.85);
}

.feature-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  color: #cbd5f5;
}

.feature-card a {
  color: #f0abfc;
  text-decoration: none;
  font-weight: 600;
}

.feature-card a:hover {
  text-decoration: underline;
}

/* Comments */
.comments {
  background-color: rgba(15, 23, 42, 0.7);
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 12px;
  margin-top: 2rem;
}

.comments h3 {
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

form label {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: bold;
  font-size: 0.9rem;
}

form input,
form textarea {
  width: 100%;
  padding: 0.5rem;
  margin-bottom: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  font-size: 0.95rem;
  background: transparent;
  color: inherit;
}

form button {
  background: linear-gradient(90deg, #14b8a6, #6366f1);
  color: #fff;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.95rem;
  transition: opacity 0.2s ease-in-out;
}

form button:hover {
  opacity: 0.85;
}

#comments-list .comment {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0.75rem 0;
}

#comments-list .comment:first-child {
  border-top: none;
}

#comments-list .comment-name {
  font-weight: bold;
  margin-bottom: 0.25rem;
}

#comments-list .comment-date {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-bottom: 0.3rem;
}

#comments-list .comment-text {
  white-space: pre-wrap;
}

.recent-posts ul li {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.8rem;
}

.post-type {
  font-size: 0.7rem;
  letter-spacing: 0.2rem;
  color: #f472b6;
}

.signal-board {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 1.2rem;
}

.brand-card {
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 1rem;
  border-radius: 16px;
  text-align: center;
  background: rgba(7, 11, 23, 0.7);
}

.brand-card img {
  width: 140px;
  height: auto;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 8px 18px rgba(99, 102, 241, 0.35));
}

.signal-board ul li {
  margin-bottom: 0.75rem;
  line-height: 1.4;
}

.signal-label {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.2);
  color: #c7d2fe;
  font-size: 0.7rem;
  letter-spacing: 0.1rem;
  margin-right: 0.5rem;
}

.signal-label.warning {
  background: rgba(248, 113, 113, 0.2);
  color: #fecaca;
}

.reports-page {
  width: 90%;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.reports-hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  background: linear-gradient(120deg, rgba(20, 184, 166, 0.1), rgba(99, 102, 241, 0.08));
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  align-items: center;
}

.reports-hero h2 {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.report-stats {
  display: flex;
  gap: 1.5rem;
  flex: 1 1 240px;
  justify-content: flex-end;
}

.report-stats > div {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  background: rgba(7, 11, 23, 0.6);
  min-width: 140px;
}

.reports-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
}

.report-card {
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(12, 16, 28, 0.7);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.report-card ul {
  padding-left: 1.1rem;
  color: #d1d5db;
}

.report-card a {
  color: #a5b4fc;
  font-weight: 600;
  text-decoration: none;
}

.report-card a:hover {
  text-decoration: underline;
}

.report-card .coming-soon {
  opacity: 0.6;
  pointer-events: none;
}

.report-timeline {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1.5rem;
  background: rgba(8, 12, 24, 0.7);
}

.report-timeline h3 {
  margin-bottom: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.08rem;
  font-size: 0.95rem;
  color: #c7d2fe;
}

.timeline-rows {
  display: grid;
  gap: 1rem;
}

.timeline-rows span {
  display: block;
  font-size: 0.85rem;
  color: #a5b4fc;
  letter-spacing: 0.05rem;
}

.timeline-rows p {
  margin-top: 0.3rem;
  color: #d1d5db;
}

.about-page {
  width: 90%;
  margin: 0 auto 3rem;
  max-width: 960px;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.about-hero {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 2rem;
  background: radial-gradient(circle at 0 0, rgba(99, 102, 241, 0.12), transparent 60%), rgba(5, 9, 20, 0.85);
  display: block;
}

.about-hero h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.about-intro + * {
  margin-top: 1.5rem;
}

.about-intro p {
  color: #d1d5db;
  margin-bottom: 1rem;
}

.about-statement {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 1.75rem;
  background: rgba(12, 16, 28, 0.85);
  line-height: 1.8;
}

.about-statement h3 {
  margin-bottom: 1rem;
  font-size: 1.3rem;
}

.about-list {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
  color: #d1d5db;
}

.about-list li {
  margin-bottom: 0.75rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .site-header {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    flex-wrap: wrap;
    gap: 1rem;
  }

  .hero {
    padding: 1.5rem;
  }

  .container {
    flex-direction: column;
  }

  .post,
  .sidebar {
    flex-basis: 100%;
  }

  .hero-cta {
    flex-direction: column;
  }

  .reports-hero {
    text-align: center;
    justify-content: center;
  }

  .report-stats {
    flex-direction: column;
    align-items: stretch;
  }

  .about-hero {
    text-align: center;
    justify-content: center;
  }
}
