/* ═══════════════════════════════════════
   HERO STYLES
   Ken.AI Personal Website
   Industrial Supply Chain Theme
   ═══════════════════════════════════════ */

/* ── Hero Section ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}

.hero::before {
  /* Subtle accent gradient (right) */
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  /* Subtle accent gradient (left) */
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, var(--accent-dim) 0%, transparent 70%);
  pointer-events: none;
}


.hero-content {
  position: relative;
  z-index: 1;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.hero>.container {
  width: 100%;
}

/* ── Hero Badge ── */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Oswald', sans-serif;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid var(--metal-accent);
  padding: 6px 16px;
  border-radius: 2px;
  margin-bottom: 32px;
  animation: fadeInDown 0.8s ease both;
}

.hero-badge .pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

/* ── Hero Title ── */
.hero h1 {
  font-size: clamp(36px, 5.5vw, 64px);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease 0.15s both;
  letter-spacing: -0.03em;
}

.hero h1 .highlight {
  background: var(--gradient-hero);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 8s ease-in-out infinite;
}

/* ── Hero Description ── */
.hero-desc {
  font-size: 18px;
  color: var(--text-secondary);
  line-height: 1.9;
  margin-bottom: 44px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* ── Hero Stats (with industrial number styling) ── */
.hero-stats {
  display: flex;
  justify-content: center;
  gap: 56px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.45s both;
}

.hero-stat .number {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(36px, 5vw, 56px);
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.hero-stat .number span {
  color: var(--accent);
  font-size: 0.6em;
}

.hero-stat .label {
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ── Hero Actions ── */
.hero-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  animation: fadeInUp 0.8s ease 0.6s both;
}

/* ── Hero Decorative Elements (Right Side) ── */
.hero-deco {
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.hero-deco-left {
  position: absolute;
  top: 0;
  left: 0;
  width: 22%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Kraljic Matrix Card (Industrial Style) ── */
.kraljic-card {
  width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--metal-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 1s ease 0.8s both;
  pointer-events: auto;
  position: relative;
  margin-top: 20px;
}

.kraljic-card::before,
.kraljic-card::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--accent);
  border-style: solid;
}

.kraljic-card::before {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.kraljic-card::after {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.kraljic-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--metal-border);
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.kraljic-header .kh-icon {
  font-size: 12px;
}

.kraljic-body {
  padding: 16px 14px 14px 28px;
  position: relative;
}

/* Y-axis label */
.kraljic-y-label {
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%) rotate(-90deg);
  font-family: 'Oswald', sans-serif;
  font-size: 7px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Matrix grid */
.kraljic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  width: 100%;
  aspect-ratio: 1;
}

.kq {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  padding: 8px 4px;
  text-align: center;
  transition: all 0.3s ease;
}

.kq:hover {
  transform: scale(1.04);
}

.kq-icon {
  font-size: 14px;
  margin-bottom: 4px;
}

.kq-name {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: 9px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.kq-sub {
  font-family: 'Oswald', sans-serif;
  font-size: 6px;
  color: var(--text-muted);
  margin-top: 2px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Quadrant colors */
.kq-leverage {
  background: var(--q2-glow);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.kq-strategic {
  background: var(--q1-glow);
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.kq-noncritical {
  background: var(--q4-glow);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.kq-bottleneck {
  background: var(--q3-glow);
  border: 1px solid rgba(217, 119, 6, 0.2);
}

/* Strategic quadrant pulse */
.kq-strategic {
  animation: strategicPulse 3s ease-in-out infinite;
}

@keyframes strategicPulse {

  0%,
  100% {
    box-shadow: none;
  }

  50% {
    box-shadow: 0 0 12px var(--q1-glow);
  }
}

/* X-axis label */
.kraljic-x-label {
  text-align: center;
  font-family: 'Oswald', sans-serif;
  font-size: 7px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: 8px;
  padding-left: 14px;
}

/* Arrow indicators */
.kraljic-arrow-y {
  position: absolute;
  left: 20px;
  top: 20px;
  bottom: 40px;
  width: 1px;
  background: linear-gradient(to top, var(--border-subtle), var(--accent));
}

.kraljic-arrow-y::after {
  content: '▲';
  position: absolute;
  top: -6px;
  left: -4px;
  font-size: 7px;
  color: var(--accent);
}

.kraljic-arrow-x {
  position: absolute;
  bottom: 32px;
  left: 28px;
  right: 14px;
  height: 1px;
  background: linear-gradient(to right, var(--border-subtle), var(--accent));
}

.kraljic-arrow-x::after {
  content: '▶';
  position: absolute;
  right: -6px;
  top: -5px;
  font-size: 7px;
  color: var(--accent);
}

/* ── Terminal Card (Industrial Style) ── */
.hero-terminal {
  position: absolute;
  top: 22%;
  right: 8%;
  width: 300px;
  background: var(--bg-card);
  border: 1px solid var(--metal-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  animation: fadeInUp 1s ease 0.6s both;
  pointer-events: auto;
}

.hero-terminal::before,
.hero-terminal::after {
  content: '';
  position: absolute;
  width: 6px;
  height: 6px;
  border-color: var(--accent);
  border-style: solid;
}

.hero-terminal::before {
  top: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.hero-terminal::after {
  bottom: 0;
  left: 0;
  border-width: 0 0 0 2px;
}

.terminal-header {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--metal-border);
}

.terminal-dot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
}

.terminal-dot.red {
  background: #ff5f57;
}

.terminal-dot.yellow {
  background: #febc2e;
}

.terminal-dot.green {
  background: #28c840;
}

.terminal-title {
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  color: var(--text-muted);
  margin-left: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.terminal-body {
  padding: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.8;
  color: var(--text-secondary);
}

.terminal-line {
  opacity: 0;
  animation: termType 0.4s ease forwards;
}

.terminal-line:nth-child(1) {
  animation-delay: 1.0s;
}

.terminal-line:nth-child(2) {
  animation-delay: 1.4s;
}

.terminal-line:nth-child(3) {
  animation-delay: 1.8s;
}

.terminal-line:nth-child(4) {
  animation-delay: 2.2s;
}

.terminal-line:nth-child(5) {
  animation-delay: 2.6s;
}

.terminal-line:nth-child(6) {
  animation-delay: 3.0s;
}

.terminal-line:nth-child(7) {
  animation-delay: 3.4s;
}

.t-comment {
  color: var(--text-muted);
}

.t-kw {
  color: var(--accent);
}

.t-fn {
  color: var(--q2-color);
}

.t-str {
  color: var(--q3-color);
}

.t-cursor {
  display: inline-block;
  width: 7px;
  height: 14px;
  background: var(--accent);
  animation: blink 1s step-end infinite;
  vertical-align: middle;
  margin-left: 2px;
}

/* ── Floating Badges (Simplified) ── */
.hero-fbadge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--metal-border);
  border-radius: 2px;
  padding: 6px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  box-shadow: var(--shadow-solid);
  white-space: nowrap;
}

.hero-fbadge .bi {
  font-size: 12px;
}

.fb1 {
  top: 15%;
  right: 5%;
  animation: fbFloat1 6s ease-in-out infinite;
}

.fb2 {
  bottom: 28%;
  right: 2%;
  animation: fbFloat2 7s ease-in-out infinite;
}

.fb3 {
  top: 10%;
  right: 42%;
  animation: fbFloat3 5.5s ease-in-out infinite;
}

.fb4 {
  bottom: 22%;
  right: 38%;
  animation: fbFloat1 8s ease-in-out 1s infinite;
}

/* ── GPT Badge (bottom-left) ── */
.scroll-hint {
  position: absolute;
  bottom: 15%;
  right: 5%;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-card);
  border: 1px solid var(--metal-border);
  border-radius: 2px;
  padding: 6px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-secondary);
  box-shadow: var(--shadow-solid);
  white-space: nowrap;
  animation: fbFloat2 7.5s ease-in-out 0.5s infinite;
  z-index: 1;
  pointer-events: none;
}

.scroll-hint .bi {
  font-size: 12px;
}

/* ── Animations ── */
@keyframes termType {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes blink {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0;
  }
}

@keyframes fbFloat1 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

@keyframes fbFloat2 {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(10px);
  }
}

@keyframes fbFloat3 {

  0%,
  100% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(8px, -8px);
  }
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .hero-stats {
    gap: 32px;
    flex-wrap: wrap;
  }

  .hero-actions {
    flex-direction: column;
  }

  .hero-deco,
  .hero-deco-left {
    display: none;
  }
}

@media (max-width: 1200px) and (min-width: 769px) {
  .hero-terminal {
    width: 260px;
    right: 4%;
  }

  .kraljic-card {
    width: 200px;
  }

  .kq-icon {
    font-size: 12px;
  }

  .kq-name {
    font-size: 8px;
  }
}

@media (max-width: 900px) and (min-width: 769px) {
  .hero-deco-left {
    display: none;
  }
}

/* ── Feature Previews ── */
.features-section {
  padding: 80px 0 var(--section-gap);
}

.feature-preview {
  background: var(--bg-card);
  border: 1px solid var(--metal-border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
  position: relative;
  overflow: hidden;
}

.feature-preview::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 3px;
  height: 100%;
  background: var(--accent);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.feature-preview:hover {
  border-color: var(--metal-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  opacity: 1;
}

.feature-preview:hover::before {
  opacity: 1;
}

.feature-icon {
  font-size: 28px;
  margin-bottom: 16px;
  display: block;
}

.feature-preview h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-preview p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-link {
  font-family: 'Oswald', sans-serif;
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ── Case Previews ── */
.case-preview {
  background: var(--bg-card);
  border: 1px solid var(--metal-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: all var(--transition-base);
  text-decoration: none;
  color: inherit;
  display: block;
}

.case-preview:hover {
  border-color: var(--metal-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-card);
  opacity: 1;
}

.case-preview-visual {
  background: var(--bg-elevated);
  padding: 32px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  position: relative;
}

.case-preview-visual::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, var(--accent-dim) 0%, transparent 70%);
}

.case-preview-visual .emoji {
  font-size: 40px;
  position: relative;
  z-index: 1;
}

.case-preview-body {
  padding: 24px;
}

.case-preview-tag {
  font-family: 'Oswald', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
  display: block;
}

.case-preview h3 {
  font-size: 17px;
  margin-bottom: 8px;
}

.case-preview p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ── Quote Section ── */
.quotes-section {
  padding: 80px 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 50%, var(--bg-deep) 100%);
}

.quote-card {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.quote-mark {
  font-size: 56px;
  color: var(--accent);
  opacity: 0.3;
  line-height: 1;
  margin-bottom: 16px;
}

.quote-card blockquote {
  font-family: 'Noto Sans SC', sans-serif;
  font-size: clamp(18px, 2.5vw, 24px);
  font-weight: 600;
  line-height: 1.8;
  margin-bottom: 24px;
  color: var(--text-primary);
}

.quote-card .quote-source {
  font-size: 14px;
  color: var(--text-muted);
}