/* ==========================================
   SOFTEDGE SOLUTION — HERO SECTION
   ========================================== */

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 96px;
  background: var(--primary);
}

/* Decorative background */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hero-bg-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(37,99,235,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 0%, black 40%, transparent 100%);
}

.hero-blob-1 {
  position: absolute;
  width: 700px;
  height: 700px;
  top: -200px;
  right: -100px;
  border-radius: 60% 40% 30% 70% / 60% 30% 70% 40%;
  background: radial-gradient(circle, rgba(37,99,235,0.12) 0%, rgba(124,58,237,0.08) 50%, transparent 70%);
  filter: blur(48px);
  animation: morph 14s ease-in-out infinite, float-1 10s ease-in-out infinite;
}

.hero-blob-2 {
  position: absolute;
  width: 500px;
  height: 500px;
  bottom: -100px;
  left: -100px;
  border-radius: 40% 60% 70% 30% / 50% 60% 40% 60%;
  background: radial-gradient(circle, rgba(124,58,237,0.1) 0%, rgba(37,99,235,0.06) 50%, transparent 70%);
  filter: blur(48px);
  animation: morph 12s ease-in-out infinite 2s, float-2 8s ease-in-out infinite;
}

/* Inner layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 32px;
}

/* Left content */
.hero-content {}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--gradient-soft);
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 24px;
  animation: slide-down 0.8s var(--ease-out) both;
}

.hero-eyebrow .dot {
  width: 7px;
  height: 7px;
  background: #22C55E;
  border-radius: 50%;
  position: relative;
}

.hero-eyebrow .dot::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #22C55E;
  animation: ping 1.5s cubic-bezier(0,0,0.2,1) infinite;
}

.hero-heading {
  font-family: var(--font-heading);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.04em;
  color: var(--text);
  margin-bottom: 24px;
  animation: slide-up 0.9s 0.1s var(--ease-out) both;
}

.hero-heading .line-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 520px;
  margin-bottom: 36px;
  animation: slide-up 0.9s 0.22s var(--ease-out) both;
}

.hero-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  animation: slide-up 0.9s 0.34s var(--ease-out) both;
}

/* Metrics row */
.hero-metrics {
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 0;
  animation: slide-up 0.9s 0.46s var(--ease-out) both;
}

.hero-metric {
  padding: 16px 20px;
  border-right: 1px solid var(--border);
  text-align: center;
}

.hero-metric:first-child { padding-left: 0; text-align: left; }
.hero-metric:last-child  { border-right: none; }

.metric-number {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 5px;
  white-space: nowrap;
}

/* ── Right: floating cards canvas ── */
.hero-visual {
  position: relative;
  height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fade-in 1s 0.4s var(--ease-out) both;
}

/* Centre illustration ring */
.hero-ring {
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: var(--gradient-soft);
  border: 1.5px dashed rgba(37,99,235,0.2);
  animation: spin-slow 40s linear infinite;
}

.hero-ring-inner {
  position: absolute;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: rgba(255,255,255,0.8);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
}

.hero-center-logo {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.04em;
  text-align: center;
  line-height: 1;
}

.hero-center-sub {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Floating service cards */
.hero-card {
  position: absolute;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255,255,255,0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  cursor: default;
  transition: transform 0.2s var(--ease-bounce), box-shadow 0.2s var(--ease);
  z-index: 5;
}

.hero-card:hover {
  transform: translateY(-4px) scale(1.03) !important;
  box-shadow: var(--shadow-hover);
}

.hero-card-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.hero-card-text {
  display: flex;
  flex-direction: column;
}

.hero-card-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.hero-card-sub {
  font-size: 0.67rem;
  color: var(--text-secondary);
}

/* Card positions */
.hc-1  { top: 5%;  left: -2%;  animation: float-1 5.2s ease-in-out infinite; }
.hc-2  { top: 15%; right: -3%; animation: float-2 6.1s ease-in-out infinite; }
.hc-3  { top: 38%; left: -8%;  animation: float-3 4.8s ease-in-out infinite; }
.hc-4  { top: 60%; right: 0%;  animation: float-1 5.8s ease-in-out infinite 0.5s; }
.hc-5  { top: 80%; left: 2%;   animation: float-2 7s ease-in-out infinite 1s; }
.hc-6  { bottom: 5%; right: 4%; animation: float-3 5.3s ease-in-out infinite 0.3s; }
.hc-7  { top: 50%; left: 48%;  animation: float-4 4.7s ease-in-out infinite 0.8s; }
.hc-8  { top: 72%; right: 28%; animation: float-5 6.3s ease-in-out infinite 1.2s; }
.hc-9  { top: 22%; left: 35%;  animation: float-1 5.5s ease-in-out infinite 0.6s; }
.hc-10 { top: 88%; left: 45%;  animation: float-2 6.7s ease-in-out infinite 0.2s; }

/* Card colours */
.hc-blue   { background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, rgba(255,255,255,0.95) 60%); }
.hc-purple { background: linear-gradient(135deg, rgba(124,58,237,0.1) 0%, rgba(255,255,255,0.95) 60%); }
.hc-green  { background: linear-gradient(135deg, rgba(34,197,94,0.1) 0%, rgba(255,255,255,0.95) 60%); }
.hc-orange { background: linear-gradient(135deg, rgba(249,115,22,0.1) 0%, rgba(255,255,255,0.95) 60%); }
.hc-pink   { background: linear-gradient(135deg, rgba(236,72,153,0.1) 0%, rgba(255,255,255,0.95) 60%); }

/* Card icon colours */
.ci-blue   { background: rgba(37,99,235,0.12); }
.ci-purple { background: rgba(124,58,237,0.12); }
.ci-green  { background: rgba(34,197,94,0.12); }
.ci-orange { background: rgba(249,115,22,0.12); }
.ci-pink   { background: rgba(236,72,153,0.12); }
.ci-teal   { background: rgba(20,184,166,0.12); }
.ci-red    { background: rgba(239,68,68,0.12); }
.ci-indigo { background: rgba(99,102,241,0.12); }

/* Mini metric badge on card */
.hc-metric {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.65rem;
  font-weight: 700;
  color: #22C55E;
  background: rgba(34,197,94,0.1);
  padding: 2px 7px;
  border-radius: 4px;
}

/* ── Scroll indicator ── */
.hero-scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  animation: fade-in 1s 1.2s both;
}

.scroll-text {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-light);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid var(--border);
  border-radius: 11px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 5px;
}

.scroll-dot {
  width: 3px;
  height: 8px;
  background: var(--accent);
  border-radius: 2px;
  animation: bounce-y 1.6s ease-in-out infinite;
}
