/* ============================================================
   DSOF MCP Server — Executive Landing Page
   Corporate Light Theme (EY Branding)
   ============================================================ */

/* ---------- CSS Variables ---------- */
:root {
  --ey-yellow: #FFE600;
  --ey-yellow-hover: #E6CF00;
  --ey-black: #2E2E38;
  --ey-dark-gray: #464650;
  --ey-mid-gray: #747480;
  --ey-light-gray: #C4C4CD;
  --ey-off-white: #F6F6FA;
  --ey-white: #FFFFFF;

  --accent-blue: #188CE5;
  --accent-green: #168736;
  --accent-orange: #D85604;
  --accent-purple: #6D2077;
  --accent-red: #C4122F;

  --text-primary: #2E2E38;
  --text-secondary: #464650;
  --text-muted: #747480;
  --text-on-dark: #FFFFFF;
  --text-on-yellow: #2E2E38;

  --bg-body: #F6F6FA;
  --bg-white: #FFFFFF;
  --bg-hero: linear-gradient(135deg, #2E2E38 0%, #464650 100%);
  --bg-stats: #FFE600;

  --shadow-sm: 0 1px 3px rgba(46,46,56,0.08);
  --shadow-md: 0 4px 12px rgba(46,46,56,0.10);
  --shadow-lg: 0 8px 30px rgba(46,46,56,0.12);

  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --font-main: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Cascadia Code', 'Fira Code', 'Consolas', monospace;

  --nav-height: 64px;
  --section-spacing: 100px;
  --container-width: 1200px;
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-main);
  color: var(--text-primary);
  background: var(--bg-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--accent-blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--ey-black); }
ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Section ---------- */
.section {
  padding: var(--section-spacing) 0;
  border-bottom: 1px solid rgba(46,46,56,0.08);
}
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ey-black);
  text-align: center;
  margin-bottom: 12px;
}
.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  text-align: center;
  margin-bottom: 48px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(46,46,56,0.08);
  z-index: 1000;
  display: flex;
  align-items: center;
}
.nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.nav-brand img {
  width: 36px;
  height: 36px;
}
.nav-brand span {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ey-black);
}
.nav-links {
  display: flex;
  gap: 8px;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all .2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: var(--ey-yellow);
  color: var(--ey-black);
}
.nav-hamburger {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px 8px;
  color: var(--ey-black);
}

/* ---------- Hero ---------- */
.hero {
  background: var(--bg-hero);
  padding: 140px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 30% 40%, rgba(255,230,0,0.08) 0%, transparent 50%),
              radial-gradient(circle at 70% 60%, rgba(24,140,229,0.06) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(255,230,0,0.15);
  color: var(--ey-yellow);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 0.5px;
}
.hero h1 {
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--text-on-dark);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero h1 .highlight {
  color: var(--ey-yellow);
}
.hero-description {
  font-size: 1.2rem;
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin: 0 auto 48px;
  line-height: 1.7;
}
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ey-yellow);
  color: var(--ey-black);
  padding: 14px 32px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 1rem;
  transition: all .2s;
  text-decoration: none;
}
.hero-cta:hover {
  background: var(--ey-yellow-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255,230,0,0.25);
  color: var(--ey-black);
}

/* Hero Stats */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 900px;
  margin: 60px auto 0;
}
.stat-card {
  background: rgba(255,255,255,0.07);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  padding: 28px 16px;
  text-align: center;
  transition: transform .3s, background .3s;
}
.stat-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-4px);
}
.stat-number {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--ey-yellow);
  display: block;
}
.stat-label {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  margin-top: 4px;
}

/* ---------- S2: What is MCP — Infographic ---------- */
.infographic-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  padding: 40px 0;
}
.flow-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 140px;
  position: relative;
}
.flow-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 12px;
  box-shadow: var(--shadow-md);
  transition: transform .3s;
}
.flow-node:hover .flow-icon { transform: scale(1.08); }
.flow-icon.developer { background: #E8F4FD; color: var(--accent-blue); }
.flow-icon.ai        { background: #F3E8F9; color: var(--accent-purple); }
.flow-icon.dsof      { background: #FFF9D6; color: var(--ey-black); border: 2px solid var(--ey-yellow); }
.flow-icon.cloud     { background: #E8F5E9; color: var(--accent-green); }

.flow-label {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ey-black);
  margin-bottom: 4px;
}
.flow-sublabel {
  font-size: 0.8rem;
  color: var(--text-secondary);
  max-width: 140px;
}

/* Arrow between flow nodes */
.flow-arrow {
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
}
.flow-arrow-line {
  width: 60px;
  height: 2px;
  background: var(--ey-light-gray);
  position: relative;
}
.flow-arrow-line::after {
  content: '';
  position: absolute;
  right: -6px;
  top: -4px;
  width: 0;
  height: 0;
  border-left: 8px solid var(--ey-light-gray);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}
.flow-arrow .dot {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ey-yellow);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  animation: travel-dot 2s ease-in-out infinite;
}
@keyframes travel-dot {
  0%   { left: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { left: calc(100% - 6px); opacity: 0; }
}

.mcp-explainer {
  max-width: 700px;
  margin: 32px auto 0;
  text-align: center;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* ---------- S3: Mind Map ---------- */
.mindmap {
  position: relative;
  width: 100%;
  max-width: 800px;
  height: 480px;
  margin: 0 auto;
}
.mindmap-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: var(--ey-black);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-weight: 700;
  font-size: 0.85rem;
  line-height: 1.4;
  z-index: 10;
  box-shadow: var(--shadow-lg), 0 0 0 4px var(--ey-yellow);
}
.mindmap-center .mm-logo {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.mindmap-branch {
  position: absolute;
  z-index: 5;
}
.mm-node {
  width: 150px;
  padding: 16px 12px;
  border-radius: var(--radius-md);
  text-align: center;
  cursor: pointer;
  transition: all .3s;
  background: var(--bg-white);
  border: 2px solid var(--ey-dark-gray);
  box-shadow: var(--shadow-md);
}
.mm-node:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
}
.mm-node.active {
  border-color: var(--ey-yellow);
  box-shadow: var(--shadow-md), 0 0 0 3px rgba(255,230,0,0.25);
}
.mm-node-icon {
  font-size: 1.6rem;
  margin-bottom: 6px;
}
.mm-node-label {
  font-weight: 700;
  font-size: 0.8rem;
  color: var(--ey-black);
  line-height: 1.3;
}

/* Mind map connector lines (SVG-based) */
.mindmap-lines {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}
.mindmap-lines line {
  stroke: var(--ey-dark-gray);
  stroke-width: 2;
  stroke-dasharray: 6 4;
}

/* Mind map tooltip */
.mm-tooltip {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--ey-light-gray);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  z-index: 20;
  width: 280px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}
.mm-tooltip.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.mm-tooltip h4 {
  font-size: 0.95rem;
  color: var(--ey-black);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ey-yellow);
}
.mm-tooltip ul {
  list-style: none;
  padding: 0;
}
.mm-tooltip li {
  padding: 5px 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.mm-tooltip li::before {
  content: '▸';
  color: var(--ey-yellow);
  font-weight: bold;
}

/* Branch positions */
.branch-top    { top: 20px;  left: 50%; transform: translateX(-50%); }
.branch-right  { top: 50%;   right: 20px; transform: translateY(-50%); }
.branch-bottom { bottom: 20px; left: 50%; transform: translateX(-50%); }
.branch-left   { top: 50%;   left: 20px; transform: translateY(-50%); }

/* ---------- S4: Flip Cards ---------- */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.flip-card {
  perspective: 1000px;
  height: 280px;
  cursor: pointer;
}
.flip-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.flip-card.flipped .flip-card-inner {
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
}
.flip-card-front,
.flip-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--radius-md);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
}
.flip-card-front {
  background: var(--bg-white);
  border: 2px solid rgba(46,46,56,0.08);
  box-shadow: var(--shadow-md);
  transition: box-shadow .3s, border-color .3s;
}
.flip-card:hover .flip-card-front {
  box-shadow: var(--shadow-lg);
  border-color: var(--ey-yellow);
}
.flip-card-back {
  background: var(--ey-black);
  color: var(--text-on-dark);
  transform: rotateY(180deg);
  -webkit-transform: rotateY(180deg);
  overflow-y: auto;
  border: 2px solid var(--ey-yellow);
}
.fc-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.fc-icon.onboarding  { background: #E8F4FD; color: var(--accent-blue); }
.fc-icon.knowledge   { background: #F3E8F9; color: var(--accent-purple); }
.fc-icon.operations  { background: #FFF3E0; color: var(--accent-orange); }
.fc-icon.intelligence { background: #E8F5E9; color: var(--accent-green); }

.fc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ey-black);
  margin-bottom: 8px;
}
.fc-description {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.fc-category {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 12px;
  display: inline-block;
  margin-top: 12px;
  width: fit-content;
}
.fc-category.onboarding  { background: #E8F4FD; color: var(--accent-blue); }
.fc-category.knowledge   { background: #F3E8F9; color: var(--accent-purple); }
.fc-category.operations  { background: #FFF3E0; color: var(--accent-orange); }
.fc-category.intelligence { background: #E8F5E9; color: var(--accent-green); }

.fc-back-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--ey-yellow);
  margin-bottom: 12px;
}
.fc-back-section {
  margin-bottom: 12px;
}
.fc-back-section strong {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.5);
  display: block;
  margin-bottom: 4px;
}
.fc-back-section span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.85);
  line-height: 1.5;
}
.fc-back-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: rgba(255,230,0,0.7);
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.1);
}
.fc-flip-hint {
  font-size: 0.7rem;
  color: var(--text-muted);
  position: absolute;
  bottom: 12px;
  right: 16px;
  opacity: 0.6;
}

/* ---------- S5: Workflows ---------- */
.workflows-list {
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.workflow-item {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(46,46,56,0.08);
  border-left: 4px solid var(--ey-yellow);
}
.workflow-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.workflow-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ey-yellow);
  color: var(--ey-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.workflow-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ey-black);
}

.workflow-steps {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}
.wf-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
  position: relative;
}
.wf-step-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 2px solid var(--ey-light-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 10px;
  transition: all .3s;
}
.wf-step:hover .wf-step-circle {
  border-color: var(--ey-yellow);
  background: #FFF9D6;
}
.wf-step-label {
  font-weight: 600;
  font-size: 0.82rem;
  color: var(--ey-black);
}
.wf-step-tool {
  font-size: 0.72rem;
  color: var(--accent-blue);
  font-weight: 600;
  margin-top: 2px;
}
.wf-arrow {
  display: flex;
  align-items: center;
  padding: 0 6px;
  margin-bottom: 30px;
}
.wf-arrow-line {
  width: 40px;
  height: 2px;
  background: var(--ey-light-gray);
  position: relative;
}
.wf-arrow-line::after {
  content: '';
  position: absolute;
  right: -5px;
  top: -4px;
  border-left: 7px solid var(--ey-light-gray);
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
}

/* ---------- S6: Architecture ---------- */
.arch-layers {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.arch-layer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 24px 40px;
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 700px;
  position: relative;
}
.arch-layer.ide       { background: #E8F4FD; border: 1px solid #B3D9F2; }
.arch-layer.assistant { background: #F3E8F9; border: 1px solid #D4B3E8; }
.arch-layer.server    { background: #FFF9D6; border: 2px solid var(--ey-yellow); }
.arch-layer.cloud     { background: #E8F5E9; border: 1px solid #B3D9BB; }

.arch-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ey-black);
}
.arch-item-icon {
  font-size: 1.4rem;
}
.arch-label {
  position: absolute;
  left: -100px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  width: 80px;
  text-align: right;
}
.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 36px;
  position: relative;
}
.arch-connector-line {
  width: 2px;
  height: 100%;
  background: var(--ey-light-gray);
  position: relative;
}
.arch-connector .dot-v {
  position: absolute;
  width: 6px;
  height: 6px;
  background: var(--ey-yellow);
  border-radius: 50%;
  left: 50%;
  transform: translateX(-50%);
  animation: travel-dot-v 2s ease-in-out infinite;
}
@keyframes travel-dot-v {
  0%   { top: 0; opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { top: calc(100% - 6px); opacity: 0; }
}

/* ---------- S7: Roles ---------- */
.roles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.role-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(46,46,56,0.08);
  border-top: 4px solid var(--ey-yellow);
  transition: transform .3s, box-shadow .3s;
}
.role-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.role-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}
.role-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ey-black);
  margin-bottom: 16px;
}
.role-card ul {
  list-style: none;
}
.role-card li {
  padding: 6px 0;
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.role-card li::before {
  content: '✓';
  color: var(--accent-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- S8: Stats Banner ---------- */
.stats-banner {
  background: var(--bg-stats);
  padding: 60px 0;
}
.stats-banner-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  text-align: center;
}
.sb-item-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--ey-black);
}
.sb-item-label {
  font-size: 0.9rem;
  color: var(--ey-dark-gray);
  margin-top: 4px;
}

/* ---------- S9: Getting Started ---------- */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.step-card {
  background: var(--bg-white);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: center;
  box-shadow: var(--shadow-md);
  border: 2px solid rgba(46,46,56,0.08);
  transition: transform .3s, border-color .3s;
}
.step-card:hover { transform: translateY(-4px); border-color: var(--ey-yellow); }
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--ey-yellow);
  color: var(--ey-black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.2rem;
  margin: 0 auto 16px;
}
.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ey-black);
  margin-bottom: 8px;
}
.step-text {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.step-cmd {
  display: inline-block;
  margin-top: 12px;
  background: var(--ey-black);
  color: var(--ey-yellow);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

/* ---------- S10: Footer ---------- */
.footer {
  background: var(--ey-black);
  color: rgba(255,255,255,0.6);
  padding: 40px 0;
  text-align: center;
}
.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand img { width: 28px; height: 28px; }
.footer-brand span { color: #fff; font-weight: 700; font-size: 0.95rem; }
.footer-links {
  display: flex;
  gap: 24px;
}
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: color .2s;
}
.footer-links a:hover { color: var(--ey-yellow); }
.footer-copy {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: none;
}
/* Preserve 3D context for grids containing flip cards */
.tools-grid.reveal {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}
.tools-grid.reveal.visible {
  transform-style: preserve-3d;
  -webkit-transform-style: preserve-3d;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero h1 { font-size: 2.6rem; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); max-width: 500px; }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .roles-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-banner-grid { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .mindmap { height: 420px; }
  .arch-label { display: none; }
}

@media (max-width: 768px) {
  :root { --section-spacing: 64px; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-height); right: 0; background: var(--bg-white); box-shadow: var(--shadow-lg); border-radius: 0 0 var(--radius-md) var(--radius-md); padding: 16px; min-width: 200px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: block; }

  .hero { padding: 120px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-description { font-size: 1rem; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 16px; }

  .infographic-flow { flex-direction: column; gap: 0; }
  .flow-arrow { transform: rotate(90deg); padding: 8px 0; }

  .mindmap { height: auto; min-height: 600px; }
  .mindmap-center { position: relative; top: 0; left: 0; transform: none; margin: 0 auto 24px; width: 130px; height: 130px; }
  .mindmap-branch { position: relative; top: auto !important; left: auto !important; right: auto !important; bottom: auto !important; transform: none !important; }
  .mindmap { display: flex; flex-direction: column; align-items: center; gap: 16px; }
  .mindmap-lines { display: none; }

  .tools-grid { grid-template-columns: 1fr; }
  .flip-card { height: 280px; }

  .workflow-steps { flex-direction: column; gap: 0; }
  .wf-arrow { transform: rotate(90deg); margin-bottom: 0; padding: 8px 0; }

  .arch-layer { flex-wrap: wrap; padding: 16px; gap: 12px; }

  .roles-grid { grid-template-columns: 1fr; }
  .stats-banner-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .hero h1 { font-size: 1.7rem; }
  .hero-stats { grid-template-columns: 1fr; max-width: 200px; }
  .stats-banner-grid { grid-template-columns: 1fr; }
  .section-title { font-size: 1.6rem; }
}
