﻿/* ============================================================
   Hero
   ============================================================ */

.hero { padding-top: 56px; padding-bottom: clamp(60px, 7vw, 120px); position: relative; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: center;
}
@media (max-width: 980px) { .hero-grid { grid-template-columns: 1fr; display: block; } }

.hero-copy { display: flex; flex-direction: column; gap: 24px; }
.hero-copy h1 .ink-fade { color: var(--muted-2); }
.hero-copy h1 .gradient {
  background: linear-gradient(120deg, var(--brand-navy) 0%, var(--brand-green) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero-trust {
  display: flex; align-items: center; gap: 16px;
  padding-top: 28px; margin-top: 8px;
  border-top: 1px solid var(--line);
  flex-wrap: wrap;
}
.hero-trust .label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.hero-trust .stats { display: flex; gap: 28px; flex-wrap: wrap; }
.hero-trust .stat { display: flex; flex-direction: column; gap: 2px; }
.hero-trust .stat .v { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hero-trust .stat .l { font-size: 12px; color: var(--muted); }

/* Hero background ambient */
.hero-ambient {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}
.hero-ambient::before {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  left: -200px; top: -260px;
  background: radial-gradient(closest-side, rgba(30, 31, 140, 0.18), transparent 70%);
  filter: blur(20px);
}
.hero-ambient::after {
  content: "";
  position: absolute;
  width: 720px; height: 720px;
  right: -260px; top: 40px;
  background: radial-gradient(closest-side, rgba(31, 174, 94, 0.18), transparent 70%);
  filter: blur(20px);
}

/* Page-wide grid bg */
.grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(15,16,38,0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(15,16,38,0.045) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 80%);
  pointer-events: none;
}

/* ============================================================
   Hero visual â€” abstract floating composition
   ============================================================ */

.hero-visual {
  position: relative;
  aspect-ratio: 1 / 1.05;
  min-height: 460px;
}
.hv-orb {
  position: absolute;
  inset: 6% 6% 6% 6%;
  border-radius: 36%;
  background:
    radial-gradient(closest-side, rgba(31,174,94,0.35), transparent 70%) 20% 30%/65% 65% no-repeat,
    radial-gradient(closest-side, rgba(30,31,140,0.40), transparent 70%) 80% 70%/65% 65% no-repeat;
  filter: blur(40px);
  opacity: 0.9;
  z-index: 0;
}
.hv-ring {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  border: 1px dashed rgba(15,16,38,0.10);
  z-index: 1;
  animation: spin-slow 60s linear infinite;
}
.hv-ring.r2 { inset: 18%; border-color: rgba(15,16,38,0.07); animation-duration: 90s; animation-direction: reverse; }
@keyframes spin-slow { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

.hv-card {
  position: absolute;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  z-index: 2;
  transition: transform .4s ease;
}
.hv-card .hv-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.hv-card .hv-title {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hv-card .hv-sub {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-2);
}

/* Card 1: deploy status */
.hv-c1 {
  top: 4%; left: -4%;
  width: 240px;
  animation: float1 7s ease-in-out infinite;
}
.hv-c1 .row { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 12px; color: var(--ink-2); }
.hv-c1 .row + .row { border-top: 1px solid var(--line); }
.hv-c1 .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-green); box-shadow: 0 0 0 0 rgba(31,174,94,0.6); animation: pulse 2s infinite; }
.hv-c1 .row .name { flex: 1; }
.hv-c1 .row .ms { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(31,174,94,0.55); }
  70% { box-shadow: 0 0 0 8px rgba(31,174,94,0); }
  100% { box-shadow: 0 0 0 0 rgba(31,174,94,0); }
}

/* Card 2: chart */
.hv-c2 {
  bottom: 14%; left: 6%;
  width: 280px;
  animation: float2 8s ease-in-out infinite;
}
.hv-c2 .stat-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.hv-c2 .stat-row .v { font-family: var(--font-display); font-size: 24px; font-weight: 600; letter-spacing: -0.02em; }
.hv-c2 .stat-row .delta {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--brand-green);
  background: var(--brand-green-soft);
  padding: 2px 6px; border-radius: 6px;
}
.hv-c2 svg { display: block; width: 100%; height: 72px; }

/* Card 3: nodes */
.hv-c3 {
  top: 18%; right: -6%;
  width: 230px;
  animation: float3 9s ease-in-out infinite;
}
.hv-c3 .nodes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.hv-c3 .node {
  aspect-ratio: 1; border: 1px solid var(--line);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #fff, var(--bg-soft));
  font-family: var(--font-mono); font-size: 10px; color: var(--muted);
}
.hv-c3 .node.on {
  background: linear-gradient(160deg, rgba(30,31,140,0.08), rgba(31,174,94,0.06));
  color: var(--brand-navy);
  border-color: rgba(30,31,140,0.25);
}
.hv-c3 .node.green {
  background: linear-gradient(160deg, rgba(31,174,94,0.10), rgba(31,174,94,0.02));
  color: var(--brand-green);
  border-color: rgba(31,174,94,0.30);
}

/* Card 4: progress chip */
.hv-c4 {
  bottom: 4%; right: 4%;
  width: 220px;
  animation: float4 10s ease-in-out infinite;
}
.hv-c4 .bar {
  height: 6px; border-radius: 999px; background: var(--bg-soft); overflow: hidden;
  margin-top: 6px;
}
.hv-c4 .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--brand-navy), var(--brand-green));
  width: 72%;
  border-radius: 999px;
}

@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
@keyframes float3 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes float4 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

/* ============================================================
   Hero visual v2: Software ecosystem (Vercel/Linear-style)
   ============================================================ */

.hv-dev { position: relative; }
.hv-dev .hv-orb { opacity: 0.5; }
.hv-dev .hv-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }

/* Dark code editor (main element) */
.hv-editor {
  position: absolute;
  top: 18%; left: 2%;
  width: 78%;
  background: #0E1020;
  border-radius: 16px;
  box-shadow:
    0 30px 70px -20px rgba(11,13,26,0.5),
    0 0 0 1px rgba(255,255,255,0.06) inset,
    0 1px 0 rgba(255,255,255,0.05) inset;
  overflow: hidden;
  z-index: 3;
  animation: float2 10s ease-in-out infinite;
}
.hv-editor-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px;
  background: linear-gradient(180deg, #181A2D, #0E1020);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.hv-editor-bar .dots { display: flex; gap: 5px; }
.hv-editor-bar .dots span {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,0.18);
}
.hv-editor-bar .tabs {
  display: flex; gap: 4px; flex: 1;
  font-family: var(--font-mono);
  font-size: 11px;
}
.hv-editor-bar .tab {
  padding: 4px 9px; border-radius: 6px;
  color: rgba(255,255,255,0.38);
  transition: color .2s ease;
}
.hv-editor-bar .tab.active {
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.95);
}
.hv-editor-bar .branch {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono); font-size: 10.5px;
  color: rgba(255,255,255,0.5);
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.hv-editor-body {
  display: grid;
  grid-template-columns: 32px 1fr;
  padding: 0 0 12px;
  background: #0E1020;
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.65;
}
.hv-editor-body .gutter {
  display: flex; flex-direction: column;
  text-align: right;
  color: rgba(255,255,255,0.2);
  padding-right: 10px;
}
.hv-editor-body .code {
  padding: 0 14px 0 6px;
  color: rgba(255,255,255,0.85);
  overflow: hidden;
}
.hv-editor-body .code .k { color: #C792EA; }
.hv-editor-body .code .s { color: #C3E88D; }
.hv-editor-body .code .v { color: #82AAFF; }
.hv-editor-body .code .f { color: #82AAFF; }
.hv-editor-body .code .t { color: #FFCB6B; }
.hv-editor-body .code .a { color: #F07178; }

.hv-terminal {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 10px 14px 12px;
  background: #0A0C1A;
  font-family: var(--font-mono);
  font-size: 11px;
  display: flex; flex-direction: column; gap: 3px;
}
.hv-terminal .t-line { color: rgba(255,255,255,0.7); }
.hv-terminal .t-line.g { color: #5DD89A; }
.hv-terminal .prompt { color: #82AAFF; margin-right: 6px; }
.hv-terminal .dim { color: rgba(255,255,255,0.35); }

/* API card */
.hv-api {
  position: absolute;
  top: 0; right: -2%;
  width: 240px;
  padding: 14px;
  z-index: 4;
  animation: float3 12s ease-in-out infinite;
}
.hv-api .hv-head { margin-bottom: 10px; }
.hv-api .api-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 0; font-size: 11.5px;
  border-bottom: 1px solid var(--line);
}
.hv-api .api-row:last-child { border-bottom: 0; padding-bottom: 0; }
.hv-api .api-row .method {
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600;
  padding: 2px 6px; border-radius: 5px;
  letter-spacing: 0.04em;
}
.hv-api .api-row .method.get  { background: rgba(31,174,94,0.10); color: var(--brand-green); }
.hv-api .api-row .method.post { background: rgba(30,31,140,0.10); color: var(--brand-navy); }
.hv-api .api-row .method.put  { background: rgba(249,115,22,0.12); color: #C2410C; }
.hv-api .api-row .path {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-2); flex: 1;
}
.hv-api .api-row .ms {
  font-family: var(--font-mono); font-size: 10px; color: var(--muted-2);
}

/* Deploy card */
.hv-deploy {
  position: absolute;
  top: 4%; left: 0;
  width: 230px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  z-index: 4;
  animation: float1 11s ease-in-out infinite;
}
.hv-deploy .deploy-icon {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(160deg, rgba(30,31,140,0.10), rgba(31,174,94,0.08));
  color: var(--brand-navy);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.hv-deploy .deploy-meta { flex: 1; min-width: 0; }
.hv-deploy .dep-l { font-family: var(--font-mono); font-size: 11px; font-weight: 600; color: var(--ink); }
.hv-deploy .dep-s { font-family: var(--font-mono); font-size: 10px; color: var(--muted); margin-top: 1px; }
.hv-deploy .dep-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--brand-green);
  box-shadow: 0 0 0 0 rgba(31,174,94,0.55);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

/* Component architecture card */
.hv-graph {
  position: absolute;
  bottom: 2%; left: 0;
  width: 220px;
  padding: 14px;
  z-index: 4;
  animation: float2 12s ease-in-out infinite;
}
.hv-graph .graph-svg { width: 100%; height: 78px; margin-top: 6px; }

/* Cross-platform device preview card */
.hv-device {
  position: absolute;
  bottom: 4%; right: -2%;
  width: 220px;
  padding: 14px;
  z-index: 4;
  animation: float4 13s ease-in-out infinite;
}
.hv-device .dev-stack {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 8px;
  margin-top: 8px;
  align-items: stretch;
}
.hv-device .dv {
  background: linear-gradient(160deg, #1F2238, #0B0D1A);
  border-radius: 10px;
  padding: 10px 6px 6px;
  position: relative;
  overflow: hidden;
}
.hv-device .dv.phone { height: 90px; }
.hv-device .dv.tablet {
  height: 90px;
  padding: 8px;
  display: flex; align-items: flex-end; gap: 4px;
}
.hv-device .dv.phone .notch {
  position: absolute;
  top: 4px; left: 50%; transform: translateX(-50%);
  width: 22px; height: 4px; border-radius: 3px;
  background: rgba(255,255,255,0.2);
}
.hv-device .dv.phone .row {
  display: block;
  height: 8px; border-radius: 3px;
  margin: 6px 4px 0;
  background: rgba(255,255,255,0.12);
}
.hv-device .dv.phone .row.r1 { background: rgba(130,170,255,0.55); width: 80%; margin-top: 12px; }
.hv-device .dv.phone .row.r2 { width: 60%; }
.hv-device .dv.phone .row.r3 { background: rgba(93,216,154,0.55); width: 70%; }
.hv-device .dv.tablet .col {
  flex: 1;
  border-radius: 4px;
  background: rgba(255,255,255,0.12);
}
.hv-device .dv.tablet .col.c1 { height: 60%; background: rgba(130,170,255,0.45); }
.hv-device .dv.tablet .col.c2 { height: 85%; }
.hv-device .dv.tablet .col.c3 { height: 45%; background: rgba(93,216,154,0.45); }

/* Mobile responsive for the new hero composition */
@media (max-width: 720px) {
  .hero-visual.hv-dev { height: 420px; aspect-ratio: inherit; }
  .hv-editor { width: 90%; top: 22%; left: 5%; }
  .hv-editor-body { font-size: 10.5px; padding: 10px 0; }
  .hv-editor-body .code { font-size: 10.5px; }
  .hv-api { width: 180px; top: 4%; right: 0; padding: 10px; }
  .hv-api .api-row { padding: 5px 0; font-size: 10.5px; }
  .hv-deploy { width: 200px; padding: 10px 12px; top: 0; left: 0; }
  .hv-graph { display: none; }
  .hv-device { width: 160px; bottom: 0; right: 0; padding: 10px; }
  .hero { padding: 12px !important;}
}
@media (max-width: 480px) {
  .hv-deploy { display: none; }
  .hv-api { width: 160px; }
  .hv-device { display: none; }
  .hv-editor { width: 92%; top: 8%; left: 4%; }
}
