/* ==========================================================================
   Aptiqo marketing site — shared stylesheet
   Palette taken from the product logo (navy base, blue->cyan->purple
   gradient, white accents) so the site reads as the same brand as the
   admin panel and resident app.
   ========================================================================== */

:root {
  --navy: #0b1530;
  --navy-soft: #111c3f;
  --blue: #2457e0;
  --blue-light: #4f7dff;
  --cyan: #38bdf8;
  --purple: #7c5cfc;
  --ink: #0f172a;
  --muted: #5b6477;
  --line: #e6e9f2;
  --bg: #f6f8fc;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.14);
  --gradient-brand: linear-gradient(135deg, var(--navy) 0%, var(--blue) 45%, var(--cyan) 75%, var(--purple) 100%);
  --max-width: 1180px;
}

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

body {
  margin: 0;
  font-family: "Poppins", "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 { font-weight: 700; line-height: 1.2; margin: 0 0 14px 0; color: var(--navy); }
h1 { font-size: clamp(32px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3.6vw, 38px); }
h3 { font-size: 20px; }
p { margin: 0 0 14px 0; color: var(--muted); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--blue);
  background: rgba(36, 87, 224, 0.08);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section { padding: 84px 0; }
.section-sm { padding: 56px 0; }
.section-tight-top { padding-top: 48px; }
.center { text-align: center; }
.section-head { max-width: 700px; margin: 0 auto 48px auto; }
.section-head.left { margin-left: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--gradient-brand); color: var(--white); box-shadow: 0 10px 24px rgba(36, 87, 224, 0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(36, 87, 224, 0.42); }
.btn-ghost { background: var(--white); color: var(--navy); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-on-dark { background: rgba(255, 255, 255, 0.12); color: var(--white); border: 1.5px solid rgba(255, 255, 255, 0.35); }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.2); }
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 88px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--navy); }
.brand img { height: 60px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 36px; }
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--ink);
  position: relative;
  padding: 6px 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -2px;
  height: 2px;
  background: var(--gradient-brand);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--blue); }

.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--navy); border-radius: 2px; }

/* ---------- Hero ---------- */
.hero {
  background: var(--gradient-brand);
  color: var(--white);
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.14), transparent 55%);
  pointer-events: none;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  padding: 96px 0 90px 0;
  position: relative;
}
.hero h1 { color: var(--white); }
.hero p.lead { color: rgba(255, 255, 255, 0.86); font-size: 18px; max-width: 520px; }
.hero .eyebrow { background: rgba(255, 255, 255, 0.14); color: var(--white); }
.hero-actions { display: flex; gap: 14px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div { font-size: 14px; color: rgba(255, 255, 255, 0.78); }
.hero-stats strong { display: block; font-size: 15px; color: var(--white); margin-bottom: 2px; }

.hero-art {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  padding: 28px;
  backdrop-filter: blur(6px);
}
.hero-art-card {
  background: var(--white);
  border-radius: 16px;
  padding: 22px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.hero-art-card .row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hero-art-card .row:last-child { border-bottom: none; }
.hero-art-card .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gradient-brand); flex-shrink: 0; }
.hero-art-card .bar { height: 8px; border-radius: 4px; background: var(--line); flex: 1; }
.hero-art-card .bar.short { max-width: 60%; }

/* ---------- Feature grid / cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card .icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--gradient-brand);
  color: var(--white);
  margin-bottom: 18px;
}
.card h3 { margin-bottom: 8px; }
.card p { margin-bottom: 0; font-size: 14.5px; }

.card-list { margin: 0; padding: 0; list-style: none; }
.card-list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 7px 0;
  font-size: 14.5px;
  color: var(--ink);
}
.card-list li svg { flex-shrink: 0; margin-top: 3px; color: var(--blue); }

/* ---------- Band / alt background section ---------- */
.band { background: var(--bg); }
.band-dark { background: var(--navy); color: var(--white); }
.band-dark h2, .band-dark h3 { color: var(--white); }
.band-dark p { color: rgba(255, 255, 255, 0.74); }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; counter-reset: step; }
.step { position: relative; padding-top: 10px; }
.step .num {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--gradient-brand);
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 16px;
}

/* ---------- Pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; align-items: stretch; }
.price-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 36px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-lg);
  transform: scale(1.03);
}
.price-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gradient-brand); color: var(--white);
  font-size: 12px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px;
}
.price-name { font-weight: 700; font-size: 18px; margin-bottom: 4px; }
.price-amount { font-size: 40px; font-weight: 700; color: var(--navy); margin: 10px 0 2px 0; }
.price-amount span { font-size: 15px; font-weight: 500; color: var(--muted); }
.price-sub { font-size: 13.5px; color: var(--muted); margin-bottom: 22px; }
.price-card .btn { margin-top: 24px; }
.price-card .card-list { margin-top: 6px; flex: 1; }

.pricing-note {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 28px;
  margin-top: 36px;
}
.pricing-note h4 { margin-bottom: 10px; color: var(--navy); }
.pricing-note ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.pricing-note li { margin-bottom: 6px; }

/* ---------- Timeline (About) ---------- */
.value-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.value-card { display: flex; gap: 16px; padding: 6px 0; }
.value-card .icon {
  width: 46px; height: 46px; border-radius: 12px; flex-shrink: 0;
  background: var(--gradient-brand); color: var(--white);
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.contact-info .item { display: flex; gap: 14px; margin-bottom: 22px; }
.contact-info .icon {
  width: 42px; height: 42px; border-radius: 10px; flex-shrink: 0;
  background: rgba(36, 87, 224, 0.08); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
}
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; font-weight: 600; margin-bottom: 6px; color: var(--navy); }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: 10px;
  font-family: inherit;
  font-size: 14.5px;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.15s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- FAQ (home strip) ---------- */
.mini-faq { display: grid; gap: 14px; }
.mini-faq details {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 16px 20px;
}
.mini-faq summary { font-weight: 600; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.mini-faq summary::-webkit-details-marker { display: none; }
.mini-faq summary::after { content: "+"; font-size: 22px; color: var(--blue); margin-left: 12px; }
.mini-faq details[open] summary::after { content: "\2212"; }
.mini-faq p { margin: 12px 0 0 0; font-size: 14.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--gradient-brand);
  color: var(--white);
  border-radius: 24px;
  padding: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
}
.cta-band h2 { color: var(--white); margin-bottom: 6px; }
.cta-band p { color: rgba(255, 255, 255, 0.82); margin-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255, 255, 255, 0.72); padding: 64px 0 28px 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand .brand { color: var(--white); margin-bottom: 14px; }
.footer-brand p { color: rgba(255, 255, 255, 0.6); font-size: 14px; max-width: 280px; }
.site-footer h4 { color: var(--white); font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: rgba(255, 255, 255, 0.72); font-size: 14.5px; }
.site-footer a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

/* ---------- Page header (inner pages) ---------- */
.page-hero {
  background: var(--gradient-brand);
  color: var(--white);
  padding: 72px 0 64px 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: 10px; }
.page-hero p { color: rgba(255, 255, 255, 0.82); max-width: 640px; margin: 0 auto; }

/* ---------- Utility ---------- */
.mt-0 { margin-top: 0; }
.text-muted { color: var(--muted); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: flex; }
  .nav.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 88px; left: 0; right: 0;
    background: var(--white);
    padding: 20px 24px 28px 24px;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }
  .hero-inner { grid-template-columns: 1fr; padding: 56px 0 56px 0; text-align: left; }
  .hero-art { order: -1; }
  .grid-3, .grid-2, .pricing-grid, .steps, .value-grid, .contact-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
  .cta-band { flex-direction: column; text-align: center; }
  .field-row { grid-template-columns: 1fr; }
  .section { padding: 56px 0; }
}

@media (max-width: 520px) {
  .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
}
