/* ============================================
   評律網 - Global Stylesheet
   Big Data Legal Platform
   ============================================ */

/* ---- CSS Variables ---- */
:root {
  --deep-forest: #053033;
  --matrix-cyan: #00E0FF;
  --pale-mint: #E6F8F9;
  --deep-teal: #025A7B;
  --muted-sage: #A8C4C6;
  --pure-white: #FFFFFF;
  --surface: #F4F4F5;

  --font-family: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --container-max: 1200px;
  --section-pad: 120px;
  --grid-gap: 24px;
  --component-gap: 48px;

  --nav-height: 64px;

  --shadow-sm: 0 1px 3px rgba(5, 48, 51, 0.08);
  --shadow-md: 0 4px 20px rgba(5, 48, 51, 0.12);
  --shadow-lg: 0 12px 40px rgba(5, 48, 51, 0.16);

  --transition-fast: 0.2s ease;
  --transition-medium: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ---- Reset & Base ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-family);
  font-size: 16px;
  line-height: 1.75;
  color: var(--deep-forest);
  background: var(--pure-white);
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
  font-size: inherit;
}

input, textarea {
  font-family: inherit;
  font-size: inherit;
}

/* ---- Typography ---- */
.display {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h1, .h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h2, .h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

h3, .h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
}

.body-large {
  font-size: 1.125rem;
  line-height: 1.6;
}

.label {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* ---- Layout ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--grid-gap);
}

.section {
  padding: var(--section-pad) 0;
}

.section-alt {
  background: var(--surface);
}

.section-mint {
  background: var(--pale-mint);
}

.section-dark {
  background: var(--deep-forest);
  color: var(--pure-white);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 32px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
  white-space: nowrap;
}

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

.btn-primary {
  background: var(--matrix-cyan);
  color: var(--deep-forest);
  box-shadow: 0 4px 16px rgba(0, 224, 255, 0.3);
}

.btn-primary:hover {
  box-shadow: 0 6px 24px rgba(0, 224, 255, 0.4);
}

.btn-outline {
  background: transparent;
  color: var(--matrix-cyan);
  border: 1px solid var(--matrix-cyan);
}

.btn-outline:hover {
  background: rgba(0, 224, 255, 0.08);
}

.btn-white {
  background: var(--pure-white);
  color: var(--deep-forest);
}

.btn-white:hover {
  background: var(--pale-mint);
}

.btn-text {
  padding: 8px 0;
  color: var(--matrix-cyan);
  font-weight: 500;
  position: relative;
}

.btn-text::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--matrix-cyan);
  transition: width var(--transition-medium);
}

.btn-text:hover::after {
  width: 100%;
}

.btn-text svg {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}

.btn-text:hover svg {
  transform: translateX(4px);
}

/* ---- Cards ---- */
.card {
  background: var(--pure-white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.card-body {
  padding: 24px;
}

.card-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 224, 255, 0.1);
  color: var(--deep-teal);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 12px;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 8px;
  color: var(--deep-forest);
}

.card-text {
  font-size: 0.9375rem;
  color: var(--muted-sage);
  line-height: 1.6;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--muted-sage);
}

/* ---- Navigation ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  z-index: 1000;
  transition: background var(--transition-medium), backdrop-filter var(--transition-medium);
}

.nav-scrolled {
  background: rgba(5, 48, 51, 0.92);
  backdrop-filter: blur(12px);
}

.nav-transparent {
  background: transparent;
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--grid-gap);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--pure-white);
  letter-spacing: -0.02em;
}

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

.nav-link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  position: relative;
  padding: 4px 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--matrix-cyan);
  transition: width var(--transition-medium);
}

.nav-link:hover {
  color: var(--pure-white);
}

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

.nav-cta {
  padding: 10px 24px;
  font-size: 0.875rem;
}

/* Mobile menu toggle */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--pure-white);
  transition: transform var(--transition-fast), opacity var(--transition-fast);
}

/* ---- Footer ---- */
.footer {
  background: var(--deep-forest);
  color: var(--pure-white);
  padding: 80px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--component-gap);
  margin-bottom: 60px;
}

.footer-brand .footer-logo {
  font-size: 1.5rem;
  font-weight: 900;
  margin-bottom: 16px;
  display: block;
}

.footer-brand p {
  color: var(--muted-sage);
  font-size: 0.9375rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--pure-white);
}

.footer-links li {
  margin-bottom: 12px;
}

.footer-links a {
  color: var(--muted-sage);
  font-size: 0.9375rem;
  transition: color var(--transition-fast);
}

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

.footer-bottom {
  border-top: 1px solid rgba(168, 196, 198, 0.2);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: var(--muted-sage);
}

.footer-legal {
  display: flex;
  gap: 24px;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: var(--muted-sage);
  transition: color var(--transition-fast);
}

.footer-legal a:hover {
  color: var(--matrix-cyan);
}

/* ---- Scroll Animations ---- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* ---- Logo Ticker ---- */
.ticker {
  padding: 26px 0;
  background: var(--surface);
  border-top: 1px solid rgba(5, 48, 51, 0.06);
  border-bottom: 1px solid rgba(5, 48, 51, 0.06);
}

.ticker-inner {
  display: flex;
  align-items: center;
  gap: 44px;
}

.ticker-label {
  flex-shrink: 0;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.08em;
  color: var(--deep-teal);
}

/* Fade the marquee toward both edges so items ease in and out */
.ticker-viewport {
  position: relative;
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}

.ticker-track {
  display: flex;
  align-items: center;
  gap: 40px;
  animation: ticker-scroll 32s linear infinite;
  width: max-content;
}

.ticker:hover .ticker-track {
  animation-play-state: paused;
}

.ticker-item {
  color: rgba(5, 48, 51, 0.62);
  font-size: 1rem;
  font-weight: 600;
  white-space: nowrap;
}

.ticker-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--matrix-cyan);
  opacity: 0.65;
  flex-shrink: 0;
}

@keyframes ticker-scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 640px) {
  .ticker-inner { gap: 20px; }
  .ticker-label { max-width: 88px; }
}

/* ---- Page Header (for inner pages) ---- */
.page-header {
  background: var(--deep-forest);
  color: var(--pure-white);
  padding: 160px 0 80px;
  text-align: center;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  color: var(--muted-sage);
  max-width: 600px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 0.875rem;
  color: var(--muted-sage);
}

.breadcrumb a {
  color: var(--matrix-cyan);
}

.breadcrumb a:hover {
  text-decoration: underline;
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--deep-forest);
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--muted-sage);
  border-radius: 12px;
  font-size: 1rem;
  background: var(--pure-white);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--matrix-cyan);
  box-shadow: 0 0 0 3px rgba(0, 224, 255, 0.15);
}

.form-textarea {
  min-height: 140px;
  resize: vertical;
}

/* ---- Content Pages ---- */
.content-page {
  padding: 80px 0;
}

.content-page .container {
  max-width: var(--container-max);
}

.content-page h2 {
  margin-top: 48px;
  margin-bottom: 16px;
}

.content-page h3 {
  margin-top: 32px;
  margin-bottom: 12px;
}

.content-page p {
  margin-bottom: 16px;
  color: rgba(5, 48, 51, 0.85);
}

.content-page ul {
  margin-bottom: 16px;
  padding-left: 24px;
  list-style: disc;
}

.content-page ul li {
  margin-bottom: 8px;
  color: rgba(5, 48, 51, 0.85);
}

/* ---- Utility Classes ---- */
.text-center { text-align: center; }
.text-cyan { color: var(--matrix-cyan); }
.text-sage { color: var(--muted-sage); }
.text-white { color: var(--pure-white); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mt-5 { margin-top: 48px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }
.mb-5 { margin-bottom: 48px; }

.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--grid-gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--grid-gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--grid-gap); }

.gap-lg { gap: var(--component-gap); }

.items-center { align-items: center; }

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  :root {
    --section-pad: 80px;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: rgba(5, 48, 51, 0.98);
    flex-direction: column;
    padding: 24px;
    gap: 16px;
  }

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

  .nav-toggle {
    display: flex;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .page-header {
    padding: 120px 0 60px;
  }
}

@media (max-width: 480px) {
  .display {
    font-size: 2rem;
  }

  .btn {
    padding: 12px 24px;
    font-size: 0.875rem;
  }
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ============================================
   Extracted Component Styles
   (moved out of inline style="" attributes so the
    markup stays pure HTML and all styling lives here)
   ============================================ */

/* ---- Section background variant ---- */
.section-white { background: var(--pure-white); }

/* ---- Extra spacing / helper utilities ---- */
.mt-auto { margin-top: auto; }
.mt-6 { margin-top: 64px; }
.mb-6 { margin-bottom: 64px; }
.items-start { align-items: start; }
.hidden { display: none; }
.btn-block { width: 100%; }
.container-narrow { max-width: 800px; }
.link-teal { color: var(--deep-teal); }
.text-body { color: rgba(5, 48, 51, 0.8); }

/* ---- Hero (WebGL) ---- */
.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  background: var(--deep-forest);
  overflow: hidden;
}

#hero-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Dim the matrix animation so it reads as a subtle backdrop.
     The canvas clears to --deep-forest (same as .hero background),
     so lowering opacity only fades the cyan strands, no color seam. */
  opacity: 0.4;
}

/* Readability scrim: darkens the center behind the hero text,
   fading to transparent at the edges where the animation stays visible.
   Sits above the canvas (z-index 0) and below .hero-content (z-index 10). */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(
    ellipse 75% 60% at 50% 50%,
    rgba(5, 48, 51, 0.9) 0%,
    rgba(5, 48, 51, 0.55) 48%,
    rgba(5, 48, 51, 0) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  text-align: center;
  padding: 0 24px;
}

.hero-title {
  text-shadow: 0 4px 20px rgba(5, 48, 51, 0.8);
  margin-bottom: 24px;
}

.hero-subtitle {
  color: var(--muted-sage);
  max-width: 640px;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
}

/* ---- Stats ---- */
.stats-section {
  padding: var(--section-pad) 0;
  background: var(--pure-white);
}

.stats-panel {
  position: relative;
  overflow: hidden;
  background: var(--deep-forest);
  border-radius: 28px;
  padding: 64px 56px;
  color: var(--pure-white);
  box-shadow: 0 30px 80px -34px rgba(5, 48, 51, 0.55);
}

/* Faint matrix grid echoing the hero, masked to fade toward the edges */
.stats-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 224, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 224, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(ellipse 78% 82% at 50% 38%, #000 18%, transparent 78%);
  mask-image: radial-gradient(ellipse 78% 82% at 50% 38%, #000 18%, transparent 78%);
  pointer-events: none;
}

.stats-panel-head {
  position: relative;
  text-align: center;
  margin-bottom: 52px;
}

.stats-panel-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-top: 12px;
}

.stats-row {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.stat {
  position: relative;
  text-align: center;
  padding: 8px 20px;
}

.stat + .stat::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 62px;
  background: linear-gradient(to bottom, transparent, rgba(0, 224, 255, 0.35), transparent);
}

.stat-number {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--matrix-cyan);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.stat-label {
  color: var(--muted-sage);
  margin-top: 14px;
  font-size: 0.9375rem;
}

@media (max-width: 768px) {
  .stats-panel { padding: 44px 22px; border-radius: 22px; }
  .stats-panel-head { margin-bottom: 36px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 36px 8px; }
  .stat { padding: 0 4px; }
  .stat + .stat::before { display: none; }
  .stat-number { font-size: clamp(1.75rem, 8vw, 2.25rem); }
  .stat-label { font-size: 0.875rem; }
}

/* ---- Three-step process ---- */
.step-card {
  position: relative;
  padding: 48px 32px;
  border-bottom: 3px solid var(--pale-mint);
}

.step-number {
  position: absolute;
  top: 0;
  left: 0;
  font-size: 6rem;
  font-weight: 900;
  color: rgba(5, 48, 51, 0.06);
  line-height: 1;
  pointer-events: none;
}

.step-content {
  position: relative;
  z-index: 1;
}

.step-text {
  color: var(--muted-sage);
  line-height: 1.7;
}

/* ---- Icon boxes ---- */
.icon-box {
  width: 56px;
  height: 56px;
  background: var(--pale-mint);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
}

.icon-box-sm {
  width: 48px;
  height: 48px;
  background: var(--pale-mint);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.icon-box-lg {
  width: 64px;
  height: 64px;
  background: var(--pale-mint);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
}

/* ---- Platform overview ---- */
.platform-image {
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}

.platform-text p {
  color: rgba(5, 48, 51, 0.8);
  line-height: 1.8;
  margin-bottom: 24px;
}

.platform-text p + p {
  margin-bottom: 32px;
}

/* ---- Section head (title row with trailing link) ---- */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}

/* ---- Featured articles grid ---- */
.articles-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.article-featured {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.article-featured-image {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.article-featured-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.article-featured-title {
  font-size: 1.375rem;
}

.article-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Cards share the column height equally so the stack's top and bottom
   line up with the featured card on the left. */
.article-mini {
  display: flex;
  gap: 16px;
  padding: 16px;
  flex: 1;
  align-items: center;
}

.article-mini-image {
  width: 116px;
  align-self: stretch;
  height: auto;
  min-height: 96px;
  object-fit: cover;
  border-radius: 12px;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .articles-grid { grid-template-columns: 1fr; }
  .article-mini { flex: 0 1 auto; align-items: stretch; }
  .article-mini-image { align-self: auto; width: 96px; height: 96px; min-height: 0; }
}

.article-mini-body {
  flex: 1;
}

.article-mini-title {
  font-size: 1rem;
  margin-top: 8px;
}

.card-tag-sm {
  font-size: 0.6875rem;
  padding: 2px 8px;
}

.card-meta-sm {
  font-size: 0.75rem;
}

/* ---- Footer address line ---- */
.footer-address {
  color: var(--muted-sage);
  font-size: 0.9375rem;
}

/* ---- About: core value cards ---- */
.value-card {
  padding: 32px;
  background: var(--pale-mint);
  border-radius: 16px;
}

.value-card-title {
  color: var(--deep-teal);
  margin-bottom: 12px;
}

/* ---- Info boxes (contact blocks on inner pages) ---- */
.info-box {
  margin-top: 24px;
  padding: 32px;
  background: var(--surface);
  border-radius: 16px;
}

.info-box-sm {
  margin-top: 16px;
  padding: 24px;
  background: var(--surface);
  border-radius: 12px;
}

.info-box p + p {
  margin-top: 12px;
}

.info-box-sm p + p {
  margin-top: 8px;
}

/* ---- Contact page ---- */
.contact-lead {
  max-width: 620px;
  margin: 0 auto 56px;
}

.contact-intro {
  color: rgba(5, 48, 51, 0.8);
  line-height: 1.8;
}

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

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 44px 32px;
  background: var(--surface);
  border-radius: 20px;
  transition: transform var(--transition-medium), box-shadow var(--transition-medium);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.contact-card .icon-box-sm {
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
}

.contact-method-title {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 6px;
}

.contact-method-note {
  font-size: 0.875rem;
  color: var(--muted-sage);
  margin-top: 10px;
}

@media (max-width: 768px) {
  .contact-cards {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }
}

/* ---- Blog index: featured post card ---- */
.blog-featured {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-featured:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(5, 48, 51, 0.12);
}

.blog-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 320px;
}

.blog-featured-body {
  padding: 48px;
}

.blog-featured-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
  color: var(--deep-forest);
}

.blog-featured-excerpt {
  color: var(--muted-sage);
  line-height: 1.7;
  margin-bottom: 24px;
}

.blog-featured-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  color: var(--muted-sage);
}

.blog-empty {
  text-align: center;
  padding: 80px 0;
}

.blog-empty-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--deep-forest);
  margin-bottom: 12px;
}

.blog-empty-text {
  color: var(--muted-sage);
  max-width: 480px;
  margin: 0 auto;
}

/* ---- Blog post (article) ---- */
.article-header {
  background: var(--deep-forest);
  color: var(--pure-white);
  padding: 160px 0 60px;
}

.article-tag {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(0, 224, 255, 0.15);
  color: var(--matrix-cyan);
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 999px;
  margin-bottom: 20px;
}

.article-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.article-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted-sage);
  font-size: 0.9375rem;
}

.article-hero-image {
  width: 100%;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
}

.article-lead {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(5, 48, 51, 0.85);
  margin-bottom: 24px;
}

.article-body p {
  line-height: 1.8;
  color: rgba(5, 48, 51, 0.85);
  margin-bottom: 24px;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--deep-forest);
}

.article-footer {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--pale-mint);
  text-align: center;
}
