/* ============================================================
   HERO SECTION
============================================================ */
.hero {
  position: relative;
  padding: 80px 0 0;
  overflow: hidden;
  background: var(--grad-hero);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Ambient orbs */
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.orb-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(135,206,235,0.22) 0%, transparent 70%);
  top: -100px; right: -100px;
}

.orb-2 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, rgba(152,255,152,0.15) 0%, transparent 70%);
  bottom: 100px; left: -80px;
}

.orb-3 {
  width: 250px; height: 250px;
  background: radial-gradient(circle, rgba(255,215,0,0.10) 0%, transparent 70%);
  top: 40%; left: 40%;
}

/* Mesh grid overlay */
.hero-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(135,206,235,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(135,206,235,0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  flex: 1;
  padding-bottom: 80px;
}

/* ── Left: Content ── */
.hero-content { display: flex; flex-direction: column; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(64,224,208,0.08);
  border: 1px solid rgba(64,224,208,0.25);
  color: var(--teal-dark);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: var(--r-full);
  margin-bottom: 28px;
  width: fit-content;
  letter-spacing: 0.3px;
}

.eyebrow-dot {
  width: 7px; height: 7px;
  background: var(--teal);
  border-radius: 50%;
  animation: eyebrowPulse 2s ease-in-out infinite;
}

@keyframes eyebrowPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(64,224,208,0.5); }
  50%       { box-shadow: 0 0 0 5px rgba(64,224,208,0); }
}

.eyebrow-new {
  background: var(--teal);
  color: white;
  font-size: 0.65rem;
  padding: 2px 7px;
  border-radius: var(--r-full);
  font-weight: 800;
  letter-spacing: 0.5px;
}

/* Title */
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.8rem);
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1px;
  color: var(--dark);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.title-line { display: block; }

.title-gradient {
  background: linear-gradient(135deg, #3BBDE0, #40E0D0, #5DD87D);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Pills */
.hero-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 22px;
}

.pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 5px 13px;
  border-radius: var(--r-full);
  border: 1px solid;
}

.pill-sky  { background: rgba(135,206,235,0.12); border-color: rgba(135,206,235,0.4); color: #2A7FA0; }
.pill-mint { background: rgba(152,255,152,0.12); border-color: rgba(152,255,152,0.4); color: #1A7A3A; }
.pill-gold { background: rgba(255,215,0,0.10);   border-color: rgba(255,215,0,0.35);  color: #8A6A00; }

/* Description */
.hero-desc {
  font-size: 1.15rem;
  color: var(--gray-500);
  line-height: 1.8;
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-desc mark {
  background: linear-gradient(135deg, rgba(64,224,208,0.2), rgba(152,255,152,0.2));
  color: var(--dark);
  padding: 1px 5px;
  border-radius: 5px;
  font-weight: 700;
}

/* CTA group */
.hero-cta-group {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.btn-hero-primary {
  padding: 16px 36px;
  font-size: 1.05rem;
  font-weight: 700;
}

.btn-hero-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 26px;
  background: white;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--r-full);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: var(--shadow-xs);
}

.btn-hero-ghost:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sky);
  transform: translateY(-1px);
}

.play-ring {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, #87CEEB, #40E0D0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
  transition: transform 0.2s;
}

.btn-hero-ghost:hover .play-ring { transform: scale(1.1); }

/* Stats */
.hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
}

.hstat { display: flex; flex-direction: column; gap: 3px; }

.hstat-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--dark);
  letter-spacing: -0.5px;
  line-height: 1;
}

.hstat-label {
  font-size: 0.8rem;
  color: var(--gray-500);
  font-weight: 500;
  margin-top: 3px;
}

.hstat-sep {
  width: 1px;
  height: 40px;
  background: var(--gray-200);
}

/* ── Right: Visual ── */
.hero-visual {
  position: relative;
  height: 560px;
}

.hv-scene {
  position: relative;
  width: 100%;
  height: 100%;
}

/* Main browser */
.hv-browser {
  position: absolute;
  background: white;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--gray-200);
  overflow: hidden;
}

.hv-browser--main {
  width: 300px;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.hv-browser-chrome {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

.chrome-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
}
.chrome-red    { background: #FF6B6B; }
.chrome-yellow { background: #FFD700; }
.chrome-green  { background: #98FF98; }

.chrome-url {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 5px;
  background: white;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-sm);
  padding: 4px 10px;
  font-size: 0.62rem;
  color: var(--gray-500);
  margin-left: 6px;
}

.hv-browser-body { padding: 14px; }

.hv-mock-hero {
  background: linear-gradient(135deg, rgba(135,206,235,0.25), rgba(152,255,152,0.15));
  border-radius: var(--r-sm);
  padding: 16px;
  margin-bottom: 12px;
}

.hv-mock-nav {
  height: 8px;
  background: rgba(255,255,255,0.6);
  border-radius: 4px;
  margin-bottom: 12px;
  width: 100%;
}

.hv-mock-headline {
  height: 12px;
  background: rgba(255,255,255,0.7);
  border-radius: 4px;
  margin-bottom: 6px;
  width: 80%;
}

.hv-mock-sub {
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 4px;
  margin-bottom: 12px;
  width: 60%;
}

.hv-mock-btns { display: flex; gap: 8px; }

.hv-mock-btn {
  height: 22px;
  border-radius: var(--r-full);
}

.hv-mock-btn--fill {
  width: 70px;
  background: rgba(64,224,208,0.6);
}

.hv-mock-btn--outline {
  width: 55px;
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.5);
}

.hv-mock-cards {
  display: flex;
  gap: 6px;
}

.hv-mock-card {
  flex: 1;
  height: 36px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 60%, white));
  opacity: 0.5;
}

/* Analytics card */
.hv-analytics {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 170px;
  background: white;
  border-radius: var(--r-md);
  padding: 14px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  z-index: 4;
}

.hv-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hv-card-title {
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--dark);
}

.hv-card-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--r-full);
}

.hv-badge-up {
  background: rgba(152,255,152,0.2);
  color: #1A7A3A;
}

.hv-chart {
  display: flex;
  align-items: flex-end;
  gap: 5px;
  height: 52px;
}

.hv-chart-bar {
  flex: 1;
  height: var(--h);
  background: linear-gradient(to top, rgba(135,206,235,0.4), rgba(64,224,208,0.3));
  border-radius: 3px 3px 0 0;
  transition: height 0.3s;
}

.hv-chart-bar--active {
  background: linear-gradient(to top, #40E0D0, #87CEEB);
}

/* Terminal */
.hv-terminal {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 240px;
  background: #0F1C2E;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(15,28,46,0.25);
  border: 1px solid rgba(64,224,208,0.2);
  z-index: 5;
}

.hv-terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dots { display: flex; gap: 4px; }
.terminal-dots span {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.terminal-title {
  flex: 1;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.4);
  font-family: 'Courier New', monospace;
}

.terminal-status {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.6rem;
  color: #98FF98;
  font-weight: 600;
}

.terminal-pulse {
  width: 5px; height: 5px;
  background: #98FF98;
  border-radius: 50%;
  animation: termPulse 1.5s ease-in-out infinite;
}

@keyframes termPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.hv-terminal-body {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tline {
  font-family: 'Courier New', monospace;
  font-size: 0.68rem;
  line-height: 1.7;
}

.tline-indent { padding-left: 14px; }

.tline-result {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255,255,255,0.06);
}

.tk-comment { color: rgba(255,255,255,0.3); }
.tk-kw      { color: #79B8FF; }
.tk-var     { color: #98FF98; }
.tk-fn      { color: #40E0D0; }
.tk-op      { color: rgba(255,255,255,0.5); }
.tk-str     { color: #FFD700; }
.tk-prop    { color: #87CEEB; }
.tk-bool    { color: #FF9580; }
.tk-success { color: #98FF98; }

.term-cursor {
  display: inline-block;
  color: #40E0D0;
  animation: termBlink 1s step-end infinite;
}

@keyframes termBlink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

/* Toasts */
.hv-toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: white;
  border-radius: var(--r-lg);
  padding: 10px 16px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--gray-200);
  z-index: 6;
  min-width: 200px;
}

.hv-toast--1 { top: 10px; right: 0; }
.hv-toast--2 { top: 68px; right: 20px; opacity: 0.85; transform: scale(0.95); }

.toast-icon {
  width: 28px; height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.toast-icon--green { background: rgba(152,255,152,0.2); color: #1A7A3A; }
.toast-icon--blue  { background: rgba(135,206,235,0.2); color: #1A5A8A; }

.toast-body { display: flex; flex-direction: column; gap: 1px; }

.toast-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--dark);
}

.toast-sub {
  font-size: 0.62rem;
  color: var(--gray-500);
}

/* Particles */
.hv-particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.p1 { width:10px; height:10px; background:#87CEEB; opacity:0.5; top:15%; left:10%; animation: particleFloat 5s ease-in-out infinite; }
.p2 { width:7px;  height:7px;  background:#98FF98; opacity:0.4; top:70%; right:15%; animation: particleFloat 6s ease-in-out infinite 1s; }
.p3 { width:12px; height:12px; background:#FFD700; opacity:0.35; top:40%; left:5%; animation: particleFloat 4.5s ease-in-out infinite 0.5s; }
.p4 { width:6px;  height:6px;  background:#40E0D0; opacity:0.6; bottom:30%; right:5%; animation: particleFloat 5.5s ease-in-out infinite 2s; }
.p5 { width:8px;  height:8px;  background:#87CEEB; opacity:0.4; top:55%; left:20%; animation: particleFloat 7s ease-in-out infinite 1.5s; }

@keyframes particleFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  33%       { transform: translateY(-14px) rotate(120deg); }
  66%       { transform: translateY(8px) rotate(240deg); }
}

/* Wave */
.hero-wave {
  position: relative;
  z-index: 1;
  line-height: 0;
  margin-top: auto;
}

.hero-wave svg {
  width: 100%;
  height: 100px;
  display: block;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-bottom: 48px;
  }

  .hero-visual {
    height: 420px;
    order: -1;
  }

  .hv-browser--main { width: 240px; }
  .hv-terminal { width: 200px; font-size: 0.6rem; }
}

@media (max-width: 640px) {
  .hero { padding: 56px 0 0; min-height: auto; }
  .hero-title { font-size: 2.2rem; letter-spacing: -1.5px; }
  .hero-stats { gap: 18px; flex-direction: column; }
  .hstat-num { font-size: 1.3rem; }
  .hero-visual { height: 340px; }
  .hv-browser--main { width: 200px; }
  .hv-terminal { display: none; }
  .hv-toast--2 { display: none; }
  .hero-pills { flex-wrap: wrap; justify-content: center; }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 1.8rem; }
  .hero-desc { font-size: 0.95rem; }
  .hero-visual { height: 280px; }
  .hv-analytics, .hv-card { display: none; }
}
