/**
 * Aqariah marketing UI — Buildo-inspired public site
 * Colors/motion/layout adapted from buildo.solutions for Aqariah brand.
 */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;600;700;800;900&display=swap');

:root {
  --aq-ink: #0f172a;
  --aq-ink-soft: #334155;
  --aq-muted: #64748b;
  --aq-paper: #ffffff;
  --aq-soft: #f8fafc;
  --aq-line: #e2e8f0;
  --aq-blue: #1d4ed8;
  --aq-blue-700: #1d4ed8;
  --aq-blue-800: #1e40af;
  --aq-blue-950: #172554;
  --aq-sky: #7dd3fc;
  --aq-amber: #f59e0b;
  --aq-amber-400: #fbbf24;
  --aq-amber-500: #f59e0b;
  --aq-emerald: #34d399;
  --aq-radius: 0.9rem;
  --aq-radius-xl: 1.25rem;
  --aq-font: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --aq-display: "Cairo", "Segoe UI", Tahoma, sans-serif;
  --aq-container: 80rem;
  --aq-shadow: 0 25px 50px -12px rgba(2, 6, 23, 0.15);
}

html, body {
  font-family: var(--aq-font);
  color: var(--aq-ink);
  background: var(--aq-paper);
  scroll-behavior: smooth;
}

.aq-container {
  width: min(100% - 2rem, var(--aq-container));
  margin-inline: auto;
}

.aq-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 0.75rem;
  padding: 0.85rem 1.4rem;
  font-weight: 900;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.aq-btn:hover { transform: translateY(-2px); text-decoration: none; }
.aq-btn-primary {
  background: var(--aq-amber-500);
  color: #0f172a !important;
  box-shadow: 0 20px 30px rgba(120, 53, 15, 0.2);
}
.aq-btn-primary:hover { background: var(--aq-amber-400); }
.aq-btn-blue {
  background: var(--aq-blue-700);
  color: #fff !important;
  box-shadow: 0 16px 28px rgba(29, 78, 216, 0.22);
}
.aq-btn-blue:hover { background: var(--aq-blue-800); }
.aq-btn-ghost {
  background: rgba(255,255,255,0.08);
  color: #fff !important;
  border-color: rgba(255,255,255,0.2);
}
.aq-btn-outline {
  background: transparent;
  color: var(--aq-ink-soft) !important;
  border-color: var(--aq-line);
  font-weight: 700;
}

/* Public body */
.aq-public-body {
  min-height: 100vh;
  background: #fff;
  color: var(--aq-ink);
}

/* Nav */
.aq-public-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid rgba(226,232,240,0.9);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 rgba(2,6,23,0.03);
}
.aq-public-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
}
.aq-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--aq-ink);
  text-decoration: none;
  font-weight: 900;
  font-size: 1.1rem;
}
.aq-brand img { height: 32px; width: auto; }
.aq-nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}
.aq-nav-links > a,
.aq-nav-links .aq-nav-item > summary {
  color: #475569;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.65rem;
  list-style: none;
  cursor: pointer;
}
.aq-nav-links > a:hover,
.aq-nav-links .aq-nav-item > summary:hover {
  background: #f8fafc;
  color: var(--aq-blue-700);
}
.aq-nav-item { position: relative; }
.aq-nav-item > summary::-webkit-details-marker { display: none; }
.aq-nav-dropdown {
  position: absolute;
  inset-inline-end: 0;
  top: calc(100% + 0.75rem);
  width: 340px;
  background: #fff;
  border: 1px solid var(--aq-line);
  border-radius: 1rem;
  padding: 0.75rem;
  box-shadow: var(--aq-shadow);
  display: none;
}
.aq-nav-item[open] > .aq-nav-dropdown { display: block; }
.aq-nav-dropdown a {
  display: block;
  padding: 0.75rem;
  border-radius: 0.75rem;
  text-decoration: none;
  color: inherit;
}
.aq-nav-dropdown a:hover { background: #eff6ff; }
.aq-nav-dropdown strong { display: block; font-weight: 900; color: var(--aq-ink); }
.aq-nav-dropdown span { display: block; margin-top: 0.25rem; font-size: 0.75rem; color: var(--aq-muted); line-height: 1.5; }
.aq-lang-switch {
  display: inline-flex;
  border: 1px solid var(--aq-line);
  border-radius: 999px;
  overflow: hidden;
}
.aq-lang-switch a {
  padding: 0.35rem 0.7rem !important;
  font-size: 0.82rem;
  color: var(--aq-muted) !important;
  text-decoration: none;
  border-radius: 0 !important;
}
.aq-lang-switch a.active {
  background: var(--aq-ink);
  color: #fff !important;
}
.aq-nav-toggle {
  display: none;
  border: 1px solid var(--aq-line);
  background: #fff;
  border-radius: 0.65rem;
  padding: 0.45rem 0.6rem;
}
.aq-nav-mobile {
  display: none;
  border-top: 1px solid var(--aq-line);
  padding: 1rem;
  background: #fff;
}
.aq-nav-mobile a {
  display: block;
  padding: 0.7rem 0.4rem;
  color: var(--aq-ink-soft);
  text-decoration: none;
  font-weight: 700;
}

/* Hero */
.aq-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: #fff;
  background: #020617;
  min-height: calc(100svh - 4rem);
  display: grid;
  align-items: center;
}
.aq-hero-media {
  position: absolute;
  inset: 0;
  z-index: -30;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.aq-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -20;
  background:
    linear-gradient(to left, rgba(23, 37, 84, 0.95), rgba(23, 37, 84, 0.85), rgba(2, 6, 23, 0.65)),
    rgba(2, 6, 23, 0.65);
}
.aq-hero-orb {
  position: absolute;
  z-index: -10;
  border-radius: 999px;
  filter: blur(60px);
  pointer-events: none;
}
.aq-hero-orb.one {
  inset-inline-end: -8rem;
  top: 2.5rem;
  width: 24rem;
  height: 24rem;
  background: rgba(59, 130, 246, 0.25);
  animation: aq-float 8s ease-in-out infinite;
}
.aq-hero-orb.two {
  inset-inline-start: -5rem;
  bottom: 0;
  width: 20rem;
  height: 20rem;
  background: rgba(251, 191, 36, 0.15);
  animation: aq-float 10s ease-in-out infinite reverse;
}
.aq-hero-grid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
  padding: 3.5rem 0;
}
@media (min-width: 1024px) {
  .aq-hero-grid { grid-template-columns: 1.08fr 0.92fr; padding: 2rem 0 3rem; }
}
.aq-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.3);
  background: rgba(255,255,255,0.1);
  padding: 0.5rem 1rem;
  font-size: 0.8rem;
  font-weight: 900;
  color: #e0f2fe;
  backdrop-filter: blur(8px);
}
.aq-pill .dot {
  width: 0.65rem;
  height: 0.65rem;
  border-radius: 999px;
  background: var(--aq-emerald);
  box-shadow: 0 0 0 5px rgba(52, 211, 153, 0.12);
  animation: aq-pulse-soft 2s ease-in-out infinite;
}
.aq-hero h1 {
  margin: 1.25rem 0 0;
  font-size: clamp(2.15rem, 3.5vw, 3.15rem);
  font-weight: 900;
  line-height: 1.2;
}
.aq-hero h1 .brand { color: var(--aq-amber-400); }
.aq-hero h1 .accent { display: block; margin-top: 0.35rem; color: var(--aq-sky); }
.aq-hero .lead {
  margin-top: 1.15rem;
  max-width: 40rem;
  color: #e2e8f0;
  font-size: 1.05rem;
  line-height: 1.8;
}
.aq-hero-checks {
  margin-top: 1.35rem;
  display: grid;
  gap: 0.65rem;
}
@media (min-width: 640px) {
  .aq-hero-checks { grid-template-columns: 1fr 1fr; }
}
.aq-hero-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border: 1px solid rgba(255,255,255,0.1);
  background: rgba(255,255,255,0.07);
  border-radius: 0.75rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 700;
  backdrop-filter: blur(4px);
}
.aq-hero-check i {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 999px;
  background: var(--aq-amber-400);
  color: #172554;
  display: grid;
  place-items: center;
  font-size: 0.85rem;
  flex-shrink: 0;
}
.aq-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}
.aq-hero-meta {
  margin-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 700;
}
.aq-hero-visual {
  position: relative;
}
.aq-hero-visual .glow {
  position: absolute;
  inset: -1.25rem;
  border-radius: 2rem;
  background: rgba(59, 130, 246, 0.2);
  filter: blur(28px);
}
.aq-hero-visual .badge {
  position: absolute;
  top: -1rem;
  inset-inline-end: 1.5rem;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border-radius: 999px;
  background: var(--aq-amber-500);
  color: #0f172a;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(0,0,0,0.25);
  animation: aq-float 4s ease-in-out infinite;
}
.aq-hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 30px 60px rgba(0,0,0,0.35);
}

/* Sections */
.aq-section { padding: 4.5rem 0; }
.aq-section.soft { background: var(--aq-soft); }
.aq-section.blue { background: var(--aq-blue-700); color: #fff; }
.aq-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--aq-blue-700);
  font-weight: 900;
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}
.aq-section.blue .aq-kicker { color: #7dd3fc; }
.aq-section h2 {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 0.75rem;
}
.aq-section .lead {
  color: var(--aq-muted);
  max-width: 44rem;
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.aq-section.blue .lead { color: rgba(255,255,255,0.85); }

.aq-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
@media (min-width: 640px) { .aq-module-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 992px) { .aq-module-grid { grid-template-columns: repeat(5, 1fr); } }
.aq-module {
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 1px solid var(--aq-line);
  background: #f8fafc;
  border-radius: 0.85rem;
  transition: transform .3s ease, border-color .3s ease, background .3s ease, box-shadow .3s ease;
  text-decoration: none;
  color: inherit;
}
.aq-module:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  background: #eff6ff;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}
.aq-module i,
.aq-module .icon {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: #dbeafe;
  color: var(--aq-blue-700);
  transition: background .3s ease, color .3s ease;
}
.aq-module:hover i,
.aq-module:hover .icon {
  background: var(--aq-blue-700);
  color: #fff;
}
.aq-module span { font-size: 0.82rem; font-weight: 800; }

.aq-steps {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .aq-steps { grid-template-columns: repeat(4, 1fr); } }
.aq-step {
  border: 1px solid var(--aq-line);
  border-radius: 1rem;
  padding: 1.25rem;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.aq-step:hover { transform: translateY(-4px); box-shadow: var(--aq-shadow); }
.aq-step .num {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #2563eb;
  color: #fff;
  font-weight: 900;
  margin-bottom: 0.85rem;
}
.aq-step h3 { font-size: 1.05rem; font-weight: 900; margin-bottom: 0.4rem; }
.aq-step p { color: var(--aq-muted); margin: 0; line-height: 1.7; font-size: 0.92rem; }

.aq-feature-cards {
  display: grid;
  gap: 1rem;
}
@media (min-width: 768px) { .aq-feature-cards { grid-template-columns: repeat(3, 1fr); } }
.aq-feature-card {
  border: 1px solid var(--aq-line);
  border-radius: 1.1rem;
  padding: 1.35rem;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.aq-feature-card:hover {
  transform: translateY(-4px);
  border-color: #bfdbfe;
  box-shadow: var(--aq-shadow);
}
.aq-feature-card .icon {
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  display: grid;
  place-items: center;
  background: #eff6ff;
  color: var(--aq-blue-700);
  margin-bottom: 1rem;
  transition: background .25s ease, color .25s ease;
}
.aq-feature-card:hover .icon { background: var(--aq-blue-700); color: #fff; }
.aq-feature-card h3 { font-weight: 900; font-size: 1.1rem; margin-bottom: 0.5rem; }
.aq-feature-card p { color: var(--aq-muted); margin: 0; line-height: 1.75; }

.aq-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}
@media (min-width: 768px) { .aq-stats { grid-template-columns: repeat(4, 1fr); } }
.aq-stat {
  text-align: center;
  padding: 1.25rem;
  border-radius: 1rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
}
.aq-stat .value {
  font-size: 2rem;
  font-weight: 900;
  color: var(--aq-amber-400);
}
.aq-stat .label { color: rgba(255,255,255,0.85); font-weight: 700; margin-top: 0.25rem; }

.aq-split {
  display: grid;
  gap: 2rem;
  align-items: center;
}
@media (min-width: 992px) { .aq-split { grid-template-columns: 1.1fr 0.9fr; } }
.aq-split img {
  width: 100%;
  border-radius: 1.25rem;
  border: 1px solid var(--aq-line);
  box-shadow: var(--aq-shadow);
}
.aq-checklist { list-style: none; padding: 0; margin: 1rem 0 0; }
.aq-checklist li {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  margin-bottom: 0.7rem;
  font-weight: 700;
  color: var(--aq-ink-soft);
}
.aq-checklist li::before {
  content: "✓";
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 999px;
  background: #dbeafe;
  color: var(--aq-blue-700);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.aq-roles {
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 768px) { .aq-roles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .aq-roles { grid-template-columns: repeat(3, 1fr); } }
.aq-role {
  border: 1px solid var(--aq-line);
  border-radius: 1rem;
  padding: 1.1rem;
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
}
.aq-role:hover { transform: translateY(-3px); box-shadow: var(--aq-shadow); }
.aq-role .code {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--aq-blue-700);
  background: #eff6ff;
  border-radius: 999px;
  padding: 0.2rem 0.65rem;
  margin-bottom: 0.55rem;
}
.aq-role h3 { font-weight: 900; margin-bottom: 0.4rem; }
.aq-role p { color: var(--aq-muted); margin: 0; font-size: 0.9rem; line-height: 1.7; }

.aq-faq details {
  border: 1px solid var(--aq-line);
  border-radius: 0.9rem;
  background: #fff;
  padding: 0.95rem 1.1rem;
  margin-bottom: 0.7rem;
}
.aq-faq summary {
  cursor: pointer;
  font-weight: 900;
  list-style: none;
}
.aq-faq summary::-webkit-details-marker { display: none; }
.aq-faq details[open] summary { color: var(--aq-blue-700); margin-bottom: 0.55rem; }
.aq-faq p { color: var(--aq-muted); margin: 0; line-height: 1.75; }

.aq-integrations {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: center;
  justify-content: center;
}
.aq-integrations img {
  height: 34px;
  width: auto;
  opacity: 0.75;
  filter: grayscale(1);
  transition: opacity .2s ease, filter .2s ease;
}
.aq-integrations img:hover { opacity: 1; filter: none; }

.aq-cta-band {
  background: linear-gradient(135deg, #1e3a8a, #1d4ed8);
  color: #fff;
  border-radius: 1.5rem;
  padding: 2.25rem;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  box-shadow: var(--aq-shadow);
}

.aq-public-footer {
  border-top: 1px solid var(--aq-line);
  padding: 2.5rem 0 2rem;
  background: #0f172a;
  color: #94a3b8;
}
.aq-public-footer a { color: #cbd5e1; text-decoration: none; }
.aq-public-footer a:hover { color: #fff; }
.aq-footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .aq-footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.aq-public-footer h4 {
  color: #fff;
  font-weight: 900;
  margin-bottom: 0.85rem;
}
.aq-public-footer ul { list-style: none; padding: 0; margin: 0; }
.aq-public-footer li { margin-bottom: 0.45rem; }
.aq-footer-bottom {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(148,163,184,0.2);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

/* Reveal animations */
.aq-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .7s ease, transform .7s ease;
}
.aq-reveal.is-visible {
  opacity: 1;
  transform: none;
}
.aq-reveal-delay-1 { transition-delay: .08s; }
.aq-reveal-delay-2 { transition-delay: .16s; }
.aq-reveal-delay-3 { transition-delay: .24s; }

@keyframes aq-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}
@keyframes aq-pulse-soft {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.15); opacity: 0.85; }
}

/* Auth keeps working */
.aq-auth-shell {
  min-height: calc(100vh - 4rem);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
}
.aq-auth-visual {
  background:
    linear-gradient(160deg, rgba(23,37,84,.94), rgba(29,78,216,.72)),
    url('/images/marketing/buildo-background.webp') center/cover;
  color: #fff;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.aq-auth-visual h1 {
  font-size: clamp(2rem, 3.5vw, 3rem);
  font-weight: 900;
  max-width: 14ch;
}
.aq-auth-panel {
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.aq-auth-card { width: min(100%, 480px); }
.aq-auth-card h2 { font-size: 1.6rem; font-weight: 900; margin-bottom: 0.35rem; }
.aq-auth-card .sub { color: var(--aq-muted); margin-bottom: 1.5rem; }

/* Dashboard shell leftovers */
.aq-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}
.aq-page-header h4 { margin: 0; font-weight: 800; }
.aq-page-header .subtitle { color: var(--aq-muted); margin: 0.25rem 0 0; }
.aq-empty-state {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--aq-muted);
  border: 1px dashed var(--aq-line);
  border-radius: var(--aq-radius);
  background: #fff;
}
.aq-stat-card {
  background: #fff;
  border: 1px solid var(--aq-line);
  border-radius: 0.75rem;
  padding: 1rem 1.1rem;
}
.aq-stat-card .label { color: var(--aq-muted); font-size: 0.82rem; }
.aq-stat-card .value { font-size: 1.35rem; font-weight: 800; margin-top: 0.2rem; }
.aq-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: end;
  padding: 1rem;
  background: #fff;
  border: 1px solid var(--aq-line);
  border-radius: 0.75rem;
  margin-bottom: 1rem;
}
.layout-menu.menu-container { border-inline-end: 1px solid var(--aq-line); }
.layout-navbar { box-shadow: none !important; border-bottom: 1px solid var(--aq-line); }

/* Lightweight utilities (no Bootstrap required on public pages) */
.d-block { display: block !important; }
.d-flex { display: flex !important; }
.flex-wrap { flex-wrap: wrap !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.text-center { text-align: center !important; }

@media (max-width: 991px) {
  .aq-nav-desktop { display: none !important; }
  .aq-nav-toggle { display: inline-flex; }
  .aq-public-nav.is-open .aq-nav-mobile { display: block; }
  .aq-auth-shell { grid-template-columns: 1fr; }
  .aq-auth-visual { min-height: 220px; padding: 1.5rem; }
  .aq-hero { min-height: auto; }
  .aq-hero-visual { order: -1; }
}
