/* ============================================
   R3O Works - Custom CSS
   ============================================ */

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

:root {
  --color-primary: #6C3CE1;
  --color-secondary: #FF6B4A;
  --color-accent1: #00C2D1;
  --color-accent2: #FFCF36;
  --color-bg: #FAFAF7;
  --color-surface: #F0EFF4;
  --color-text: #2D2B3D;
  --color-text-muted: #6B6880;
  --color-footer-bg: #2D2B3D;
  --color-white: #FFFFFF;

  --font-heading: 'Space Grotesk', 'Zen Kaku Gothic New', sans-serif;
  --font-body: 'Inter', 'Noto Sans JP', sans-serif;

  --container-max: 1120px;
  --container-narrow: 760px;
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 2rem;
  --space-lg: 4rem;
  --space-xl: 6rem;
  --space-2xl: 8rem;

  --radius: 12px;
  --radius-lg: 20px;

  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover {
  color: var(--color-secondary);
}

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

ul, ol {
  list-style: none;
}

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

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

.hide-mobile {
  display: none;
}

@media (min-width: 768px) {
  .hide-mobile {
    display: inline;
  }
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(107, 104, 128, 0.08);
}

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

.logo {
  text-decoration: none;
  color: var(--color-text);
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.02em;
}

.logo-accent {
  color: var(--color-primary);
}

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

.menu-bar {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle[aria-expanded="true"] .menu-bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (min-width: 768px) {
  .menu-toggle {
    display: none;
  }
}

/* Navigation */
.main-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--color-bg);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-lg);
  z-index: 105;
}

.main-nav.is-open {
  display: flex;
}

.nav-list {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.nav-list a {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
  text-decoration: none;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav-list a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--color-primary);
  transition: width var(--transition);
}

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

.nav-list a:hover {
  color: var(--color-primary);
}

.lang-switch a {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-text-muted);
  padding: 6px 14px;
  border: 1px solid rgba(107, 104, 128, 0.2);
  border-radius: 999px;
  transition: all var(--transition);
}

.lang-switch a:hover {
  color: var(--color-primary);
  border-color: var(--color-primary);
}

@media (min-width: 768px) {
  .main-nav {
    display: flex;
    position: static;
    flex-direction: row;
    align-items: center;
    gap: var(--space-md);
    background: transparent;
  }

  .nav-list {
    flex-direction: row;
    gap: var(--space-md);
  }

  .nav-list a {
    font-size: 0.95rem;
  }
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 32px;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: all var(--transition);
  letter-spacing: 0.01em;
}

.btn--lg {
  padding: 18px 40px;
  font-size: 1.1rem;
}

.btn--primary {
  background: var(--color-primary);
  color: var(--color-white);
  border-color: var(--color-primary);
}

.btn--primary:hover {
  background: #5a2ec7;
  border-color: #5a2ec7;
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 60, 225, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn--outline:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(108, 60, 225, 0.2);
}

.btn--sm {
  padding: 10px 22px;
  font-size: 0.85rem;
}

@media (prefers-reduced-motion: reduce) {
  .btn:hover {
    transform: none;
    box-shadow: none;
  }
}

/* --- Hero --- */
.hero {
  position: relative;
  padding: var(--space-2xl) 0 var(--space-xl);
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
  background-image: radial-gradient(circle, rgba(108, 60, 225, 0.18) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

.hero-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Gradient mesh blobs */
.gradient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  pointer-events: none;
}

.hero-shapes .gradient-blob--violet {
  width: 500px;
  height: 500px;
  top: -15%;
  right: -10%;
  background: radial-gradient(circle, rgba(108, 60, 225, 0.55), transparent 70%);
}

.hero-shapes .gradient-blob--cyan {
  width: 400px;
  height: 400px;
  bottom: -10%;
  left: -5%;
  background: radial-gradient(circle, rgba(0, 194, 209, 0.45), transparent 70%);
}

.hero-shapes .gradient-blob--orange {
  width: 300px;
  height: 300px;
  top: 40%;
  right: 25%;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.4), transparent 70%);
}

.hero-shapes .gradient-blob--yellow {
  width: 250px;
  height: 250px;
  bottom: 5%;
  left: 30%;
  background: radial-gradient(circle, rgba(255, 207, 54, 0.45), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(2.4rem, 7vw, 4.5rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--space-md);
}

.hero-lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  line-height: 1.9;
  color: var(--color-text-muted);
  max-width: 640px;
  margin-bottom: var(--space-lg);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

@media (min-width: 768px) {
  .hero {
    padding: var(--space-2xl) 0;
  }

  .hero-shapes .gradient-blob--violet {
    width: 700px;
    height: 700px;
  }

  .hero-shapes .gradient-blob--cyan {
    width: 550px;
    height: 550px;
  }
}

/* --- Wave Dividers --- */
.wave-divider {
  position: relative;
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

.wave-divider svg {
  display: block;
  width: 100%;
  height: 60px;
}

.wave-divider--to-surface {
  background: var(--color-bg);
  margin-top: -1px;
}

.wave-divider--to-dark {
  background: var(--color-surface);
  margin-top: -1px;
}

.wave-divider--from-dark {
  background: var(--color-footer-bg);
  margin-top: -1px;
}

@media (min-width: 768px) {
  .wave-divider svg {
    height: 80px;
  }
}

@media (min-width: 1024px) {
  .wave-divider svg {
    height: 120px;
  }
}

/* --- Sections --- */
.section {
  padding: var(--space-xl) 0;
  position: relative;
}

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

.section--mission {
  position: relative;
  overflow: hidden;
  background: var(--color-footer-bg);
  color: var(--color-white);
}

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

.section-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-lg);
  text-align: center;
}

.section-title--light {
  color: var(--color-white);
}

.section-title__accent {
  position: relative;
  display: inline-block;
}

.section-title__accent::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
  border-radius: 2px;
}

/* --- Bento Grid --- */
.bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm);
  max-width: 900px;
  margin: 0 auto;
}

@media (min-width: 640px) {
  .bento-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: auto auto;
    gap: var(--space-sm);
  }

  .bento-cell--main {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  .bento-cell--speed {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
  }

  .bento-cell--simple {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
  }

  .bento-cell--local {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
  }

  .bento-cell--coming {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
  }
}

.bento-cell {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(107, 104, 128, 0.06);
  box-shadow: 0 2px 20px rgba(45, 43, 61, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.bento-cell:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 43, 61, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .bento-cell:hover {
    transform: none;
  }
}

.bento-cell--main {
  padding: var(--space-lg) var(--space-md);
  display: flex;
  flex-direction: column;
}

.bento-cell__cta {
  margin-top: 20px;
  align-self: flex-start;
}

.bento-cell--main::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent1), var(--color-accent2));
}

.bento-cell__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  letter-spacing: -0.02em;
}

.bento-cell__desc {
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-md);
}

.bento-cell__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.bento-cell--speed .bento-cell__icon {
  background: linear-gradient(135deg, var(--color-primary), #8B5CF6);
}

.bento-cell--simple .bento-cell__icon {
  background: linear-gradient(135deg, var(--color-accent1), #06B6D4);
}

.bento-cell--local .bento-cell__icon {
  background: linear-gradient(135deg, var(--color-secondary), #F59E0B);
}

.bento-cell__feature-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
}

.bento-cell__feature-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

.bento-cell--coming {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 2px dashed rgba(107, 104, 128, 0.2);
  box-shadow: none;
}

.bento-cell--coming:hover {
  transform: none;
  box-shadow: none;
}

.bento-cell__coming-label {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-text-muted);
  text-align: center;
}

/* --- App Mockup (CSS-only) --- */
.app-mockup {
  display: flex;
  border-radius: var(--radius);
  overflow: hidden;
  background: #1E1B2E;
  height: 200px;
  border: 1px solid rgba(108, 60, 225, 0.2);
  box-shadow: 0 8px 32px rgba(45, 43, 61, 0.15);
}

.app-mockup__sidebar {
  width: 28%;
  min-width: 60px;
  background: #252238;
  padding: 12px 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-right: 1px solid rgba(108, 60, 225, 0.15);
}

.app-mockup__sidebar-item {
  height: 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  transition: background var(--transition);
}

.app-mockup__sidebar-item--active {
  background: rgba(108, 60, 225, 0.4);
  position: relative;
}

.app-mockup__sidebar-item--active::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--color-primary);
  border-radius: 0 2px 2px 0;
}

.app-mockup__editor {
  flex: 1;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.app-mockup__editor-title {
  height: 14px;
  width: 45%;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 3px;
  margin-bottom: 4px;
}

.app-mockup__editor-line {
  height: 8px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.07);
}

.app-mockup__editor-line--long {
  width: 90%;
}

.app-mockup__editor-line--medium {
  width: 65%;
}

.app-mockup__editor-line--short {
  width: 40%;
}

.app-mockup__editor-cursor {
  width: 2px;
  height: 14px;
  background: var(--color-primary);
  border-radius: 1px;
  animation: cursor-blink 1.2s steps(2, start) infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .app-mockup__editor-cursor {
    animation: none;
    opacity: 1;
  }
}

@media (min-width: 640px) {
  .app-mockup {
    height: 220px;
  }
}

/* --- Product Card (legacy, kept for compatibility) --- */
.product-cards {
  display: grid;
  gap: var(--space-md);
  max-width: 640px;
  margin: 0 auto;
}

.product-card {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-lg) var(--space-md);
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(107, 104, 128, 0.06);
  box-shadow: 0 2px 20px rgba(45, 43, 61, 0.04);
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(45, 43, 61, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .product-card:hover {
    transform: none;
  }
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent1), var(--color-accent2));
}

.product-card__badge {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-secondary);
  background: rgba(255, 107, 74, 0.1);
  padding: 4px 14px;
  border-radius: 999px;
  margin-bottom: var(--space-sm);
  letter-spacing: 0.03em;
}

.product-card__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.product-card__desc {
  color: var(--color-text-muted);
  line-height: 1.8;
}

/* --- Product List (products index page) --- */
.product-list {
  display: grid;
  gap: var(--space-md);
  margin-top: var(--space-lg);
}

.product-list__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md) var(--space-lg);
  border: 1px solid rgba(107, 104, 128, 0.06);
  box-shadow: 0 2px 20px rgba(45, 43, 61, 0.04);
  text-decoration: none;
  color: inherit;
  transition: transform var(--transition), box-shadow var(--transition);
}

.product-list__item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 43, 61, 0.08);
}

@media (prefers-reduced-motion: reduce) {
  .product-list__item:hover {
    transform: none;
  }
}

.product-list__title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 4px;
}

.product-list__tagline {
  color: var(--color-text-muted);
  font-size: 0.95rem;
}

.product-list__arrow {
  font-size: 1.4rem;
  color: var(--color-primary);
  flex-shrink: 0;
  margin-left: var(--space-md);
}

.page-lead {
  font-size: 1.15rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.product-back {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(107, 104, 128, 0.1);
}

.product-back a {
  color: var(--color-primary);
  text-decoration: none;
  font-weight: 500;
}

.product-back a:hover {
  color: var(--color-secondary);
}

/* --- Mission (Dark theme) --- */
.mission-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.mission-shapes .gradient-blob--violet {
  width: 350px;
  height: 350px;
  top: -80px;
  right: -60px;
  background: radial-gradient(circle, rgba(108, 60, 225, 0.35), transparent 70%);
  filter: blur(80px);
  opacity: 0.6;
}

.mission-shapes .gradient-blob--yellow {
  width: 250px;
  height: 250px;
  bottom: -40px;
  left: -30px;
  background: radial-gradient(circle, rgba(255, 207, 54, 0.25), transparent 70%);
  filter: blur(80px);
  opacity: 0.5;
}

.mission-content {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.mission-quote {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 700;
  line-height: 1.5;
  color: var(--color-accent2);
  border: none;
  padding: 0;
  margin-bottom: var(--space-md);
}

.mission-body {
  color: rgba(255, 255, 255, 0.75);
  line-height: 2;
  margin-bottom: var(--space-sm);
}

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

/* --- About --- */
.about-content {
  max-width: 800px;
  margin: 0 auto;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .about-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
  }
}

.about-block {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  border: 1px solid rgba(107, 104, 128, 0.06);
  box-shadow: 0 2px 20px rgba(45, 43, 61, 0.04);
}

.about-block__title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-text);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.01em;
}

.about-block p {
  color: var(--color-text-muted);
  line-height: 2;
  font-size: 0.95rem;
}

/* --- Blog List --- */
.blog-list {
  padding: var(--space-xl) 0;
}

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

.blog-card {
  background: var(--color-white);
  border-radius: var(--radius);
  border: 1px solid rgba(107, 104, 128, 0.06);
  overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(45, 43, 61, 0.06);
}

@media (prefers-reduced-motion: reduce) {
  .blog-card:hover {
    transform: none;
  }
}

.blog-card__link {
  display: block;
  padding: var(--space-md);
  color: inherit;
  text-decoration: none;
}

.blog-card__date {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-xs);
}

.blog-card__title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
  color: var(--color-text);
}

.blog-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.blog-card__more {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--color-primary);
}

/* --- Blog Single --- */
.blog-single {
  padding: var(--space-xl) 0;
}

.blog-single__header {
  margin-bottom: var(--space-lg);
}

.blog-single__date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-sm);
}

.blog-single__lead {
  font-size: 1.1rem;
  color: var(--color-text-muted);
  line-height: 1.8;
  margin-top: var(--space-sm);
}

.blog-nav {
  margin-top: var(--space-xl);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(107, 104, 128, 0.1);
}

/* --- Legal --- */
.legal-page {
  padding: var(--space-xl) 0;
}

.legal-prose {
  color: var(--color-text);
}

.legal-prose h2 {
  margin-top: var(--space-lg);
}

/* --- Prose (shared content styles) --- */
.prose {
  font-size: 1rem;
  line-height: 1.85;
  color: var(--color-text);
}

.prose h2 {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 700;
  margin-top: var(--space-lg);
  margin-bottom: var(--space-sm);
  letter-spacing: -0.02em;
}

.prose h3 {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  margin-top: var(--space-md);
  margin-bottom: var(--space-xs);
}

.prose p {
  margin-bottom: var(--space-sm);
}

.prose ul,
.prose ol {
  margin-bottom: var(--space-sm);
  padding-left: var(--space-md);
}

.prose ul {
  list-style: disc;
}

.prose ol {
  list-style: decimal;
}

.prose li {
  margin-bottom: var(--space-xs);
}

.prose a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

.prose blockquote {
  border-left: 3px solid var(--color-primary);
  padding-left: var(--space-md);
  margin: var(--space-md) 0;
  color: var(--color-text-muted);
  font-style: italic;
}

.prose code {
  font-size: 0.9em;
  background: var(--color-surface);
  padding: 2px 6px;
  border-radius: 4px;
}

.prose pre {
  background: var(--color-footer-bg);
  color: var(--color-bg);
  padding: var(--space-md);
  border-radius: var(--radius);
  overflow-x: auto;
  margin: var(--space-md) 0;
}

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

/* --- Page Content --- */
.page-content {
  padding: var(--space-xl) 0;
}

.page-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.page-date {
  display: block;
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
}

/* List items */
.list-item {
  padding: var(--space-md) 0;
  border-bottom: 1px solid rgba(107, 104, 128, 0.1);
}

.list-item:last-child {
  border-bottom: none;
}

.list-item h2 {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.list-item h2 a {
  color: var(--color-text);
  text-decoration: none;
}

.list-item h2 a:hover {
  color: var(--color-primary);
}

.list-item-desc {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

.list-item time {
  display: block;
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

.empty-state {
  text-align: center;
  color: var(--color-text-muted);
  padding: var(--space-xl) 0;
}

/* --- Footer --- */
.site-footer {
  background: var(--color-footer-bg);
  color: rgba(255, 255, 255, 0.8);
  padding: var(--space-xl) 0 var(--space-md);
}

.footer-inner {
  display: grid;
  gap: var(--space-lg);
}

.site-footer .logo-text {
  color: var(--color-white);
  font-size: 1.3rem;
}

.footer-tagline {
  margin-top: var(--space-xs);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: var(--space-md);
}

.footer-col h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--color-white);
  margin-bottom: var(--space-sm);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-col ul li {
  margin-bottom: var(--space-xs);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: color var(--transition);
}

.footer-col a:hover {
  color: var(--color-white);
}

.footer-bottom {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  text-align: center;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.4);
}

@media (min-width: 768px) {
  .footer-inner {
    grid-template-columns: 1.2fr 2fr;
    align-items: start;
  }

  .footer-bottom {
    grid-column: 1 / -1;
  }

  .footer-links {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* --- Fade-in animation --- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* --- Responsive adjustments --- */
@media (min-width: 1024px) {
  .hero {
    min-height: 85vh;
  }

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

  .product-cards {
    max-width: 720px;
  }
}

@media (max-width: 480px) {
  :root {
    --space-md: 1.25rem;
    --space-lg: 2.5rem;
    --space-xl: 4rem;
    --space-2xl: 5rem;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn--lg {
    padding: 16px 32px;
    font-size: 1rem;
  }
}
