/* ============================================================
   Business IT Solutions — custom styles
   Complements Tailwind utilities: animations, glassmorphism,
   component classes and accessibility helpers.
   ============================================================ */

:root {
  --c-primary: #2563EB;
  --c-secondary: #0F172A;
  --c-accent: #06B6D4;
  --c-bg: #F8FAFC;
  --c-text: #1E293B;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5rem; /* offset for sticky header */
}

/* ---------- Accessibility ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--c-primary);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 0.75rem 0;
  font-weight: 600;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ---------- Header ---------- */
#site-header.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06), 0 8px 24px -12px rgba(15, 23, 42, 0.12);
}
.dark #site-header.scrolled {
  background: rgba(15, 23, 42, 0.85);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-link {
  position: relative;
  color: #475569;
  transition: color 0.2s ease;
  padding: 0.25rem 0;
}
.dark .nav-link { color: #94A3B8; }
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.nav-link:hover,
.nav-link.active { color: var(--c-primary); }
.dark .nav-link:hover,
.dark .nav-link.active { color: #60A5FA; }
.nav-link:hover::after,
.nav-link.active::after { transform: scaleX(1); }

.mobile-link {
  display: block;
  padding: 0.625rem 0.75rem;
  border-radius: 0.75rem;
  color: #334155;
  transition: background 0.2s ease, color 0.2s ease;
}
.dark .mobile-link { color: #CBD5E1; }
.mobile-link:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--c-primary);
}

/* ---------- Buttons ---------- */
.btn-primary,
.btn-secondary,
.btn-light,
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: 9999px;
  padding: 0.625rem 1.375rem;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
  will-change: transform;
}
.btn-lg { padding: 0.875rem 1.875rem; font-size: 1rem; }

.btn-primary {
  background: linear-gradient(135deg, #2563EB, #1D4ED8);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px -8px rgba(37, 99, 235, 0.65);
}
.btn-primary:active { transform: translateY(0); }

.btn-secondary {
  background: rgba(37, 99, 235, 0.07);
  color: var(--c-primary);
  border: 1px solid rgba(37, 99, 235, 0.25);
}
.btn-secondary:hover {
  background: rgba(37, 99, 235, 0.13);
  transform: translateY(-2px);
}
.dark .btn-secondary {
  background: rgba(96, 165, 250, 0.1);
  color: #93C5FD;
  border-color: rgba(96, 165, 250, 0.3);
}

.btn-light {
  background: #fff;
  color: var(--c-primary);
  box-shadow: 0 8px 20px -8px rgba(15, 23, 42, 0.4);
}
.btn-light:hover { transform: translateY(-2px); }

.btn-ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
@media (min-width: 1024px) { .section { padding: 7rem 0; } }

.section-head { max-width: 42rem; margin: 0 auto; text-align: center; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 9999px;
  padding: 0.375rem 1rem;
}
.dark .eyebrow {
  color: #7DD3FC;
  background: rgba(6, 182, 212, 0.1);
  border-color: rgba(6, 182, 212, 0.25);
}

.section-title {
  margin-top: 1rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  line-height: 1.15;
  color: var(--c-secondary);
}
.dark .section-title { color: #fff; }

.section-sub {
  margin-top: 1rem;
  color: #64748B;
  line-height: 1.7;
}
.dark .section-sub { color: #94A3B8; }

/* ---------- Glassmorphism ---------- */
.glass {
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px -12px rgba(15, 23, 42, 0.12);
}
.dark .glass {
  background: rgba(30, 41, 59, 0.55);
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, 0.5);
}

/* ---------- Cards ---------- */
.card,
.feature,
.service,
.testimonial {
  position: relative;
  border-radius: 1.5rem;
  padding: 1.75rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 23, 42, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.dark .card,
.dark .feature,
.dark .service,
.dark .testimonial {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.07);
}
.card:hover,
.feature:hover,
.service:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 4px 8px rgba(15, 23, 42, 0.04), 0 24px 48px -16px rgba(37, 99, 235, 0.25);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  transition: transform 0.3s ease;
}
.group:hover .card-icon { transform: scale(1.1) rotate(-4deg); }

.card-title {
  margin-top: 1.25rem;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--c-secondary);
}
.dark .card-title { color: #fff; }

.card-body {
  margin-top: 0.625rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: #64748B;
}
.dark .card-body { color: #94A3B8; }

.card-tag {
  display: inline-block;
  margin-top: 1rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-primary);
  background: rgba(37, 99, 235, 0.07);
  border-radius: 9999px;
  padding: 0.25rem 0.75rem;
}
.dark .card-tag { color: #7DD3FC; background: rgba(6, 182, 212, 0.12); }

/* ---------- Services ---------- */
.service-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.25rem;
  font-weight: 700;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.3), rgba(6, 182, 212, 0.3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--c-primary);
  transition: gap 0.2s ease;
}
.service-link:hover { gap: 0.625rem; }
.dark .service-link { color: #60A5FA; }

/* ---------- About stats ---------- */
.stat-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: #64748B;
}
.dark .stat-label { color: #94A3B8; }
.stat-value {
  margin-top: 0.25rem;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Testimonials ---------- */
.stars {
  color: #F59E0B;
  font-size: 1.1rem;
  letter-spacing: 0.15em;
}
.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 9999px;
  font-size: 0.8rem;
  font-weight: 700;
}
.brand-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #64748B;
  white-space: nowrap;
}
.dark .brand-logo { color: #94A3B8; }

/* ---------- Pricing ---------- */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: 1.75rem;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04), 0 12px 32px -16px rgba(15, 23, 42, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.dark .plan {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.07);
}
.plan:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -16px rgba(37, 99, 235, 0.25);
}

.plan-popular {
  background: linear-gradient(160deg, #1D4ED8 0%, #2563EB 55%, #0891B2 130%);
  border: none;
  box-shadow: 0 24px 48px -16px rgba(37, 99, 235, 0.5);
}
.dark .plan-popular {
  background: linear-gradient(160deg, #1D4ED8 0%, #2563EB 55%, #0891B2 130%);
}
@media (min-width: 1024px) {
  .plan-popular { transform: scale(1.04); }
  .plan-popular:hover { transform: scale(1.04) translateY(-6px); }
}

.popular-badge {
  position: absolute;
  top: -0.875rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(90deg, #06B6D4, #22D3EE);
  color: #0F172A;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.375rem 1rem;
  border-radius: 9999px;
  box-shadow: 0 8px 16px -6px rgba(6, 182, 212, 0.5);
}

.price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-secondary);
}
.dark .price { color: #fff; }

.plan-list {
  margin-top: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.875rem;
  color: #475569;
}
.dark .plan-list { color: #CBD5E1; }
.plan-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
}
.plan-list li::before {
  content: "";
  flex-shrink: 0;
  margin-top: 0.2rem;
  width: 1rem;
  height: 1rem;
  border-radius: 9999px;
  background-color: rgba(37, 99, 235, 0.12);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%232563EB'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
  background-size: 0.65rem;
  background-position: center;
  background-repeat: no-repeat;
}
.plan-list-light { color: #DBEAFE; }
.plan-list-light li::before {
  background-color: rgba(255, 255, 255, 0.2);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='white'%3E%3Cpath fill-rule='evenodd' d='M16.7 5.3a1 1 0 0 1 0 1.4l-7.5 7.5a1 1 0 0 1-1.4 0L3.3 9.7a1 1 0 1 1 1.4-1.4l3.8 3.8 6.8-6.8a1 1 0 0 1 1.4 0z' clip-rule='evenodd'/%3E%3C/svg%3E");
}

/* ---------- FAQ ---------- */
.faq-item {
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(226, 232, 240, 0.9);
  backdrop-filter: blur(12px);
  overflow: hidden;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.dark .faq-item {
  background: rgba(30, 41, 59, 0.6);
  border-color: rgba(255, 255, 255, 0.07);
}
.faq-item[open] {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 12px 32px -16px rgba(37, 99, 235, 0.25);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  cursor: pointer;
  list-style: none;
  padding: 1.25rem 1.5rem;
  font-weight: 600;
  color: var(--c-secondary);
}
.dark .faq-item summary { color: #fff; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  flex-shrink: 0;
  width: 1.25rem;
  height: 1.25rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%232563EB' stroke-width='2.5'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' d='M12 5v14m-7-7h14'/%3E%3C/svg%3E");
  background-size: contain;
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-body {
  padding: 0 1.5rem;
  color: #64748B;
  font-size: 0.925rem;
  line-height: 1.7;
  max-height: 0;
  opacity: 0;
  transition: max-height 0.35s ease, opacity 0.3s ease, padding 0.35s ease;
}
.dark .faq-body { color: #94A3B8; }
.faq-item[open] .faq-body {
  padding: 0 1.5rem 1.25rem;
  max-height: 16rem;
  opacity: 1;
}

/* ---------- Forms ---------- */
.form-label {
  display: block;
  margin-bottom: 0.375rem;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--c-text);
}
.dark .form-label { color: #E2E8F0; }
.form-input {
  width: 100%;
  border-radius: 0.875rem;
  border: 1px solid #E2E8F0;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.625rem 0.875rem;
  font-size: 0.9rem;
  color: var(--c-text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-input::placeholder { color: #94A3B8; }
.form-input:focus {
  outline: none;
  border-color: var(--c-primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-input.invalid { border-color: #EF4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12); }
.dark .form-input {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(255, 255, 255, 0.12);
  color: #E2E8F0;
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.875rem;
  background: rgba(37, 99, 235, 0.1);
  color: var(--c-primary);
}
.dark .contact-icon { background: rgba(6, 182, 212, 0.12); color: #22D3EE; }

/* ---------- Footer ---------- */
.footer-head {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-secondary);
}
.dark .footer-head { color: #fff; }
.footer-list {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  font-size: 0.875rem;
}
.footer-list a {
  color: #64748B;
  transition: color 0.2s ease;
}
.dark .footer-list a { color: #94A3B8; }
.footer-list a:hover { color: var(--c-primary); }

.social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.875rem;
  background: rgba(37, 99, 235, 0.08);
  color: #475569;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.dark .social { background: rgba(255, 255, 255, 0.07); color: #94A3B8; }
.social:hover {
  background: var(--c-primary);
  color: #fff;
  transform: translateY(-3px);
}

/* ---------- Hero background ---------- */
.bg-grid {
  background-image:
    linear-gradient(rgba(37, 99, 235, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 99, 235, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
}
.dark .bg-grid {
  background-image:
    linear-gradient(rgba(96, 165, 250, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(96, 165, 250, 0.06) 1px, transparent 1px);
}

.blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.5;
  animation: blob-drift 18s ease-in-out infinite alternate;
}
.blob-1 { top: -8rem; left: -6rem; width: 28rem; height: 28rem; background: rgba(37, 99, 235, 0.35); }
.blob-2 { top: 4rem; right: -8rem; width: 32rem; height: 32rem; background: rgba(6, 182, 212, 0.28); animation-delay: -6s; }
.blob-3 { bottom: -10rem; left: 30%; width: 24rem; height: 24rem; background: rgba(139, 92, 246, 0.22); animation-delay: -12s; }

@keyframes blob-drift {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(3rem, -2rem) scale(1.08); }
  100% { transform: translate(-2rem, 2.5rem) scale(0.95); }
}

/* ---------- Text & misc effects ---------- */
.gradient-text {
  background: linear-gradient(110deg, #2563EB 10%, #06B6D4 55%, #2563EB 90%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradient-shift 6s linear infinite;
}
@keyframes gradient-shift {
  to { background-position: 200% center; }
}

.float-slow { animation: float 7s ease-in-out infinite; }
.float-med  { animation: float 5.5s ease-in-out infinite; animation-delay: -1.5s; }
.float-fast { animation: float 4.5s ease-in-out infinite; animation-delay: -2.5s; }
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}

.dash-anim {
  stroke-dasharray: 420;
  stroke-dashoffset: 420;
  animation: draw-line 2.2s ease-out 0.5s forwards;
}
@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease var(--d, 0s), transform 0.7s ease var(--d, 0s);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Floating UI shown state ---------- */
#back-to-top.show,
#sticky-cta.show {
  transform: translateY(0);
}
#sticky-cta.show { transform: translate(-50%, 0); }

/* ---------- Page load transition ---------- */
body {
  animation: page-in 0.5s ease both;
}
@keyframes page-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

