/* ============================================
   OpenClaw - AIエージェントプラットフォーム
   テーマ: Coral Claw × Deep Ocean
   ロブスター/クロー = 力強さ、精密さ、知性
   ============================================ */

/* ===== CSS Custom Properties ===== */
:root {
  /* Primary: Deep Ocean Navy */
  --ocean-deep: #0f172a;
  --ocean-mid: #1e293b;
  --ocean-surface: #273548;
  --ocean-light: #334155;

  /* Accent: Coral / Claw Red */
  --claw-red: #dc2626;
  --claw-coral: #ef4444;
  --claw-light: #f87171;
  --claw-glow: rgba(239, 68, 68, 0.25);

  /* Secondary: Teal */
  --teal-deep: #0d9488;
  --teal-mid: #14b8a6;
  --teal-light: #2dd4bf;
  --teal-glow: rgba(20, 184, 166, 0.2);

  /* Highlight: Amber */
  --amber: #f59e0b;
  --amber-light: #fbbf24;

  /* Text */
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dark: #0f172a;

  /* Surfaces */
  --glass-white: rgba(255, 255, 255, 0.05);
  --glass-white-hover: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-border-hover: rgba(255, 255, 255, 0.15);
  --card-bg: rgba(30, 41, 59, 0.7);
  --card-bg-hover: rgba(39, 53, 72, 0.85);

  /* Fonts */
  --font-heading: 'Inter', 'Noto Sans JP', sans-serif;
  --font-body: 'Noto Sans JP', 'Inter', sans-serif;
  --font-mono: 'Fira Code', 'Source Code Pro', monospace;

  /* Spacing */
  --sp-xs: 0.25rem;
  --sp-sm: 0.5rem;
  --sp-md: 1rem;
  --sp-lg: 1.5rem;
  --sp-xl: 2rem;
  --sp-2xl: 3rem;
  --sp-3xl: 4rem;
  --sp-4xl: 6rem;

  /* Borders */
  --radius-sm: 0.375rem;
  --radius-md: 0.625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --ease-fast: 150ms ease;
  --ease-base: 280ms cubic-bezier(0.4, 0, 0.2, 1);
  --ease-smooth: 400ms cubic-bezier(0.16, 1, 0.3, 1);
  --ease-bounce: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.4);
  --shadow-claw: 0 0 25px var(--claw-glow);
  --shadow-teal: 0 0 25px var(--teal-glow);

  /* Layout */
  --header-height: 70px;
  --sidebar-width: 300px;
  --max-width: 1280px;
}

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

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

body {
  font-family: var(--font-body);
  background: var(--ocean-deep);
  color: var(--text-primary);
  line-height: 1.8;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  overflow-x: hidden;
}

main {
  overflow-x: hidden;
}

a {
  color: var(--claw-coral);
  text-decoration: none;
  transition: color var(--ease-fast);
}

a:hover {
  color: var(--claw-light);
}

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text-primary);
}

/* ===== Utility Classes ===== */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
  overflow-x: hidden;
  box-sizing: border-box;
}

.section {
  padding: var(--sp-4xl) 0;
  position: relative;
}

.section-title {
  font-size: 2rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: var(--sp-md);
  background: linear-gradient(135deg, var(--text-primary) 0%, var(--claw-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--sp-3xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.text-coral {
  color: var(--claw-coral);
}

.text-teal {
  color: var(--teal-mid);
}

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

/* ===== Ambient Background ===== */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 15% 20%, rgba(239, 68, 68, 0.06) 0%, transparent 50%),
    radial-gradient(ellipse at 85% 60%, rgba(20, 184, 166, 0.05) 0%, transparent 45%),
    radial-gradient(ellipse at 50% 90%, rgba(245, 158, 11, 0.03) 0%, transparent 50%);
}

/* ============================================
   HEADER / NAVIGATION
   ============================================ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: auto;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: background var(--ease-base), box-shadow var(--ease-base);
}

.header.scrolled {
  background: rgba(15, 23, 42, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--glass-border), var(--shadow-sm);
}

/* AdSense auto-ads: prevent overlay on content */
ins.adsbygoogle[data-ad-status],
div[id^="google_ads"],
.adsbygoogle {
  position: relative !important;
  z-index: 1 !important;
  display: block !important;
  margin: var(--sp-lg) auto !important;
  max-width: 100% !important;
  overflow: hidden !important;
}

/* Fixed/sticky auto-ad overlays - force inline */
div[style*="position: fixed"][id*="google"],
div[style*="position: fixed"][class*="google"],
ins[style*="position: fixed"] {
  position: relative !important;
  margin: var(--sp-lg) auto !important;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.nav-logo a {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-heading);
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  transition: opacity var(--ease-fast);
}

.nav-logo a:hover {
  color: var(--text-primary);
  opacity: 0.85;
}

.nav-logo img {
  height: 36px;
  width: auto;
}

.nav-logo .logo-accent {
  color: var(--claw-coral);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-xs);
  justify-content: flex-end;
}

.nav-link {
  position: relative;
  padding: var(--sp-sm) var(--sp-md);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--ease-fast), background var(--ease-fast);
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--glass-white);
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 18px;
  height: 2px;
  background: var(--claw-coral);
  border-radius: var(--radius-full);
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.dropdown-toggle::after {
  content: '';
  display: inline-block;
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  transition: transform var(--ease-fast);
}

.nav-dropdown:hover .dropdown-toggle::after {
  transform: rotate(180deg);
}

.dropdown-content {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 220px;
  background: rgba(30, 41, 59, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: var(--sp-sm);
  box-shadow: var(--shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(8px);
  transition: opacity var(--ease-base), transform var(--ease-base), visibility var(--ease-base);
}

.nav-dropdown:hover .dropdown-content {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.dropdown-content a {
  display: block;
  padding: var(--sp-sm) var(--sp-md);
  color: var(--text-secondary);
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  transition: background var(--ease-fast), color var(--ease-fast);
}

.dropdown-content a:hover {
  background: var(--glass-white);
  color: var(--text-primary);
}

/* ===== Mobile Menu ===== */
.mobile-menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  background: transparent;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  z-index: 1100;
  transition: background var(--ease-fast);
}

.mobile-menu-btn:hover {
  background: var(--glass-white);
}

.hamburger-line {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  border-radius: var(--radius-full);
  transition: transform var(--ease-base), opacity var(--ease-fast);
}

.mobile-menu-btn.active .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active .hamburger-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.active .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1050;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-sm);
  padding: var(--sp-2xl);
  overflow-y: auto;
}

.mobile-menu-overlay.active {
  display: flex;
}

.mobile-nav-link {
  display: block;
  padding: var(--sp-md) var(--sp-xl);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
  border-radius: var(--radius-md);
  transition: color var(--ease-fast), background var(--ease-fast);
  width: 100%;
  max-width: 360px;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  color: var(--text-primary);
  background: var(--glass-white);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: var(--header-height);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 42, 0.45) 0%,
    rgba(15, 23, 42, 0.6) 50%,
    rgba(15, 23, 42, 0.92) 100%
  );
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: var(--sp-3xl) var(--sp-lg);
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-xs) var(--sp-md);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--teal-light);
  margin-bottom: var(--sp-xl);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  background: var(--teal-mid);
  border-radius: 50%;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-title {
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: var(--sp-lg);
  color: #ffffff;
  text-shadow:
    0 2px 8px rgba(0, 0, 0, 0.5),
    0 0 40px rgba(239, 68, 68, 0.15);
  -webkit-text-stroke: 0.3px rgba(255, 255, 255, 0.1);
  letter-spacing: -0.025em;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--claw-coral) 0%, var(--amber) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px var(--claw-glow));
}

.hero-subtitle {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--sp-2xl);
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.hero-actions {
  display: flex;
  gap: var(--sp-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.cta-button {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: 0.85rem 2rem;
  font-size: 1rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: transform var(--ease-base), box-shadow var(--ease-base), background var(--ease-base);
  text-decoration: none;
}

.cta-button--primary {
  background: linear-gradient(135deg, var(--claw-red) 0%, var(--claw-coral) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--claw-glow);
}

.cta-button--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4);
  color: #ffffff;
}

.cta-button--secondary {
  background: var(--glass-white);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}

.cta-button--secondary:hover {
  background: var(--glass-white-hover);
  border-color: var(--glass-border-hover);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.cta-button--teal {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal-mid) 100%);
  color: #ffffff;
  box-shadow: 0 4px 16px var(--teal-glow);
}

.cta-button--teal:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(20, 184, 166, 0.35);
  color: #ffffff;
}

/* ============================================
   STATS TICKER
   ============================================ */
/* Stats Section (alias for both class naming conventions) */
.stats-section,
.stats-ticker {
  background: var(--ocean-mid);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--sp-xl) 0;
  position: relative;
  overflow: hidden;
}

.stats-grid {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3xl);
  flex-wrap: wrap;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.stat-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  min-width: 140px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--claw-coral);
  line-height: 1.2;
}

.stat-unit {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-percent,
.stat-plus {
  font-size: 1.5rem;
}

.stats-ticker::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--claw-coral), var(--teal-mid), transparent);
  opacity: 0.5;
}

.ticker-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3xl);
  flex-wrap: wrap;
}

.ticker-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-xs);
  min-width: 140px;
}

.ticker-value {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--claw-light) 0%, var(--amber-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.ticker-label {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}

/* ============================================
   FEATURES GRID (Homepage)
   ============================================ */
.features-section {
  position: relative;
}

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

.feature-card {
  position: relative;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  transition: transform var(--ease-smooth), box-shadow var(--ease-smooth), border-color var(--ease-smooth), background var(--ease-smooth);
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--claw-coral), var(--teal-mid));
  opacity: 0;
  transition: opacity var(--ease-base);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--glass-border-hover);
  background: var(--card-bg-hover);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-lg);
  font-size: 1.6rem;
  background: linear-gradient(135deg, rgba(239, 68, 68, 0.15), rgba(20, 184, 166, 0.1));
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.feature-card-icon img {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

.feature-card .card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-xs);
  margin-top: var(--sp-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--claw-coral);
  transition: gap var(--ease-base), color var(--ease-fast);
}

.feature-card .card-link:hover {
  gap: var(--sp-sm);
  color: var(--claw-light);
}

/* ============================================
   NEWS SECTION (Homepage)
   ============================================ */
.news-section {
  position: relative;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-xl);
}

.news-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform var(--ease-smooth), box-shadow var(--ease-smooth), border-color var(--ease-smooth);
}

.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--glass-border-hover);
}

.news-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.news-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--ease-smooth);
}

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

.news-card-body {
  padding: var(--sp-lg);
}

.news-card-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  margin-bottom: var(--sp-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.news-card-category {
  display: inline-block;
  padding: 2px 10px;
  background: rgba(239, 68, 68, 0.12);
  color: var(--claw-light);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.news-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.5;
  margin-bottom: var(--sp-sm);
}

.news-card-title a {
  color: var(--text-primary);
  transition: color var(--ease-fast);
}

.news-card-title a:hover {
  color: var(--claw-coral);
}

.news-card-excerpt {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: var(--sp-md);
  padding-top: var(--sp-md);
  border-top: 1px solid var(--glass-border);
}

.news-card-date {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.news-card-readmore {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--claw-coral);
}

/* ============================================
   PAGE LAYOUT (Content Pages: 2-column)
   ============================================ */
.page-layout {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: var(--sp-3xl) var(--sp-lg);
  padding-top: calc(var(--header-height) + var(--sp-2xl));
}

.page-layout > .container {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-width);
  gap: var(--sp-2xl);
}

.main-content {
  min-width: 0;
  overflow-x: hidden;
  max-width: 100%;
}

/* ===== Page Header (Content Pages) ===== */
.page-header {
  margin-bottom: var(--sp-2xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--glass-border);
}

.page-header .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-md);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.page-header .breadcrumb a {
  color: var(--text-secondary);
}

.page-header .breadcrumb a:hover {
  color: var(--claw-coral);
}

.page-header .breadcrumb .separator {
  color: var(--text-muted);
}

.page-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: var(--sp-md);
  letter-spacing: -0.02em;
}

.page-header .page-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-md);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.page-header .page-meta span {
  display: flex;
  align-items: center;
  gap: var(--sp-xs);
}

/* ============================================
   ARTICLE CONTENT (Long-form Typography)
   ============================================ */
.article-content {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-primary);
}

.article-content h2 {
  font-size: 1.65rem;
  font-weight: 800;
  margin-top: var(--sp-3xl);
  margin-bottom: var(--sp-lg);
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--claw-coral);
  position: relative;
}

.article-content h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: var(--sp-2xl);
  margin-bottom: var(--sp-md);
  padding-left: var(--sp-md);
  border-left: 3px solid var(--teal-mid);
}

.article-content h4 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-top: var(--sp-xl);
  margin-bottom: var(--sp-md);
  color: var(--text-primary);
}

.article-content p {
  margin-bottom: var(--sp-lg);
}

.article-content ul,
.article-content ol {
  margin-bottom: var(--sp-lg);
  padding-left: var(--sp-xl);
}

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

.article-content ul li {
  position: relative;
  padding-left: var(--sp-lg);
  margin-bottom: var(--sp-sm);
}

.article-content ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7em;
  width: 6px;
  height: 6px;
  background: var(--claw-coral);
  border-radius: 50%;
}

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

.article-content ol li {
  margin-bottom: var(--sp-sm);
  padding-left: var(--sp-sm);
}

.article-content a {
  color: var(--claw-coral);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(239, 68, 68, 0.3);
  transition: text-decoration-color var(--ease-fast);
}

.article-content a:hover {
  text-decoration-color: var(--claw-coral);
}

.article-content blockquote {
  margin: var(--sp-xl) 0;
  padding: var(--sp-lg) var(--sp-xl);
  background: var(--glass-white);
  border-left: 4px solid var(--teal-mid);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

.article-content blockquote p:last-child {
  margin-bottom: 0;
}

.article-content code {
  font-family: var(--font-mono);
  background: rgba(239, 68, 68, 0.1);
  color: var(--claw-light);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 0.88em;
}

.article-content pre {
  margin: var(--sp-xl) 0;
  padding: var(--sp-lg);
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  overflow-x: auto;
  max-width: 100%;
}

.article-content pre code {
  background: none;
  padding: 0;
  color: var(--text-primary);
  font-size: 0.88rem;
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-all;
}

.article-content table {
  width: 100%;
  margin: var(--sp-xl) 0;
  border-collapse: collapse;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.article-content thead th {
  background: var(--ocean-mid);
  padding: var(--sp-md) var(--sp-lg);
  text-align: left;
  font-weight: 700;
  color: var(--text-primary);
  border-bottom: 2px solid var(--claw-coral);
}

.article-content tbody td {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.article-content tbody tr:hover td {
  background: var(--glass-white);
}

.article-content img {
  border-radius: var(--radius-md);
  margin: var(--sp-xl) 0;
}

.article-content figure {
  margin: var(--sp-xl) 0;
}

.article-content figcaption {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: var(--sp-sm);
}

/* Info / Warning Boxes */
.info-box {
  margin: var(--sp-xl) 0;
  padding: var(--sp-lg);
  border-radius: var(--radius-md);
  border-left: 4px solid;
  font-size: 0.92rem;
}

.info-box--tip {
  background: rgba(20, 184, 166, 0.08);
  border-color: var(--teal-mid);
}

.info-box--warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: var(--amber);
}

.info-box--danger {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--claw-coral);
}

.info-box-title {
  font-weight: 700;
  margin-bottom: var(--sp-sm);
  font-size: 0.95rem;
}

/* ============================================
   SIDEBAR
   ============================================ */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
}

.sidebar-widget {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
}

.sidebar-widget-title {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 2px solid var(--claw-coral);
  color: var(--text-primary);
}

/* TOC Widget */
.toc-widget {
  position: sticky;
  top: calc(var(--header-height) + var(--sp-lg));
}

.toc-list {
  list-style: none;
  padding: 0;
}

.toc-list li {
  margin-bottom: 2px;
}

.toc-list a {
  display: block;
  padding: var(--sp-xs) var(--sp-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-left: 2px solid transparent;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: color var(--ease-fast), border-color var(--ease-fast), background var(--ease-fast);
  line-height: 1.5;
}

.toc-list a:hover,
.toc-list a.active {
  color: var(--claw-coral);
  border-left-color: var(--claw-coral);
  background: rgba(239, 68, 68, 0.05);
}

.toc-list .toc-h3 {
  padding-left: var(--sp-lg);
  font-size: 0.82rem;
}

.toc-list .toc-h4 {
  padding-left: var(--sp-2xl);
  font-size: 0.78rem;
}

/* Related Links Widget */
.related-links-list {
  list-style: none;
  padding: 0;
}

.related-links-list li {
  margin-bottom: var(--sp-xs);
}

.related-links-list a {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  padding: var(--sp-sm);
  font-size: 0.88rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: color var(--ease-fast), background var(--ease-fast);
}

.related-links-list a:hover {
  color: var(--text-primary);
  background: var(--glass-white);
}

.related-links-list a::before {
  content: '→';
  color: var(--teal-mid);
  font-size: 0.85rem;
  flex-shrink: 0;
}

/* Ad / Banner Widgets */
.amazon-banner,
.ad-banner {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-md);
  text-align: center;
  overflow: hidden;
}

.amazon-banner img,
.ad-banner img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
}

.ad-banner-label {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-sm);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--ocean-mid);
  border-top: 1px solid var(--glass-border);
  padding: var(--sp-3xl) 0 var(--sp-xl);
  position: relative;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--claw-coral), var(--teal-mid), transparent);
  opacity: 0.4;
}

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

.footer-brand {
  max-width: 320px;
}

.footer-brand h3 {
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: var(--sp-md);
}

.footer-brand .brand-accent {
  color: var(--claw-coral);
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.footer-column h4 {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: var(--sp-md);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.footer-links {
  list-style: none;
  padding: 0;
}

.footer-links li {
  margin-bottom: var(--sp-sm);
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-secondary);
  transition: color var(--ease-fast), padding-left var(--ease-base);
}

.footer-links a:hover {
  color: var(--claw-coral);
  padding-left: 4px;
}

/* Related Sites */
.footer-related-sites {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-xl);
  padding-bottom: var(--sp-xl);
  border-bottom: 1px solid var(--glass-border);
}

.footer-related-sites a {
  display: inline-block;
  padding: var(--sp-xs) var(--sp-md);
  font-size: 0.8rem;
  color: var(--text-muted);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-full);
  transition: color var(--ease-fast), border-color var(--ease-fast), background var(--ease-fast);
}

.footer-related-sites a:hover {
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
  background: var(--glass-white-hover);
}

/* Mandatory / Legal Links */
.footer-mandatory {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-lg);
  justify-content: center;
  margin-bottom: var(--sp-lg);
}

.footer-mandatory a {
  font-size: 0.82rem;
  color: var(--text-muted);
  transition: color var(--ease-fast);
}

.footer-mandatory a:hover {
  color: var(--text-secondary);
}

.footer-bottom {
  text-align: center;
  padding-top: var(--sp-lg);
  border-top: 1px solid var(--glass-border);
}

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

/* ============================================
   ANIMATIONS
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(24px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.92);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.animate-fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

/* ============================================
   BREADCRUMB (Standalone)
   ============================================ */
.breadcrumb-bar {
  background: var(--ocean-mid);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--sp-md) 0;
  margin-top: var(--header-height);
}

.breadcrumb-bar .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  font-size: 0.82rem;
  color: var(--text-muted);
}

.breadcrumb-bar .breadcrumb a {
  color: var(--text-secondary);
}

.breadcrumb-bar .breadcrumb a:hover {
  color: var(--claw-coral);
}

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-3xl);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-sm);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  transition: background var(--ease-fast), color var(--ease-fast), border-color var(--ease-fast);
}

.pagination a:hover {
  background: var(--glass-white-hover);
  color: var(--text-primary);
  border-color: var(--glass-border-hover);
}

.pagination .active {
  background: var(--claw-coral);
  color: #ffffff;
  border-color: var(--claw-coral);
}

/* ============================================
   TAGS / BADGES
   ============================================ */
.tag {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  letter-spacing: 0.03em;
}

.tag--coral {
  background: rgba(239, 68, 68, 0.12);
  color: var(--claw-light);
}

.tag--teal {
  background: rgba(20, 184, 166, 0.12);
  color: var(--teal-light);
}

.tag--amber {
  background: rgba(245, 158, 11, 0.12);
  color: var(--amber-light);
}

.tag--slate {
  background: var(--glass-white);
  color: var(--text-secondary);
}

/* ============================================
   SEARCH BOX
   ============================================ */
.search-box {
  position: relative;
}

.search-box input {
  width: 100%;
  padding: var(--sp-md) var(--sp-lg);
  padding-right: var(--sp-3xl);
  font-family: var(--font-body);
  font-size: 0.92rem;
  background: var(--glass-white);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--ease-fast), box-shadow var(--ease-fast);
}

.search-box input::placeholder {
  color: var(--text-muted);
}

.search-box input:focus {
  border-color: var(--claw-coral);
  box-shadow: 0 0 0 3px var(--claw-glow);
}

.search-box button {
  position: absolute;
  right: var(--sp-sm);
  top: 50%;
  transform: translateY(-50%);
  padding: var(--sp-sm);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--ease-fast);
}

.search-box button:hover {
  color: var(--claw-coral);
}

/* ============================================
   CARD LIST LAYOUT (Alternative to Grid)
   ============================================ */
.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.card-list-item {
  display: flex;
  gap: var(--sp-lg);
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  transition: border-color var(--ease-base), box-shadow var(--ease-base);
}

.card-list-item:hover {
  border-color: var(--glass-border-hover);
  box-shadow: var(--shadow-sm);
}

.card-list-item-image {
  flex-shrink: 0;
  width: 160px;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius-md);
  overflow: hidden;
}

.card-list-item-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-list-item-body {
  flex: 1;
  min-width: 0;
}

.card-list-item-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.card-list-item-body h3 a {
  color: var(--text-primary);
}

.card-list-item-body h3 a:hover {
  color: var(--claw-coral);
}

.card-list-item-body p {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ============================================
   FAQ / ACCORDION
   ============================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
}

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

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--sp-lg);
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
  transition: background var(--ease-fast);
}

.faq-question:hover {
  background: var(--glass-white);
}

.faq-question .icon-toggle {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--claw-coral);
  transition: transform var(--ease-base);
}

.faq-item.active .faq-question .icon-toggle {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 var(--sp-lg) var(--sp-lg);
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.8;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

/* ============================================
   CTA / BANNER SECTION
   ============================================ */
.cta-section {
  position: relative;
  padding: var(--sp-4xl) 0;
  text-align: center;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.08) 0%, rgba(20, 184, 166, 0.06) 100%);
  z-index: 0;
}

.cta-section .container {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: var(--sp-md);
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: var(--sp-2xl);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   COMPARISON TABLE
   ============================================ */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--sp-xl) 0;
  font-size: 0.92rem;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.comparison-table th {
  background: var(--ocean-mid);
  padding: var(--sp-md) var(--sp-lg);
  font-weight: 700;
  text-align: left;
  border-bottom: 2px solid var(--claw-coral);
  color: var(--text-primary);
  position: sticky;
  top: var(--header-height);
  z-index: 10;
}

.comparison-table td {
  padding: var(--sp-md) var(--sp-lg);
  border-bottom: 1px solid var(--glass-border);
  color: var(--text-secondary);
}

.comparison-table tr:hover td {
  background: var(--glass-white);
}

.comparison-table .check {
  color: var(--teal-mid);
  font-weight: 700;
}

.comparison-table .cross {
  color: var(--text-muted);
}

/* ============================================
   STEP / PROCESS FLOW
   ============================================ */
.steps {
  display: flex;
  flex-direction: column;
  gap: var(--sp-xl);
  position: relative;
  padding-left: var(--sp-3xl);
}

.steps::before {
  content: '';
  position: absolute;
  left: 17px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--claw-coral), var(--teal-mid));
  opacity: 0.3;
}

.step {
  position: relative;
}

.step-number {
  position: absolute;
  left: calc(-1 * var(--sp-3xl));
  top: 0;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--claw-red), var(--claw-coral));
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 800;
  z-index: 1;
}

.step h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--sp-sm);
}

.step p {
  color: var(--text-secondary);
  font-size: 0.92rem;
  line-height: 1.75;
}

/* ============================================
   TESTIMONIAL / REVIEW CARDS
   ============================================ */
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: var(--sp-2xl);
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: var(--sp-md);
  left: var(--sp-lg);
  font-size: 4rem;
  color: var(--claw-coral);
  opacity: 0.2;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: var(--sp-lg);
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.testimonial-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-name {
  font-weight: 700;
  font-size: 0.92rem;
}

.testimonial-role {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ============================================
   SCROLL TO TOP BUTTON
   ============================================ */
.scroll-to-top {
  position: fixed;
  bottom: var(--sp-xl);
  right: var(--sp-xl);
  width: 44px;
  height: 44px;
  background: var(--claw-coral);
  color: #ffffff;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 900;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity var(--ease-base), transform var(--ease-base), visibility var(--ease-base), background var(--ease-fast);
  box-shadow: var(--shadow-claw);
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  background: var(--claw-red);
  transform: translateY(-3px);
}

/* ============================================
   LOADING / SKELETON
   ============================================ */
.skeleton {
  background: linear-gradient(90deg, var(--glass-white) 25%, var(--glass-white-hover) 50%, var(--glass-white) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.8s infinite;
  border-radius: var(--radius-sm);
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE: Tablet (max-width: 1024px)
   ============================================ */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 260px;
  }

  .page-layout > .container {
    grid-template-columns: 1fr var(--sidebar-width);
    gap: var(--sp-xl);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-xl);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ticker-wrapper {
    gap: var(--sp-xl);
  }

  .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
  }
}

/* ============================================
   RESPONSIVE: Mobile (max-width: 768px)
   ============================================ */
@media (max-width: 768px) {
  .nav-links {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem);
  }

  .hero-subtitle {
    font-size: 0.95rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 320px;
    justify-content: center;
  }

  .page-layout > .container {
    grid-template-columns: 1fr;
  }

  .page-layout {
    padding-top: calc(var(--header-height) + var(--sp-lg));
  }

  .sidebar {
    order: 2;
  }

  .toc-widget {
    position: static;
  }

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

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

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-xl);
  }

  .footer-brand {
    max-width: 100%;
  }

  .ticker-wrapper {
    gap: var(--sp-lg);
  }

  .ticker-item {
    min-width: 100px;
  }

  .ticker-value {
    font-size: 1.6rem;
  }

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

  .section-title {
    font-size: 1.6rem;
  }

  .card-list-item {
    flex-direction: column;
  }

  .card-list-item-image {
    width: 100%;
  }

  .steps {
    padding-left: var(--sp-2xl);
  }

  .steps::before {
    left: 13px;
  }

  .step-number {
    width: 28px;
    height: 28px;
    font-size: 0.75rem;
    left: calc(-1 * var(--sp-2xl));
  }

  .article-content h2 {
    font-size: 1.4rem;
  }

  .article-content h3 {
    font-size: 1.15rem;
  }

  .comparison-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
  }

  .footer-mandatory {
    flex-direction: column;
    align-items: center;
    gap: var(--sp-md);
  }

  .pagination {
    flex-wrap: wrap;
  }
}

/* ============================================
   RESPONSIVE: Small Mobile (max-width: 480px)
   ============================================ */
@media (max-width: 480px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 var(--sp-md);
  }

  .hero {
    min-height: 60vh;
  }

  .hero-content {
    padding: var(--sp-xl) var(--sp-md);
  }

  .hero-title {
    font-size: 1.7rem;
  }

  .hero-badge {
    font-size: 0.72rem;
    padding: var(--sp-xs) var(--sp-sm);
  }

  .feature-card {
    padding: var(--sp-lg);
  }

  .news-card-body {
    padding: var(--sp-md);
  }

  .sidebar-widget {
    padding: var(--sp-md);
  }

  .page-header h1 {
    font-size: 1.5rem;
  }

  .article-content {
    font-size: 0.95rem;
  }

  .article-content h2 {
    font-size: 1.25rem;
  }

  .article-content h3 {
    font-size: 1.05rem;
  }

  .ticker-wrapper {
    flex-direction: column;
    gap: var(--sp-md);
  }

  .ticker-item {
    flex-direction: row;
    gap: var(--sp-md);
    width: 100%;
    justify-content: center;
  }

  .footer-related-sites {
    justify-content: center;
  }

  .cta-section h2 {
    font-size: 1.5rem;
  }

  .testimonial-card {
    padding: var(--sp-lg);
  }
}

/* ============================================
   PRINT STYLES
   ============================================ */
@media print {
  .header,
  .mobile-menu-overlay,
  .scroll-to-top,
  .sidebar,
  .footer,
  .stats-ticker,
  .cta-section,
  .amazon-banner,
  .ad-banner {
    display: none !important;
  }

  body {
    background: #ffffff;
    color: #000000;
    font-size: 12pt;
  }

  .page-layout > .container {
    grid-template-columns: 1fr;
  }

  .page-layout {
    padding-top: 0;
  }

  .article-content a {
    color: #000000;
    text-decoration: underline;
  }

  .article-content a::after {
    content: ' (' attr(href) ')';
    font-size: 0.8em;
    color: #555;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
:focus-visible {
  outline: 2px solid var(--claw-coral);
  outline-offset: 2px;
}

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

/* Skip to content link */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-md);
  padding: var(--sp-sm) var(--sp-lg);
  background: var(--claw-coral);
  color: #ffffff;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  z-index: 9999;
  transition: top var(--ease-fast);
}

.skip-link:focus {
  top: 0;
  color: #ffffff;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-fade-in {
    opacity: 1;
    transform: none;
  }
}

/* Ad banner containers */
.inline-ad {
  margin: 1.5rem 0;
  text-align: center;
}
.inline-ad.main-banner {
  margin: 2rem 0;
  text-align: center;
}
.inline-ad.main-banner img {
  max-width: 100%;
  height: auto;
}
.sidebar-amazon-top,
.sidebar-sitenavi-ad,
.sidebar-ad-slot {
  text-align: center;
  padding: 1rem;
}
.sidebar-amazon-top img,
.sidebar-sitenavi-ad img,
.sidebar-ad-slot img {
  max-width: 100%;
  height: auto;
}
