/* ==========================================================================
   MOD / HERO + CLAUDE COMPOSER + 3D INTERACTIVE HARDWARE STAGE
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--sp-16) 0 var(--sp-16);
  overflow: hidden;
  background:
    radial-gradient(900px 460px at 50% -110px, rgba(217, 119, 87, 0.09), transparent 70%),
    radial-gradient(640px 420px at 86% 18%, rgba(0, 113, 227, 0.045), transparent 70%),
    var(--bg-paper);
}

.hero-top {
  max-width: 780px;
  margin: 0 auto var(--sp-10);
  text-align: center;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 7px var(--sp-4);
  border-radius: var(--radius-pill);
  background: var(--p-white);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-xs);
  font-size: 13px;
  color: var(--ink-secondary);
  margin-bottom: var(--sp-5);
}

.hero-pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-clay); }

.hero-title {
  font-family: var(--font-serif);
  font-size: clamp(2.35rem, 5.2vw, 4.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink-primary);
  margin: 0 0 var(--sp-5);
}
.hero-title em { font-style: italic; color: var(--accent-clay); }

.hero-lead {
  font-size: clamp(16px, 1.7vw, 18.5px);
  line-height: 1.65;
  color: var(--ink-secondary);
  max-width: 64ch;
  margin: 0 auto var(--sp-8);
}

/* Claude Prompt Composer */
.claude-composer {
  max-width: 720px;
  margin: 0 auto var(--sp-5);
  background: var(--p-white);
  border: 1px solid var(--border-strong);
  border-radius: 24px;
  padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5);
  box-shadow: var(--shadow-md);
  text-align: left;
  transition: border-color 0.2s ease, box-shadow 0.25s var(--ease-apple);
}
.claude-composer:focus-within {
  border-color: rgba(217, 119, 87, 0.55);
  box-shadow: 0 16px 44px rgba(217, 119, 87, 0.11), 0 0 0 4px rgba(217, 119, 87, 0.08);
}

.composer-row { display: flex; align-items: flex-end; gap: var(--sp-3); }
.composer-input {
  flex: 1; border: none; outline: none; resize: none; background: transparent;
  font-size: 15.5px; line-height: 1.5; color: var(--ink-primary);
  min-height: 46px; max-height: 120px; padding: var(--sp-1) 0;
}
.composer-input::placeholder { color: #9A9890; }

.composer-submit {
  width: 44px; height: 44px; border-radius: 14px; border: none;
  background: var(--accent-clay); color: var(--p-white);
  display: grid; place-items: center; cursor: pointer; flex-shrink: 0;
  transition: background-color 0.18s ease, transform 0.2s var(--ease-apple);
}
.composer-submit:hover { background: var(--accent-clay-hover); transform: translateY(-1px); }

.composer-chips {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-top: var(--sp-3); padding-top: var(--sp-3);
  border-top: 1px solid var(--border-subtle);
}
.chip {
  display: inline-flex; align-items: center; min-height: 34px;
  padding: 5px var(--sp-3); border-radius: var(--radius-pill);
  background: var(--bg-paper); border: 1px solid var(--border-subtle);
  font-size: 13px; color: var(--ink-secondary); cursor: pointer;
  transition: all 0.18s ease;
}
.chip:hover, .chip.active { background: var(--accent-clay-soft); border-color: rgba(217, 119, 87, 0.36); color: var(--ink-primary); }

.triage-response {
  display: none; margin-top: var(--sp-3); padding: var(--sp-5);
  border-radius: var(--radius-md); background: var(--bg-paper); border: 1px solid var(--border-subtle);
  animation: fadeSlideUp 0.28s var(--ease-apple) both;
}
.triage-response.visible { display: block; }
.triage-header { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-2); }
.triage-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent-clay); }
.triage-close { border: none; background: transparent; color: var(--ink-muted); cursor: pointer; font-size: 13px; padding: var(--sp-1) var(--sp-2); border-radius: 8px; }
.triage-title { font-family: var(--font-serif); font-size: 18px; font-weight: 600; margin: 0 0 var(--sp-2); }
.triage-list { margin: 0 0 var(--sp-4); padding-left: 18px; color: var(--ink-secondary); font-size: 14.5px; display: flex; flex-direction: column; gap: 6px; }
.triage-actions { display: flex; flex-wrap: wrap; gap: var(--sp-2); }

.hero-cta-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-3); margin-top: var(--sp-5); }

/* ==========================================================================
   3D Interactive Apple Hardware Stage (VisionOS-style Depth + Light Specular)
   ========================================================================== */
.stage-3d-wrap {
  perspective: 1400px;
  margin-top: var(--sp-10);
}

.hero-stage {
  position: relative;
  isolation: isolate;
  background: rgba(255, 255, 255, 0.94);
  border-radius: var(--radius-xl);
  padding: var(--sp-3);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-3d);
  transition: transform 0.35s var(--ease-apple), box-shadow 0.35s var(--ease-apple);
  will-change: transform;
}

.hero-media-wrap {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: var(--bg-linen);
  aspect-ratio: 16 / 9;
}
.hero-media-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  background: radial-gradient(
    520px circle at var(--glare-x, 50%) var(--glare-y, 20%),
    rgba(255, 255, 255, 0.28),
    rgba(217, 119, 87, 0.05) 38%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}
.hero-stage.is-tilting .hero-media-wrap::after { opacity: 1; }
.hero-media-wrap img { width: 100%; height: 100%; object-fit: cover; }

/* Floating Glass Badges positioned cleanly on image corners only */
.depth-badge {
  position: absolute;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 8px 13px;
  border-radius: var(--radius-pill);
  background: rgba(250, 249, 245, 0.88);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 10px 24px rgba(20, 20, 19, 0.14);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-primary);
  pointer-events: none;
}
.depth-badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent-clay); }
.depth-badge.b-tl { top: 20px; left: 20px; }
.depth-badge.b-tr { top: 20px; right: 20px; }
.depth-badge.b-bl { bottom: 20px; left: 20px; }
.depth-badge.b-br { bottom: 20px; right: 20px; }

/* Compact 4-Pillar Strip inside Hero Stage Footer (Zero extra section bloat) */
.hero-pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-2) var(--sp-1);
}
.hero-pillar {
  padding: var(--sp-2) var(--sp-3);
  border-radius: var(--radius-sm);
}
.hero-pillar strong { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink-primary); }
.hero-pillar span { display: block; font-size: 12.5px; color: var(--ink-muted); margin-top: 2px; }

@media (max-width: 1024px) {
  .hero-pillars { grid-template-columns: repeat(2, 1fr); }
  .depth-badge.b-bl, .depth-badge.b-br { display: none; }
}
@media (max-width: 680px) {
  .hero { padding: var(--sp-8) 0 var(--sp-10); }
  .depth-badge { display: none; }
  .hero-pillars { grid-template-columns: repeat(2, 1fr); gap: var(--sp-2); }
  .hero-pillar { padding: var(--sp-2); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-stage, .tilt-3d { transform: none !important; transition: none !important; }
}
