/* ── Unique styles for tech-highlights.html ── */
/* Shares :root variables, nav, btn, section-head, cta, footer from styles.css */

/* ── Hero (centered variant) ── */
.hero {
  padding: 90px 0 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  width: 600px;
  height: 600px;
  top: -200px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(246, 197, 104, 0.18), transparent 70%);
  pointer-events: none;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: rgba(220, 236, 229, 0.78);
  font-size: 13px;
  font-weight: 760;
  margin-bottom: 24px;
  animation: fadeUp 0.7s ease-out both;
}
.hero-badge .pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #58c69c;
  box-shadow: 0 0 0 4px rgba(88, 198, 156, 0.2);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(88, 198, 156, 0.2); }
  50% { box-shadow: 0 0 0 12px rgba(88, 198, 156, 0.05); }
}
.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.065em;
  max-width: 820px;
  margin: 0 auto;
  animation: fadeUp 0.7s 0.1s ease-out both;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, var(--accent), #5a9e7d);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-copy {
  margin: 26px auto 0;
  max-width: 620px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.8;
  animation: fadeUp 0.7s 0.2s ease-out both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ── Section overrides ── */
section { padding: 90px 0; }
.design-philosophy {
  background: rgba(255,255,255,0.35);
  border-block: 1px solid rgba(63,124,104,0.1);
}
.section-head {
  width: min(760px, 100%);
  margin-bottom: 48px;
}
.section-head.center { margin-inline: auto; text-align: center; }

/* ── Architecture diagram ── */
.arch-section {
  border-block: 1px solid rgba(63, 124, 104, 0.12);
  background: rgba(255, 255, 255, 0.42);
}
.arch-diagram {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 20px 0;
}
.arch-node {
  padding: 28px 36px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  z-index: 2;
}
.arch-node.client {
  background: linear-gradient(135deg, #fff, #f9faf7);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.arch-node.agent {
  background: linear-gradient(135deg, var(--accent-soft), #d4e8dc);
  border: 1px solid rgba(63, 124, 104, 0.2);
}
.arch-node.platform {
  background: linear-gradient(135deg, #fff8e7, #fef3d5);
  border: 1px solid rgba(246, 197, 104, 0.3);
}
.arch-node .node-icon { font-size: 36px; margin-bottom: 10px; }
.arch-node .node-title {
  font-weight: 780; font-size: 17px; letter-spacing: -0.02em; margin-bottom: 4px;
}
.arch-node .node-sub { color: var(--muted); font-size: 13px; line-height: 1.5; }
.arch-arrow {
  display: flex; align-items: center; padding: 2px 0;
  color: var(--accent); font-size: 28px; font-weight: 300; z-index: 1;
  transform: rotate(90deg);
  animation: arrowPulse 2.5s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.4; transform: rotate(90deg) translateX(0); }
  50% { opacity: 1; transform: rotate(90deg) translateX(6px); }
}
.arch-connector { flex-basis: 100%; height: 0; }

/* ── Tech cards ── */
.tech-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tech-card {
  padding: 32px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
  position: relative; overflow: hidden;
}
.tech-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--warm), var(--blue));
  opacity: 0; transition: opacity 0.35s ease;
}
.tech-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 48px rgba(34, 54, 47, 0.12);
  border-color: var(--accent);
}
.tech-card:hover::before { opacity: 1; }
.tech-icon {
  width: 56px; height: 56px; margin-bottom: 20px; border-radius: 18px;
  display: grid; place-items: center; background: var(--accent-soft); font-size: 28px;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.3s ease;
}
.tech-card:hover .tech-icon { transform: scale(1.1); background: #cfe4d8; }
.tech-card h3 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 8px; }
.tech-card .tech-tag {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: rgba(63, 124, 104, 0.08); color: var(--accent-strong);
  font-size: 11px; font-weight: 700; margin-bottom: 12px;
}
.tech-card p { color: var(--muted); line-height: 1.7; font-size: 14px; }

/* ── Diff table ── */
.diff-section {
  background: linear-gradient(180deg, rgba(220, 236, 229, 0.35), rgba(255, 255, 255, 0.2));
  border-block: 1px solid rgba(63, 124, 104, 0.1);
}
.diff-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }
.diff-col {
  padding: 36px 32px; border-radius: var(--radius-lg);
  position: relative; overflow: hidden;
}
.diff-col.traditional { background: #fafaf7; border: 1px solid rgba(0,0,0,0.06); }
.diff-col.ours {
  background: linear-gradient(135deg, #f0f8f3, #e6f2ea);
  border: 1px solid rgba(63, 124, 104, 0.18);
  box-shadow: 0 0 0 8px rgba(63, 124, 104, 0.04);
}
.diff-col h3 { font-size: 20px; letter-spacing: -0.03em; margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.diff-col.ours h3 { color: var(--accent-strong); }
.diff-item { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(0,0,0,0.05); font-size: 14px; line-height: 1.6; }
.diff-item:last-child { border-bottom: none; }
.diff-item .diff-icon { flex-shrink: 0; font-size: 18px; margin-top: 1px; }
.diff-item .diff-text { color: var(--muted); }
.diff-col.ours .diff-item .diff-text { color: #3a5c4f; }

/* ── Stack grid ── */
.stack-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.stack-card {
  padding: 28px 22px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72); text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.stack-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.stack-card .stack-icon { font-size: 38px; margin-bottom: 14px; }
.stack-card .stack-name { font-weight: 780; font-size: 16px; letter-spacing: -0.02em; }
.stack-card .stack-role { margin-top: 6px; color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ── Philosophy ── */
.phil-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.phil-card {
  padding: 36px 32px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface-strong); box-shadow: var(--shadow-sm);
  display: flex; gap: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.phil-card:hover { transform: translateY(-4px); box-shadow: 0 20px 48px rgba(34, 54, 47, 0.1); }
.phil-num {
  width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px;
  background: linear-gradient(135deg, var(--accent-soft), #d0e6d9);
  display: grid; place-items: center; font-size: 22px; font-weight: 800;
  color: var(--accent-strong); letter-spacing: -0.04em;
}
.phil-card h3 { font-size: 19px; letter-spacing: -0.025em; margin-bottom: 8px; }
.phil-card p { color: var(--muted); font-size: 14px; line-height: 1.7; }

/* ── Metrics strip ── */
.metrics-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background: var(--surface-strong); box-shadow: var(--shadow-sm);
}
.metric-item { padding: 32px 20px; text-align: center; border-right: 1px solid var(--line); }
.metric-item:last-child { border-right: none; }
.metric-value {
  font-size: 44px; font-weight: 820; letter-spacing: -0.06em;
  background: linear-gradient(135deg, var(--accent), #5a9e7d);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.metric-label { margin-top: 8px; color: var(--muted); font-size: 14px; font-weight: 600; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.4, 0, 0.2, 1),
              transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ── */
@media (max-width: 980px) {
  .tech-grid, .stack-grid, .metrics-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phil-grid, .diff-grid { grid-template-columns: 1fr; }
  .metric-item { border-right: none; border-bottom: 1px solid var(--line); }
  .metric-item:last-child { border-bottom: none; }
}
@media (max-width: 720px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: clamp(36px, 12vw, 48px); white-space: normal; }
  .hero-copy { font-size: 16px; }
  .tech-grid, .stack-grid, .metrics-strip { grid-template-columns: 1fr; }
  section { padding: 58px 0; }
  .diff-col, .phil-card, .tech-card { padding: 24px 20px; }
}

:root[data-theme="dark"] .hero::before {
  background: radial-gradient(circle, rgba(211, 167, 95, 0.22), transparent 70%);
}

:root[data-theme="dark"] .design-philosophy,
:root[data-theme="dark"] .arch-section,
:root[data-theme="dark"] .diff-section {
  background: rgba(20, 31, 27, 0.65);
}

:root[data-theme="dark"] .arch-node.client,
:root[data-theme="dark"] .arch-node.agent,
:root[data-theme="dark"] .arch-node.platform,
:root[data-theme="dark"] .tech-card,
:root[data-theme="dark"] .diff-col.traditional,
:root[data-theme="dark"] .diff-col.ours,
:root[data-theme="dark"] .stack-card {
  background: rgba(24, 36, 32, 0.9);
  border-color: rgba(143, 196, 177, 0.24);
}

:root[data-theme="dark"] .diff-col.ours .diff-item .diff-text {
  color: #bdd3c9;
}
