/* ============================================================
   Hero — Cena 3D-ish (Skeumorphic showcase)
   ============================================================ */

.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-eyebrow-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-eyebrow-row .pill-meta {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  padding: 6px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: rgba(255,255,255,0.4);
}
[data-theme="dark"] .hero-eyebrow-row .pill-meta {
  background: rgba(255,255,255,0.04);
}

.hero-title {
  font-size: clamp(48px, 7vw, 104px);
  letter-spacing: -0.035em;
  line-height: 0.96;
  margin-bottom: 32px;
}

.hero-title .em {
  font-style: italic;
  color: var(--accent);
  position: relative;
}

.hero-title .em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  opacity: 0.5;
}

.hero-title .strike {
  position: relative;
  display: inline-block;
}

.hero-sub {
  font-family: var(--font-sans);
  font-size: 19px;
  line-height: 1.55;
  color: var(--fg-secondary);
  max-width: 52ch;
  margin-bottom: 40px;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 56px;
}

.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--rule-strong);
  padding-top: 24px;
  max-width: 600px;
}

.hero-meta-item {
  padding-right: 16px;
}
.hero-meta-item + .hero-meta-item {
  padding-left: 24px;
  border-left: 1px solid var(--rule);
}

.hero-meta-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-tertiary);
  margin-bottom: 8px;
}

.hero-meta-value {
  font-family: var(--font-serif);
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--fg-primary);
}

/* ----- 3D-ish Scene ----- */
.scene-wrap {
  perspective: 1600px;
  position: relative;
  height: 620px;
}

.scene {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  transform: rotateX(8deg) rotateY(-14deg);
  transition: transform 600ms cubic-bezier(.2,.6,.3,1);
}

/* The "device" — a premium hardware module */
.device {
  position: absolute;
  width: 460px;
  height: 540px;
  top: 40px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  border-radius: 32px;
  background:
    radial-gradient(120% 100% at 50% 0%, #2A2A2A 0%, #131313 50%, #060606 100%);
  box-shadow:
    inset 0 2px 0 rgba(255,255,255,0.08),
    inset 0 -2px 0 rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 4px 8px rgba(0,0,0,0.4),
    0 30px 60px -10px rgba(0,0,0,0.5),
    0 80px 120px -30px rgba(0,0,0,0.55);
  padding: 28px;
  transform-style: preserve-3d;
}

.device::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.7' numOctaves='2'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.35;
  mix-blend-mode: overlay;
  pointer-events: none;
}

.device-bezel {
  position: relative;
  height: 100%;
  border-radius: 18px;
  background: var(--material-metal);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.45),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 1px 0 rgba(255,255,255,0.1);
  padding: 6px;
  overflow: hidden;
}

.device-screen {
  position: relative;
  height: 100%;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #0E0E10 0%, #1A1A1F 100%);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.06),
    inset 0 2px 8px rgba(0,0,0,0.6),
    inset 0 0 60px rgba(214,0,25,0.08);
  overflow: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Screen content — looks like a dashboard / monitor */
.screen-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.5);
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(242,237,226,0.08);
}

.screen-header .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.screen-header .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.screen-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 80px;
  padding: 4px 0;
}
.screen-bar {
  flex: 1;
  background: linear-gradient(180deg, var(--accent-glow), var(--accent-deep));
  border-radius: 1px;
  box-shadow: 0 0 6px rgba(214,0,25,0.4);
  animation: barGrow 2.4s ease-in-out infinite;
}
@keyframes barGrow {
  0%, 100% { transform: scaleY(0.6); }
  50% { transform: scaleY(1); }
}
.screen-bar:nth-child(1) { animation-delay: 0.0s; }
.screen-bar:nth-child(2) { animation-delay: 0.1s; }
.screen-bar:nth-child(3) { animation-delay: 0.2s; }
.screen-bar:nth-child(4) { animation-delay: 0.3s; }
.screen-bar:nth-child(5) { animation-delay: 0.4s; }
.screen-bar:nth-child(6) { animation-delay: 0.5s; }
.screen-bar:nth-child(7) { animation-delay: 0.6s; }
.screen-bar:nth-child(8) { animation-delay: 0.7s; }
.screen-bar:nth-child(9) { animation-delay: 0.8s; }
.screen-bar:nth-child(10) { animation-delay: 0.9s; }
.screen-bar:nth-child(11) { animation-delay: 1.0s; }
.screen-bar:nth-child(12) { animation-delay: 1.1s; }

.screen-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.screen-stat {
  background: rgba(242,237,226,0.04);
  border: 1px solid rgba(242,237,226,0.06);
  border-radius: 6px;
  padding: 10px;
}
.screen-stat-label {
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.4);
  margin-bottom: 6px;
}
.screen-stat-value {
  font-family: var(--font-serif);
  font-size: 22px;
  color: rgba(242,237,226,0.95);
}
.screen-stat-value .delta {
  font-family: var(--font-mono);
  font-size: 10px;
  color: #6BCB6B;
  margin-left: 4px;
}

.screen-rows {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: auto;
}
.screen-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 10px;
  color: rgba(242,237,226,0.7);
  padding: 6px 8px;
  background: rgba(242,237,226,0.02);
  border-radius: 4px;
}
.screen-row .tag {
  font-size: 8px;
  letter-spacing: 0.1em;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(214,0,25,0.18);
  color: var(--accent-glow);
  border: 1px solid rgba(214,0,25,0.3);
}

/* Knob / dial — physical control */
.knob {
  position: absolute;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, #3a3a3a 0%, #1a1a1a 60%, #050505 100%);
  box-shadow:
    inset 0 4px 6px rgba(255,255,255,0.12),
    inset 0 -4px 8px rgba(0,0,0,0.7),
    inset 0 0 0 1px rgba(0,0,0,0.6),
    0 2px 4px rgba(0,0,0,0.4),
    0 12px 30px -6px rgba(0,0,0,0.55),
    0 30px 60px -10px rgba(0,0,0,0.6);
  bottom: -10px;
  right: -40px;
  transform: translateZ(80px) rotate(-30deg);
  transition: transform 800ms cubic-bezier(.2,.6,.3,1);
}

.knob::before {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255,255,255,0.06) 0deg,
      rgba(255,255,255,0.06) 2deg,
      rgba(0,0,0,0.4) 2deg,
      rgba(0,0,0,0.4) 4deg
    );
  box-shadow:
    inset 0 1px 2px rgba(255,255,255,0.08),
    inset 0 -1px 2px rgba(0,0,0,0.6);
}

.knob::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
  box-shadow:
    0 0 12px var(--accent-glow),
    0 0 0 1px rgba(0,0,0,0.4);
}

.knob:hover {
  transform: translateZ(80px) rotate(60deg);
}

/* Chip / module — flat with inset details */
.chip {
  position: absolute;
  width: 180px;
  height: 100px;
  border-radius: 12px;
  background:
    linear-gradient(180deg, #1A1A1A 0%, #0A0A0A 100%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.6),
    inset 0 0 0 1px rgba(255,255,255,0.04),
    0 2px 4px rgba(0,0,0,0.4),
    0 16px 30px -6px rgba(0,0,0,0.5);
  bottom: 60px;
  left: -50px;
  transform: translateZ(60px) rotate(-3deg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.chip-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,237,226,0.4);
}

.chip-value {
  font-family: var(--font-serif);
  font-size: 28px;
  color: var(--fg-on-dark);
}

.chip-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent-glow);
}

.chip-row .led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
  animation: pulse 1.4s ease-in-out infinite;
}

/* Plate — small metal plate floating */
.plate {
  position: absolute;
  width: 140px;
  height: 60px;
  border-radius: 30px;
  background: var(--material-metal);
  box-shadow:
    inset 0 0 0 1px rgba(0,0,0,0.4),
    inset 0 2px 4px rgba(255,255,255,0.5),
    inset 0 -2px 4px rgba(0,0,0,0.3),
    0 2px 4px rgba(0,0,0,0.25),
    0 12px 24px -4px rgba(0,0,0,0.35);
  top: -10px;
  right: 0;
  transform: translateZ(100px) rotate(8deg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #1a1a1a;
  text-shadow: 0 1px 0 rgba(255,255,255,0.6);
}

/* Floor reflection / shadow */
.scene-floor {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 40px;
  background: radial-gradient(ellipse at center, rgba(0,0,0,0.25), transparent 70%);
  filter: blur(8px);
}

/* Spotlight gradient */
.hero-spotlight {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(214,0,25,0.10), transparent 60%);
  pointer-events: none;
  z-index: 1;
  filter: blur(40px);
}

@media (max-width: 1100px) {
  .hero { padding: 100px 0 60px; }
  .hero-grid { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero-eyebrow-row { justify-content: center; margin-bottom: 24px; }
  .hero-sub { margin-left: auto; margin-right: auto; font-size: 17px; }
  .hero-cta-row { justify-content: center; margin-bottom: 48px; }
  .hero-meta { margin-left: auto; margin-right: auto; }
  .scene-wrap { height: 500px; margin-top: 32px; width: 100%; max-width: 500px; }
  .device { width: 380px; height: 460px; }
}

@media (max-width: 700px) {
  .hero { padding: 80px 0 40px; }
  .hero-title { font-size: clamp(40px, 10vw, 64px); }
  .hero-sub { font-size: 16px; }
  .hero-cta-row { flex-direction: column; width: 100%; max-width: 320px; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
  
  .scene-wrap { height: 380px; }
  .device { width: 280px; height: 340px; padding: 16px; border-radius: 24px; }
  .device-bezel { border-radius: 14px; }
  .device-screen { padding: 12px; gap: 10px; }
  .screen-header { font-size: 8px; padding-bottom: 8px; }
  .screen-bars { height: 60px; }
  .screen-stat-value { font-size: 18px; }
  
  .knob { width: 80px; height: 80px; right: -20px; bottom: -5px; }
  .chip { width: 120px; height: 70px; left: -20px; bottom: 40px; padding: 10px; }
  .chip-value { font-size: 20px; }
  .plate { width: 90px; height: 40px; top: -5px; font-size: 8px; }
  
  .hero-meta { grid-template-columns: 1fr; gap: 0; border: none; padding-top: 0; }
  .hero-meta-item { padding: 16px 0; border-top: 1px solid var(--rule); width: 100%; }
  .hero-meta-item + .hero-meta-item { padding-left: 0; border-left: none; }
  .hero-meta-value { font-size: 18px; }
}

@media (max-width: 400px) {
  .hero-title { font-size: 32px; }
  .scene-wrap { height: 320px; }
  .device { width: 240px; height: 300px; }
}
