/* ============================================================
   Home Page — Specific Styles
   ============================================================ */

/* ── Hero ──────────────────────────────────────────────────── */
#hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding-top: 80px;
  background: var(--grad-hero);
}

/* Softer grid — not “tech demo” blue */
.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(20, 33, 44, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(20, 33, 44, 0.04) 1px, transparent 1px);
  background-size: 72px 72px;
  pointer-events: none;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
}

.particles-bg {
  display: none !important;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.hero-glow-1 {
  width: 520px;
  height: 520px;
  background: rgba(13, 148, 136, 0.12);
  top: -120px;
  right: -80px;
}

.hero-glow-2 {
  width: 380px;
  height: 380px;
  background: rgba(196, 92, 62, 0.08);
  bottom: -40px;
  left: 5%;
}

.hero-glow-3 {
  width: 280px;
  height: 280px;
  background: rgba(13, 148, 136, 0.06);
  top: 35%;
  left: 45%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
  padding: 2rem 0;
}

/* .hero-content styling */

.hero-topline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.hero-topline .section-label {
  margin-bottom: 0;
  padding: 7px 16px;
  background: rgba(13, 148, 136, 0.04);
  border: 1px solid rgba(13, 148, 136, 0.12);
  color: var(--clr-accent-dk);
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  height: 34px;
  border-radius: var(--r-pill);
}

.hero-topline .hipaa-badge {
  height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 16px;
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.15);
  color: var(--clr-green);
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: var(--r-pill);
}

.hero-topline .hipaa-badge .hb-dot {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  background: var(--clr-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--clr-green);
}

.hero-content h1 {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-content h1 em {
  font-style: normal;
  display: block;
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.1rem;
  line-height: 1.9;
  color: var(--clr-muted);
  max-width: 640px;
  margin-bottom: 1rem;
}

.hero-sub-2 {
  margin-bottom: 2rem;
}

.hero-cta-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2.5rem;
}

.hero-trust {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1rem;
}

.ht-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(13, 148, 136, 0.05);
  border: 1px solid rgba(13, 148, 136, 0.15);
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--clr-accent-dk);
  transition: all var(--t-med);
}

.ht-item:hover {
  background: rgba(13, 148, 136, 0.1);
  border-color: rgba(13, 148, 136, 0.3);
  transform: translateY(-1px);
}

.ht-item .ht-icon {
  color: var(--clr-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ht-item .ht-icon svg {
  width: 14px;
  height: 14px;
  stroke-width: 3;
}

/* Hero Visual */
.hero-visual {
  position: relative;
}

.hero-card-stack {
  position: relative;
}

.hv-main {
  background: linear-gradient(165deg, #FFFFFF 0%, #F7F4EF 100%);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
}

.hv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

.hv-title {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--clr-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hv-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: var(--clr-green);
  font-weight: 600;
}

.hv-status .dot {
  width: 7px;
  height: 7px;
  background: var(--clr-green);
  border-radius: 50%;
  animation: pulse-ring 1.5s infinite;
}

.hv-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.hv-metric {
  padding: 0.85rem;
  border-radius: var(--r-sm);
  background: var(--clr-bg-2);
  border: 1px solid var(--clr-border);
}

.hv-metric .hm-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1;
}

.hv-metric .hm-val span {
  font-size: 0.85rem;
  color: var(--clr-green);
  font-weight: 600;
}

.hv-metric .hm-label {
  font-size: 0.73rem;
  color: var(--clr-muted);
  margin-top: 0.25rem;
}

/* .hv-bar-section styling */

.hv-bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-bottom: 0.4rem;
}

.hv-bar-track {
  height: 6px;
  background: rgba(20, 33, 44, 0.08);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.hv-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--grad-teal);
  animation: barGrow 1.5s ease forwards;
  width: 0%;
}

@keyframes barGrow {
  to {
    width: var(--bar-w, 75%);
  }
}

/* Floating mini cards */
.hv-float-1 {
  top: -45px;
  right: -95px;
  animation: float 5.5s ease-in-out infinite;
}

.hv-float-2 {
  bottom: -20px;
  left: -115px;
  animation: float 6.5s ease-in-out infinite 0.75s;
}

.hv-float {
  position: absolute;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--r-md);
  padding: 0.95rem 1.15rem;
  box-shadow: 0 15px 45px rgba(20, 33, 44, 0.08), 0 5px 15px rgba(20, 33, 44, 0.05);
  font-size: 0.8rem;
  white-space: nowrap;
  z-index: 10;
  border-bottom: 2px solid rgba(13, 148, 136, 0.15);
}

.hv-float .fl-label {
  color: var(--clr-muted);
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.hv-float .fl-val {
  font-family: var(--font-head);
  font-weight: 700;
  color: var(--clr-text);
}

.hv-float .fl-up {
  color: var(--clr-green);
  font-weight: 600;
  font-size: 0.78rem;
}

.hv-float .fl-icon {
  font-size: 1.4rem;
  margin-bottom: 0.25rem;
}

/* ── General Spacing ── */
.section {
  padding: var(--space-lg) 0;
}

/* ── Services Grid ─────────────────────────────────────────── */
#services {
  padding: var(--space-lg) 0;
  position: relative;
  overflow: hidden;
}

#services::before {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 720px;
  height: 720px;
  background: radial-gradient(circle, rgba(13, 148, 136, 0.06) 0%, transparent 68%);
  pointer-events: none;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.service-card {
  padding: 2rem;
  border-radius: var(--r-lg);
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--shadow-sm);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 4px;
  background: var(--card-accent, var(--grad-teal));
  opacity: 0;
  transition: opacity var(--t-med);
}

.service-card:hover::before {
  opacity: 1;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(13, 148, 136, 0.35);
  box-shadow: var(--shadow-lg);
}

.sc-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: var(--r-md);
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  background: var(--card-icon-bg, rgba(37, 99, 235, 0.15));
  border: 1px solid var(--card-icon-border, rgba(37, 99, 235, 0.25));
  flex-shrink: 0;
  transition: transform var(--t-med);
}

.service-card:hover .sc-icon-wrap {
  transform: translateY(-2px);
}

.sc-number {
  font-family: var(--font-head);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--clr-muted);
  letter-spacing: 0.1em;
}

.sc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.3;
}

.service-card p {
  font-size: 0.88rem;
  line-height: 1.7;
  flex: 1;
}

.sc-link {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--clr-accent-dk);
  margin-top: auto;
  transition: gap var(--t-fast);
}

.service-card:hover .sc-link {
  gap: 10px;
}

.sc-arrow {
  transition: transform var(--t-fast);
}

.service-card:hover .sc-arrow {
  transform: translateX(4px);
}

/* ── Why Choose Us ─────────────────────────────────────────── */
#why-us {
  padding: var(--space-lg) 0;
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.why-features {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.why-feature {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  transition: all var(--t-med);
  cursor: default;
}

.why-feature:hover {
  background: rgba(13, 148, 136, 0.06);
  border-color: var(--clr-border);
}

.wf-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  flex-shrink: 0;
  background: rgba(13, 148, 136, 0.1);
  border: 1px solid rgba(13, 148, 136, 0.22);
}

.wf-text h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 0.35rem;
}

.wf-text p {
  font-size: 0.875rem;
  line-height: 1.7;
}

.why-visual {
  position: relative;
}

.security-card {
  padding: 2.5rem;
  border-radius: var(--r-xl);
  background: linear-gradient(165deg, #FFFFFF, #F0F7F6);
  border: 1px solid rgba(13, 148, 136, 0.22);
  text-align: center;
  box-shadow: var(--shadow-md);
}

.sc-shield {
  font-size: 4rem;
  margin-bottom: 1rem;
  display: block;
}

.security-card h3 {
  color: var(--clr-accent-dk);
  margin-bottom: 0.5rem;
}

.security-card p {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}

.security-features {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.sec-feat {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--clr-muted);
}

.sec-feat .sf-check {
  width: 20px;
  height: 20px;
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.65rem;
  color: var(--clr-green);
  flex-shrink: 0;
}

/* ── Stats Section ─────────────────────────────────────────── */
#stats {
  padding: var(--space-lg) 0;
  background: linear-gradient(180deg, transparent, rgba(13, 148, 136, 0.05), transparent);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.stat-card {
  background: var(--clr-white);
  padding: 2rem 1.5rem;
  border-radius: var(--r-md);
  border: 1px solid var(--clr-border);
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform var(--t-med), box-shadow var(--t-med);
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--clr-primary-lt);
}

.stat-number {
  font-family: var(--font-head);
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--clr-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.stat-label {
  font-size: 1rem;
  color: var(--clr-text-2);
  line-height: 1.4;
  font-weight: 500;
}

/* ── Responsive Home ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .services-grid {
    grid-template-columns: 1fr;
  }

  .hero-cta-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .hv-float {
    display: none;
  }

  .hv-metrics {
    grid-template-columns: 1fr 1fr;
  }
}