/* ==========================================================================
   Arhum Connect — Software House
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f4f7fd;
  --surface: #ffffff;
  --surface-alt: #eef3fb;
  --border: #e3e9f4;
  --blue: #2563eb;
  --blue-bright: #4f94f6;
  --blue-deep: #1d4ed8;
  --navy: #0f172a;
  --text: #0f172a;
  --text-muted: #5b6b84;
  --text-faint: #8a97ac;
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow-soft: 0 20px 50px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 30px rgba(15, 23, 42, 0.06);
  --container: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-family: "Poppins", "Inter", sans-serif;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 .6em;
  letter-spacing: -0.02em;
  color: var(--navy);
}

p { margin: 0 0 1em; color: var(--text-muted); }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; padding: 110px 0; }
.section-alt { background: var(--bg-alt); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.18);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.section-head {
  max-width: 640px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); }
.section-head p { font-size: 17px; }

/* Reveal-on-scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in-view { opacity: 1; transform: translateY(0); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: #ffffff;
  box-shadow: 0 10px 26px rgba(37, 99, 235, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(37, 99, 235, 0.36); }
.btn-ghost {
  background: #ffffff;
  border-color: var(--border);
  color: var(--navy);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
}
.btn-ghost:hover { background: var(--surface-alt); border-color: rgba(37, 99, 235, 0.3); transform: translateY(-2px); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 18px 0;
  transition: background .35s var(--ease), padding .35s var(--ease), border-color .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
  background: rgba(255, 255, 255, 0.7);
}
.site-header.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
  border-color: var(--border);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  padding: 12px 0;
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; font-family: "Poppins", sans-serif; font-weight: 700; font-size: 19px; color: var(--navy); }
.brand-logo { height: 48px; width: auto; display: block; }
.brand span.dim { color: var(--blue-deep); font-weight: 600; }

.nav-links { display: flex; align-items: center; gap: 34px; }
.nav-links a { font-size: 14.5px; font-weight: 500; color: var(--text-muted); transition: color .2s; }
.nav-links a:hover { color: var(--blue-deep); }

.header-cta { display: flex; align-items: center; gap: 12px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; transition: transform .25s, opacity .25s; }

/* ---------- Hero ---------- */
.hero {
  padding: 190px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -20%; right: -10%;
  width: 640px; height: 640px;
  background: radial-gradient(circle, rgba(79,148,246,0.16), transparent 70%);
  filter: blur(20px);
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -30%; left: -15%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(29,78,216,0.1), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: center;
}
.hero-inner { max-width: 620px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 62px); }
.hero h1 .grad {
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { font-size: 18px; max-width: 560px; margin-bottom: 34px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }

.hero-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-badge {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--text-muted);
  background: #ffffff; border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  padding: 9px 16px; border-radius: 999px;
}
.hero-badge svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; }

.hero-visual {
  position: relative;
  border-radius: 28px;
  overflow: visible;
}
.hero-visual-glow {
  position: absolute;
  inset: -30px;
  background: linear-gradient(135deg, rgba(79,148,246,0.35), rgba(29,78,216,0.15));
  filter: blur(50px);
  z-index: -1;
  border-radius: 40px;
}
.hero-visual img {
  width: 100%;
  aspect-ratio: 1200 / 1296;
  object-fit: cover;
  border-radius: 28px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
}
.hero-float-card {
  position: absolute;
  left: -28px;
  bottom: 32px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  box-shadow: var(--shadow-soft);
  max-width: 240px;
}
.hero-float-card svg { width: 30px; height: 30px; color: var(--blue-deep); flex-shrink: 0; background: rgba(37,99,235,0.1); border-radius: 10px; padding: 6px; box-sizing: content-box; }
.hero-float-card strong { display: block; font-size: 13.5px; color: var(--navy); }
.hero-float-card span { font-size: 12px; color: var(--text-muted); }

/* ---------- Services (bento) ---------- */
.services-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.service-tile {
  position: relative;
  grid-column: span 1;
  min-height: 300px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
}
.service-tile.tile-wide { grid-column: span 2; min-height: 340px; }
.service-tile img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s var(--ease);
}
.service-tile::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8,14,28,0) 32%, rgba(6,11,23,0.88) 100%);
}
.service-tile:hover img { transform: scale(1.06); }
.service-tile-body { position: relative; z-index: 1; padding: 28px; }
.service-tile-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(255,255,255,0.14);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255,255,255,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.service-tile-icon svg { width: 22px; height: 22px; color: #ffffff; }
.service-tile h3 { color: #ffffff; font-size: 19px; margin-bottom: 6px; }
.service-tile p { color: rgba(255,255,255,0.8); font-size: 14px; margin-bottom: 0; max-width: 360px; }

/* ---------- How it works ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  counter-reset: step;
}
.step-card {
  position: relative;
  padding: 30px 24px 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-bright), var(--blue-deep));
  color: #ffffff;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
  font-size: 16px;
}
.step-card h3 { font-size: 17px; margin-bottom: 8px; }
.step-card p { font-size: 14px; margin-bottom: 0; }

/* ---------- Why us ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.feature-item {
  display: flex;
  gap: 16px;
  padding: 26px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
}
.feature-item svg { width: 22px; height: 22px; color: var(--blue-deep); flex-shrink: 0; margin-top: 3px; }
.feature-item h4 { font-size: 16px; margin-bottom: 6px; }
.feature-item p { font-size: 14px; margin-bottom: 0; }

/* ---------- Tech stack strip ---------- */
.tech-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.tech-pill {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-muted);
  box-shadow: var(--shadow-card);
}
.tech-pill span.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }

/* ---------- Trust / process ---------- */
.trust-wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: start;
}
.trust-list li {
  display: flex;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.trust-list li:last-child { border-bottom: none; }
.trust-list svg { width: 20px; height: 20px; color: var(--blue-deep); flex-shrink: 0; margin-top: 2px; }
.trust-list strong { display: block; font-size: 15.5px; margin-bottom: 3px; color: var(--navy); }
.trust-list span { font-size: 14px; color: var(--text-muted); }

.trust-card {
  background: linear-gradient(160deg, rgba(79,148,246,0.08), rgba(29,78,216,0.03));
  border: 1px solid rgba(37,99,235,0.16);
  border-radius: var(--radius-lg);
  padding: 34px;
}
.trust-card h3 { font-size: 19px; margin-bottom: 14px; }
.trust-card p { font-size: 14.5px; }
.trust-card .disclaimer {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  color: var(--navy);
  padding: 22px 26px;
  font-family: "Poppins", sans-serif;
  font-size: 15.5px;
  font-weight: 600;
  text-align: left;
}
.faq-question .plus {
  width: 22px; height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-question .plus::before, .faq-question .plus::after {
  content: "";
  position: absolute;
  background: var(--blue);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
}
.faq-question .plus::before { width: 14px; height: 2px; }
.faq-question .plus::after { width: 2px; height: 14px; transition: transform .3s var(--ease); }
.faq-item.open .plus::after { transform: translate(-50%, -50%) rotate(90deg) scale(0); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s var(--ease);
}
.faq-answer-inner { padding: 0 26px 22px; font-size: 14.5px; color: var(--text-muted); }

/* ---------- CTA banner ---------- */
.cta-banner {
  background: linear-gradient(135deg, rgba(79,148,246,0.12), rgba(29,78,216,0.08));
  border: 1px solid rgba(37,99,235,0.18);
  border-radius: 28px;
  padding: 64px 50px;
  text-align: center;
}
.cta-banner h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 14px; }
.cta-banner p { max-width: 520px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact-wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 50px;
}
.contact-info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.contact-info-card h3 { font-size: 19px; }
.contact-line {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.contact-line:last-of-type { border-bottom: none; }
.contact-line svg { width: 19px; height: 19px; color: var(--blue-deep); margin-top: 2px; flex-shrink: 0; }
.contact-line strong { display: block; font-size: 14px; color: var(--navy); }
.contact-line span, .contact-line a { font-size: 14px; color: var(--text-muted); }

.contact-form {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px;
  box-shadow: var(--shadow-card);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; color: var(--text-muted); }
.field input, .field select, .field textarea {
  width: 100%;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--navy);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--blue);
  background: #ffffff;
}
.field-note { font-size: 12.5px; color: var(--text-faint); margin-top: 14px; }
.form-status { font-size: 13.5px; margin-top: 14px; display: none; color: var(--blue-deep); font-weight: 600; }
.form-status.show { display: block; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); border-top: 1px solid rgba(255,255,255,0.06); padding: 70px 0 30px; }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5 { color: #ffffff; }
.site-footer p { color: rgba(255,255,255,0.6); }
.site-footer .brand { color: #ffffff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand p { font-size: 14px; max-width: 300px; margin-top: 14px; }
.footer-logo { height: 46px; }
.footer-col h5 { font-size: 13.5px; text-transform: uppercase; letter-spacing: 0.06em; color: #ffffff; margin-bottom: 18px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; color: rgba(255,255,255,0.6); transition: color .2s; }
.footer-col a:hover { color: var(--blue-bright); }
.footer-bottom {
  padding-top: 26px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
}
.footer-bottom p { font-size: 13px; margin: 0; color: rgba(255,255,255,0.45); }
.footer-legal-note { font-size: 12px; color: rgba(255,255,255,0.4); max-width: 760px; margin-top: 18px; line-height: 1.7; }

.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: #ffffff;
}
.social-row svg { width: 16px; height: 16px; }

/* ---------- WhatsApp floating button ---------- */
.wa-float {
  position: fixed;
  bottom: 26px; right: 26px;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: linear-gradient(135deg, #34e381, #0e8f6f);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(14,143,111,0.35);
  z-index: 90;
  transition: transform .25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 28px; height: 28px; color: #ffffff; }

/* ---------- Legal pages ---------- */
.legal-page { padding: 150px 0 100px; }
.legal-page .container { max-width: 820px; }
.legal-page h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 8px; }
.legal-updated { font-size: 13.5px; color: var(--text-faint); margin-bottom: 40px; }
.legal-page h2 { font-size: 21px; margin-top: 40px; margin-bottom: 14px; }
.legal-page p, .legal-page li { font-size: 15px; color: var(--text-muted); }
.legal-page ul { margin-bottom: 1em; }
.legal-page ul li { position: relative; padding-left: 22px; margin-bottom: 10px; }
.legal-page ul li::before {
  content: "";
  position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue);
}
.legal-page a.inline-link { color: var(--blue-deep); text-decoration: underline; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .nav-links, .header-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .services-bento { grid-template-columns: repeat(2, 1fr); }
  .service-tile.tile-wide { grid-column: span 2; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .trust-wrap, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-inner { max-width: 100%; }
  .hero-visual { max-width: 460px; margin: 0 auto; }
  .hero-visual img { aspect-ratio: 4 / 3.4; }

  .mobile-menu {
    position: fixed;
    top: 0; right: 0;
    width: min(320px, 82vw);
    height: 100vh;
    background: #ffffff;
    border-left: 1px solid var(--border);
    box-shadow: -10px 0 40px rgba(15,23,42,0.08);
    padding: 100px 30px 30px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    z-index: 99;
    display: flex;
    flex-direction: column;
    gap: 26px;
  }
  .mobile-menu.open { transform: translateX(0); }
  .mobile-menu a { font-size: 16px; font-weight: 500; color: var(--navy); }
  .mobile-overlay {
    position: fixed; inset: 0; background: rgba(15,23,42,0.4);
    z-index: 98; opacity: 0; pointer-events: none; transition: opacity .3s;
  }
  .mobile-overlay.open { opacity: 1; pointer-events: auto; }
}

@media (min-width: 992px) {
  .mobile-menu, .mobile-overlay { display: none; }
}

@media (max-width: 768px) {
  section { padding: 80px 0; }
  .hero { padding: 150px 0 80px; }
  .features-grid, .steps { grid-template-columns: 1fr; }
  .services-bento { grid-template-columns: 1fr; }
  .service-tile.tile-wide { grid-column: span 1; }
  .service-tile, .service-tile.tile-wide { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-banner { padding: 44px 26px; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .hero-float-card { left: 12px; right: 12px; bottom: 16px; max-width: none; }
}
