:root {
  /* Colors - Modern Minimalist Light Palette */
  --bg-dark: #FAFAFA;
  --bg-surface: #FFFFFF;
  --bg-surface-hover: #F4F4F5;
  --accent: #0891b2; /* Ocean Blue */
  --accent-light: #e0f7fa;
  --accent-glow: rgba(8, 145, 178, 0.08);
  --text-main: #18181B;
  --text-muted: #71717A;
  --border: #E4E4E7;
  --border-hover: #D4D4D8;

  /* Spacing */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 8rem;

  /* Layout */
  --container-width: 1200px;
  --header-height: 80px;
  --radius-sm: 6px;
  --radius-md: 16px;
  --radius-lg: 32px;
}

/* Nav Overlay */
.nav-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.nav-overlay.visible {
  opacity: 1;
  visibility: visible;
}

/* Nav Toggle Animation */
.nav-toggle svg line {
  transition: transform 0.3s ease, opacity 0.3s ease;
  transform-origin: center;
}

.nav.open ~ .nav-toggle svg line:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.nav.open ~ .nav-toggle svg line:nth-child(2) {
  opacity: 0;
}

.nav.open ~ .nav-toggle svg line:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-dark);
}

body.overflow-hidden {
  overflow: hidden;
}

body {
  font-family: 'Inter Tight', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  position: relative;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.1;
}

h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-muted);
  font-size: 1.125rem;
  line-height: 1.6;
  max-width: 60ch;
}

.mono {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent);
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

ul {
  list-style: none;
}

/* Cursor Follower - Hidden for minimalist design */
.cursor-follower {
  display: none;
}

/* Noise Overlay - Removed for clean look */
.noise-overlay {
  display: none;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.grid {
  display: grid;
  gap: var(--space-md);
}

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--header-height);
  z-index: 100;
  transition: transform 0.3s ease, background 0.3s ease;
  border-bottom: 1px solid transparent;
}

.scroll-progress-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: transparent;
  pointer-events: none;
}

.scroll-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent-glow);
  transition: width 0.1s ease-out;
}

.header.scrolled {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo::before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  background-color: var(--accent);
  border-radius: 50%;
}

.nav {
  display: flex;
  gap: 2rem;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-muted);
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-main);
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background-color: var(--accent);
  transition: width 0.3s ease;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;
  font-family: 'Inter Tight', sans-serif;
}

.btn-primary {
  background-color: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
}

.btn-primary:hover {
  background-color: #0782a0;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.btn-outline, .btn-secondary {
  background: var(--bg-surface);
  color: var(--text-main);
  border: 1px solid var(--border);
}

.btn-outline:hover, .btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-surface);
}

/* Mobile Nav Toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  cursor: pointer;
}

/* Hero Section */
.hero {
  min-height: 100vh;
  padding-top: var(--header-height);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(8,145,178,0.06) 0%, rgba(250,250,250,0) 70%);
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-lg);
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.status-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(8, 145, 178, 0); }
  100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0); }
}

.text-accent {
  color: var(--accent);
}

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

/* Abstract Tech Visual (CSS Only) */
.tech-circle {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 50%;
  opacity: 0.4;
}

.c1 { width: 400px; height: 400px; border-color: var(--border); }
.c2 { width: 300px; height: 300px; border-style: dashed; animation: spin 30s linear infinite; }
.c3 { width: 200px; height: 200px; border: 1px solid var(--accent); opacity: 0.3; }

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* New Flip Card Services Grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.service-card {
  height: 320px;
  perspective: 1000px;
  cursor: pointer;
}

.service-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 0.6s ease-in-out;
  transform-style: preserve-3d;
}

.service-card:hover .service-card-inner {
  transform: rotateY(180deg);
}

.service-card-front, .service-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  background: var(--bg-surface);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover .service-card-front,
.service-card:hover .service-card-back {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(8, 145, 178, 0.08);
}

.service-card-back {
  background: linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-surface-hover) 100%);
  transform: rotateY(180deg);
  text-align: left;
  align-items: flex-start;
}

.card-icon {
  width: 64px;
  height: 64px;
  background: var(--accent-light);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.card-icon svg {
  width: 32px;
  height: 32px;
}

.service-card:hover .card-icon {
  transform: scale(1.1);
  background: #fff;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.service-card-front p {
  font-size: 0.95rem;
  color: var(--text-muted);
  max-width: 25ch;
  line-height: 1.4;
  margin-top: 0.25rem;
}

/* Original Bento Card (used in other sections) */
.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  position: relative;
  overflow: hidden;
}

.bento-card:hover {
  border-color: var(--accent);
  box-shadow: 0 8px 32px rgba(8, 145, 178, 0.08);
  transform: translateY(-4px);
}

/* Process Section */
.process-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.process-step {
  background: var(--bg-surface);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.process-number {
  font-family: 'Inter Tight', sans-serif;
  font-size: 3rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.2;
  line-height: 1;
  margin-bottom: 1rem;
}

.process-step:hover .process-number {
  opacity: 1;
}

/* FAQ Details */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-question {
  padding: 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  list-style: none;
}

.faq-question::-webkit-details-marker {
  display: none;
}

.faq-answer {
  padding: 0 1.5rem 1.5rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.faq-icon {
  width: 24px;
  height: 24px;
  transition: transform 0.3s ease;
}

.faq-item[open] .faq-icon {
  transform: rotate(180deg);
}

.faq-item[open] {
  border-color: var(--accent);
}

/* Contact Form - Refined */
.form-section {
  background: var(--bg-surface-hover);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
}

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

.form-label {
  display: block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.form-input, .form-textarea {
  width: 100%;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 1rem;
  color: var(--text-main);
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-input.error, .form-textarea.error {
  border-color: #EF4444;
}

/* Radio Group Styled */
.radio-group {
  display: flex;
  gap: 1rem;
  background: var(--bg-surface);
  padding: 0.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  width: fit-content;
}

.radio-option {
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}

.radio-label {
  display: block;
  padding: 0.5rem 1rem;
  border-radius: 2px;
  font-size: 0.9rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.radio-option input:checked + .radio-label {
  background: var(--accent);
  color: #fff;
  font-weight: 500;
}

/* Footer */
.footer {
  border-top: 1px solid var(--border);
  padding: var(--space-lg) 0;
  margin-top: var(--space-xl);
  background: var(--bg-surface-hover);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* Utilities */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: var(--accent);
  color: #fff;
  padding: 1rem 1.5rem;
  z-index: 9999;
  transition: top 0.3s ease;
  font-weight: 600;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  top: 0;
}

/* Section Styles */
.section-header {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-lg);
}

.section-header-sm {
  margin-top: var(--space-xs);
  margin-bottom: var(--space-md);
}

.section-ecommerce {
  background: var(--bg-surface-hover);
}

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

/* Grid & Layout Utilities */
.hero-btns {
  display: flex;
  gap: 1rem;
  margin-top: 1rem;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
  align-items: center;
}

.grid-process {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-xl);
}

.flex-col-gap-sm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Card Enhancements */
.card-list {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0.7;
}

.mini-card {
  padding: 1.5rem;
  background: var(--bg-surface);
}

.mini-card h4 {
  margin-bottom: 0.5rem;
}

.mini-card p {
  font-size: 0.95rem;
}

.score-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}

.score-number {
  font-size: 3rem;
  display: block;
}

/* Form Styles */
.contact-form {
  border-top: 4px solid var(--accent);
}

.form-check-group {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}

.form-check-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.form-check-label a {
  text-decoration: underline;
}

/* Footer Utilities */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-logo {
  font-size: 1rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.reveal, .hero-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-visual.hero-reveal {
  transform: translateY(20px) scale(0.95);
}

.reveal.visible, .service-card.visible {
  opacity: 1;
  transform: translateY(0);
}

.required-star { color: var(--accent); }

/* Responsive */
@media (max-width: 900px) {
  .hero-grid, .contact-layout {
    grid-template-columns: 1fr;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    height: 280px;
  }

  .hero-visual, #ecommerce .hero-visual {
    display: none; /* Hide complex visuals on mobile for clarity */
  }

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

  .hero {
    padding-top: 100px;
  }

  h1 { font-size: clamp(2.5rem, 8vw, 3.2rem); }
  h2 { font-size: 1.85rem; }
  p { font-size: 1rem; }

  .nav {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 400px;
    height: 100vh;
    background: var(--bg-surface);
    padding: 6rem 2rem;
    border-left: 1px solid var(--border);
    transition: right 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1000;
    gap: 1.5rem;
    text-align: left;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.1);
  }

  .nav.open {
    right: 0;
  }

  .nav-link {
    font-size: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav .btn {
    margin-top: 1rem;
    width: 100%;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .nav.open .nav-link,
  .nav.open .btn {
    opacity: 1;
    transform: translateY(0);
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 1001;
  }

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

  h1 { font-size: clamp(2.5rem, 8vw, 3.5rem); }
  h2 { font-size: 2rem; }
}

/* Extra Small Devices */
@media (max-width: 360px) {
  :root {
    --space-xl: 4rem;
    --space-lg: 2.5rem;
  }

  h1 { font-size: 2.25rem; }
  .hero-tag { padding: 0.4rem 0.8rem; font-size: 0.75rem; }
  .btn { padding: 0.65rem 1.25rem; width: 100%; text-align: center; }
  .hero-content { gap: 1.5rem; }

  /* Legal page back button polish */
  .header .btn-secondary {
    padding: 0.5rem 0.75rem;
    font-size: 0.8rem;
  }
}

/* Tech Chips */
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tech-chip {
  padding: 0.4rem 0.8rem;
  background: var(--accent-light);
  border: 1px solid transparent;
  border-radius: 100px;
  font-size: 0.8rem;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 500;
  color: var(--accent);
  transition: all 0.2s ease;
}

.tech-chip:hover {
  border-color: var(--accent);
  background: var(--bg-surface);
}

/*
 * Blog System Styles
 */

.blog-header {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 4rem;
  text-align: center;
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

.blog-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}

.blog-card-featured {
  grid-column: span 2;
  background: linear-gradient(to bottom right, var(--bg-surface), var(--bg-surface-hover));
}

.blog-card-featured .blog-title {
  font-size: 1.75rem;
}

@media (max-width: 900px) {
  .blog-card-featured {
    grid-column: span 1;
  }
}

.blog-card:hover {
  transform: translateY(-5px);
  border-color: var(--accent);
}

.blog-image {
  aspect-ratio: 16/9;
  background: var(--bg-surface-hover);
  overflow: hidden;
  position: relative;
}

.blog-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-image img {
  transform: scale(1.05);
}

.blog-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-date {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  display: block;
}

.blog-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  line-height: 1.3;
  color: var(--text-main);
}

.blog-excerpt {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
  flex: 1;
}

.blog-tags {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.blog-tag {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 0.25rem 0.5rem;
  background: var(--accent-light);
  border-radius: 4px;
  color: var(--accent);
}

/* Article Single View */
.article-page {
  padding-top: calc(var(--header-height) + 4rem);
  padding-bottom: 6rem;
}

.article-header {
  max-width: 800px;
  margin: 0 auto 3rem auto;
  text-align: center;
}

.article-meta {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 1rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.article-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
}

.article-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  aspect-ratio: 21/9;
  object-fit: cover;
  border-radius: var(--radius-lg);
  margin: 0 auto 4rem auto;
  display: block;
  background: var(--bg-surface);
}

/* Markdown Content Styling */
.article-content {
  max-width: 700px;
  margin: 0 auto;
  font-size: 1.125rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.article-content p {
  margin-bottom: 1.5rem;
}

.article-content h2 {
  color: var(--text-main);
  font-size: 1.75rem;
  margin-top: 3rem;
  margin-bottom: 1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.article-content h3 {
  color: var(--text-main);
  font-size: 1.4rem;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.article-content ul, .article-content ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--text-muted);
}

.article-content li {
  margin-bottom: 0.5rem;
}

.article-content ul {
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}

.article-content blockquote {
  border-left: 3px solid var(--accent);
  padding-left: 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  color: var(--text-main);
  background: rgba(8, 145, 178, 0.05);
  padding: 1.5rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: opacity 0.2s;
}

.article-content a:hover {
  opacity: 0.8;
}

.article-content strong {
  color: var(--text-main);
  font-weight: 600;
}

.article-content code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-surface-hover);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  font-size: 0.85em;
  color: var(--accent);
}

.article-content pre {
  background: var(--bg-surface);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: 0.9em;
}

.article-content h4 {
  font-size: 1.15rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
  font-weight: 600;
}

.article-content hr {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 3rem 0;
}

.article-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-md);
  margin: 2rem 0;
  border: 1px solid var(--border);
}

.article-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 2rem 0;
  font-size: 0.95rem;
}

.article-content th,
.article-content td {
  padding: 0.75rem 1rem;
  border: 1px solid var(--border);
  text-align: left;
}

.article-content th {
  background: var(--bg-surface);
  color: var(--text-main);
  font-weight: 600;
}

.article-content tr:nth-child(even) {
  background: var(--bg-surface-hover);
}

.back-link {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--text-muted);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.back-link:hover {
  opacity: 1;
  color: var(--accent);
}

/* Legal Pages Shared Styles */
.legal-page {
  padding-top: calc(var(--header-height) + 2rem);
  min-height: 80vh;
}

.legal-content {
  max-width: 800px;
}

.legal-content h1 {
  margin-bottom: var(--space-md);
  color: var(--text-main);
}

.legal-content h2 {
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  font-size: 1.75rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.legal-content h3 {
  margin-top: var(--space-md);
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
  color: var(--text-main);
}

.legal-content p, .legal-content li {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1rem;
  color: var(--text-muted);
}

.legal-content a {
  color: var(--accent);
  text-decoration: underline;
}

.impressum-source {
  font-size: 0.875rem;
  opacity: 0.6;
  margin-top: 3rem;
}

/* 404 Page */
.error-page {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.error-code {
  font-size: clamp(6rem, 20vw, 12rem);
  font-weight: 700;
  line-height: 1;
  color: var(--accent);
  font-family: 'Inter Tight', sans-serif;
  opacity: 0.8;
}

.error-message {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-muted);
}


/* Blog Filter System */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.filter-btn {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text-muted);
  background: var(--bg-surface);
  transition: all 0.2s ease;
  cursor: pointer;
}

.filter-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
  background: var(--bg-surface-hover);
  transform: translateY(-1px);
}

.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.empty-state {
  text-align: center;
  padding: 4rem 0;
  background: var(--bg-surface);
  border: 1px dashed var(--border);
  border-radius: var(--radius-md);
  margin-top: 2rem;
}
