@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap");

:root {
  color-scheme: dark light;
  --bg: #060b11;
  --bg-soft: rgba(11, 17, 25, 0.9);
  --surface: rgba(255, 255, 255, 0.04);
  --surface-strong: rgba(12, 19, 31, 0.92);
  --card: rgba(16, 25, 37, 0.85);
  --border: rgba(255, 255, 255, 0.12);
  --text: #f6f9ff;
  --muted: #a8b5c8;
  --brand: #5df2d6;
  --brand-strong: #1abf9a;
  --brand-2: #8da6ff;
  --shadow: 0 35px 70px rgba(3, 6, 12, 0.65);
  --radius: 26px;
  --transition: 220ms ease;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f9fc;
  --bg-soft: rgba(255, 255, 255, 0.96);
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.96);
  --card: rgba(255, 255, 255, 0.96);
  --border: rgba(11, 30, 50, 0.08);
  --text: #0e1727;
  --muted: #4c5d75;
  --brand: #1abf9a;
  --brand-strong: #0f8b6c;
  --brand-2: #3055ff;
  --shadow: 0 25px 60px rgba(21, 45, 70, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "DM Sans", "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  width: 100%;
  display: block;
  height: 100%;
  object-fit: cover;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 3px;
}

.page {
  min-height: 100vh;
  background: radial-gradient(circle at top, rgba(141, 166, 255, 0.18), transparent 50%),
    radial-gradient(circle at 20% 20%, rgba(90, 230, 200, 0.25), transparent 55%), var(--bg);
  display: flex;
  flex-direction: column;
}

.page-header {
  padding: clamp(32px, 5vw, 60px) 0 0;
}

.wrap {
  width: min(1100px, calc(100% - 48px));
  margin: 0 auto;
}

.nav-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 1.1rem;
}

.brand span {
  display: inline-flex;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  color: var(--bg);
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 16px;
  align-items: center;
}

.nav-links a {
  font-weight: 600;
  color: var(--muted);
}

.theme-switch {
  border: none;
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text);
  padding: 10px 20px;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}

.theme-switch:hover,
.theme-switch:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.page-header h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  margin: 12px 0;
}

.page-header .eyebrow {
  letter-spacing: 0.4em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.7;
}

.page-header p {
  color: var(--muted);
  max-width: 720px;
  margin: 8px 0 0;
}

.header-meta {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  color: var(--muted);
}

.header-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.header-meta span::before {
  content: "•";
  color: var(--brand);
}

.cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  border-radius: 999px;
  padding: 12px 22px;
  background: var(--brand);
  color: #022920;
  font-weight: 600;
  box-shadow: var(--shadow);
  transition: transform var(--transition);
}

.cta:hover {
  transform: translateY(-2px);
}

.page-main {
  flex: 1;
  padding: clamp(40px, 6vw, 80px) 0 clamp(48px, 10vw, 110px);
}

.feature-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  background: linear-gradient(135deg, rgba(93, 242, 214, 0.12), rgba(141, 166, 255, 0.08)), var(--surface-strong);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: clamp(24px, 4vw, 40px);
  box-shadow: var(--shadow);
}

.feature-media {
  border-radius: calc(var(--radius) - 8px);
  overflow: hidden;
  min-height: 320px;
  background: rgba(0, 0, 0, 0.2);
}

.feature-media img {
  object-fit: cover;
}

.feature-body {
  display: grid;
  gap: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(93, 242, 214, 0.18);
  color: var(--brand);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-body h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 2.6rem);
}

.feature-body p {
  margin: 0;
  color: var(--muted);
}

.feature-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 10px 22px;
  font-weight: 600;
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-primary {
  background: var(--brand);
  color: #022920;
  box-shadow: var(--shadow);
}

.btn-ghost {
  border: 1px solid var(--border);
  color: var(--text);
  background: transparent;
}

.btn:hover {
  transform: translateY(-2px);
}

.grid-section {
  margin-top: clamp(32px, 5vw, 60px);
}

.grid-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}

.post-card {
  background: var(--card);
  border-radius: calc(var(--radius) - 6px);
  border: 1px solid var(--border);
  padding: 20px;
  display: grid;
  gap: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
  transition: transform var(--transition), box-shadow var(--transition);
}

.post-card figure {
  border-radius: 18px;
  overflow: hidden;
  margin: -4px -4px 8px;
  height: 200px;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.post-meta {
  font-size: 0.9rem;
  color: var(--muted);
}

.empty-state {
  margin-top: 32px;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 700px) {
  .nav-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-links {
    width: 100%;
    justify-content: space-between;
  }
  .feature-card {
    grid-template-columns: 1fr;
  }
  .feature-media {
    min-height: 220px;
  }
}
