@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&family=Noto+Sans+JP:wght@400;500;600;700&display=swap');

:root,
[data-theme="light"] {
  --bg-deep: #f8fafc;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #f1f5f9;
  --bg-surface-hover: #e2e8f0;
  
  --border-subtle: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.16);

  --text-main: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  
  --accent: #e11d48;
  --accent-soft: rgba(225, 29, 72, 0.08);
  --accent-hover: #be123c;
  
  --success: #059669;
  --success-soft: rgba(5, 150, 105, 0.1);

  --header-bg: rgba(248, 250, 252, 0.85);
  --bg-gradient: radial-gradient(circle at 50% 0%, #edf2f7 0%, var(--bg-deep) 65%);
  --card-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  --card-hover-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  --btn-primary-bg: #0f172a;
  --btn-primary-text: #ffffff;
  --btn-primary-hover-bg: #1e293b;
  --btn-primary-shadow: rgba(15, 23, 42, 0.18);
  --metrics-bg: rgba(255, 255, 255, 0.6);
  --glow-accent: rgba(225, 29, 72, 0.1);
  --article-text: #334155;
  --toast-shadow: 0 10px 25px rgba(15, 23, 42, 0.12);

  --max-w: 1200px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;

  --font-sans: "Plus Jakarta Sans", "Noto Sans JP", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
}

[data-theme="dark"] {
  --bg-deep: #090a0d;
  --bg-surface: #101217;
  --bg-surface-elevated: #161820;
  --bg-surface-hover: #1c1f2a;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);

  --text-main: #f4f5f8;
  --text-secondary: #9ea4b0;
  --text-muted: #646a77;
  
  --accent: #f43f5e;
  --accent-soft: rgba(244, 63, 94, 0.12);
  --accent-hover: #fb7185;
  
  --success: #10b981;
  --success-soft: rgba(16, 185, 129, 0.12);

  --header-bg: rgba(9, 10, 13, 0.8);
  --bg-gradient: radial-gradient(circle at 50% 0%, #151822 0%, var(--bg-deep) 65%);
  --card-shadow: 0 20px 40px rgba(0, 0, 0, 0.45);
  --card-hover-shadow: 0 16px 36px rgba(0, 0, 0, 0.35);
  --btn-primary-bg: #f4f5f8;
  --btn-primary-text: #090a0d;
  --btn-primary-hover-bg: #ffffff;
  --btn-primary-shadow: rgba(255, 255, 255, 0.12);
  --metrics-bg: rgba(16, 18, 23, 0.4);
  --glow-accent: rgba(244, 63, 94, 0.15);
  --article-text: #d1d5db;
  --toast-shadow: 0 10px 25px rgba(0, 0, 0, 0.4);
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  min-width: 320px;
  background: var(--bg-gradient);
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.25s ease, color 0.25s ease;
}

a { color: inherit; text-decoration: none; transition: color 0.2s ease; }
button, input { font-family: inherit; }

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-200%);
  background: var(--text-main);
  color: var(--bg-deep);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  transition: transform 0.2s ease;
}
.skip-link:focus { transform: translateY(0); }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

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

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: var(--header-bg);
  border-bottom: 1px solid var(--border-subtle);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.brand-name { color: var(--text-main); }
.brand-name span { color: var(--accent); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}

.main-nav a { color: var(--text-secondary); transition: color 0.2s ease; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--text-main); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.language-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
}

.language-switcher button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.language-switcher button:hover { color: var(--text-main); }
.language-switcher button[aria-pressed="true"] {
  background: var(--text-main);
  color: var(--bg-deep);
  font-weight: 700;
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.theme-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.theme-switcher button {
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
  line-height: 1;
}

.theme-switcher button:hover {
  color: var(--text-main);
}

.theme-switcher button[aria-pressed="true"] {
  background: var(--text-main);
  color: var(--bg-deep);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.theme-btn-icon {
  width: 12px;
  height: 12px;
  stroke: currentColor;
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .theme-switcher button span {
    display: none;
  }
  .theme-switcher button {
    padding: 4px 7px;
  }
}

/* Hero Section */
.hero {
  padding: 80px 0 96px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.85fr);
  gap: 56px;
  align-items: center;
}

.hero-content { display: flex; flex-direction: column; }

.hero h1 {
  font-size: clamp(34px, 4.2vw, 54px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.035em;
  color: var(--text-main);
  margin-bottom: 20px;
}

.hero h1 em {
  font-style: normal;
  color: var(--accent);
  background: linear-gradient(135deg, #fb7185 0%, #f43f5e 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-description {
  font-size: clamp(16px, 1.15vw, 19px);
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 620px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--btn-primary-hover-bg);
  border-color: var(--btn-primary-hover-bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px var(--btn-primary-shadow);
}

.btn-secondary {
  background: var(--bg-surface-elevated);
  color: var(--text-main);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.btn-copy {
  background: transparent;
  color: var(--text-secondary);
  border-color: var(--border-subtle);
  font-family: var(--font-mono);
  font-size: 13px;
}

.btn-copy:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
}

/* Profile Snapshot Card */
.profile-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--card-shadow);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.profile-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.profile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.profile-header-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.profile-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-secondary);
}

.profile-specs {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.spec-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: baseline;
  gap: 12px;
  font-size: 13px;
}

.spec-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.spec-value {
  color: var(--text-main);
  font-weight: 500;
}

.spec-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.spec-tag {
  display: inline-block;
  padding: 3px 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.profile-footer {
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Metrics Strip */
.metrics-strip {
  border-block: 1px solid var(--border-subtle);
  background: var(--metrics-bg);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.metric-box {
  padding: 32px 24px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.metric-box:last-child {
  border-right: 0;
}

.metric-num {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-main);
  font-family: var(--font-mono);
}

.metric-num span {
  color: var(--accent);
}

.metric-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.45;
}

/* Sections */
.section {
  padding: 100px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-head {
  margin-bottom: 48px;
}

.section-kicker {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.section-title {
  font-size: clamp(28px, 3vw, 40px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--text-main);
  margin-bottom: 14px;
}

.section-subtitle {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
}

/* Product Cards Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.product-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.product-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  transform: translateY(-3px);
  box-shadow: var(--card-hover-shadow);
}

.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.card-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 9999px;
  color: var(--text-secondary);
}

.product-card:hover .card-badge {
  border-color: var(--border-strong);
  color: var(--text-main);
}

.card-index {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.card-body h3 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-main);
  margin-bottom: 12px;
}

.card-body p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.card-bottom {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  gap: 16px;
}

.tech-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
}

.tech-tags li {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 3px 8px;
  background: var(--bg-deep);
  border: 1px solid var(--border-subtle);
  border-radius: 4px;
  color: var(--text-secondary);
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}

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

/* Capabilities Grid */
.capabilities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.capability-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.capability-card:hover {
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

.capability-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 24px;
}

.capability-card h3 {
  font-size: 17px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 12px;
  line-height: 1.35;
}

.capability-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* Ecosystem Grid */
.ecosystem-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
}

.ecosystem-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
  transition: all 0.2s ease;
}

.ecosystem-card:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.ecosystem-thumb {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.ecosystem-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecosystem-info h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 4px;
}

.ecosystem-info p {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Contact Section */
.contact-wrap {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.contact-wrap::before {
  content: "";
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 320px;
  height: 240px;
  background: radial-gradient(circle, var(--glow-accent) 0%, transparent 70%);
  pointer-events: none;
}

.contact-wrap h2 {
  font-size: clamp(30px, 3.5vw, 46px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.contact-wrap p {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.65;
}

.contact-box {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 10px 16px 10px 22px;
}

.contact-email-text {
  font-family: var(--font-mono);
  font-size: clamp(16px, 1.8vw, 22px);
  font-weight: 600;
  color: var(--text-main);
}

/* Site Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-deep);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

/* Blog Styles */
.blog-main {
  min-height: calc(100vh - 160px);
  padding: 60px 0 100px;
}

.blog-hero {
  margin-bottom: 48px;
}

.blog-hero h1 {
  font-size: clamp(36px, 4.5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: 14px;
}

.blog-hero p {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 640px;
}

.blog-tools {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 18px 0;
  border-block: 1px solid var(--border-subtle);
  margin-bottom: 32px;
}

.search-box input {
  width: min(340px, 70vw);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-main);
  padding: 10px 14px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s ease;
}

.search-box input:focus { border-color: var(--border-strong); }

.filter-buttons { display: flex; gap: 8px; }

.filter-buttons button {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-buttons button:hover { color: var(--text-main); border-color: var(--border-strong); }
.filter-buttons button.active {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
  border-color: var(--btn-primary-bg);
  font-weight: 600;
}

.post-row {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--border-subtle);
  transition: background 0.2s ease;
}

.post-number {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
}

.post-meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.post-main h2 {
  font-size: 20px;
  font-weight: 600;
  margin-top: 6px;
  line-height: 1.35;
}

.post-main h2 a:hover { color: var(--accent); }

.post-open {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.post-open:hover {
  color: var(--text-main);
  border-color: var(--border-strong);
  background: var(--bg-surface-elevated);
}

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

.article-main {
  width: min(calc(100% - 48px), 820px);
  margin: 0 auto;
  min-height: calc(100vh - 160px);
  padding: 60px 0 100px;
}

.article-header {
  padding-bottom: 40px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 40px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 28px;
}

.article-header h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
  margin-top: 14px;
}

.article-body p {
  font-size: 17px;
  line-height: 1.85;
  color: var(--article-text);
  margin-bottom: 24px;
}

.related-posts {
  margin-top: 72px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

.related-posts-heading {
  margin-bottom: 28px;
}

.related-posts-heading .section-kicker {
  margin-bottom: 10px;
}

.related-posts-heading h2 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.related-posts-heading > p:last-child {
  margin-top: 10px;
  color: var(--text-secondary);
  font-size: 14px;
}

.related-posts-list {
  border-top: 1px solid var(--border-subtle);
}

.related-post {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.related-post-number,
.related-post-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
}

.related-post-number {
  color: var(--accent);
  font-weight: 600;
}

.related-post-meta {
  display: flex;
  gap: 12px;
  color: var(--text-muted);
}

.related-post-content {
  min-width: 0;
}

.related-post-content strong {
  display: block;
  margin-top: 7px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.45;
  transition: color 0.2s ease;
}

.related-post-arrow {
  color: var(--text-muted);
  font-size: 18px;
  transition: color 0.2s ease, transform 0.2s ease;
}

.related-post:hover .related-post-content strong,
.related-post:hover .related-post-arrow {
  color: var(--accent);
}

.related-post:hover .related-post-arrow {
  transform: translate(3px, -3px);
}

.migration-note {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.migration-note strong {
  display: block;
  color: var(--accent);
  margin-bottom: 8px;
}

.migration-note p {
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 0;
}

.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text-main);
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: var(--toast-shadow);
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 9999;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

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

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .profile-card {
    max-width: 580px;
  }
  .capabilities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .ecosystem-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 14px 0;
    flex-wrap: wrap;
  }
  .main-nav {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 18px;
    padding-top: 10px;
    border-top: 1px solid var(--border-subtle);
    font-size: 13px;
    overflow-x: auto;
  }
  .hero {
    padding: 48px 0 64px;
  }
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .metric-box:nth-child(2) {
    border-right: 0;
  }
  .metric-box:nth-child(-n+2) {
    border-bottom: 1px solid var(--border-subtle);
  }
  .products-grid {
    grid-template-columns: 1fr;
  }
  .capabilities-grid {
    grid-template-columns: 1fr;
  }
  .ecosystem-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-wrap {
    padding: 44px 20px;
  }
  .contact-box {
    flex-direction: column;
    padding: 16px;
    width: 100%;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .post-row {
    grid-template-columns: 32px 1fr;
  }
  .post-open {
    display: none;
  }
  .article-main {
    width: min(calc(100% - 32px), 820px);
    padding-top: 40px;
  }
  .related-posts {
    margin-top: 56px;
    padding-top: 32px;
  }
  .related-post {
    grid-template-columns: 28px minmax(0, 1fr) auto;
    gap: 12px;
  }
  .related-post-content strong {
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
