/* ═══════════════════════════════════════
   Peko — Dark immersive theme
   Base: near-black warm (#070400)
   Accent: orange-gold gradient
   ═══════════════════════════════════════ */

:root {
  --bg:      #fff8ed;
  --bg2:     #fff0d2;
  --o1:      #ffd54d;
  --o2:      #ff9f1c;
  --o3:      #ff7a00;
  --o4:      #c85a04;
  --text:    #2f1d0a;
  --text-soft:#6a4926;
  --glow:    rgba(255, 159, 28, 0.16);
  --glow-sm: rgba(255, 159, 28, 0.10);
  --border:  rgba(255, 122, 0, 0.16);
  --border-h:rgba(255, 122, 0, 0.34);
  --card:    rgba(255, 255, 255, 0.76);
  --dim:     rgba(47, 29, 10, 0.64);
  --hint:    rgba(47, 29, 10, 0.44);
  --radius:  18px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,146,43,0.6) rgba(255,146,43,0.1);
}

/* Webkit scrollbars (Chrome, Safari, Edge) */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: rgba(255,146,43,0.05);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(255,146,43,0.7), rgba(255,100,30,0.6));
  border-radius: 10px;
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 8px rgba(255,146,43,0.4), inset 0 0 4px rgba(255,255,255,0.1);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(255,146,43,0.9), rgba(255,100,30,0.8));
  box-shadow: 0 0 14px rgba(255,146,43,0.6), inset 0 0 6px rgba(255,255,255,0.15);
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: linear-gradient(150deg, #fffef9 0%, #fff7e8 20%, #fff0d2 50%, #ffe7bc 76%, #ffdda0 100%);
  color: var(--text);
  overflow-x: hidden;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

/* ── Blurred background gradient layer ── */
body::before {
  content: '';
  position: fixed;
  inset: -15%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(ellipse 130% 65% at -8% 0%,   rgba(255,210,85,0.75) 0%, transparent 52%),
    radial-gradient(ellipse 80%  115% at 108% 96%, rgba(255,148,40,0.65) 0%, transparent 55%),
    linear-gradient(150deg, #fffef9 0%, #fff7e8 20%, #fff0d2 50%, #ffe7bc 76%, #ffdda0 100%);
  filter: blur(72px);
  animation: bgBlurPulse 12s ease-in-out infinite;
}

@keyframes bgBlurPulse {
  0%,100% { opacity: 0.9; }
  50%     { opacity: 1;   }
}

/* ── Noise grain ── */
.noise {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.045;
}

/* ── Ambient glows ── */
.ambient { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }

.amb {
  position: absolute; border-radius: 50%;
  filter: blur(90px);
}
.amb-1 {
  width: 950px; height: 950px;
  top: -320px; left: 50%; transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255,172,48,0.38) 0%, rgba(255,140,20,0.16) 45%, transparent 70%);
  animation: ambPulse 8s ease-in-out infinite;
}
.amb-2 {
  width: 680px; height: 680px;
  bottom: 5%; right: -150px;
  background: radial-gradient(circle, rgba(255,215,62,0.28) 0%, rgba(255,175,32,0.11) 50%, transparent 70%);
  animation: ambPulse 11s ease-in-out infinite reverse;
}
.amb-3 {
  width: 560px; height: 560px;
  top: 38%; left: -120px;
  background: radial-gradient(circle, rgba(247,103,7,0.24) 0%, rgba(220,80,0,0.08) 50%, transparent 70%);
  animation: ambPulse 9s ease-in-out 3s infinite;
}
.amb-4 {
  width: 720px; height: 720px;
  top: 45%; right: -180px;
  background: radial-gradient(circle, rgba(255,192,68,0.22) 0%, rgba(255,160,38,0.08) 50%, transparent 70%);
  filter: blur(90px);
  animation: ambPulse 13s ease-in-out 2s infinite;
}
.amb-5 {
  width: 520px; height: 520px;
  bottom: -120px; left: 28%;
  background: radial-gradient(circle, rgba(255,222,100,0.20) 0%, rgba(255,195,60,0.07) 50%, transparent 70%);
  filter: blur(90px);
  animation: ambPulse 17s ease-in-out 4s infinite;
}
@keyframes ambPulse {
  0%,100%{transform:scale(1) translateX(0)}
  50%{transform:scale(1.12) translateX(-20px)}
}
.amb-1 { animation-name: ambPulse1; }
@keyframes ambPulse1 {
  0%,100%{opacity:1;transform:translateX(-50%) scale(1)}
  50%{opacity:.7;transform:translateX(-50%) scale(1.1)}
}

/* ── Contour line mesh ── */
.bg-contour {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none;
  opacity: 0.055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 900'%3E%3Cg fill='none' stroke='%23c87420' stroke-width='1'%3E%3Cpath d='M-60,65 C280,30 560,105 860,68 C1120,38 1340,82 1500,58'/%3E%3Cpath d='M-60,158 C300,118 580,198 880,155 C1140,120 1360,168 1500,145'/%3E%3Cpath d='M-60,268 C260,225 540,308 850,265 C1120,228 1340,275 1500,252'/%3E%3Cpath d='M-60,390 C280,348 560,428 870,388 C1130,352 1350,398 1500,375'/%3E%3Cpath d='M-60,520 C270,478 555,558 868,518 C1128,482 1348,528 1500,505'/%3E%3Cpath d='M-60,650 C285,608 565,690 878,648 C1135,612 1355,658 1500,635'/%3E%3Cpath d='M-60,782 C275,740 558,820 875,778 C1130,742 1352,790 1500,765'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

/* ── Depth orbs ── */
.bg-depth {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}

.bg-orb { position: absolute; border-radius: 50%; }

.bo-1 {
  width: 1100px; height: 1100px;
  top: -280px; right: -260px;
  background: radial-gradient(circle, rgba(255,155,30,0.10) 0%, rgba(255,130,20,0.04) 45%, transparent 68%);
  filter: blur(55px);
  animation: orbDrift1 28s ease-in-out infinite;
}
.bo-2 {
  width: 880px; height: 880px;
  bottom: -240px; left: -200px;
  background: radial-gradient(circle, rgba(255,190,55,0.09) 0%, rgba(255,165,35,0.03) 48%, transparent 68%);
  filter: blur(50px);
  animation: orbDrift2 34s ease-in-out 6s infinite;
}
.bo-3 {
  width: 720px; height: 720px;
  top: 25%; left: 38%;
  background: radial-gradient(circle, rgba(255,205,75,0.07) 0%, rgba(255,178,48,0.02) 48%, transparent 68%);
  filter: blur(44px);
  animation: orbDrift3 22s ease-in-out 12s infinite;
}

@keyframes orbDrift1 {
  0%,100% { transform: translate(0,0) scale(1); }
  40%     { transform: translate(-40px, 30px) scale(1.05); }
  70%     { transform: translate(25px,-20px) scale(0.97); }
}
@keyframes orbDrift2 {
  0%,100% { transform: translate(0,0) scale(1); }
  35%     { transform: translate(35px,-28px) scale(1.04); }
  68%     { transform: translate(-22px, 18px) scale(0.96); }
}
@keyframes orbDrift3 {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-18px, 24px) scale(1.06); }
}

/* ── Large translucent float circles ── */
.bg-circle {
  position: absolute; border-radius: 50%;
  border: 1px solid rgba(195,112,18,0.055);
  background: radial-gradient(circle, rgba(255,185,50,0.022) 0%, transparent 68%);
}

.bc-1 {
  width: 640px; height: 640px;
  top: -100px; right: 6%;
  animation: circleBreath 18s ease-in-out infinite;
}
.bc-2 {
  width: 480px; height: 480px;
  bottom: 8%; left: 4%;
  animation: circleBreath 22s ease-in-out 4s infinite reverse;
}
.bc-3 {
  width: 380px; height: 380px;
  top: 42%; right: 28%;
  opacity: 0.7;
  animation: circleBreath 26s ease-in-out 9s infinite;
}

@keyframes circleBreath {
  0%,100% { transform: scale(1);    opacity: 1; }
  50%     { transform: scale(1.06); opacity: 0.6; }
}

/* ── Particles (shared) ── */
.particle-field {
  position: absolute; inset: 0;
  overflow: hidden; pointer-events: none; z-index: 0;
}
.particle {
  position: absolute; bottom: -20px; border-radius: 50%;
  animation: particleRise var(--dur, 10s) var(--del, 0s) ease-in infinite;
}
@keyframes particleRise {
  0%   { transform: translateY(0) scale(1);        opacity: var(--op, .25); }
  70%  {                                            opacity: var(--op, .25); }
  100% { transform: translateY(-110vh) scale(0.2); opacity: 0; }
}

/* ── Loader ── */
.loader {
  position: fixed; inset: 0; z-index: 500;
  background:
    radial-gradient(ellipse 130% 65% at -8% 0%,   rgba(255,210,85,0.55) 0%, transparent 52%),
    radial-gradient(ellipse 80%  115% at 108% 96%, rgba(255,148,40,0.45) 0%, transparent 55%),
    linear-gradient(150deg, #fffef9 0%, #fff7e8 20%, #fff0d2 50%, #ffe7bc 76%, #ffdda0 100%);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  transition: opacity .5s ease, visibility .5s ease;
}
.loader.out { opacity: 0; visibility: hidden; pointer-events: none; }
.loader > .particle-field { z-index: 0; }
.loader > *:not(.particle-field) { position: relative; z-index: 1; }

.loader-img {
  width: 72px; height: 72px; border-radius: 50%; object-fit: cover;
  border: 2.5px solid rgba(255,180,60,.4);
  box-shadow: 0 0 30px rgba(255,146,43,.5);
  animation: glowPulse 3s ease-in-out infinite;
}
.loader-text {
  font-size: 13px; font-weight: 500;
  color: rgba(47, 29, 10, 0.55); letter-spacing: .4px;
}
.loader-bar-track {
  width: 200px; height: 4px; border-radius: 999px;
  background: rgba(255,255,255,.1); overflow: hidden;
}
.loader-bar-fill {
  height: 100%; width: 0%; border-radius: 999px;
  background: linear-gradient(90deg, #ff922b, #ffbe3d);
  box-shadow: 0 0 10px rgba(255,146,43,.7);
  animation: barLoad 1.6s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes barLoad {
  0%   { width: 0%; }
  60%  { width: 80%; }
  85%  { width: 92%; }
  100% { width: 100%; }
}

/* ── Nav ── */
.nav {
  position: fixed; top: 20px; left: 0; right: 0;
  z-index: 300; display: flex; justify-content: center;
  pointer-events: none;
}

.nav-pill {
  pointer-events: all;
  display: flex; align-items: center; gap: 6px;
  background: rgba(255, 250, 240, 0.84);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 50px;
  backdrop-filter: blur(22px);
  padding: 7px 10px 7px 14px;
  gap: 16px;
  box-shadow: 0 10px 30px rgba(255, 122, 0, 0.12);
  transition: border-color .3s, box-shadow .3s, transform .3s;
}
.nav-pill:hover {
  border-color: var(--border-h);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6), 0 0 20px rgba(255,140,40,0.08);
}

.nav-brand { display: flex; align-items: center; gap: 8px; }
.nav-logo  { width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid rgba(255,160,50,.5); }
.nav-name  { font-size: 14px; font-weight: 700; letter-spacing: -.2px; }

.nav-mid { display: flex; align-items: center; gap: 4px; }
.nav-link {
  font-size: 13px; font-weight: 600; color: var(--dim);
  text-decoration: none; padding: 5px 11px; border-radius: 99px;
  transition: color .2s, background .2s;
}
.nav-link:hover { color: var(--text); background: rgba(255, 122, 0, 0.10); }

.nav-end { display: flex; align-items: center; gap: 8px; }

.nav-status {
  display: flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; color: var(--text-soft);
  padding: 4px 10px;
  border-radius: 99px;
  border: 1px solid rgba(255,122,0,0.14);
  background: rgba(255,255,255,0.65);
  transition: color .3s, border-color .3s;
}
.nav-status.online  { color: #277a3c; border-color: rgba(39,122,60,.2); }
.nav-status.offline { color: #b3471d; border-color: rgba(179,71,29,.2); }

.ns-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: currentColor; flex-shrink: 0;
  animation: nsDotPulse 2s ease-in-out infinite;
}
@keyframes nsDotPulse { 0%,100%{opacity:1} 50%{opacity:.4} }

.nav-gear {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255,255,255,.78); border: 1px solid rgba(255,122,0,.18);
  color: var(--text-soft); text-decoration: none;
  transition: background .2s, color .2s, transform .4s;
}
.nav-gear:hover { background: rgba(255, 122, 0, 0.12); color: var(--text); transform: rotate(90deg); }

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 120px 48px 80px;
}

.hero-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 60px; max-width: 1060px; width: 100%;
}

/* Copy */
.hero-copy { flex: 1; max-width: 520px; }

.hero-chat-card {
  position: absolute;
  inset: 10% 4% auto auto;
  width: min(280px, 65%);
  background: rgba(255,255,255,0.96);
  border: 1px solid rgba(255,122,0,.12);
  border-radius: 24px;
  box-shadow: 
    0 20px 60px rgba(95, 39, 0, 0.2),
    0 0 60px rgba(255, 159, 28, 0.15),
    inset 0 1px 0 rgba(255,255,255,.6);
  backdrop-filter: blur(20px);
  transform: rotate(-5deg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  animation: chatBounce 3s ease-in-out infinite;
}

@keyframes chatBounce {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-8px); }
}

/* Header */
.hc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
  position: relative;
}

.hc-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--o2), var(--o3));
  box-shadow: 
    inset 0 2px 4px rgba(255,255,255,.5),
    0 4px 12px rgba(255, 159, 28, 0.3);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hc-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.hc-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.hc-meta strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.3px;
}

.hc-meta span {
  font-size: 11px;
  color: var(--text-soft);
}

.hc-menu {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 159, 28, 0.08);
  color: var(--dim);
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.hc-menu:hover {
  background: rgba(255, 159, 28, 0.15);
  color: var(--text);
}

.hc-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 122, 0, 0.1), transparent);
  margin: 0 12px;
}

/* Thread */
.hc-thread {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 12px;
  flex: 1;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.hc-thread::-webkit-scrollbar {
  width: 4px;
}

.hc-thread::-webkit-scrollbar-track {
  background: transparent;
}

.hc-thread::-webkit-scrollbar-thumb {
  background: rgba(255, 122, 0, 0.2);
  border-radius: 2px;
}

.hc-thread::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 122, 0, 0.35);
}

/* Message bubbles */
.msg-bubble {
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: fit-content;
  max-width: 85%;
  padding: 8px 12px;
  border-radius: 16px;
  font-size: 12px;
  line-height: 1.5;
  animation: msgSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  opacity: 0;
}

.msg-bubble:nth-child(1) { animation-delay: 0.1s; }
.msg-bubble:nth-child(2) { animation-delay: 0.3s; }
.msg-bubble:nth-child(3) { animation-delay: 0.5s; }

@keyframes msgSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.msg-left {
  align-self: flex-start;
  background: linear-gradient(135deg, #f0ebe1, #f5f0e6);
  border: 1px solid rgba(255, 122, 0, 0.08);
  border-bottom-left-radius: 6px;
  color: var(--text);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.msg-right {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--o2), #ffb347);
  border-radius: 16px;
  border-bottom-right-radius: 6px;
  color: white;
  box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
  font-weight: 500;
}

.msg-text {
  word-wrap: break-word;
  word-break: break-word;
  font-weight: 500;
  color: inherit;
}

.msg-time {
  font-size: 9px;
  opacity: 0.75;
  margin-left: 2px;
  white-space: nowrap;
  font-weight: 400;
}

.msg-right .msg-time {
  color: rgba(255, 255, 255, 0.9);
}

.msg-left .msg-time {
  color: var(--text-soft);
}

.msg-read {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-top: 1px;
  align-self: flex-end;
}

.msg-read svg {
  opacity: 0.85;
  color: rgba(255, 255, 255, 0.95);
}

/* Typing indicator */
.msg-typing {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  width: fit-content;
  animation: msgSlide 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
  animation-delay: 0.7s;
  opacity: 0;
}

.typing-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--o2), var(--o3));
  box-shadow: 0 2px 6px rgba(255, 159, 28, 0.2);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.typing-avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.typing-indicator {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 12px;
  background: #f0ebe1;
  border: 1px solid rgba(255, 122, 0, 0.08);
  border-radius: 16px;
  border-bottom-left-radius: 6px;
}

.typing-indicator span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--dim);
  animation: typingBounce 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.5; }
  30% { transform: translateY(-8px); opacity: 1; }
}

/* Input area */
.hc-input-area {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, rgba(255,255,255,0.5), rgba(255,245,225,0.8));
  border-top: 1px solid rgba(255, 122, 0, 0.08);
}

.hc-input {
  flex: 1;
  height: 32px;
  padding: 8px 14px;
  border: 1px solid rgba(255, 122, 0, 0.15);
  border-radius: 999px;
  background: white;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  outline: none;
  transition: all 0.2s;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.02);
}

.hc-input::placeholder {
  color: var(--hint);
}

.hc-input:focus {
  border-color: rgba(255, 122, 0, 0.3);
  background: white;
  box-shadow: 
    inset 0 1px 2px rgba(0, 0, 0, 0.02),
    0 0 0 3px rgba(255, 159, 28, 0.1);
}

.hc-send {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--o2), var(--o3));
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 159, 28, 0.3);
}

.hc-send:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(255, 159, 28, 0.4);
}

.hc-send:active {
  transform: scale(0.95);
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; letter-spacing: .8px; text-transform: uppercase;
  color: var(--o2); margin-bottom: 24px;
}
.eyebrow-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--o2);
  box-shadow: 0 0 8px rgba(255,146,43,.7);
  animation: nsDotPulse 1.8s ease-in-out infinite;
}

.hero-h1 {
  font-size: clamp(38px, 5.5vw, 68px);
  font-weight: 900; line-height: 1.08;
  letter-spacing: -1.5px; margin-bottom: 22px;
  color: var(--text);
}

.grad-text {
  background: linear-gradient(90deg, #c85a04 0%, var(--o2) 50%, var(--o3) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-sub {
  font-size: 16px; line-height: 1.7; color: var(--dim);
  margin-bottom: 36px; max-width: 440px;
}

.hero-cta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 24px;
  background: linear-gradient(90deg, var(--o2), var(--o3));
  background-size: 200% auto;
  color: #fff; font-size: 14px; font-weight: 700;
  font-family: inherit; border: none; border-radius: 99px;
  text-decoration: none; cursor: pointer;
  box-shadow: 0 8px 24px rgba(247,103,7,.4), 0 0 0 1px rgba(255,146,43,.2) inset;
  transition: background-position .4s, box-shadow .3s, transform .15s;
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: 0 12px 32px rgba(247,103,7,.55), 0 0 0 1px rgba(255,146,43,.3) inset;
}
.btn-primary:active { transform: scale(.97); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 600; color: var(--dim);
  text-decoration: none;
  transition: color .2s;
}
.btn-ghost:hover { color: var(--text); }
.btn-ghost svg { transition: transform .3s; }
.btn-ghost:hover svg { transform: translateY(3px); }

/* Visual */
.hero-visual {
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  width: 420px; height: 420px;
}

.peko-stage {
  position: relative;
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  isolation: isolate;
}

/* Glow blob behind peko */
.peko-glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,146,43,.25) 0%, transparent 70%);
  filter: blur(24px);
  animation: glowPulse 3s ease-in-out infinite;
}
@keyframes glowPulse { 0%,100%{transform:scale(1);opacity:.8} 50%{transform:scale(1.3);opacity:1} }

/* Orbit rings */
.orb-ring {
  position: absolute; border-radius: 50%;
  border: 1.5px solid rgba(255,150,40,0.22);
}
.r1 { width: 200px; height: 200px; animation: ringPulse 3.5s ease-in-out infinite; }
.r2 { width: 280px; height: 280px; animation: ringPulse 3.5s ease-in-out .8s infinite; }
.r3 { width: 360px; height: 360px; animation: ringPulse 3.5s ease-in-out 1.6s infinite; }

@keyframes ringPulse {
  0%,100%{opacity:.5;transform:scale(1)}
  50%{opacity:1;transform:scale(1.03)}
}

.peko-hero {
  width: 130px; height: 130px; border-radius: 50%; object-fit: cover;
  border: 3px solid rgba(255,180,60,.4);
  box-shadow: 0 0 40px rgba(255,146,43,.5), 0 0 80px rgba(255,146,43,.2);
  position: absolute;
  bottom: 10%;
  left: 8%;
  z-index: 5;
  animation: heroPulse 3s ease-in-out infinite;
}
@keyframes heroPulse {
  0%,100%{box-shadow:0 0 40px rgba(255,146,43,.5),0 0 80px rgba(255,146,43,.2)}
  50%{box-shadow:0 0 60px rgba(255,146,43,.7),0 0 110px rgba(255,146,43,.3)}
}

/* Floating command bubbles */
.fb {
  position: absolute; z-index: 3;
  font-size: 11px; font-weight: 600;
  background: rgba(255,255,255,0.86);
  border: 1px solid rgba(255,122,0,.15);
  border-radius: 99px; padding: 6px 12px;
  white-space: nowrap; backdrop-filter: blur(8px);
  box-shadow: 0 10px 24px rgba(95, 39, 0, 0.10);
  color: var(--text-soft);
  animation: fbFloat 0s ease-in-out infinite;
}
.fb1 { top: 18%;  left:  4%;  animation: fbFloat1 5.0s ease-in-out infinite; }
.fb2 { top: 12%;  right: 6%;  animation: fbFloat2 5.5s ease-in-out infinite; }
.fb3 { top: 35%;  left:  2%; animation: fbFloat3 4.8s ease-in-out infinite; }
.fb4 { bottom: 16%; right: 4%; animation: fbFloat4 6.0s ease-in-out infinite; }
.fb5 { top: 50%;  right: 1%;  animation: fbFloat5 5.2s ease-in-out infinite; transform: translateY(-50%); }

@keyframes fbFloat1 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-10px)} }
@keyframes fbFloat2 { 0%,100%{transform:translateY(0)}  50%{transform:translateY( 8px)} }
@keyframes fbFloat3 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(-8px)} }
@keyframes fbFloat4 { 0%,100%{transform:translateY(0)}  50%{transform:translateY(11px)} }
@keyframes fbFloat5 { 0%,100%{transform:translateY(-50%)} 50%{transform:translateY(calc(-50% - 9px))} }

/* Peko GIF Overlay */
.peko-overlay {
  position: absolute;
  width: 240px;
  height: 240px;
  bottom: -20px;
  left: -40px;
  z-index: 10;
  object-fit: contain;
  filter: drop-shadow(0 18px 24px rgba(47, 29, 10, 0.18));
  animation: pekoFloat 3s ease-in-out infinite;
  pointer-events: none;
}

@keyframes pekoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}


/* Scroll cue */
.scroll-cue {
  position: absolute; bottom: 36px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center;
}
.scroll-line {
  width: 1.5px; height: 52px;
  background: linear-gradient(to bottom, transparent, var(--o2), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%{opacity:0;transform:scaleY(0);transform-origin:top}
  40%{opacity:1;transform:scaleY(1);transform-origin:top}
  60%{opacity:1;transform:scaleY(1);transform-origin:bottom}
  100%{opacity:0;transform:scaleY(0);transform-origin:bottom}
}

/* ── Stats strip ── */
.stats-strip {
  position: relative; z-index: 1;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.55);
  backdrop-filter: blur(10px);
  overflow: hidden;
}
.stats-strip::before {
  content:''; position:absolute; inset:0;
  background: linear-gradient(90deg, var(--bg), transparent 15%, transparent 85%, var(--bg));
  z-index:2; pointer-events:none;
}

.stats-inner {
  display: flex; align-items: stretch;
  max-width: 900px; margin: 0 auto;
}

.stat-block {
  flex: 1; padding: 28px 24px; text-align: center;
  position: relative;
}
.stat-num {
  font-size: 28px; font-weight: 800; letter-spacing: -1px;
  background: linear-gradient(90deg, var(--o1), var(--o2));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1.1; margin-bottom: 5px;
}
.stat-lbl { font-size: 11px; color: var(--hint); letter-spacing: .4px; font-weight: 500; }
.stat-sep { width: 1px; background: var(--border); flex-shrink: 0; margin: 16px 0; }

/* ── Sections ── */
.section { position: relative; z-index: 1; padding: 96px 48px; }
.section-inner { max-width: 980px; margin: 0 auto; }

.section-label-wrap { margin-bottom: 16px; }
.chip {
  display: inline-block;
  font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase;
  color: var(--o2);
  background: rgba(255,146,43,0.10);
  border: 1px solid rgba(255,146,43,0.22);
  border-radius: 99px; padding: 4px 13px;
}

.section-h2 {
  font-size: clamp(28px, 3.5vw, 46px);
  font-weight: 800; letter-spacing: -1px;
  margin-bottom: 12px; line-height: 1.15;
}
.section-p {
  font-size: 15px; color: var(--dim); margin-bottom: 44px; line-height: 1.7;
  max-width: 480px;
}
.section-p code {
  font-family: monospace;
  color: var(--o1); background: rgba(255,212,59,.1);
  padding: 1px 6px; border-radius: 5px;
}

/* ── Bento grid ── */
.bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: auto auto;
  gap: 12px;
}

.bento-cell {
  background: linear-gradient(145deg, rgba(255,255,255,0.92), rgba(255,245,224,0.82));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 22px;
  backdrop-filter: blur(8px);
  position: relative; overflow: hidden;
  transition: border-color .25s, background .25s, transform .25s, box-shadow .25s;
  cursor: default;
  box-shadow: 0 12px 24px rgba(95, 39, 0, 0.06);
}
.bento-cell::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 30%, rgba(255,146,43,.06) 0%, transparent 60%);
  pointer-events: none;
}
.bento-cell:hover {
  border-color: var(--border-h);
  background: rgba(255,130,20,0.09);
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(0,0,0,.4), 0 0 0 1px rgba(255,150,40,.1);
}

/* ── Light sweep on bento cells ── */
.bento-cell::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -90%;
  width: 50%;
  height: 160%;
  background: linear-gradient(
    108deg,
    transparent 15%,
    rgba(255,255,255,0.52) 50%,
    transparent 85%
  );
  transform: skewX(-14deg);
  transition: left 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 2;
}
.bento-cell:hover::after { left: 155%; }

.cell-music  { grid-column: span 7; }
.cell-lyrics { grid-column: span 5; }
.cell-games  { grid-column: span 4; }
.cell-wifi   { grid-column: span 4; }
.cell-uid    { grid-column: span 4; }
.cell-help {
  grid-column: span 12;
  display: flex;
  align-items: center;
  gap: 16px;
}

.cell-help .bc-top {
  display: contents;
}

.cell-help .bc-icon {
  flex-shrink: 0;
  order: 1;
}

.cell-help .help-content {
  flex: 1;
  order: 2;
}

.cell-help .bc-cmd {
  flex-shrink: 0;
  order: 3;
}

.bc-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.bc-icon {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(255,146,43,.1); border: 1px solid rgba(255,146,43,.2);
  color: var(--o2); flex-shrink: 0;
}
.bc-icon svg { display: block; }
.bc-cmd {
  font-size: 11px; font-family: monospace;
  color: var(--o1); background: rgba(255,212,59,.08);
  border: 1px solid rgba(255,212,59,.15);
  padding: 3px 9px; border-radius: 7px;
}
.p-ref { color: var(--o2); }

.bento-cell h3 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.bento-cell p  { font-size: 13px; color: var(--dim); line-height: 1.6; }

.cell-music  { min-height: 160px; }

/* Help cell horizontal */
.help-content h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; }
.help-content p  { font-size: 13px; color: var(--dim); line-height: 1.6; }
.help-content code {
  font-family: monospace; color: var(--o1);
  background: rgba(255,212,59,.08); padding: 1px 6px; border-radius: 4px;
}

/* ── Features ── */
.features { display: flex; flex-direction: column; gap: 12px; }

.feat-hero {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,0.94), rgba(255,244,219,0.85));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 40px;
  display: flex; align-items: center; gap: 36px;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  box-shadow: 0 16px 32px rgba(95, 39, 0, 0.08);
}
.feat-hero:hover {
  border-color: var(--border-h);
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(95,39,0,.13), 0 0 0 1px rgba(255,150,40,.1);
}

/* Light sweep */
.feat-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -80%;
  width: 45%;
  height: 160%;
  background: linear-gradient(
    108deg,
    transparent 15%,
    rgba(255,255,255,0.55) 50%,
    transparent 85%
  );
  transform: skewX(-14deg);
  transition: left 0.75s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 2;
}
.feat-hero:hover::after { left: 130%; }

.feat-hero-glow {
  position: absolute; top: -60px; left: -60px;
  width: 300px; height: 300px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,146,43,.18) 0%, transparent 70%);
  pointer-events: none;
}

.feat-icon-wrap {
  flex-shrink: 0;
  width: 80px; height: 80px; border-radius: 20px;
  background: rgba(255,146,43,.1); border: 1px solid rgba(255,146,43,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--o2);
}

.feat-hero-text h3 { font-size: 22px; font-weight: 800; margin-bottom: 10px; }
.feat-hero-text p  { font-size: 14px; color: var(--dim); line-height: 1.7; max-width: 500px; margin-bottom: 16px; }

.feat-tag {
  display: inline-block;
  font-size: 11px; font-weight: 600; letter-spacing: .5px;
  color: var(--o1); background: rgba(255,212,59,.08);
  border: 1px solid rgba(255,212,59,.2);
  border-radius: 99px; padding: 4px 12px;
}

.feat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}

.feat-card {
  position: relative; overflow: hidden;
  background: linear-gradient(145deg, rgba(255,255,255,0.9), rgba(255,244,220,0.82));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 28px;
  transition: border-color .3s, transform .3s, background .3s, box-shadow .3s;
  box-shadow: 0 12px 24px rgba(95, 39, 0, 0.06);
}
.feat-card:hover {
  border-color: var(--border-h);
  transform: translateY(-3px);
  background: rgba(255,130,20,0.08);
  box-shadow: 0 20px 40px rgba(95,39,0,.12), 0 0 0 1px rgba(255,150,40,.1);
}

/* Light sweep */
.feat-card::after {
  content: '';
  position: absolute;
  top: -30%;
  left: -90%;
  width: 55%;
  height: 160%;
  background: linear-gradient(
    108deg,
    transparent 15%,
    rgba(255,255,255,0.5) 50%,
    transparent 85%
  );
  transform: skewX(-14deg);
  transition: left 0.65s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  pointer-events: none;
  z-index: 2;
}
.feat-card:hover::after { left: 155%; }
.feat-card-icon {
  width: 50px; height: 50px; border-radius: 13px;
  background: rgba(255,146,43,.1); border: 1px solid rgba(255,146,43,.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--o2); margin-bottom: 14px;
}
.feat-card h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.feat-card p  { font-size: 13px; color: var(--dim); line-height: 1.65; }

/* ── Footer ── */
.footer {
  position: relative; z-index: 1;
  overflow: visible;
  padding: 28px 24px;
  text-align: center;
  border-top: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(255,255,255,0.32), transparent);
}

.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; }

.footer-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
  width: 100%;
  max-width: 760px;
}

.footer-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-peko {
  display: flex;
  align-items: flex-end;
  pointer-events: none;
  flex-shrink: 0;
}
.footer-img { width: 130px; height: 130px; object-fit: contain; }

.footer-title {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.footer-name { font-size: 16px; font-weight: 800; letter-spacing: -.3px; margin: 0; }
.footer-by   { font-size: 12px; color: var(--dim); margin: 0; }
.footer-links {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 12px;
  margin: 0;
}
.footer-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  position: relative;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  overflow: hidden;
  transition: color .25s ease;
}
.footer-links a::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, rgba(255,255,255,0), rgba(255,255,255,0.35), rgba(255,255,255,0));
  transform: translateX(-110%);
  opacity: 0;
  transition: transform .45s ease, opacity .25s ease;
}
.footer-links a:hover {
  color: var(--o3);
}
.footer-links a:hover::before {
  transform: translateX(110%);
  opacity: 1;
}
.footer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: var(--o3);
}
.footer-sep {
  color: var(--hint);
}
.heart { display: inline-block; animation: heartBeat 1.2s ease-in-out infinite; }
@keyframes heartBeat { 0%,100%{transform:scale(1)} 50%{transform:scale(1.25)} }
.footer-ver  { font-size: 11px; color: var(--hint); font-family: monospace; }

.heart-icon {
  display: inline-flex; align-items: center; vertical-align: middle;
  color: #f87171; margin: 0 2px;
  animation: heartBeat 1.2s ease-in-out infinite;
}

/* ── Reveal animation ── */
.reveal { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-inner { flex-direction: column; text-align: center; padding-top: 60px; }
  .hero-copy  { max-width: 100%; }
  .hero-sub   { max-width: 100%; }
  .hero-cta   { justify-content: center; }
  .hero-visual { width: 320px; height: 320px; }
  .peko-hero  { width: 100px; height: 100px; }
  .r1 { width: 150px; height: 150px; }
  .r2 { width: 210px; height: 210px; }
  .r3 { width: 270px; height: 270px; }
  .peko-overlay { width: 160px; height: 160px; bottom: -15px; left: -25px; }
  .hero-chat-panel { width: 100%; max-width: 100%; min-width: auto; margin-top: 18px; }
  .chat-messages { max-height: 280px; }
  .chat-input-row { gap: 10px; }
  .cell-music  { grid-column: span 12; }
  .cell-lyrics { grid-column: span 12; }
  .cell-games  { grid-column: span 12; }
  .cell-wifi   { grid-column: span 12; }
  .cell-uid    { grid-column: span 12; }
  .cell-help   { flex-direction: column; align-items: flex-start; }
  .feat-row    { grid-template-columns: 1fr; }
  .feat-hero   { flex-direction: column; text-align: center; }
  .section     { padding: 64px 24px; }
  .hero        { padding: 100px 24px 64px; }
}

@media (max-width: 600px) {
  .nav-mid { display: none; }
  .footer-row { justify-content: center; flex-wrap: nowrap; align-items: center; gap: 16px; }
  .footer-content { align-items: flex-start; text-align: left; min-width: 0; }
  .footer-img { width: 80px; height: 80px; }
  .footer-name { font-size: 13px; }
  .footer-by   { font-size: 10px; }
  .footer-links { font-size: 10px; gap: 6px; }
  .footer-icon  { width: 16px; height: 16px; }
  .hero-visual {
    width: 240px;
    height: 340px;
    align-items: flex-start;
    justify-content: flex-start;
  }
  .hero-chat-card {
    inset: 10% 10% auto auto;
    width: 220px;
    transform: none;
    border-radius: 30px;
  }
  .hc-thread {
    max-height: 180px;
    padding: 10px 10px;
  }
  .hc-input-area {
    padding: 10px 10px 12px;
  }
  .peko-overlay {
    width: 120px;
    height: 120px;
    bottom: -10px;
    left: -12px;
  }
  .fb {
    display: inline-flex;
    font-size: 10px;
    padding: 5px 10px;
    opacity: 0.95;
  }
  .fb1 { top: 10%; left:  6%; }
  .fb2 { top: 8%;  right: 6%; }
  .fb3 { top: 28%; left:  4%; }
  .fb4 { bottom: 18%; right: 6%; }
  .fb5 { top: 45%; right: 2%; transform: translateY(-50%); }
  .stats-inner { flex-wrap: wrap; }
  .stat-block { flex: 0 0 50%; }
  .stat-sep { display: none; }
  .feat-hero { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
