/* ============================================
   SmartFlow - HR SaaS Corporate Site
   ============================================ */

/* --- CSS Variables --- */
:root {
  --primary: #3B82F6;
  --primary-dark: #2563EB;
  --primary-light: #DBEAFE;
  --accent: #DBEAFE;
  --bg: #FFFFFF;
  --bg-alt: #F9FAFB;
  --bg-hero: #EFF6FF;
  --text: #1F2937;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.1);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --text-hero: clamp(36px, 5vw, 56px);
  --text-h2: clamp(28px, 3.5vw, 40px);
  --text-h3: clamp(20px, 2.5vw, 24px);
  --text-body: 16px;
  --text-small: 14px;
  --text-caption: 12px;
  --space-section: clamp(80px, 10vw, 120px);
  --space-group: clamp(40px, 5vw, 64px);
  --space-element: clamp(16px, 2vw, 24px);
  --space-tight: 8px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Noto Sans JP', sans-serif;
  color: var(--text);
  line-height: 1.7;
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  animation: fadeIn 0.5s ease-out;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button { cursor: pointer; font-family: inherit; border: none; }
ul, ol { list-style: none; }

/* --- Container --- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 80px);
}

/* --- Scroll Animation --- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.visible .stagger-item:nth-child(1) { transition-delay: 0s; }
.animate-on-scroll.visible .stagger-item:nth-child(2) { transition-delay: 0.1s; }
.animate-on-scroll.visible .stagger-item:nth-child(3) { transition-delay: 0.15s; }
.animate-on-scroll.visible .stagger-item:nth-child(4) { transition-delay: 0.2s; }
.animate-on-scroll.visible .stagger-item:nth-child(5) { transition-delay: 0.25s; }
.animate-on-scroll.visible .stagger-item:nth-child(6) { transition-delay: 0.3s; }

/* --- Buttons --- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: var(--primary);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(59,130,246,0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59,130,246,0.4);
  background: var(--primary-dark);
}
.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: transparent;
  color: var(--primary);
  font-size: 15px;
  font-weight: 600;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-secondary:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Section Header --- */
.section-header {
  text-align: center;
  margin-bottom: var(--space-group);
}
.section-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.3;
  color: var(--text);
  letter-spacing: -0.02em;
}
.section-subtitle {
  font-size: var(--text-body);
  color: var(--text-muted);
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.8;
}

/* ============================================
   HEADER
   ============================================ */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s, box-shadow 0.3s, backdrop-filter 0.3s;
  padding: 0 clamp(20px, 5vw, 80px);
}
header.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-size: 22px;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
}
.logo span {
  color: var(--text);
}
.desktop-nav {
  display: flex;
  align-items: center;
  gap: 32px;
}
.desktop-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  transition: color 0.2s;
  position: relative;
}
.desktop-nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.2s;
}
.desktop-nav a:hover { color: var(--primary); }
.desktop-nav a:hover::after { width: 100%; }
.header-cta .btn-primary {
  padding: 10px 24px;
  font-size: 14px;
}
.hamburger {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.hamburger svg { display: block; }

/* --- Mobile Menu --- */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}
.overlay.open { opacity: 1; pointer-events: auto; }
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 80%;
  max-width: 360px;
  height: 100vh;
  background: #fff;
  transition: right 0.3s ease;
  z-index: 1001;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.mobile-menu.open { right: 0; }
.mobile-menu-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}
.mobile-menu-close {
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
}
.mobile-menu nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu nav a {
  display: block;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.mobile-menu .btn-primary {
  margin-top: 24px;
  justify-content: center;
}

/* ============================================
   HERO
   ============================================ */
.hero {
  padding-top: 72px;
  background: linear-gradient(180deg, var(--bg-hero) 0%, var(--bg) 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
}
.hero-content {
  flex: 1;
  min-width: 0;
}
.hero-content h1 {
  font-size: var(--text-hero);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 32px;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-image {
  flex: 1;
  min-width: 0;
}
.hero-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* ============================================
   NUMBERS
   ============================================ */
.numbers {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.numbers-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-element);
}
.number-item {
  text-align: center;
  padding: 32px 24px;
}
.number-value {
  font-size: clamp(40px, 5vw, 56px);
  font-weight: 700;
  color: var(--primary);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.number-label {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: 8px;
}

/* ============================================
   FEATURES
   ============================================ */
.features {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.feature-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 12px;
  line-height: 1.3;
}
.feature-card p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   FLOW
   ============================================ */
.flow {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.flow-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
}
.flow-steps::before {
  content: '';
  position: absolute;
  top: 40px;
  left: 15%;
  right: 15%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.flow-step {
  text-align: center;
  position: relative;
  z-index: 1;
}
.flow-step-number {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(59,130,246,0.3);
}
.flow-step h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.flow-step p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}

/* ============================================
   CASE (Case Studies)
   ============================================ */
.cases {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.cases-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  background: var(--bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.case-card-image {
  aspect-ratio: 4/3;
  overflow: hidden;
}
.case-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.case-card:hover .case-card-image img {
  transform: scale(1.05);
}
.case-card-body {
  padding: 24px;
}
.case-tag {
  display: inline-block;
  font-size: var(--text-caption);
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-light);
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.case-card-body h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  line-height: 1.4;
}
.case-card-body p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}
.case-result {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.case-result-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}
.case-result-label {
  font-size: var(--text-small);
  color: var(--text-muted);
}

/* ============================================
   PRICE
   ============================================ */
.pricing {
  padding: var(--space-section) 0;
  background: var(--bg);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}
.pricing-card {
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 2px solid var(--border);
  transition: all 0.3s ease;
  background: var(--bg);
}
.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.pricing-card.featured {
  border-color: var(--primary);
  position: relative;
}
.pricing-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: var(--text-caption);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  white-space: nowrap;
}
.pricing-plan {
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
}
.pricing-price {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.pricing-price span {
  font-size: var(--text-small);
  font-weight: 400;
  color: var(--text-muted);
}
.pricing-description {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: 8px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.pricing-features {
  margin-bottom: 24px;
}
.pricing-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-small);
  padding: 8px 0;
}
.pricing-features li svg {
  flex-shrink: 0;
  color: var(--primary);
}
.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
  justify-content: center;
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  padding: var(--space-section) 0;
  background: var(--bg-alt);
}
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 0;
  background: none;
  border: none;
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  line-height: 1.5;
  gap: 16px;
}
.faq-question:hover { color: var(--primary); }
.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  transition: transform 0.3s;
}
.faq-item.open .faq-icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}
.faq-answer p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.8;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
  padding: var(--space-section) 0;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  text-align: center;
}
.cta-section h2 {
  font-size: var(--text-h2);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}
.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.85);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}
.cta-section .btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 40px;
  background: #fff;
  color: var(--primary);
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}
.cta-section .btn-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ============================================
   FOOTER
   ============================================ */
footer {
  background: #111827;
  color: #D1D5DB;
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 48px;
}
.footer-brand .logo {
  color: #fff;
  margin-bottom: 16px;
}
.footer-brand .logo span {
  color: #9CA3AF;
}
.footer-brand p {
  font-size: var(--text-small);
  color: #9CA3AF;
  line-height: 1.8;
}
.footer-column h4 {
  font-size: var(--text-small);
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}
.footer-column a {
  display: block;
  font-size: var(--text-small);
  color: #9CA3AF;
  padding: 6px 0;
  transition: color 0.2s;
}
.footer-column a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  font-size: var(--text-caption);
  color: #6B7280;
}
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  font-size: var(--text-caption);
  color: #6B7280;
  transition: color 0.2s;
}
.footer-links a:hover { color: #9CA3AF; }

/* --- Back to Top --- */
.back-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  box-shadow: 0 4px 12px rgba(59,130,246,0.3);
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.back-to-top.show { opacity: 1; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); box-shadow: 0 6px 20px rgba(59,130,246,0.4); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .desktop-nav,
  .header-cta { display: none; }
  .hamburger { display: block; }

  .hero-inner {
    flex-direction: column;
    text-align: center;
  }
  .hero-buttons { justify-content: center; }
  .hero { min-height: auto; padding-top: 100px; padding-bottom: 60px; }

  .numbers-grid { grid-template-columns: 1fr; gap: 0; }
  .number-item { padding: 24px; }
  .number-item + .number-item { border-top: 1px solid var(--border); }

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

  .flow-steps { grid-template-columns: 1fr; gap: 40px; }
  .flow-steps::before { display: none; }

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

  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 32px; }
  .hero-buttons { flex-direction: column; }
  .hero-buttons .btn-primary,
  .hero-buttons .btn-secondary { width: 100%; justify-content: center; }
}

/* ============================================
   PAGE-SPECIFIC STYLES (Multi-page)
   ============================================ */

/* --- Page Hero (Internal Pages) --- */
.page-hero {
  padding: 140px 0 80px;
  background: var(--bg-alt);
}
.page-hero .section-label { margin-bottom: 16px; }
.page-hero h1 {
  font-size: var(--text-h2);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.8;
}
.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-caption);
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--primary); }
.breadcrumb a:hover { text-decoration: underline; }

/* --- Features Detail --- */
.feature-detail-section {
  padding: var(--space-section) 0;
}
.feature-detail-section:nth-child(even) {
  background: var(--bg-alt);
}
.feature-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-detail-grid.reverse {
  direction: rtl;
}
.feature-detail-grid.reverse > * {
  direction: ltr;
}
.feature-detail-content h2 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}
.feature-detail-content p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 24px;
}
.feature-detail-list {
  list-style: none;
}
.feature-detail-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: var(--text-small);
  color: var(--text);
}
.feature-detail-list li svg {
  flex-shrink: 0;
  color: var(--primary);
  margin-top: 2px;
}
.feature-detail-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.feature-detail-num {
  font-size: 80px;
  font-weight: 700;
  color: var(--primary-light);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Inter', sans-serif;
}

/* --- Case Detail --- */
.case-detail-hero {
  position: relative;
  height: 400px;
  overflow: hidden;
}
.case-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.case-detail-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px clamp(20px, 5vw, 80px);
}
.case-detail-hero-overlay h1 {
  font-size: var(--text-h2);
  color: #fff;
  font-weight: 700;
  margin-bottom: 8px;
}
.case-detail-hero-overlay .case-tag {
  margin-bottom: 16px;
}
.case-meta-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 48px;
}
.case-meta-item {}
.case-meta-label {
  font-size: var(--text-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
  margin-bottom: 4px;
}
.case-meta-value {
  font-size: var(--text-body);
  font-weight: 600;
  color: var(--text);
}
.case-detail-content h2 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
  margin-top: 48px;
}
.case-detail-content p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.case-results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 48px 0;
}
.case-result-card {
  text-align: center;
  padding: 32px;
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
}
.case-result-card .result-value {
  font-size: clamp(36px, 4vw, 48px);
  font-weight: 700;
  color: var(--primary);
  line-height: 1.2;
}
.case-result-card .result-label {
  font-size: var(--text-small);
  color: var(--text-muted);
  margin-top: 8px;
}
.case-testimonial {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 48px 0;
  border-left: 4px solid var(--primary);
}
.case-testimonial blockquote {
  font-size: 18px;
  line-height: 1.8;
  color: var(--text);
  font-style: italic;
  margin-bottom: 16px;
}
.case-testimonial cite {
  font-size: var(--text-small);
  color: var(--text-muted);
  font-style: normal;
}
.case-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 24px;
  padding: 48px 0;
  border-top: 1px solid var(--border);
  margin-top: 48px;
}
.case-nav-item {
  display: block;
  text-decoration: none;
  color: var(--text);
}
.case-nav-item:hover { color: var(--primary); }
.case-nav-label {
  font-size: var(--text-caption);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 4px;
  display: block;
}
.case-nav-title {
  font-size: var(--text-body);
  font-weight: 600;
}
.case-nav-center {
  text-align: center;
}

/* --- About Page --- */
.about-vision {
  padding: var(--space-section) 0;
}
.vision-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.vision-image img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}
.vision-content h2 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
}
.vision-content p {
  font-size: var(--text-body);
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.about-stats {
  padding: 80px 0;
  background: var(--primary);
}
.about-stats .numbers-grid { gap: 0; }
.about-stats .number-value { color: #fff; }
.about-stats .number-label { color: rgba(255,255,255,0.7); }
.company-table {
  width: 100%;
  border-collapse: collapse;
}
.company-table tr {
  border-bottom: 1px solid var(--border);
}
.company-table th {
  text-align: left;
  padding: 16px 24px 16px 0;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  width: 160px;
  vertical-align: top;
}
.company-table td {
  padding: 16px 0;
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}
.security-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.security-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
}
.security-card .security-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: var(--primary);
}
.security-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.security-card p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.7;
}

/* --- Contact Page --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  padding: var(--space-section) 0;
}
.contact-form label {
  display: block;
  font-size: var(--text-small);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}
.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  font-size: var(--text-body);
  font-family: inherit;
  transition: border-color 0.2s;
  background: var(--bg);
  color: var(--text);
}
.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary);
}
.contact-form .form-group {
  margin-bottom: 24px;
}
.contact-form textarea {
  min-height: 120px;
  resize: vertical;
}
.contact-info-card {
  background: var(--bg-alt);
  border-radius: var(--radius-lg);
  padding: 40px;
}
.contact-info-card h3 {
  font-size: var(--text-h3);
  font-weight: 700;
  margin-bottom: 24px;
}
.contact-info-item {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .info-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--primary);
}
.contact-info-item .info-text h4 {
  font-size: var(--text-small);
  font-weight: 600;
  margin-bottom: 4px;
}
.contact-info-item .info-text p {
  font-size: var(--text-small);
  color: var(--text-muted);
  line-height: 1.6;
}

/* --- Desktop Nav Active --- */
.nav-link.active { color: var(--primary); font-weight: 600; }
.nav-link.active::after { width: 100%; }

/* --- Page-specific Responsive --- */
@media (max-width: 768px) {
  .page-hero { padding: 120px 0 60px; }
  .feature-detail-grid,
  .feature-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
    direction: ltr;
  }
  .vision-grid { grid-template-columns: 1fr; gap: 32px; }
  .case-meta-grid { grid-template-columns: repeat(2, 1fr); }
  .case-results-grid { grid-template-columns: 1fr; }
  .case-nav { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .security-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .case-meta-grid { grid-template-columns: 1fr; }
}
