/* ══════════════════════════════════════════════════════════════
   HMS Tech Nexus — Global Stylesheet
   Brand colors: #22d3ee (teal/cyan), #8b5cf6 (purple), #ffffff (white)
   ══════════════════════════════════════════════════════════════ */

:root {
  --teal:      #22d3ee;
  --teal-d:    #0891b2;
  --teal-l:    #cffafe;
  --purple:    #8b5cf6;
  --purple-d:  #6d28d9;
  --purple-l:  #ede9fe;
  --white:     #ffffff;
  --dark:      #0a0f1e;
  --dark2:     #0f172a;
  --dark3:     #1e293b;
  --slate:     #64748b;
  --slate-l:   #94a3b8;
  --border:    #e2e8f0;
  /* Pure single-color gradients — no mixing */
  --grad-teal:   linear-gradient(135deg, #22d3ee 0%, #0891b2 100%);
  --grad-purple: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --shadow-sm: 0 2px 8px rgba(34,211,238,.12);
  --shadow-md: 0 8px 30px rgba(139,92,246,.15);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
  --radius:    12px;
  --radius-lg: 20px;
  --ff:        'Inter', 'Segoe UI', system-ui, sans-serif;
  --ff-head:   'Poppins', 'Segoe UI', system-ui, sans-serif;
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff);
  color: var(--dark2);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

/* ── Typography ────────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-head);
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark2);
}
h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.2rem; }
p  { color: var(--slate); line-height: 1.75; }

/* ── Layout ─────────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.section { padding: 90px 0; }
.section-sm { padding: 60px 0; }

/* ── Highlight text colors (single pure colors, no gradients) ── */
.grad-text   { color: var(--purple); }   /* default accent — purple */
.teal-text   { color: var(--teal-d); }   /* teal/green accent */
.purple-text { color: var(--purple); }   /* purple accent */
/* Popular price amount — purple only */
.price-amount-popular {
  color: var(--purple);
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 4px;
}

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 50px;
  font-family: var(--ff-head);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: all .2s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-purple);
  color: white;
  box-shadow: 0 4px 20px rgba(139,92,246,.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,.5);
}
.btn-outline {
  background: transparent;
  color: var(--teal-d);
  border: 2px solid var(--teal);
}
.btn-outline:hover {
  background: var(--teal);
  color: white;
  transform: translateY(-2px);
}
.btn-white {
  background: white;
  color: var(--purple);
  box-shadow: 0 4px 20px rgba(0,0,0,.1);
}
.btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(0,0,0,.15);
}
.btn-lg { padding: 16px 40px; font-size: 17px; }
.btn-sm { padding: 8px 20px; font-size: 13px; }

/* ── Badge ───────────────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
}
.badge-teal   { background: var(--teal-l);   color: var(--teal-d); }
.badge-purple { background: var(--purple-l); color: var(--purple-d); }
.badge-grad   { background: var(--grad-purple); color: white; }

/* ── Card ────────────────────────────────────────────────────── */
.card {
  background: white;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 32px;
  transition: all .25s ease;
}
.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(139,92,246,.2);
}
.card-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: var(--grad-teal);
  color: white;
}

/* ── Section heading ─────────────────────────────────────────── */
.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}
.section-head .badge { margin-bottom: 12px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: 1.05rem; }

/* ── NAVBAR ──────────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: 16px 0;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: all .3s ease;
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,.06);
  padding: 12px 0;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 40px; width: auto; }
.nav-logo-text { font-family: var(--ff-head); font-weight: 800; font-size: 20px; }
.nav-logo-text span:first-child { color: var(--teal); }
.nav-logo-text span:last-child  { color: var(--purple); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--dark3);
  transition: all .2s;
}
.nav-links a:hover { background: var(--purple-l); color: var(--purple); }
.nav-links a.active { color: var(--teal); font-weight: 700; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { width: 24px; height: 2px; background: var(--dark2); border-radius: 2px; transition: all .3s; }

/* ── HERO ─────────────────────────────────────────────────────── */
.hero {
  padding: 140px 0 90px;
  background: linear-gradient(160deg, #f8faff 0%, #f0f4ff 50%, #faf5ff 100%);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34,211,238,.08) 0%, transparent 70%);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -150px;
  left: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,.06) 0%, transparent 70%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge { margin-bottom: 16px; }
.hero h1 { margin-bottom: 20px; }
.hero-sub {
  font-size: 1.15rem;
  margin-bottom: 36px;
  color: var(--slate);
  max-width: 480px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.hero-stat-val {
  font-family: var(--ff-head);
  font-size: 2rem;
  font-weight: 800;
  color: var(--teal-d);
}
.hero-stat-lbl { font-size: 13px; color: var(--slate); margin-top: 2px; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-mockup {
  width: 100%;
  max-width: 520px;
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(139,92,246,.15);
  overflow: hidden;
  background: var(--dark2);
}
.mockup-bar {
  background: var(--dark);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; }
.mockup-content {
  padding: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.mockup-card {
  background: var(--dark3);
  border-radius: 10px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.06);
}
.mockup-card-val {
  font-family: monospace;
  font-size: 22px;
  font-weight: 800;
  color: var(--teal);
}
.mockup-card-lbl { font-size: 10px; color: rgba(255,255,255,.4); margin-top: 3px; }
.mockup-wide {
  grid-column: 1 / -1;
  height: 60px;
  border-radius: 10px;
  background: rgba(34,211,238,.12);
  border: 1px solid rgba(34,211,238,.2);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 10px;
}
.mockup-pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.4;transform:scale(.8)} }

/* Floating badge on mockup */
.hero-float {
  position: absolute;
  background: white;
  border-radius: 12px;
  padding: 10px 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,.12);
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}
.hero-float-1 { top: 20px; right: -20px; color: var(--teal-d); }
.hero-float-2 { bottom: 40px; left: -20px; color: var(--purple-d); }
.hf-icon { font-size: 16px; }

/* ── FEATURES ─────────────────────────────────────────────────── */
.features { background: white; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.feature-card { padding: 28px; }
.feature-card h4 { margin: 0 0 10px; color: var(--dark2); }
.feature-card p { font-size: 14px; }

/* ── MODULES ──────────────────────────────────────────────────── */
.modules { background: linear-gradient(160deg, #fafbff 0%, #f5f0ff 100%); }
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.module-chip {
  display: flex;
  align-items: center;
  gap: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-weight: 600;
  font-size: 14px;
  transition: all .2s;
  cursor: default;
}
.module-chip:hover {
  border-color: var(--teal);
  color: var(--teal-d);
  box-shadow: var(--shadow-sm);
}
.module-chip i { font-size: 18px; color: var(--teal); width: 22px; text-align: center; }

/* ── PRICING ──────────────────────────────────────────────────── */
.pricing { background: white; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  align-items: start;
}
.price-card {
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  padding: 36px 32px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.price-card.popular {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(139,92,246,.1);
}
.price-badge {
  position: absolute;
  top: 20px;
  right: 20px;
}
.price-name { font-size: 13px; font-weight: 700; color: var(--slate); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.price-amount {
  font-family: var(--ff-head);
  font-size: 3rem;
  font-weight: 800;
  color: var(--dark2);
  line-height: 1;
  margin-bottom: 4px;
}
.price-amount span { font-size: 1rem; font-weight: 600; color: var(--slate); }
.price-period { font-size: 13px; color: var(--slate); margin-bottom: 24px; }
.price-divider { height: 1px; background: var(--border); margin: 20px 0; }
.price-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.price-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.price-features li i { color: var(--teal); font-size: 12px; }
.price-features li.no { color: var(--slate-l); }
.price-features li.no i { color: var(--slate-l); }

/* ── TESTIMONIALS ─────────────────────────────────────────────── */
.testimonials { background: var(--dark2); }
.testimonials h2, .testimonials p { color: white; }
.testimonials .section-head p { color: rgba(255,255,255,.6); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.testi-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.testi-stars { color: #22d3ee; font-size: 13px; margin-bottom: 14px; }
.testi-text { font-size: 14px; color: rgba(255,255,255,.75); line-height: 1.7; margin-bottom: 20px; }
.testi-author { display: flex; align-items: center; gap: 12px; }
.testi-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--grad-purple);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; color: white;
  flex-shrink: 0;
}
.testi-name { font-weight: 700; color: white; font-size: 14px; }
.testi-role { font-size: 12px; color: rgba(255,255,255,.45); }

/* ── CTA BANNER ───────────────────────────────────────────────── */
.cta-banner {
  background: var(--grad-purple);
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.cta-banner h2 { color: white; font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 16px; position: relative; }
.cta-banner p  { color: rgba(255,255,255,.85); font-size: 1.1rem; margin-bottom: 36px; position: relative; }
.cta-banner .btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; position: relative; }

/* ── FOOTER ───────────────────────────────────────────────────── */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,.6);
  padding: 64px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand p { font-size: 14px; line-height: 1.7; margin-top: 14px; max-width: 280px; }
.footer-title { font-weight: 700; color: white; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: rgba(255,255,255,.55); transition: color .2s; }
.footer-links a:hover { color: var(--teal); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.5);
  transition: all .2s;
  font-size: 15px;
}
.footer-social a:hover { background: var(--teal); color: white; }

/* ── MOBILE ───────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 120px 0 60px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE IMPROVEMENTS (appended)
   ══════════════════════════════════════════════════════════════ */

/* Touch targets — min 44px for accessibility */
.btn { min-height: 44px; }
.nav-links a { min-height: 44px; display: flex; align-items: center; }
.module-chip { min-height: 52px; }

/* Prevent text overflow on small screens */
.hero h1 { word-break: break-word; hyphens: auto; }
.price-amount { word-break: break-word; }

/* Hero visual — scale down on medium screens */
@media (max-width: 1100px) {
  .hero-visual { transform: scale(.85); transform-origin: right center; }
  .hero-float-1 { right: 0; }
  .hero-float-2 { left: 0; }
}

/* Tablet */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { display: none; }
  .hero { padding: 120px 0 70px; }
  .section { padding: 70px 0; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .testi-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .footer-brand { grid-column: 1 / -1; }
}

/* Mobile */
@media (max-width: 640px) {
  .container { padding: 0 16px; }
  .nav-links, .nav-cta .btn-outline { display: none; }
  .nav-hamburger { display: flex; }
  .hero { padding: 100px 0 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-btns { flex-direction: column; align-items: stretch; }
  .hero-btns .btn { justify-content: center; }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .hero-stat-val { font-size: 1.6rem; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 1.7rem; }
  .features-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .module-chip { font-size: 12px; padding: 12px 14px; gap: 8px; }
  .pricing-grid { max-width: 100%; }
  .price-card { padding: 24px 20px; }
  .price-amount { font-size: 2.2rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
  .cta-banner { padding: 56px 0; }
  .cta-banner h2 { font-size: 1.6rem; }
  .btn-row { flex-direction: column; align-items: center; }
  .btn-row .btn { width: 100%; max-width: 300px; justify-content: center; }
}

/* Very small */
@media (max-width: 380px) {
  .modules-grid { grid-template-columns: 1fr; }
  .nav-cta { gap: 6px; }
  .nav-cta .btn { padding: 8px 12px; font-size: 12px; }
}
