/* hero.css — Hero section styles */

/* ── Hero ── */
.hero {
  position: relative;
  padding: 140px 32px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

/* HUD data tag row (top-left of hero) */
.hero-hud {
  position: absolute;
  top: 108px;
  left: 32px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "SF Mono", "Menlo", ui-monospace, Consolas, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  text-transform: uppercase;
  z-index: 2;
  pointer-events: none;
}

.hud-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border: 1px solid rgba(26, 115, 232, 0.18);
  border-radius: 4px;
  background: rgba(26, 115, 232, 0.04);
  backdrop-filter: blur(6px);
}
[data-theme="dark"] .hud-tag {
  border-color: rgba(77, 163, 255, 0.22);
  background: rgba(77, 163, 255, 0.06);
}

.hud-sep { opacity: 0.4; }

.hud-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
  animation: hud-dot-blink 1.6s ease-in-out infinite;
}

@keyframes hud-dot-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}

.hud-live {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.06);
  letter-spacing: 0.14em;
}
[data-theme="dark"] .hud-live {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.4);
  background: rgba(248, 113, 113, 0.08);
}

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

/* HUD corner brackets — top-left & bottom-right of hero-inner */
.hero-inner::before,
.hero-inner::after {
  content: '';
  position: absolute;
  width: 22px;
  height: 22px;
  border: 1px solid rgba(26, 115, 232, 0.35);
  pointer-events: none;
}
.hero-inner::before {
  top: -18px;
  left: -14px;
  border-right: none;
  border-bottom: none;
}
.hero-inner::after {
  bottom: -18px;
  right: -14px;
  border-left: none;
  border-top: none;
}
[data-theme="dark"] .hero-inner::before,
[data-theme="dark"] .hero-inner::after {
  border-color: rgba(77, 163, 255, 0.4);
}

.hero-content {
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 10%;
  left: -10%;
  width: 70%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(26, 115, 232, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: -1;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
  padding: 6px 14px;
  border: 1px solid rgba(26, 115, 232, 0.2);
  border-radius: 20px;
  background: rgba(26, 115, 232, 0.05);
  backdrop-filter: blur(8px);
}

.hero-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px var(--accent); }
  50% { opacity: 0.5; box-shadow: 0 0 16px var(--accent); }
}

.hero h1 {
  font-size: clamp(56px, 8vw, 96px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  max-width: 900px;
  margin-bottom: 32px;
  background: linear-gradient(135deg, #1f1f1f 0%, #1f1f1f 50%, #1a73e8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.6;
  font-weight: 400;
  margin-bottom: 48px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--text);
  color: #fff;
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}

.btn-primary:hover {
  background: #333;
  transform: translateY(-1px);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--text);
  padding: 14px 28px;
  border-radius: 28px;
  font-size: 15px;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  background: var(--bg-subtle);
}

/* ── GPU Price Chart Demo ── */
.hero-demo {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: 100%;
  max-width: 440px;
}

.gpu-frame {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1117;
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.18),
    0 0 0 1px rgba(255, 255, 255, 0.04);
  animation: chat-enter 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.3s both;
}

/* Animated gradient border */
.gpu-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 16px;
  padding: 1px;
  background: conic-gradient(
    from 0deg,
    rgba(6, 182, 212, 0.5),
    transparent 25%,
    rgba(99, 102, 241, 0.4),
    transparent 50%,
    rgba(26, 115, 232, 0.5),
    transparent 75%,
    rgba(6, 182, 212, 0.5)
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: 5;
  animation: border-rotate 6s linear infinite;
}

@keyframes border-rotate {
  to { transform: rotate(360deg); }
}

@keyframes chat-enter {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Subtitle in title bar ── */
.gpu-title-sub {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 400;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ── GPU Scanner body ── */
.gpu-scanner {
  padding: 22px 24px 12px;
  display: flex;
  flex-direction: column;
  gap: 17px;
  min-height: 310px;
}

/* Individual GPU tier row */
.gpu-row {
  display: grid;
  grid-template-columns: 52px 1fr 76px;
  align-items: center;
  gap: 12px;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.gpu-row.visible {
  opacity: 1;
  transform: translateX(0);
}

/* GPU label (left) */
.gpu-row-label {
  font-size: 11.5px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.35);
  text-align: right;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

/* Bar track background */
.gpu-row-track {
  height: 7px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 3px;
  position: relative;
  overflow: visible;
}

/* Glowing fill bar */
.gpu-row-bar {
  height: 7px;
  border-radius: 3px;
  width: 0;
  transition: width 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  position: relative;
  overflow: visible;
}

/* Glow tip at bar end */
.gpu-row-bar::after {
  content: '';
  position: absolute;
  right: -2px;
  top: -4px;
  bottom: -4px;
  width: 8px;
  border-radius: 50%;
  background: inherit;
  filter: blur(5px);
  opacity: 0.85;
}

/* Shimmer sweep on bar */
.gpu-row-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.28) 50%, transparent 100%);
  transform: translateX(-200%);
  animation: bar-shimmer 3.5s ease-in-out infinite;
  border-radius: inherit;
}

@keyframes bar-shimmer {
  0%   { transform: translateX(-200%); }
  40%  { transform: translateX(200%); }
  100% { transform: translateX(200%); }
}

/* Price label (right) */
.gpu-row-price {
  font-size: 13.5px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* Log-scale axis — aligned with gpu-row-track via identical grid */
.gpu-axis {
  display: grid;
  grid-template-columns: 52px 1fr 76px;
  align-items: center;
  gap: 12px;
  padding: 4px 24px 2px;
  font-size: 9px;
  color: rgba(255, 255, 255, 0.16);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
}

.gpu-axis-track {
  display: flex;
  justify-content: space-between;
}

/* Chart footer: timestamp + source */
.gpu-footer {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px 14px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.28);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.gpu-footer-ts {
  flex: 1;
  font-variant-numeric: tabular-nums;
}

.gpu-footer-sep {
  opacity: 0.4;
}

.gpu-footer-src {
  color: rgba(6, 182, 212, 0.65);
  text-decoration: none;
  transition: color 0.2s ease;
}

.gpu-footer-src:hover {
  color: #06b6d4;
}

/* ── Titlebar ── */
.chat-titlebar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.03);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* AI sparkle icon with glow */
.chat-ai-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(6, 182, 212, 0.2), rgba(99, 102, 241, 0.2));
  color: #06b6d4;
  box-shadow: 0 0 16px rgba(6, 182, 212, 0.25);
  animation: icon-glow 3s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes icon-glow {
  0%, 100% { box-shadow: 0 0 12px rgba(6, 182, 212, 0.2); }
  50%      { box-shadow: 0 0 24px rgba(6, 182, 212, 0.45), 0 0 48px rgba(99, 102, 241, 0.15); }
}

/* Title info: name + model badge */
.chat-title-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.chat-title-name {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.01em;
}

/* Status indicator */
.chat-status {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.chat-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #28c840;
  box-shadow: 0 0 8px rgba(40, 200, 64, 0.5);
  animation: status-pulse 2s ease-in-out infinite;
}

@keyframes status-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 6px rgba(40, 200, 64, 0.4); }
  50%      { opacity: 0.6; box-shadow: 0 0 12px rgba(40, 200, 64, 0.7); }
}

.chat-status-text {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Responsive: stack on mobile */
@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-demo {
    justify-self: center;
    max-width: 400px;
  }
  .hero-hud {
    top: 96px;
    left: 20px;
    font-size: 10px;
    gap: 6px;
  }
  .hud-tag { padding: 2px 6px; }
  .hero-inner::before,
  .hero-inner::after { width: 16px; height: 16px; }
}
