:root {
  --bg-0: #040812;
  --bg-1: #0a1120;
  --bg-2: #11233a;
  --panel: rgba(8, 17, 33, 0.72);
  --panel-strong: rgba(8, 17, 33, 0.9);
  --panel-soft: rgba(13, 26, 46, 0.52);
  --line: rgba(114, 219, 255, 0.28);
  --line-soft: rgba(114, 219, 255, 0.14);
  --ink: #e5f7ff;
  --muted: #98adc4;
  --accent: #2fe8ff;
  --accent-2: #85ffbe;
  --accent-warm: #ffb766;
  --danger: #ff86a8;
  --shadow-lg: 0 28px 84px rgba(1, 7, 17, 0.58);
  --shadow-md: 0 14px 38px rgba(1, 7, 17, 0.45);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --max: 1180px;
  --font-display: 'Orbitron', 'Segoe UI', sans-serif;
  --font-body: 'Exo 2', 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  background:
    radial-gradient(1200px 720px at 15% -10%, rgba(46, 232, 255, 0.2), transparent 58%),
    radial-gradient(900px 600px at 92% 14%, rgba(133, 255, 190, 0.14), transparent 60%),
    linear-gradient(165deg, var(--bg-0), var(--bg-1) 42%, var(--bg-2));
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

body::before {
  background:
    radial-gradient(520px 360px at 78% 66%, rgba(255, 183, 102, 0.12), transparent 65%),
    radial-gradient(520px 380px at 12% 82%, rgba(47, 232, 255, 0.1), transparent 62%);
  animation: auroraDrift 18s ease-in-out infinite alternate;
}

body::after {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(120, 196, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 196, 255, 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 20%, #000 18%, transparent 88%);
}

.site-scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.scene-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(6px);
  opacity: 0.48;
}

.scene-orb.orb-1 {
  width: 34vw;
  min-width: 280px;
  aspect-ratio: 1;
  top: -8vw;
  right: -8vw;
  background: radial-gradient(circle, rgba(47, 232, 255, 0.4), rgba(47, 232, 255, 0));
  animation: orbFloat 14s ease-in-out infinite;
}

.scene-orb.orb-2 {
  width: 28vw;
  min-width: 240px;
  aspect-ratio: 1;
  left: -8vw;
  bottom: -8vw;
  background: radial-gradient(circle, rgba(133, 255, 190, 0.32), rgba(133, 255, 190, 0));
  animation: orbFloat 16s ease-in-out infinite reverse;
}

.scene-orb.orb-3 {
  width: 16vw;
  min-width: 150px;
  aspect-ratio: 1;
  left: 45%;
  top: 40%;
  background: radial-gradient(circle, rgba(255, 183, 102, 0.25), rgba(255, 183, 102, 0));
  animation: pulseGlow 8s ease-in-out infinite;
}

main,
header,
footer {
  position: relative;
  z-index: 2;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  letter-spacing: 0.02em;
  line-height: 1.15;
}

p {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.page {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 52px 0 88px;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(12px);
  background: linear-gradient(180deg, rgba(7, 17, 32, 0.92), rgba(7, 17, 32, 0.75));
}

.nav-container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  position: relative;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand img {
  width: auto;
  height: 48px;
  filter: drop-shadow(0 0 14px rgba(47, 232, 255, 0.38));
}

.brand-text {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #def8ff;
  text-shadow: 0 0 16px rgba(47, 232, 255, 0.36);
}

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

.nav-link {
  position: relative;
  text-decoration: none;
  color: #c9d9ec;
  font-weight: 600;
  letter-spacing: 0.03em;
  transition: color 0.24s ease;
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 0.24s ease;
}

.nav-link:hover,
.nav-link.is-active {
  color: #eff9ff;
}

.nav-link:hover::after,
.nav-link.is-active::after {
  width: 100%;
}

.nav-user {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(47, 232, 255, 0.1);
  border: 1px solid rgba(47, 232, 255, 0.22);
  font-size: 0.84rem;
  color: var(--ink);
}

.nav-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(8, 17, 33, 0.85);
  color: var(--ink);
  font-family: var(--font-display);
  letter-spacing: 0.06em;
  border-radius: 999px;
  padding: 9px 14px;
  cursor: pointer;
}

.btn {
  --btn-bg: transparent;
  --btn-color: var(--ink);
  --btn-border: var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-color);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.03em;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease, background 0.24s ease, color 0.24s ease;
  cursor: pointer;
}

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

.btn-primary {
  --btn-bg: linear-gradient(120deg, rgba(47, 232, 255, 0.95), rgba(133, 255, 190, 0.92));
  --btn-color: #00131a;
  --btn-border: rgba(133, 255, 190, 0.72);
  box-shadow: 0 8px 26px rgba(47, 232, 255, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 14px 34px rgba(47, 232, 255, 0.44);
}

.btn-ghost {
  --btn-bg: rgba(8, 17, 33, 0.74);
  --btn-border: rgba(114, 219, 255, 0.34);
  --btn-color: #d6ebff;
}

.btn-ghost:hover {
  --btn-bg: rgba(15, 30, 54, 0.88);
  --btn-border: rgba(133, 255, 190, 0.58);
}

.btn-google {
  --btn-bg: rgba(255, 255, 255, 0.08);
  --btn-border: rgba(173, 195, 220, 0.42);
  --btn-color: #ecf6ff;
}

.text-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.text-link:hover {
  color: var(--accent-2);
  text-decoration: underline;
}

.eyebrow {
  margin-bottom: 12px;
  font-family: var(--font-display);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1.14fr 0.92fr;
  gap: 30px;
  align-items: center;
  padding: 30px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(10, 20, 36, 0.84), rgba(10, 20, 36, 0.56));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% 42% 56% -20%;
  background: radial-gradient(circle, rgba(47, 232, 255, 0.24), transparent 72%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 56% -30% -34% 42%;
  background: radial-gradient(circle, rgba(133, 255, 190, 0.2), transparent 74%);
  pointer-events: none;
}

.hero-content,
.hero-card {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: clamp(2rem, 3.8vw, 3.3rem);
  margin-bottom: 14px;
}

.lede {
  max-width: 66ch;
  font-size: 1.07rem;
  color: #afc5db;
}

.hero-actions {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-topics {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.topic {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid rgba(114, 219, 255, 0.32);
  background: rgba(10, 22, 40, 0.7);
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #d6ecff;
}

.hero-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(8, 17, 33, 0.86), rgba(13, 24, 44, 0.78));
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.hero-card-media {
  min-height: 220px;
}

.hero-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.05);
}

.hero-card-body {
  display: grid;
  gap: 12px;
  padding: 22px;
}

.hero-card-body p {
  color: var(--muted);
}

.card-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.section {
  margin-top: 52px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.card {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(170deg, rgba(9, 18, 34, 0.88), rgba(10, 22, 40, 0.78));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

.card-media {
  position: relative;
}

.card-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(7, 15, 29, 0.7));
}

.card-media img {
  width: 100%;
  height: 190px;
  object-fit: cover;
}

.card-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 18px;
  flex: 1;
}

.card-meta,
.post-item-meta,
.post-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #90a8c2;
}

.card-title,
.post-item-title {
  color: #ecf7ff;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

.card-title {
  font-size: 1.07rem;
}

.card-title:hover,
.post-item-title:hover {
  color: var(--accent);
}

.card-excerpt,
.post-item-excerpt,
.footer-brand span,
.footer-meta,
.muted {
  color: var(--muted);
}

.card-excerpt,
.post-item-excerpt {
  font-size: 0.95rem;
}

.card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(114, 219, 255, 0.28);
  background: rgba(8, 17, 33, 0.76);
  color: #d3e6fa;
  font-size: 0.74rem;
  text-decoration: none;
}

.blog-wrap {
  max-width: 980px;
  display: grid;
  gap: 18px;
  margin: 0 auto;
}

.page-head {
  display: grid;
  gap: 8px;
}

.page-head h1,
.page-head h2 {
  font-size: clamp(1.72rem, 2.8vw, 2.4rem);
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: rgba(8, 17, 33, 0.56);
}

.input,
.field input,
.field textarea,
.newsletter-form input,
.chat-form input {
  width: 100%;
  border: 1px solid rgba(114, 219, 255, 0.24);
  border-radius: 11px;
  background: rgba(6, 13, 25, 0.74);
  color: var(--ink);
  font: inherit;
  padding: 11px 13px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.input {
  min-width: 240px;
  flex: 1;
}

.field textarea {
  resize: vertical;
  min-height: 132px;
}

input::placeholder,
textarea::placeholder {
  color: #7992ae;
}

.input:focus,
.field input:focus,
.field textarea:focus,
.newsletter-form input:focus,
.chat-form input:focus {
  outline: none;
  border-color: rgba(133, 255, 190, 0.68);
  box-shadow: 0 0 0 3px rgba(47, 232, 255, 0.16);
  background: rgba(7, 16, 31, 0.9);
}

input[readonly] {
  opacity: 0.84;
}

.chips,
.tag-list,
.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  text-decoration: none;
  font-size: 0.75rem;
  color: #c5dcf5;
  border: 1px solid rgba(114, 219, 255, 0.26);
  border-radius: 999px;
  padding: 6px 11px;
  background: rgba(9, 19, 35, 0.72);
}

.chip.active,
.chip:hover {
  color: #00131a;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border-color: transparent;
}

.notice {
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(114, 219, 255, 0.24);
  background: rgba(8, 17, 33, 0.72);
}

.notice.success {
  border-color: rgba(133, 255, 190, 0.48);
  color: #c7ffd8;
  background: rgba(16, 45, 39, 0.5);
}

.notice.error {
  border-color: rgba(255, 134, 168, 0.55);
  color: #ffd2e0;
  background: rgba(59, 18, 34, 0.52);
}

.post-list {
  display: grid;
  gap: 22px;
}

.post-item {
  display: grid;
  grid-template-columns: minmax(240px, 0.95fr) 1.25fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: linear-gradient(165deg, rgba(9, 18, 34, 0.9), rgba(11, 23, 41, 0.78));
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-md);
}

.post-item-media {
  min-height: 220px;
}

.post-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.post-item:hover .post-item-media img {
  transform: scale(1.05);
}

.post-item-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.post-item-title {
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
}

.post-item-actions {
  margin-top: auto;
}

.meta-kicker {
  text-decoration: none;
  color: var(--accent);
  font-weight: 700;
}

.pager {
  margin-top: 12px;
}

.post-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent-warm));
  box-shadow: 0 0 20px rgba(47, 232, 255, 0.9);
  z-index: 1300;
}

.post-page {
  width: min(1320px, calc(100% - 40px));
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
  align-items: start;
}

.post-article,
.post-engagement,
.newsletter-card,
.auth-card,
.profile-card,
.info-card,
.author-hero,
.not-found {
  border-radius: var(--radius-lg);
  border: 1px solid var(--line-soft);
  background: linear-gradient(165deg, rgba(9, 18, 34, 0.88), rgba(11, 24, 44, 0.76));
  box-shadow: var(--shadow-md);
}

.post-page .post-article {
  max-width: none;
  margin: 0;
  padding: 32px;
}

.post-header {
  display: grid;
  gap: 12px;
}

.post-header h1 {
  font-size: clamp(2rem, 3.4vw, 3rem);
}

.post-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.post-author img {
  width: 50px;
  height: 50px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(114, 219, 255, 0.35);
}

.post-author strong a {
  text-decoration: none;
}

.post-author span {
  display: block;
  color: var(--muted);
  font-size: 0.86rem;
}

.post-cover {
  width: 100%;
  height: clamp(240px, 46vh, 460px);
  object-fit: cover;
  border-radius: 16px;
  margin: 24px 0;
  border: 1px solid rgba(114, 219, 255, 0.24);
}

.prose {
  font-size: 1.06rem;
  color: #d4e8fc;
}

.prose h2,
.prose h3,
.prose h4 {
  margin-top: 28px;
  margin-bottom: 10px;
}

.prose p {
  margin: 14px 0;
}

.prose a {
  color: var(--accent);
}

.prose a:hover {
  color: var(--accent-2);
}

.prose ul,
.prose ol {
  margin: 12px 0;
  padding-left: 20px;
}

.prose blockquote {
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--accent);
  background: rgba(47, 232, 255, 0.08);
  border-radius: 10px;
}

.prose code {
  font-family: 'Consolas', 'Courier New', monospace;
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(8, 17, 33, 0.72);
  border: 1px solid rgba(114, 219, 255, 0.18);
  color: #bcffdf;
}

.prose pre {
  margin: 16px 0;
  padding: 14px;
  border-radius: 12px;
  overflow: auto;
  background: rgba(5, 12, 24, 0.9);
  border: 1px solid rgba(114, 219, 255, 0.18);
}

.prose pre code {
  padding: 0;
  border: 0;
  background: transparent;
}

.prose img {
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 12px;
  border: 1px solid rgba(114, 219, 255, 0.24);
}

.post-tags {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.post-reference {
  position: sticky;
  top: 96px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(114, 219, 255, 0.26);
  background: linear-gradient(165deg, rgba(8, 17, 33, 0.9), rgba(10, 22, 40, 0.78));
  box-shadow: var(--shadow-md);
  padding: 16px;
  display: grid;
  gap: 14px;
}

.reference-kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-warm);
}

.reference-group {
  border-radius: 12px;
  border: 1px solid rgba(114, 219, 255, 0.16);
  background: rgba(8, 17, 33, 0.52);
  padding: 12px;
  display: grid;
  gap: 10px;
}

.reference-group strong {
  font-size: 0.86rem;
  color: #d6eafd;
}

.reference-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.reference-list {
  display: grid;
  gap: 8px;
}

.reference-link {
  display: grid;
  gap: 4px;
  text-decoration: none;
  padding: 9px;
  border-radius: 10px;
  border: 1px solid rgba(114, 219, 255, 0.14);
  background: rgba(8, 17, 33, 0.56);
}

.reference-link:hover {
  border-color: rgba(133, 255, 190, 0.45);
}

.reference-link-title {
  color: #ecf7ff;
  font-size: 0.86rem;
  line-height: 1.35;
}

.reference-link-meta {
  font-size: 0.72rem;
  color: var(--muted);
}

.reference-cta {
  width: 100%;
  justify-content: center;
}

.post-tools {
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid rgba(114, 219, 255, 0.2);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.post-share {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.share-btn {
  text-decoration: none;
  font-size: 0.76rem;
  border-radius: 999px;
  border: 1px solid rgba(114, 219, 255, 0.28);
  background: rgba(8, 17, 33, 0.72);
  color: #d7ebff;
  padding: 6px 11px;
}

.share-btn:hover {
  border-color: rgba(133, 255, 190, 0.48);
  color: var(--accent-2);
}

.post-toc {
  border-radius: 14px;
  border: 1px solid rgba(114, 219, 255, 0.26);
  background: rgba(8, 17, 33, 0.66);
  padding: 12px;
}

.toc-list {
  margin-top: 10px;
  display: grid;
  gap: 6px;
}

.toc-list a {
  text-decoration: none;
  color: #cae2f8;
  font-size: 0.92rem;
}

.toc-list a:hover {
  color: var(--accent);
}

.toc-indent {
  padding-left: 12px;
  opacity: 0.85;
}

.post-engagement {
  max-width: none;
  margin-left: 0;
  margin-right: 0;
  margin-top: 40px;
  padding: 24px;
}

.engagement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.engagement-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.like-button {
  border: 1px solid rgba(114, 219, 255, 0.42);
  background: rgba(8, 17, 33, 0.78);
  color: var(--accent);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 650;
  cursor: pointer;
}

.like-button:hover {
  border-color: rgba(133, 255, 190, 0.7);
  color: var(--accent-2);
}

.like-button:disabled {
  opacity: 0.7;
  cursor: default;
}

.like-count {
  color: var(--muted);
}

.comments-area {
  display: grid;
  gap: 14px;
}

.comment-list {
  display: grid;
  gap: 12px;
}

.comment-card {
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(114, 219, 255, 0.2);
  background: rgba(8, 17, 33, 0.58);
}

.comment-card-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 0.82rem;
  color: var(--muted);
}

.comment-card p {
  margin-top: 8px;
}

.comment-form,
.comment-fields,
.auth-form,
.contact-form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field span {
  font-size: 0.84rem;
  color: #adc2d7;
}

.comment-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
}

.comment-actions button {
  border: 1px solid rgba(114, 219, 255, 0.24);
  border-radius: 999px;
  background: rgba(8, 17, 33, 0.74);
  color: #d4e8fd;
  font-size: 0.76rem;
  padding: 5px 10px;
  cursor: pointer;
}

.related-posts {
  margin-top: 48px;
}

.newsletter {
  margin-top: 58px;
}

.newsletter-card {
  padding: 26px;
  display: grid;
  gap: 12px;
  text-align: center;
}

.newsletter-form {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.newsletter-form input {
  min-width: 240px;
  border-radius: 999px;
}

.author-hero {
  margin-bottom: 24px;
  padding: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}

.author-hero img {
  width: 104px;
  height: 104px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(114, 219, 255, 0.32);
}

.auth-section {
  display: flex;
  justify-content: center;
}

.auth-card {
  width: min(560px, 100%);
  padding: 24px;
  display: grid;
  gap: 14px;
}

.auth-note {
  color: var(--muted);
  font-size: 0.92rem;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 0.78rem;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: rgba(114, 219, 255, 0.2);
  flex: 1;
}

.profile-actions {
  display: flex;
  justify-content: flex-end;
}

.profile-section {
  margin-top: 24px;
  display: grid;
  gap: 18px;
}

.profile-card {
  padding: 20px;
}

.profile-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.profile-item {
  border-radius: 12px;
  border: 1px solid rgba(114, 219, 255, 0.2);
  background: rgba(8, 17, 33, 0.58);
  padding: 12px;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.profile-item p {
  margin-top: 5px;
  font-size: 0.9rem;
}

.content-section {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  gap: 16px;
}

.info-grid {
  margin-top: 10px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.info-card {
  padding: 20px;
  display: grid;
  gap: 10px;
}

.site-footer {
  margin-top: 66px;
  border-top: 1px solid var(--line-soft);
  background: linear-gradient(180deg, rgba(8, 17, 33, 0.72), rgba(8, 17, 33, 0.9));
}

.footer-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 32px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 18px;
  align-items: center;
}

.footer-brand strong {
  display: block;
  font-family: var(--font-display);
  letter-spacing: 0.08em;
}

.footer-links {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: #d8eaff;
  font-weight: 650;
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-meta {
  display: grid;
  gap: 6px;
  font-size: 0.82rem;
}

.footer-signal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.footer-signal span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(133, 255, 190, 0.85);
  box-shadow: 0 0 12px rgba(133, 255, 190, 0.62);
  animation: signalBlink 1.8s ease-in-out infinite;
}

.footer-signal span:nth-child(2) {
  animation-delay: 0.2s;
}

.footer-signal span:nth-child(3) {
  animation-delay: 0.4s;
}

.not-found {
  max-width: 660px;
  margin: 90px auto;
  padding: 34px 26px;
  text-align: center;
}

.not-found h1,
.not-found h2 {
  margin-bottom: 8px;
}

.dot {
  opacity: 0.6;
}

.cg-hero {
  position: relative;
}

.ai-circuit-bg {
  position: absolute;
  inset: -18% -8% -12% -8%;
  background-image: url('/assets/img/ai-circuit.svg');
  background-size: cover;
  background-position: center;
  opacity: 0.22;
  mix-blend-mode: screen;
  pointer-events: none;
  animation: circuitDrift 18s ease-in-out infinite;
}

.cg-card {
  transform-style: preserve-3d;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
  will-change: transform;
}

.cg-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid rgba(255, 255, 255, 0.02);
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}

.cg-card:hover {
  box-shadow: 0 26px 54px rgba(2, 10, 20, 0.62);
  border-color: rgba(133, 255, 190, 0.38);
}

.cg-card:hover::after {
  opacity: 0.95;
}

.reveal-target {
  opacity: 0;
  transform: translateY(26px) scale(0.98);
  filter: blur(8px);
  transition: opacity 0.72s ease, transform 0.72s ease, filter 0.72s ease;
  transition-delay: var(--reveal-delay, 0s);
}

.reveal-target.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: blur(0);
}

@keyframes auroraDrift {
  from {
    transform: translate3d(-2%, 0, 0) scale(1);
  }

  to {
    transform: translate3d(2%, -2%, 0) scale(1.06);
  }
}

@keyframes orbFloat {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-18px) translateX(8px);
  }
}

@keyframes pulseGlow {
  0%,
  100% {
    opacity: 0.2;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes circuitDrift {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-10px) scale(1.02);
  }
}

@keyframes signalBlink {
  0%,
  100% {
    opacity: 0.35;
  }

  50% {
    opacity: 1;
  }
}

@media (max-width: 1120px) {
  .cards-grid,
  .info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-layout {
    grid-template-columns: minmax(0, 1fr) 290px;
  }
}

@media (max-width: 940px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .post-item {
    grid-template-columns: 1fr;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-reference {
    position: static;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: min(280px, 88vw);
    padding: 15px;
    border-radius: 16px;
    border: 1px solid var(--line-soft);
    background: rgba(7, 16, 31, 0.96);
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    box-shadow: var(--shadow-md);
  }

  .nav-links .btn,
  .nav-user {
    width: 100%;
    justify-content: center;
  }

  .nav-links.show {
    display: flex;
  }

  .cards-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .page {
    width: calc(100% - 30px);
    padding-top: 36px;
  }

  .hero {
    padding: 22px;
  }

  .hero-card-media {
    min-height: 190px;
  }

  .post-article,
  .post-engagement,
  .auth-card,
  .profile-card,
  .info-card,
  .author-hero,
  .newsletter-card {
    padding: 18px;
  }

  .author-hero {
    flex-direction: column;
    text-align: center;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .newsletter-form input {
    min-width: 0;
  }

  .post-cover {
    height: 240px;
  }
}

@media (max-width: 520px) {
  .nav-container {
    width: calc(100% - 24px);
  }

  .page {
    width: calc(100% - 24px);
  }

  .brand img {
    height: 42px;
  }

  .brand-text {
    font-size: 0.98rem;
  }

  .hero h1 {
    font-size: clamp(1.72rem, 9vw, 2.2rem);
  }

  .hero-actions,
  .hero-topics {
    gap: 8px;
  }

  .post-item-body {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-target {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
