/* ============================================
   STYLE.CSS — 主樣式
   鋸片維護管理系統提案網站
   ============================================ */

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

/* ---- CSS 變數 ---- */
:root {
  --color-primary: #1B365D;
  --color-primary-light: #2A4A7F;
  --color-primary-lighter: #3D5F99;
  --color-steel: #6B7B8D;
  --color-steel-light: #8A9AAB;
  --color-accent: #E8701A;
  --color-accent-light: #F5923D;
  --color-success: #2E7D32;
  --color-success-light: #4CAF50;
  --color-danger: #C62828;
  --color-danger-light: #EF5350;
  --color-warning: #D69E2E;

  --bg-white: #FFFFFF;
  --bg-card: #F8FAFC;
  --bg-section-alt: #F1F5F9;
  --text-primary: #1a1a2e;
  --text-secondary: #475569;
  --text-muted: #94A3B8;
  --text-on-dark: #FFFFFF;
  --text-on-dark-muted: #CBD5E1;

  --font-heading: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'Noto Sans TC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-sm: 0 1px 3px rgba(27, 54, 93, 0.08);
  --shadow-md: 0 4px 12px rgba(27, 54, 93, 0.1);
  --shadow-lg: 0 8px 30px rgba(27, 54, 93, 0.12);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  --nav-height: 64px;
  --section-max: 1100px;
}

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

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

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-primary);
  background: var(--bg-white);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-accent); }
ul, ol { list-style: none; }

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

h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
h4 { font-size: 1.1rem; }

p { margin-bottom: var(--space-md); }
p:last-child { margin-bottom: 0; }

strong { font-weight: 700; color: var(--text-primary); }

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

@media (max-width: 768px) {
  .container { padding: 0 var(--space-lg); }
}

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

.section-header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

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

.section--dark {
  background: var(--color-primary);
  color: var(--text-on-dark);
}

.section--dark h2,
.section--dark h3,
.section--dark h4 {
  color: var(--text-on-dark);
}

.section--dark .section-header p {
  color: var(--text-on-dark-muted);
}

/* ---- Nav ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: #E2E8F0;
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--color-primary);
}

.nav-logo svg {
  flex-shrink: 0;
}

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

.nav-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
  background: var(--bg-section-alt);
}

.nav-cta {
  background: var(--color-accent);
  color: white !important;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s, transform 0.2s;
}

.nav-cta:hover {
  background: var(--color-accent-light);
  transform: translateY(-1px);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
  aria-label: "選單";
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-hamburger.open span:nth-child(2) { opacity: 0; }
.nav-hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-links {
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-lg);
    gap: var(--space-sm);
    border-bottom: 1px solid #E2E8F0;
    box-shadow: var(--shadow-md);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s var(--ease-out), opacity 0.3s;
  }
  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: all;
  }
  .nav-link {
    padding: var(--space-sm) var(--space-md);
    font-size: 0.95rem;
    border-radius: var(--radius-md);
  }
  .nav-hamburger { display: flex; }
}

/* ---- Hero ---- */
#hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  background: var(--color-primary);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 60% 40%, rgba(232, 112, 26, 0.12) 0%, transparent 70%),
    radial-gradient(ellipse 60% 80% at 20% 80%, rgba(42, 74, 127, 0.5) 0%, transparent 60%);
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 60px 60px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--section-max);
  margin: 0 auto;
  padding: calc(var(--nav-height) + var(--space-3xl)) var(--space-xl) var(--space-3xl);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding-bottom: var(--space-2xl);
  }
}

.hero-content {
  color: var(--text-on-dark);
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  background: rgba(232, 112, 26, 0.15);
  border: 1px solid rgba(232, 112, 26, 0.4);
  color: #F5923D;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: var(--space-lg);
  letter-spacing: 0.5px;
}

.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 900;
  color: white;
  line-height: 1.15;
  margin-bottom: var(--space-lg);
  letter-spacing: -0.5px;
}

.hero-title span {
  color: var(--color-accent);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.15rem);
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-xl);
  max-width: 520px;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .hero-subtitle { margin: 0 auto var(--space-xl); }
}

.hero-stats {
  display: flex;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .hero-stats { justify-content: center; }
}

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

.hero-stat-value {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-accent);
  line-height: 1.1;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-on-dark-muted);
  margin-top: 2px;
}

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

@media (max-width: 900px) {
  .hero-actions { justify-content: center; }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.25s var(--ease-out);
  text-decoration: none;
  white-space: nowrap;
}

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

.btn-primary:hover {
  background: var(--color-accent-light);
  border-color: var(--color-accent-light);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232, 112, 26, 0.35);
}

.btn-outline {
  background: transparent;
  color: white;
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: white;
  color: white;
}

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

.btn-dark:hover {
  background: var(--color-primary-light);
  border-color: var(--color-primary-light);
  color: white;
  transform: translateY(-2px);
}

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

/* Hero visual mockup */
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-mockup {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  width: 100%;
  max-width: 380px;
  backdrop-filter: blur(10px);
}

.hero-mockup-header {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: var(--space-md);
}

.hero-mockup-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.hero-mockup-title {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 600;
  margin-left: auto;
}

.hero-mockup-blade {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-md);
}

.hero-mockup-icon {
  width: 56px;
  height: 56px;
  background: rgba(232, 112, 26, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-mockup-info h4 {
  font-size: 0.95rem;
  color: white;
  font-family: var(--font-mono);
  font-weight: 700;
}

.hero-mockup-info p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.6);
  margin: 0;
}

.hero-mockup-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(46, 125, 50, 0.25);
  color: #81C784;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  margin-top: 4px;
}

.hero-mockup-pulse {
  width: 6px;
  height: 6px;
  background: #81C784;
  border-radius: 50%;
  animation: pulse-dot 2s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero-mockup-progress {
  margin-bottom: var(--space-md);
}

.hero-mockup-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 6px;
}

.hero-mockup-progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  overflow: hidden;
}

.hero-mockup-progress-fill {
  height: 100%;
  width: 62.5%;
  background: linear-gradient(90deg, var(--color-success-light), var(--color-accent));
  border-radius: 3px;
}

.hero-mockup-rows {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.hero-mockup-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.78rem;
}

.hero-mockup-row-label {
  color: rgba(255,255,255,0.5);
}

.hero-mockup-row-value {
  font-family: var(--font-mono);
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ---- Section: Problem ---- */
.problem-intro {
  max-width: 720px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 900px) {
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .pain-grid { grid-template-columns: 1fr; }
}

.pain-card {
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  transition: box-shadow 0.3s, transform 0.3s;
}

.pain-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}

.pain-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: var(--space-xl);
  right: var(--space-xl);
  height: 3px;
  background: #FEE2E2;
  border-radius: 0 0 3px 3px;
}

.pain-icon {
  width: 44px;
  height: 44px;
  background: #FEF2F2;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  color: var(--color-danger);
}

.pain-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--text-primary);
}

.pain-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: var(--space-sm);
}

.pain-stat {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-danger);
  background: #FEF2F2;
  padding: 4px 10px;
  border-radius: 20px;
  display: inline-block;
}

.problem-calc {
  background: var(--bg-section-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin-top: var(--space-xl);
}

.problem-calc h3 {
  margin-bottom: var(--space-xl);
  color: var(--text-primary);
}

/* ---- Section: Solution ---- */
.solution-points {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .solution-points { grid-template-columns: 1fr; }
}

.solution-point {
  text-align: center;
  padding: var(--space-xl);
}

.solution-point-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--bg-section-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-md);
  color: var(--color-primary);
}

.solution-point h3 {
  font-size: 1.05rem;
  margin-bottom: var(--space-sm);
}

.solution-point p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.solution-flow {
  background: var(--bg-section-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
}

.flow-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-lg);
}

.flow-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}

.flow-step {
  background: white;
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
  white-space: nowrap;
}

.flow-arrow {
  color: var(--color-accent);
  font-weight: 700;
  font-size: 1.1rem;
}

.flow-loop {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
}

.flow-loop-line {
  flex: 1;
  max-width: 120px;
  height: 1px;
  background: var(--color-accent);
  opacity: 0.4;
  position: relative;
}

/* ---- Section: Blade Resume (Dark) ---- */
.blade-resume-section {
  position: relative;
  overflow: hidden;
}

.blade-resume-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 30% 50%, rgba(232, 112, 26, 0.08) 0%, transparent 70%);
}

.blade-resume-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

@media (max-width: 900px) {
  .blade-resume-layout {
    grid-template-columns: 1fr;
  }
}

.blade-resume-text {
  padding-top: var(--space-md);
}

.blade-resume-text h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.blade-resume-text p {
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-lg);
}

.blade-quote {
  background: rgba(255,255,255,0.07);
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: var(--space-lg);
  font-size: 1.05rem;
  font-style: italic;
  color: rgba(255,255,255,0.9);
  margin-top: var(--space-xl);
  line-height: 1.7;
}

.blade-scenarios {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.blade-scenario {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-md) var(--space-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--space-md);
}

.blade-scenario-icon {
  width: 36px;
  height: 36px;
  background: rgba(232, 112, 26, 0.2);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-accent);
}

.blade-scenario-text h4 {
  font-size: 0.95rem;
  color: white;
  margin-bottom: 4px;
}

.blade-scenario-text p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  margin: 0;
}

/* ---- Section: Market ---- */
.market-numbers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
  .market-numbers { grid-template-columns: 1fr; }
}

.market-number-card {
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.market-number-value {
  font-family: var(--font-mono);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: var(--space-xs);
}

.market-number-label {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.market-number-source {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ---- Section: Business ---- */
.business-intro {
  max-width: 680px;
  margin: 0 auto var(--space-2xl);
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
}

.logic-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 900px) {
  .logic-steps { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .logic-steps { grid-template-columns: 1fr; }
}

.logic-step {
  background: var(--bg-white);
  border: 1px solid #E2E8F0;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  text-align: center;
  position: relative;
}

.logic-step-num {
  width: 32px;
  height: 32px;
  background: var(--color-primary);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin: 0 auto var(--space-sm);
}

.logic-step h4 {
  font-size: 0.9rem;
  margin-bottom: var(--space-xs);
}

.logic-step p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.expert-quote {
  background: var(--bg-section-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-top: var(--space-2xl);
  position: relative;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.expert-quote::before {
  content: '"';
  position: absolute;
  top: -10px;
  left: var(--space-xl);
  font-size: 4rem;
  color: var(--color-primary);
  opacity: 0.15;
  font-family: Georgia, serif;
  line-height: 1;
}

.expert-quote p {
  font-size: 1.1rem;
  color: var(--text-primary);
  font-style: italic;
  line-height: 1.7;
  margin-bottom: var(--space-sm);
}

.expert-quote cite {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-style: normal;
}

/* ---- Section: Tech ---- */
.tech-roles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-2xl);
}

@media (max-width: 640px) {
  .tech-roles { grid-template-columns: 1fr; }
}

.tech-role {
  background: var(--bg-white);
  border: 2px solid #E2E8F0;
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.tech-role--ace {
  border-color: var(--color-primary);
}

.tech-role--you {
  border-color: var(--color-accent);
}

.tech-role-header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid #E2E8F0;
}

.tech-role-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

.tech-role--ace .tech-role-avatar { background: #E8EDF3; }
.tech-role--you .tech-role-avatar { background: #FFF3E0; }

.tech-role-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.tech-role-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  padding: var(--space-sm) 0;
  border-bottom: 1px solid #F1F5F9;
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.tech-role-list li:last-child { border-bottom: none; }

.tech-role-list li::before {
  content: '▸';
  color: var(--color-primary);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}

.tech-role--you .tech-role-list li::before {
  color: var(--color-accent);
}

.tech-note-noprog {
  text-align: center;
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: #FFF7ED;
  border-radius: var(--radius-md);
  border: 1px solid rgba(232, 112, 26, 0.3);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-accent);
}

/* ---- Section: Risks ---- */
.risk-alert {
  background: #FFF5F5;
  border: 2px solid var(--color-danger);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  margin-bottom: var(--space-2xl);
  display: flex;
  gap: var(--space-lg);
  align-items: flex-start;
}

.risk-alert-icon {
  width: 40px;
  height: 40px;
  background: #FFEBEE;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--color-danger);
}

.risk-alert-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-danger);
  margin-bottom: var(--space-sm);
}

.risk-alert p {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.risk-process {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-top: var(--space-lg);
  flex-wrap: wrap;
}

.risk-process-step {
  background: white;
  border: 1px solid #FECACA;
  border-radius: var(--radius-md);
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-danger);
  white-space: nowrap;
}

.risk-worst-best {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}

@media (max-width: 640px) {
  .risk-worst-best { grid-template-columns: 1fr; }
  .risk-alert { flex-direction: column; }
}

.risk-scenario {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.risk-scenario--worst {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}

.risk-scenario--best {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
}

.risk-scenario-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-sm);
}

.risk-scenario--worst .risk-scenario-label { color: var(--color-danger); }
.risk-scenario--best .risk-scenario-label { color: var(--color-success); }

.risk-scenario-text {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.5;
}

.risk-scenario--worst .risk-scenario-text { color: #B71C1C; }
.risk-scenario--best .risk-scenario-text { color: #1B5E20; }

/* ---- Section: Next Steps (Dark) ---- */
.next-steps-section {
  background: var(--color-primary);
  color: var(--text-on-dark);
}

.next-steps-intro {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.next-steps-intro h2 {
  color: white;
  margin-bottom: var(--space-md);
}

.next-steps-intro p {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  max-width: 600px;
  margin: 0 auto;
}

.next-steps-conclusion {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 700;
  color: white;
  padding: var(--space-lg);
  background: rgba(232, 112, 26, 0.15);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(232, 112, 26, 0.3);
  margin-bottom: var(--space-2xl);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.next-steps-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-bottom: var(--space-2xl);
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.next-step-item {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
}

.next-step-num {
  width: 40px;
  height: 40px;
  background: var(--color-accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1rem;
  flex-shrink: 0;
  font-family: var(--font-mono);
}

.next-step-content {
  flex: 1;
}

.next-step-action {
  font-weight: 700;
  color: white;
  margin-bottom: 2px;
}

.next-step-meta {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}

.next-step-who {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  text-align: right;
  white-space: nowrap;
}

.next-cta-block {
  text-align: center;
  padding: var(--space-xl);
}

.next-cta-tagline {
  font-size: 1.1rem;
  color: var(--text-on-dark-muted);
  margin-bottom: var(--space-sm);
}

.next-cta-big {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: white;
  margin-bottom: var(--space-xl);
  line-height: 1.4;
}

.next-cta-big span {
  color: var(--color-accent);
}

.next-tmts {
  margin-top: var(--space-xl);
  font-size: 0.82rem;
  color: rgba(255,255,255,0.35);
}

/* ---- Table (shared) ---- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid #E2E8F0;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.9rem;
}

thead th {
  background: var(--color-primary);
  color: white;
  font-weight: 600;
  padding: var(--space-md) var(--space-lg);
  text-align: left;
  white-space: nowrap;
}

thead th:first-child { border-radius: var(--radius-md) 0 0 0; }
thead th:last-child { border-radius: 0 var(--radius-md) 0 0; text-align: center; }

tbody td {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid #F1F5F9;
  vertical-align: middle;
}

tbody td:not(:first-child) { text-align: center; }

tbody tr:last-child td { border-bottom: none; }
tbody tr:last-child td:first-child { border-radius: 0 0 0 var(--radius-md); }
tbody tr:last-child td:last-child { border-radius: 0 0 var(--radius-md) 0; }

tbody tr:nth-child(even) { background: var(--bg-card); }
tbody tr:hover { background: #EFF6FF; }

.check { color: var(--color-success); font-weight: 700; font-size: 1rem; }
.cross { color: var(--color-danger); font-weight: 700; font-size: 1rem; }
.highlight-row { background: #F0FDF4 !important; }
.highlight-col { background: #F0FDF4; font-weight: 700; }

/* ---- Footer ---- */
footer {
  background: #0F1F38;
  color: var(--text-on-dark-muted);
  padding: var(--space-2xl) 0;
  text-align: center;
  font-size: 0.85rem;
}

footer strong {
  color: white;
  font-weight: 700;
}

footer p { margin-bottom: var(--space-xs); }
footer p:last-child { margin-bottom: 0; }

/* ---- Scroll Animations ---- */
.animate-fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s var(--ease-out), transform 0.6s var(--ease-out);
}

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

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

/* ---- Source note ---- */
.source-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: var(--space-xs);
}

.source-note::before {
  content: '* ';
}

/* ---- Utilities ---- */
.text-accent { color: var(--color-accent); }
.text-success { color: var(--color-success); }
.text-danger { color: var(--color-danger); }
.text-muted { color: var(--text-muted); }
.text-mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.font-heavy { font-weight: 900; }
.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-xl { margin-bottom: var(--space-xl); }
.text-center { text-align: center; }
