/* FrostRaids - Ice / Aqua Cool */
:root {
  --ice-bg: #eef6ff;
  --blue-deep: #4aa3ff;
  --blue-light: #7fd3ff;
  --white: #ffffff;
  --frost: rgba(255, 255, 255, 0.72);
  --text: #1a3a5c;
  --text-soft: #4a6a8a;
  --glow: rgba(74, 163, 255, 0.35);
  --glow-strong: rgba(127, 211, 255, 0.55);
  --shadow: 0 8px 32px rgba(74, 163, 255, 0.12);
  --shadow-deep: 0 16px 48px rgba(26, 58, 92, 0.1);
  --radius: 4px;
  --font: 'Outfit', 'Inter', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--ice-bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Crystalline background shards */
body::before,
body::after {
  content: '';
  position: fixed;
  pointer-events: none;
  z-index: 0;
}
body::before {
  top: -10%;
  right: -5%;
  width: 45vw;
  height: 55vh;
  background: linear-gradient(135deg, var(--blue-light) 0%, transparent 70%);
  opacity: 0.25;
  clip-path: polygon(50% 0%, 100% 25%, 85% 100%, 15% 85%, 0% 30%);
}
body::after {
  bottom: -8%;
  left: -8%;
  width: 40vw;
  height: 45vh;
  background: linear-gradient(45deg, var(--blue-deep) 0%, transparent 65%);
  opacity: 0.15;
  clip-path: polygon(30% 0%, 100% 20%, 80% 100%, 0% 70%);
}

a { color: var(--blue-deep); text-decoration: none; transition: color 0.2s; }
a:hover { color: #2d8ae8; }

.wrap {
  width: min(1120px, 92vw);
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(238, 246, 255, 0.85);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(74, 163, 255, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.9rem 0;
  gap: 1rem;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.brand-crystal {
  width: 36px;
  height: 36px;
  background: linear-gradient(145deg, var(--blue-light), var(--blue-deep));
  clip-path: polygon(50% 0%, 95% 30%, 80% 100%, 20% 100%, 5% 30%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 16px var(--glow);
}

.brand-crystal svg { width: 18px; height: 18px; fill: white; }

.brand-name span { color: var(--blue-deep); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.site-nav a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(74, 163, 255, 0.1);
  color: var(--blue-deep);
}

.btn-discord {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.15rem;
  background: linear-gradient(135deg, var(--blue-deep), #3b8ef0);
  color: white !important;
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 20px var(--glow), inset 0 1px 0 rgba(255,255,255,0.25);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}

.btn-discord:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 28px var(--glow-strong), inset 0 1px 0 rgba(255,255,255,0.3);
  color: white !important;
}

.btn-ice {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 1.15rem;
  background: var(--white);
  color: var(--blue-deep);
  font-weight: 600;
  font-size: 0.88rem;
  border-radius: var(--radius);
  border: 1px solid rgba(74, 163, 255, 0.3);
  transition: background 0.2s, box-shadow 0.2s;
}

.btn-ice:hover {
  background: rgba(255,255,255,0.9);
  box-shadow: 0 4px 16px var(--glow);
}

/* Crystal card */
.crystal {
  background: var(--frost);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

/* Hero */
.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.tagline {
  font-size: 1.25rem;
  color: var(--blue-deep);
  font-weight: 500;
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-lead {
  color: var(--text-soft);
  font-size: 1.05rem;
  max-width: 34ch;
  margin-bottom: 2rem;
}

.hero-cta {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.frost-pane {
  position: relative;
  padding: 2.5rem;
  width: 100%;
  max-width: 380px;
  clip-path: polygon(8% 0%, 92% 0%, 100% 12%, 100% 88%, 92% 100%, 8% 100%, 0% 88%, 0% 12%);
  text-align: center;
}

.frost-pane::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, rgba(255,255,255,0.95) 0%, rgba(127,211,255,0.15) 100%);
  clip-path: inherit;
  z-index: -1;
}

.frost-orb {
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px var(--glow-strong));
  animation: float 4s ease-in-out infinite;
  color: var(--blue-deep);
}

.frost-orb-svg {
  width: 4rem;
  height: 4rem;
  display: block;
  margin: 0 auto;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.frost-stats {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.frost-stat {
  text-align: center;
}

.frost-stat strong {
  display: block;
  font-size: 1.5rem;
  color: var(--blue-deep);
  font-weight: 700;
}

.frost-stat span {
  font-size: 0.75rem;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Floating crystal accents */
.crystal-accent {
  position: absolute;
  background: linear-gradient(135deg, var(--blue-light), var(--blue-deep));
  opacity: 0.2;
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: shimmer 6s ease-in-out infinite;
}

.crystal-accent.a1 { width: 60px; height: 70px; top: 10%; left: 5%; animation-delay: 0s; }
.crystal-accent.a2 { width: 40px; height: 48px; bottom: 15%; right: 8%; animation-delay: 2s; }
.crystal-accent.a3 { width: 28px; height: 34px; top: 40%; right: 0; animation-delay: 4s; }

@keyframes shimmer {
  0%, 100% { opacity: 0.15; transform: rotate(0deg); }
  50% { opacity: 0.3; transform: rotate(8deg); }
}

/* Sections */
.section {
  padding: 4rem 0;
}

.section-head {
  text-align: center;
  margin-bottom: 2.5rem;
}

.section-head h2 {
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.section-head p {
  color: var(--text-soft);
  max-width: 50ch;
  margin: 0 auto;
}

/* Services */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}

.svc-card {
  padding: 1.5rem;
  clip-path: polygon(0% 8%, 8% 0%, 92% 0%, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0% 92%);
  transition: transform 0.25s, box-shadow 0.25s;
}

.svc-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep), 0 0 24px var(--glow);
}

.svc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin-bottom: 0.75rem;
  background: rgba(255, 255, 255, 0.6);
  clip-path: polygon(50% 0%, 95% 25%, 95% 75%, 50% 100%, 5% 75%, 5% 25%);
  box-shadow: 0 0 12px var(--glow);
}

.svc-icon img {
  width: 32px;
  height: 32px;
  object-fit: contain;
}

.svc-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.svc-card p {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.55;
}

/* How it works strip */
.how-strip {
  background: linear-gradient(90deg, rgba(74,163,255,0.08) 0%, rgba(127,211,255,0.12) 50%, rgba(74,163,255,0.08) 100%);
  border-top: 1px solid rgba(74, 163, 255, 0.12);
  border-bottom: 1px solid rgba(74, 163, 255, 0.12);
}

.steps-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  padding: 3rem 0;
}

.step {
  text-align: center;
  position: relative;
}

.step-num {
  width: 44px;
  height: 44px;
  margin: 0 auto 1rem;
  background: linear-gradient(145deg, var(--blue-light), var(--blue-deep));
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 16px var(--glow);
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.step p {
  font-size: 0.88rem;
  color: var(--text-soft);
}

/* Testimonials */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.testimonial {
  padding: 1.5rem;
  clip-path: polygon(0% 6%, 6% 0%, 94% 0%, 100% 6%, 100% 94%, 94% 100%, 6% 100%, 0% 94%);
}

.testimonial blockquote {
  font-size: 0.92rem;
  color: var(--text-soft);
  font-style: italic;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial cite {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-deep);
  font-style: normal;
}

.testimonial .placeholder-tag {
  display: inline-block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-soft);
  opacity: 0.6;
  margin-top: 0.25rem;
}

/* Page hero (subpages) */
.page-hero {
  padding: 3rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

.page-hero p {
  color: var(--text-soft);
  max-width: 55ch;
  margin: 0 auto;
}

/* Raids */
.raid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
}

.boss-select {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

.boss-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  background: var(--white);
  border: 1px solid rgba(74, 163, 255, 0.2);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.2s;
}

.boss-btn:hover {
  border-color: var(--blue-light);
  color: var(--blue-deep);
}

.boss-btn.active {
  background: linear-gradient(135deg, var(--blue-deep), #3b8ef0);
  color: white;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--glow);
}

.boss-btn .boss-chip-art {
  width: 24px;
  height: 24px;
  object-fit: contain;
  flex-shrink: 0;
}

.boss-banner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 1.75rem 2rem;
  clip-path: polygon(0% 10%, 3% 0%, 97% 0%, 100% 10%, 100% 90%, 97% 100%, 3% 100%, 0% 90%);
}

.boss-art-wrap {
  width: 96px;
  height: 96px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.5);
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  box-shadow: 0 0 20px var(--glow);
}

.boss-art {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px var(--glow));
}

.boss-banner h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}

.boss-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.pill {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  background: rgba(74, 163, 255, 0.12);
  color: var(--blue-deep);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 2px;
}

.pill.cp { background: rgba(26, 58, 92, 0.08); color: var(--text); }

.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.type-icon-sm {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  flex-shrink: 0;
}

.counter-wrap { overflow-x: auto; }

.counter-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.counter-table th {
  text-align: left;
  padding: 0.85rem 1rem;
  background: rgba(74, 163, 255, 0.1);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.counter-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(74, 163, 255, 0.08);
}

.counter-table tr:hover td {
  background: rgba(127, 211, 255, 0.06);
}

.rank {
  font-weight: 700;
  color: var(--blue-deep);
  width: 50px;
}

.cname { font-weight: 600; }

.type-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.5rem;
  background: rgba(74, 163, 255, 0.15);
  color: var(--blue-deep);
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: 2px;
}

.mv { color: var(--text-soft); font-size: 0.85rem; }

.rating-cell {
  min-width: 140px;
}

.rating-bar {
  height: 6px;
  background: rgba(74, 163, 255, 0.12);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.rating-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue-light), var(--blue-deep));
  border-radius: 3px;
  transition: width 0.4s ease;
}

.rating-num {
  font-size: 0.75rem;
  color: var(--text-soft);
  font-weight: 500;
}

/* Friends */
.friends-note {
  text-align: center;
  padding: 0.75rem 1.25rem;
  margin-bottom: 2rem;
  background: rgba(74, 163, 255, 0.08);
  border: 1px solid rgba(74, 163, 255, 0.15);
  border-radius: var(--radius);
  font-size: 0.88rem;
  color: var(--text-soft);
}

.friends-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  padding-bottom: 4rem;
  align-items: start;
}

.add-form-panel {
  padding: 1.75rem;
  clip-path: polygon(0% 5%, 5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%);
}

.add-form-panel h2 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 0.35rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid rgba(74, 163, 255, 0.25);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--white);
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--blue-deep);
  box-shadow: 0 0 0 3px var(--glow);
}

.btn-submit {
  width: 100%;
  padding: 0.7rem;
  margin-top: 0.5rem;
  background: linear-gradient(135deg, var(--blue-deep), #3b8ef0);
  color: white;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  box-shadow: 0 4px 16px var(--glow);
  transition: transform 0.2s;
}

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

.code-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.code-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  clip-path: polygon(0% 12%, 1.5% 0%, 98.5% 0%, 100% 12%, 100% 88%, 98.5% 100%, 1.5% 100%, 0% 88%);
  transition: box-shadow 0.2s;
}

.code-card:hover { box-shadow: var(--shadow); }

.code-card.mine {
  border-left: 3px solid var(--blue-deep);
}

.team-badge {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
  flex-shrink: 0;
}

.team-mystic { background: #4a90d9; color: white; }
.team-valor { background: #e74c3c; color: white; }
.team-instinct { background: #f5c518; color: #1a3a5c; }

.code-info { flex: 1; min-width: 0; }

.trainer {
  font-weight: 700;
  font-size: 0.95rem;
}

.digits {
  font-family: 'Courier New', monospace;
  font-size: 0.95rem;
  color: var(--blue-deep);
  letter-spacing: 0.05em;
  margin: 0.15rem 0;
}

.line2 {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.bump-btn {
  padding: 0.45rem 0.85rem;
  background: var(--white);
  border: 1px solid rgba(74, 163, 255, 0.3);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--blue-deep);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s;
}

.bump-btn:hover:not(:disabled) {
  background: rgba(74, 163, 255, 0.1);
}

.bump-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.bump-btn small {
  display: block;
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--text-soft);
  margin-top: 0.15rem;
}

/* Blog index */
.blog-index-section {
  padding-bottom: 4rem;
}

.blog-index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.blog-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  clip-path: polygon(0% 6%, 6% 0%, 94% 0%, 100% 6%, 100% 94%, 94% 100%, 6% 100%, 0% 94%);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-deep), 0 0 28px var(--glow);
  color: inherit;
}

.blog-card-cover {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(127, 211, 255, 0.2), rgba(74, 163, 255, 0.15));
  clip-path: polygon(0% 0%, 100% 0%, 100% 88%, 94% 100%, 6% 100%, 0% 88%);
}

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

.blog-card-cover-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  opacity: 0.4;
}

.blog-card-cover-fallback svg {
  width: 48px;
  height: 48px;
}

.blog-card-body {
  padding: 1.35rem 1.5rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-card-category {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  margin-bottom: 0.5rem;
}

.blog-card-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.3;
  margin-bottom: 0.6rem;
  color: var(--text);
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  font-size: 0.78rem;
  color: var(--text-soft);
  margin-bottom: 0.75rem;
}

.blog-card-read::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  background: var(--text-soft);
  border-radius: 50%;
  margin-right: 0.5rem;
  vertical-align: middle;
}

.blog-card-excerpt {
  font-size: 0.88rem;
  color: var(--text-soft);
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}

.blog-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-deep);
  margin-top: auto;
}

.blog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 2rem;
  clip-path: polygon(0% 5%, 5% 0%, 95% 0%, 100% 5%, 100% 95%, 95% 100%, 5% 100%, 0% 95%);
}

.blog-empty-icon {
  width: 56px;
  height: 56px;
  color: var(--blue-deep);
  opacity: 0.5;
  margin-bottom: 1rem;
}

.blog-empty h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.blog-empty p {
  color: var(--text-soft);
  font-size: 0.92rem;
}

/* Single post */
.post-article {
  padding: 2rem 0 1rem;
}

.post-back {
  margin-bottom: 1.5rem;
}

.post-back a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-soft);
}

.post-back a:hover {
  color: var(--blue-deep);
}

.post-cover {
  margin-bottom: 2rem;
  clip-path: polygon(0% 4%, 4% 0%, 96% 0%, 100% 4%, 100% 96%, 96% 100%, 4% 100%, 0% 96%);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.post-cover img {
  width: 100%;
  max-height: 360px;
  object-fit: cover;
  display: block;
}

.post-header {
  margin-bottom: 2rem;
  text-align: center;
}

.post-category {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue-deep);
  margin-bottom: 0.75rem;
}

.post-title {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.25rem;
  font-size: 0.85rem;
  color: var(--text-soft);
}

.post-body {
  padding: 2rem 2.25rem;
  clip-path: polygon(0% 2%, 2% 0%, 98% 0%, 100% 2%, 100% 98%, 98% 100%, 2% 100%, 0% 98%);
  margin-bottom: 1rem;
}

.post-body p {
  color: var(--text-soft);
  font-size: 0.95rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

.post-body p:last-child { margin-bottom: 0; }

.post-body h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.01em;
}

.post-body ul {
  margin: 0 0 1rem 1.25rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.post-body li { margin-bottom: 0.35rem; }

/* Related articles */
.related-section {
  padding: 2rem 0 4rem;
}

.related-head {
  text-align: center;
  margin-bottom: 2rem;
}

.related-head h2 {
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.related-head p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.related-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  clip-path: polygon(0% 8%, 8% 0%, 92% 0%, 100% 8%, 100% 92%, 92% 100%, 8% 100%, 0% 92%);
  transition: transform 0.2s, box-shadow 0.2s;
  overflow: hidden;
}

.related-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-deep), 0 0 20px var(--glow);
  color: inherit;
}

.related-card-cover {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(127, 211, 255, 0.15), rgba(74, 163, 255, 0.1));
}

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

.related-card-cover-fallback {
  background: linear-gradient(160deg, rgba(127, 211, 255, 0.25), rgba(74, 163, 255, 0.12));
}

.related-card-body {
  padding: 1.1rem 1.25rem 1.25rem;
}

.related-card-category {
  display: block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--blue-deep);
  margin-bottom: 0.35rem;
}

.related-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.related-card-meta {
  font-size: 0.75rem;
  color: var(--text-soft);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 2.5rem 0;
  border-top: 1px solid rgba(74, 163, 255, 0.12);
  background: rgba(255, 255, 255, 0.4);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.footer-brand span { color: var(--blue-deep); }

.footer-disclaimer {
  font-size: 0.75rem;
  color: var(--text-soft);
  max-width: 65ch;
  margin: 0 auto 0.5rem;
  line-height: 1.5;
}

.footer-cap {
  font-size: 0.75rem;
  color: var(--text-soft);
  opacity: 0.7;
}

/* Responsive */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 260px; }
  .steps-row { grid-template-columns: 1fr; gap: 1.5rem; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .friends-layout { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .blog-index-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-nav { width: 100%; justify-content: center; }
  .boss-banner { flex-direction: column; text-align: center; }
  .boss-meta { justify-content: center; }
  .code-card { flex-wrap: wrap; }
  .bump-btn { width: 100%; text-align: center; }
  .post-body { padding: 1.5rem 1.25rem; }
}
