/* Afrigates Integrations — mock-matched design system */

:root {
  --navy: #0a0e1a;
  --navy-2: #0f1629;
  --navy-3: #151c30;
  --blue: #1d4ed8;
  --blue-hover: #2563eb;
  --cyan: #38bdf8;
  --green: #86efac;
  --ink: #0f172a;
  --muted: #64748b;
  --surface: #f3f4f6;
  --white: #ffffff;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Montserrat", system-ui, sans-serif;
  color: var(--ink);
  background: var(--white);
}

[x-cloak] {
  display: none !important;
}

/* —— Header —— */
.site-header {
  background: rgba(10, 14, 26, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.logo-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.45rem;
  background: linear-gradient(135deg, #1d4ed8, #38bdf8);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.95rem;
  color: white;
  flex-shrink: 0;
}

.nav-link {
  position: relative;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-link:hover,
.nav-link.active {
  color: #fff;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.55rem;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
}

.btn-blue {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.5rem;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 24px rgba(29, 78, 216, 0.35);
}

.btn-blue:hover {
  background: var(--blue-hover);
  transform: translateY(-1px);
}

.btn-outline-light {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.75rem 1.35rem;
  border-radius: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  font-weight: 600;
  font-size: 0.875rem;
  background: transparent;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.7);
}

/* —— Hero —— */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 55% at 75% 45%, rgba(29, 78, 216, 0.28), transparent 60%),
    radial-gradient(ellipse 50% 40% at 20% 80%, rgba(56, 189, 248, 0.12), transparent 55%),
    linear-gradient(165deg, #070b14 0%, #0a0e1a 40%, #0d1530 100%);
  color: #fff;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 70% 50%, black, transparent);
  pointer-events: none;
}

.hero-grid {
  min-height: clamp(calc(34rem - 60px), calc(78vh - 60px), calc(44rem - 60px));
}

.hero-copy {
  padding-block: 0.5rem;
}

.hero-visual {
  align-items: stretch;
  justify-content: center;
  min-height: 100%;
  overflow: visible;
}

.hero-visual-frame {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: calc(32rem - 60px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual-glow {
  position: absolute;
  inset: 8% 4%;
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 50% 45%, rgba(37, 99, 235, 0.35), transparent 62%),
    radial-gradient(ellipse at 60% 70%, rgba(56, 189, 248, 0.18), transparent 55%);
  filter: blur(28px);
  pointer-events: none;
}

.hero-visual-scale {
  position: relative;
  z-index: 1;
  width: calc(100% + 40px);
  transform: scale(1.18);
  filter: drop-shadow(0 28px 50px rgba(0, 0, 0, 0.45));
}

.hero-visual-clip {
  width: 100%;
  max-height: min(calc(44rem - 60px), calc(82vh - 60px));
  border-radius: 0;
  overflow: visible;
  background: transparent;
}

.hero-visual-img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(calc(44rem - 60px), calc(82vh - 60px));
  object-fit: contain;
  object-position: center center;
  border-radius: 5px;
}

@media (min-width: 1024px) {
  .hero-visual-frame {
    min-height: 100%;
  }

  .hero-visual-scale {
    width: calc(100% + 40px);
    transform: scale(1.22);
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  background: rgba(134, 239, 172, 0.12);
  border: 1px solid rgba(134, 239, 172, 0.35);
  color: #86efac;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-title {
  font-size: clamp(2.15rem, 4.2vw, 3.35rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.hero-title .accent {
  color: var(--cyan);
}

.trust-logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.25rem 1.75rem;
  opacity: 0.7;
}

.trust-logos span {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  text-transform: uppercase;
}

/* Device cluster */
.device-stage {
  position: relative;
  min-height: 380px;
}

.device-laptop {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
}

.laptop-screen {
  background: #111827;
  border: 3px solid #334155;
  border-radius: 12px 12px 4px 4px;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45), 0 0 40px rgba(29, 78, 216, 0.25);
}

.laptop-base {
  height: 10px;
  background: linear-gradient(180deg, #475569, #334155);
  border-radius: 0 0 10px 10px;
  margin: 0 8%;
}

.device-phone {
  position: absolute;
  right: 4%;
  bottom: 8%;
  z-index: 4;
  width: 100px;
  aspect-ratio: 9 / 18;
  background: #0f172a;
  border: 3px solid #64748b;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}

.device-tablet {
  position: absolute;
  left: -2%;
  bottom: 18%;
  z-index: 3;
  width: 140px;
  aspect-ratio: 3 / 4;
  background: #0f172a;
  border: 3px solid #64748b;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.35);
}

.dash-ui {
  padding: 0.65rem;
  height: 100%;
  background: linear-gradient(160deg, #0f172a, #1e293b);
}

.dash-bar {
  height: 6px;
  border-radius: 3px;
  background: rgba(148, 163, 184, 0.25);
  margin-bottom: 0.45rem;
}

.dash-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.dash-card {
  border-radius: 6px;
  background: rgba(29, 78, 216, 0.25);
  border: 1px solid rgba(56, 189, 248, 0.2);
  min-height: 36px;
}

.dash-card.tall {
  grid-column: span 2;
  min-height: 48px;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.45), rgba(56, 189, 248, 0.2));
}

.float-icon {
  position: absolute;
  z-index: 5;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(56, 189, 248, 0.35);
  box-shadow: 0 0 24px rgba(56, 189, 248, 0.35), 0 10px 24px rgba(0, 0, 0, 0.35);
  color: var(--cyan);
  animation: floatY 4s ease-in-out infinite;
}

.float-icon.blue {
  color: #60a5fa;
  border-color: rgba(96, 165, 250, 0.4);
}

.float-icon.green {
  color: #4ade80;
  border-color: rgba(74, 222, 128, 0.35);
}

@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.fade-up {
  animation: fadeUp 0.75s ease both;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Services —— */
.services-section {
  background: var(--surface);
}

.service-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.65rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.04);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

.service-icon-box {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: grid;
  place-items: center;
  color: #fff;
}

.service-icon-box.blue { background: #2563eb; }
.service-icon-box.indigo { background: #4f46e5; }
.service-icon-box.violet { background: #7c3aed; }
.service-icon-box.sky { background: #0ea5e9; }
.service-icon-box.emerald { background: #10b981; }
.service-icon-box.rose { background: #e11d48; }

.learn-more {
  color: var(--blue);
  font-weight: 600;
  font-size: 0.875rem;
}

.learn-more:hover {
  color: var(--blue-hover);
}

/* —— Stats —— */
.stats-bar {
  background: linear-gradient(90deg, #0a0e1a, #111827 50%, #0a0e1a);
  color: #fff;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.stat-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.65rem;
  background: rgba(29, 78, 216, 0.2);
  color: #60a5fa;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

/* —— Projects / testimonials —— */
.project-card {
  border-radius: 0.9rem;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e5e7eb;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.project-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #1e3a8a, #0ea5e9);
}

.testimonial-panel {
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e5e7eb;
  padding: 1.75rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
}

.quote-mark {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--blue);
  font-family: Georgia, serif;
  font-weight: 700;
}

/* —— Footer —— */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.75);
}

.page-hero {
  background:
    radial-gradient(ellipse 60% 80% at 80% 20%, rgba(29, 78, 216, 0.35), transparent 55%),
    linear-gradient(160deg, #070b14, #0a0e1a 60%, #0f172a);
  color: #fff;
}

/* Forms */
.form-input {
  width: 100%;
  margin-top: 0.35rem;
  border-radius: 0.5rem;
  border: 1px solid #d1d5db;
  padding: 0.65rem 0.85rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(29, 78, 216, 0.15);
}

/* —— Inquiry page —— */
:root {
  --inquiry-navy: #081b3a;
  --inquiry-blue: #0052ff;
  --inquiry-blue-2: #1d4ed8;
  --inquiry-surface: #f5f7fb;
}

.inquiry-hero {
  background: var(--inquiry-surface);
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}

.inquiry-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--inquiry-blue);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.inquiry-shell {
  background: var(--inquiry-surface);
  padding: 0 1rem 4rem;
}

.inquiry-card {
  display: grid;
  grid-template-columns: 1fr;
  max-width: 72rem;
  margin: 0 auto;
  border-radius: 1.25rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 24px 60px rgba(8, 27, 58, 0.12);
  border: 1px solid rgba(8, 27, 58, 0.06);
}

@media (min-width: 1024px) {
  .inquiry-card {
    grid-template-columns: 0.95fr 1.2fr;
  }
}

.inquiry-left {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 20% 90%, rgba(0, 82, 255, 0.35), transparent 55%),
    linear-gradient(165deg, #06132b 0%, #081b3a 45%, #0a2550 100%);
  color: #fff;
  padding: 2rem 1.75rem 2.25rem;
}

@media (min-width: 1024px) {
  .inquiry-left {
    padding: 2.5rem 2rem 2.75rem;
  }
}

.inquiry-left::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 45%;
  background:
    radial-gradient(circle at 20% 80%, rgba(56, 189, 248, 0.12), transparent 40%),
    radial-gradient(circle at 70% 90%, rgba(0, 82, 255, 0.18), transparent 45%);
  pointer-events: none;
}

.inquiry-feature {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.inquiry-feature-icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 999px;
  background: rgba(0, 82, 255, 0.2);
  border: 1px solid rgba(96, 165, 250, 0.35);
  display: grid;
  place-items: center;
  color: #60a5fa;
  flex-shrink: 0;
}

.inquiry-right {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  padding: 1.75rem 1.35rem 2rem;
}

@media (min-width: 768px) {
  .inquiry-right {
    padding: 2.25rem 2rem 2.5rem;
  }
}

.inquiry-progress {
  height: 6px;
  border-radius: 999px;
  background: #e8eef8;
  overflow: hidden;
}

.inquiry-progress > span {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0052ff, #38bdf8);
  transition: width 0.35s ease;
}

.field-group {
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.35rem;
}

.field-label .req {
  color: #ef4444;
}

.inquiry-input,
.inquiry-select,
.inquiry-textarea {
  width: 100%;
  border-radius: 0.6rem;
  border: 1px solid #dbe3f0;
  background: #f8fafc;
  padding: 0.7rem 0.85rem;
  font-size: 0.9rem;
  color: #0f172a;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.inquiry-input:focus,
.inquiry-select:focus,
.inquiry-textarea:focus {
  border-color: #0052ff;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(0, 82, 255, 0.12);
}

.inquiry-input.is-invalid,
.inquiry-select.is-invalid,
.inquiry-textarea.is-invalid {
  border-color: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
}

.feature-check {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.65rem;
  padding: 0.55rem 0.7rem;
  background: #fff;
  font-size: 0.78rem;
  color: #334155;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.feature-check:has(input:checked) {
  border-color: #0052ff;
  background: #eff6ff;
  color: #081b3a;
}

.feature-check input {
  accent-color: #0052ff;
}

.upload-zone {
  border: 1.5px dashed #c7d2fe;
  border-radius: 0.9rem;
  background: #f8fafc;
  padding: 1.25rem;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.upload-zone:hover,
.upload-zone.is-drag {
  border-color: #0052ff;
  background: #eff6ff;
}

.btn-inquiry {
  display: inline-flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border-radius: 0.75rem;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #0052ff, #2563eb 55%, #38bdf8);
  box-shadow: 0 12px 28px rgba(0, 82, 255, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn-inquiry:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(0, 82, 255, 0.35);
  filter: brightness(1.03);
}

.btn-inquiry:disabled {
  opacity: 0.75;
  cursor: wait;
  transform: none;
}

.btn-inquiry .spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.inquiry-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem;
}

.inquiry-success.is-visible {
  display: block;
}

.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto;
  border-radius: 999px;
  background: linear-gradient(135deg, #0052ff, #38bdf8);
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0, 82, 255, 0.3);
}

.trust-strip {
  background: #eef2f7;
  padding: 2.5rem 1rem 3.5rem;
}

.trust-card {
  background: #fff;
  border-radius: 1rem;
  padding: 1.35rem;
  border: 1px solid rgba(8, 27, 58, 0.06);
  box-shadow: 0 8px 24px rgba(8, 27, 58, 0.04);
  height: 100%;
}

.trust-icon {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1.5px solid #93c5fd;
  color: #0052ff;
  display: grid;
  place-items: center;
}

.section-title {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #64748b;
  margin: 1.5rem 0 0.85rem;
}

.phone-row {
  display: grid;
  grid-template-columns: 5.5rem 1fr;
  gap: 0.5rem;
}
