/* =========================================================
   Quadrazon — theme
   Palette: navy ink + electric indigo (brand) + coral (action)
   Fonts:   Plus Jakarta Sans (headings) / Inter (body)
   ========================================================= */

:root {
  --q-primary: #3d5afe;
  --q-primary-dark: #2a3eb1;
  --q-primary-soft: #eef1ff;
  --q-accent: #ff6b4a;
  --q-accent-dark: #e8532f;
  --q-ink: #0e1630;
  --q-body: #4a5372;
  --q-muted: #7a829e;
  --q-surface: #f6f8ff;
  --q-border: #e4e8f5;
  --q-white: #ffffff;

  --q-radius: 20px;
  --q-radius-sm: 12px;
  --q-shadow-sm: 0 4px 14px rgba(14, 22, 48, 0.06);
  --q-shadow: 0 18px 40px rgba(14, 22, 48, 0.1);
  --q-ease: cubic-bezier(0.22, 1, 0.36, 1);

  --q-font-head: "Plus Jakarta Sans", system-ui, sans-serif;
  --q-font-body: "Inter", system-ui, sans-serif;

  /* Bootstrap overrides */
  --bs-body-font-family: var(--q-font-body);
  --bs-body-color: var(--q-body);
  --bs-body-bg: var(--q-white);
  --bs-link-color-rgb: 61, 90, 254;
}

html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { font-size: 1rem; line-height: 1.7; -webkit-font-smoothing: antialiased; overflow-x: hidden; }

h1, h2, h3, h4, h5, h6 { font-family: var(--q-font-head); color: var(--q-ink); font-weight: 700; letter-spacing: -0.01em; }
.text-ink { color: var(--q-ink); }

::selection { background: var(--q-primary); color: #fff; }
:focus-visible { outline: 3px solid rgba(61, 90, 254, 0.45); outline-offset: 2px; }

/* ---------- Layout helpers ---------- */
.q-section { padding: 72px 0; position: relative; }
@media (min-width: 992px) { .q-section { padding: 112px 0; } }
.q-bg-surface { background: var(--q-surface); }

.q-display { font-size: clamp(2.25rem, 5vw + 0.5rem, 3.75rem); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.q-h2 { font-size: clamp(1.75rem, 2.5vw + 0.75rem, 2.625rem); line-height: 1.2; }
.q-lead { font-size: 1.125rem; max-width: 34rem; }

.q-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: var(--q-primary-soft); color: var(--q-primary);
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase;
}
.q-eyebrow-light { background: rgba(255, 255, 255, 0.12); color: #c9d2ff; }

.q-highlight {
  background: linear-gradient(90deg, var(--q-primary), #7b5cff);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn-q {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 22px; border-radius: 999px; border: 0;
  font-weight: 600; font-size: 0.95rem;
  transition: transform 0.3s var(--q-ease), box-shadow 0.3s var(--q-ease), background-color 0.3s, color 0.3s;
}
.btn-q.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-q:hover { transform: translateY(-2px); }
.btn-q:active { transform: translateY(0); }

.btn-q-accent { background: var(--q-accent); color: #fff; box-shadow: 0 8px 20px rgba(255, 107, 74, 0.3); }
.btn-q-accent:hover, .btn-q-accent:focus-visible { background: var(--q-accent-dark); color: #fff; box-shadow: 0 12px 28px rgba(255, 107, 74, 0.38); }

.btn-q-ghost { background: transparent; color: var(--q-ink); border: 1.5px solid var(--q-border); }
.btn-q-ghost:hover { border-color: var(--q-primary); color: var(--q-primary); background: var(--q-white); }

.btn-q-whatsapp { background: #25d366; color: #fff; }
.btn-q-whatsapp:hover { background: #1ebe5a; color: #fff; box-shadow: 0 12px 28px rgba(37, 211, 102, 0.3); }

.btn-q-icon {
  display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.22); font-size: 0.8rem;
  transition: transform 0.3s var(--q-ease);
}
.btn-q:hover .btn-q-icon { transform: translateX(3px) rotate(45deg); }

/* ---------- Navbar ---------- */
.q-nav { padding: 18px 0; transition: padding 0.3s var(--q-ease), background-color 0.3s, box-shadow 0.3s; }
.q-nav.is-scrolled { padding: 10px 0; background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--q-border), var(--q-shadow-sm); }

.q-brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--q-font-head); font-weight: 800; font-size: 1.35rem; color: var(--q-ink); text-decoration: none; }
.q-brand:hover { color: var(--q-ink); }
.q-brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--q-primary), #7b5cff); color: #fff; font-size: 1.1rem;
}

.q-nav .nav-link { position: relative; color: var(--q-ink); font-weight: 500; padding: 8px 12px !important; }
.q-nav .nav-link::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px;
  background: var(--q-primary); transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--q-ease);
}
.q-nav .nav-link:hover, .q-nav .nav-link.active { color: var(--q-primary); }
.q-nav .nav-link:hover::after, .q-nav .nav-link.active::after { transform: scaleX(1); }

@media (max-width: 991.98px) {
  .q-nav { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(12px); }
  .q-nav .offcanvas { max-width: 300px; }
  .q-nav .nav-link { font-size: 1.1rem; padding: 12px 0 !important; border-bottom: 1px solid var(--q-border); }
  .q-nav .nav-link::after { display: none; }
}

/* ---------- Hero ---------- */
.q-hero { padding: 140px 0 80px; position: relative; overflow: hidden; background: linear-gradient(180deg, var(--q-surface) 0%, var(--q-white) 100%); }
@media (min-width: 992px) { .q-hero { padding: 180px 0 120px; } }
.q-hero-glow {
  position: absolute; width: 640px; height: 640px; right: -180px; top: -160px; border-radius: 50%;
  background: radial-gradient(circle, rgba(61, 90, 254, 0.18), transparent 65%); pointer-events: none;
}

.q-hero-visual { position: relative; max-width: 520px; margin: 0 auto; padding: 32px 0; }

.q-browser { background: #fff; border-radius: var(--q-radius); box-shadow: var(--q-shadow); border: 1px solid var(--q-border); overflow: hidden; }
.q-browser-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--q-border); background: #fbfcff; }
.q-browser-bar > span { width: 10px; height: 10px; border-radius: 50%; background: #ffcfc4; }
.q-browser-bar > span:nth-child(2) { background: #ffe3a3; }
.q-browser-bar > span:nth-child(3) { background: #bdeccb; }
.q-browser-url { margin-left: 12px; flex: 1; padding: 4px 12px; border-radius: 999px; background: var(--q-surface); font-size: 0.75rem; color: var(--q-muted); }
.q-browser-body { padding: 28px; }
.q-skel { height: 12px; border-radius: 6px; background: var(--q-primary-soft); }

.q-chart { display: flex; align-items: flex-end; gap: 10px; height: 160px; }
.q-chart i {
  flex: 1; height: var(--h); border-radius: 8px 8px 4px 4px;
  background: linear-gradient(180deg, var(--q-primary), #8ea0ff);
  transform-origin: bottom; animation: q-grow 1.2s var(--q-ease) both;
}
.q-chart i:nth-child(1) { animation-delay: 0.3s; } .q-chart i:nth-child(2) { animation-delay: 0.38s; }
.q-chart i:nth-child(3) { animation-delay: 0.46s; } .q-chart i:nth-child(4) { animation-delay: 0.54s; }
.q-chart i:nth-child(5) { animation-delay: 0.62s; } .q-chart i:nth-child(6) { animation-delay: 0.7s; }
.q-chart i:nth-child(7) { animation-delay: 0.78s; } .q-chart i:nth-child(8) { animation-delay: 0.86s; background: linear-gradient(180deg, var(--q-accent), #ffb19f); }
@keyframes q-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

.q-float-badge {
  position: absolute; display: inline-flex; align-items: center; gap: 10px;
  padding: 10px 16px 10px 10px; border-radius: 999px; background: #fff;
  box-shadow: var(--q-shadow); font-weight: 600; font-size: 0.875rem; color: var(--q-ink); white-space: nowrap;
  animation: q-float 6s ease-in-out infinite;
}
.q-badge-icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: linear-gradient(135deg, var(--q-primary), #7b5cff); color: #fff; font-size: 0.9rem; }
.q-badge-1 { top: 0; right: -8px; }
.q-badge-2 { top: 42%; left: -28px; animation-delay: -2s; }
.q-badge-3 { bottom: 4px; right: 16px; animation-delay: -4s; }
@keyframes q-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (max-width: 575.98px) {
  .q-float-badge { font-size: 0.75rem; padding: 6px 12px 6px 6px; }
  .q-badge-icon { width: 26px; height: 26px; font-size: 0.75rem; }
  .q-badge-1 { right: 0; } .q-badge-2 { left: 0; } .q-badge-3 { right: 8px; }
  .q-browser-body { padding: 20px; } .q-chart { height: 120px; gap: 6px; }
}

/* ---------- Icon tile ---------- */
.q-icon-tile {
  flex-shrink: 0; display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px;
  background: var(--q-primary-soft); color: var(--q-primary); font-size: 1.25rem;
  transition: background-color 0.3s, color 0.3s, transform 0.3s var(--q-ease);
}
.q-icon-lg { width: 60px; height: 60px; font-size: 1.6rem; border-radius: 16px; }

/* ---------- Why choose us: pillars ---------- */
.q-pillars { display: grid; gap: 16px; }
.q-pillar {
  display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--q-radius);
  background: #fff; border: 1px solid var(--q-border); box-shadow: var(--q-shadow-sm);
  transition: transform 0.35s var(--q-ease), box-shadow 0.35s var(--q-ease), border-color 0.3s;
}
.q-pillar:nth-child(2) { margin-left: 0; }
@media (min-width: 992px) { .q-pillar:nth-child(2) { margin-left: 40px; } }
.q-pillar:hover { transform: translateX(6px); box-shadow: var(--q-shadow); border-color: rgba(61, 90, 254, 0.3); }
.q-pillar:hover .q-icon-tile { background: var(--q-primary); color: #fff; }

/* ---------- Service cards ---------- */
.q-card {
  position: relative; padding: 32px 28px; border-radius: var(--q-radius); background: #fff;
  border: 1px solid var(--q-border); overflow: hidden;
  transition: transform 0.4s var(--q-ease), box-shadow 0.4s var(--q-ease), border-color 0.3s;
}
.q-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--q-primary), #7b5cff, var(--q-accent));
  transform: scaleX(0); transform-origin: left; transition: transform 0.5s var(--q-ease);
}
.q-card:hover { transform: translateY(-8px); box-shadow: var(--q-shadow); border-color: transparent; }
.q-card:hover::before { transform: scaleX(1); }
.q-card:hover .q-icon-tile { background: var(--q-primary); color: #fff; transform: rotate(-6deg) scale(1.05); }
.q-card-title { font-size: 1.2rem; margin: 22px 0 12px; }
.q-card p { font-size: 0.95rem; margin: 0; }

/* ---------- Feature rows (marketing) ---------- */
.q-feature {
  display: flex; gap: 18px; padding: 22px; border-radius: var(--q-radius); margin-bottom: 16px;
  border: 1px solid var(--q-border); background: #fff;
  transition: transform 0.35s var(--q-ease), box-shadow 0.35s var(--q-ease), border-color 0.3s;
}
.q-feature:hover { transform: translateY(-4px); box-shadow: var(--q-shadow); border-color: rgba(61, 90, 254, 0.3); }
.q-feature:hover .q-icon-tile { background: var(--q-primary); color: #fff; }
.q-feature h3 { font-size: 1.1rem; margin-bottom: 6px; }

.q-panel {
  position: relative; aspect-ratio: 1 / 1; max-width: 480px; margin: 0 auto; border-radius: 32px; overflow: hidden;
  background: linear-gradient(145deg, var(--q-primary) 0%, #5b4bff 55%, #7b5cff 100%);
  display: grid; place-items: center; box-shadow: 0 30px 60px rgba(61, 90, 254, 0.3);
}
.q-panel-ring {
  position: absolute; width: 140%; aspect-ratio: 1; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 0 0 60px rgba(255, 255, 255, 0.04), 0 0 0 120px rgba(255, 255, 255, 0.03);
  animation: q-spin 40s linear infinite;
}
@keyframes q-spin { to { transform: rotate(360deg); } }
.q-panel-content { position: relative; text-align: center; padding: 24px; }
.q-panel-icon { font-size: clamp(4rem, 10vw, 6rem); color: #fff; display: inline-block; animation: q-float 5s ease-in-out infinite; }
.q-chip {
  padding: 8px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); color: #fff;
  font-size: 0.875rem; font-weight: 600; backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, 0.25);
}

/* ---------- About ---------- */
.q-about-visual {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: 28px; padding: 28px;
  background:
    radial-gradient(circle at 20% 20%, rgba(123, 92, 255, 0.25), transparent 50%),
    radial-gradient(circle at 80% 80%, rgba(255, 107, 74, 0.2), transparent 50%),
    var(--q-ink);
  display: grid; place-items: center;
}
.q-about-card {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: 32px 28px; border-radius: var(--q-radius); background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14); color: #c7cde3; backdrop-filter: blur(8px);
}
.q-about-card i { font-size: 2.5rem; color: #fff; }
.q-about-card strong { color: #fff; font-family: var(--q-font-head); font-size: 1.35rem; }
.q-about-tag {
  position: absolute; bottom: -18px; right: 24px; display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px; border-radius: 999px; background: #fff; box-shadow: var(--q-shadow);
  font-weight: 600; color: var(--q-ink); font-size: 0.9rem;
}
.q-about-tag i { color: var(--q-accent); }

/* ---------- Testimonial ---------- */
.q-testimonial { background: var(--q-ink); overflow: hidden; }
.q-testimonial::before, .q-testimonial::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none; filter: blur(10px);
}
.q-testimonial::before { width: 520px; height: 520px; left: -200px; top: -200px; background: radial-gradient(circle, rgba(61, 90, 254, 0.35), transparent 65%); }
.q-testimonial::after { width: 460px; height: 460px; right: -160px; bottom: -200px; background: radial-gradient(circle, rgba(255, 107, 74, 0.22), transparent 65%); }

.q-quote {
  position: relative; max-width: 820px; padding: 40px 28px; border-radius: 28px;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.1); color: #c7cde3;
}
@media (min-width: 768px) { .q-quote { padding: 56px 56px 48px; } }
.q-quote blockquote p { font-size: clamp(1.05rem, 1vw + 0.8rem, 1.3rem); line-height: 1.7; color: #eef1ff; margin: 0; }
.q-quote-mark { position: absolute; top: -10px; right: 28px; font-size: 6rem; line-height: 1; color: rgba(255, 255, 255, 0.08); }
.q-stars { color: #ffc24b; letter-spacing: 3px; }
.q-avatar { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: linear-gradient(135deg, var(--q-primary), #7b5cff); color: #fff; font-weight: 700; }

/* ---------- Contact ---------- */
.q-form { padding: 28px; border-radius: 24px; background: #fff; border: 1px solid var(--q-border); box-shadow: var(--q-shadow); }
@media (min-width: 768px) { .q-form { padding: 40px; } }
.q-form .form-label { font-weight: 600; color: var(--q-ink); font-size: 0.9rem; }
.q-input { position: relative; }
.q-input > i { position: absolute; left: 16px; top: 14px; color: var(--q-muted); transition: color 0.2s; z-index: 2; }
.q-input .form-control {
  padding: 12px 16px 12px 44px; border-radius: var(--q-radius-sm); border: 1.5px solid var(--q-border);
  background: var(--q-surface); transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.q-input .form-control:focus { background: #fff; border-color: var(--q-primary); box-shadow: 0 0 0 4px rgba(61, 90, 254, 0.12); }
.q-input:focus-within > i { color: var(--q-primary); }
.q-form-success { padding: 12px 16px; border-radius: var(--q-radius-sm); background: #e9f9ef; color: #157347; font-weight: 500; }

.q-info {
  display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--q-radius);
  background: var(--q-surface); border: 1px solid var(--q-border); text-decoration: none; color: var(--q-body);
  transition: transform 0.35s var(--q-ease), box-shadow 0.35s var(--q-ease), background-color 0.3s;
}
.q-info p { word-break: break-word; }
a.q-info:hover { transform: translateY(-4px); background: #fff; box-shadow: var(--q-shadow); color: var(--q-body); }
a.q-info:hover .q-icon-tile { background: var(--q-primary); color: #fff; }

/* ---------- Footer ---------- */
.q-footer { background: var(--q-ink); color: #a3abc7; padding-top: 72px; }
.q-footer-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px;
  padding: 36px; border-radius: 28px; background: linear-gradient(135deg, var(--q-primary), #7b5cff);
  color: #e3e8ff;
}
.q-footer-title { color: #fff; font-size: 1rem; margin-bottom: 18px; }
.q-footer-list li + li { margin-top: 10px; }
.q-footer-list a, .q-footer-link { color: #a3abc7; text-decoration: none; transition: color 0.2s, padding-left 0.3s var(--q-ease); }
.q-footer-list a:hover { color: #fff; padding-left: 4px; }
.q-footer-link:hover { color: #fff; }
.q-social {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); color: #fff; text-decoration: none;
  transition: background-color 0.3s, transform 0.3s var(--q-ease);
}
.q-social:hover { background: var(--q-primary); color: #fff; transform: translateY(-3px); }
.q-footer-bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 0.875rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
