/* ===== ZealVector — home page ===== */

:root {
  --bg: #100e20;
  --text: #f2f1f8;
  --muted: #a6a0c8;
  --muted-2: #6c6886;
  --accent: #7f6ef2;
  --accent-2: #9a8cf7;
  --glass-bg: linear-gradient(160deg, rgba(148, 138, 246, 0.10), rgba(255, 255, 255, 0.04));
  --glass-border: rgba(255, 255, 255, 0.12);
  --pill-bg: rgba(255, 255, 255, 0.08);
  --font: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  min-height: 100%;
}

#bg-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  display: block;
}

/* vignette to darken page edges */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% 38%, transparent 55%, rgba(10, 9, 20, 0.4) 100%),
    linear-gradient(to bottom, rgba(10, 9, 20, 0.25), transparent 18%, transparent 75%, rgba(10, 9, 20, 0.35));
}

.page {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px 34px 40px;
}

/* ===== Glassmorphism ===== */
.glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(1.6);
  -webkit-backdrop-filter: blur(18px) saturate(1.6);
  box-shadow: 0 8px 32px rgba(5, 4, 14, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* ===== Nav ===== */
.nav {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 20px;
  padding: 15px 20px;
  background: linear-gradient(160deg, #1b1836 0%, #14122a 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
}

.brand-mark { display: flex; align-items: center; }

.brand-logo {
  height: 38px;
  width: auto;
  display: block;
}

.brand-logo-sm { height: 30px; }

.brand-name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 24px 6px 66px;
  text-align: center;
}

.hero-title {
  font-size: 66px;
  line-height: 1.08;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  background: linear-gradient(180deg, #ffffff 55%, #c9c0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub {
  font-size: 20px;
  line-height: 1.55;
  color: #c9c5de;
  font-weight: 400;
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 12px rgba(10, 8, 22, 0.85), 0 0 28px rgba(10, 8, 22, 0.6);
}

.hero-title {
  filter: drop-shadow(0 2px 14px rgba(10, 8, 22, 0.55));
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 26px;
  border-radius: 11px;
  font-size: 15.5px;
  font-weight: 600;
  font-family: var(--font);
  text-decoration: none;
  border: none;
  cursor: pointer;
  color: var(--text);
  transition: filter .15s, background .15s;
}

.btn-sm { padding: 10px 18px; font-size: 13.5px; border-radius: 9px; }

.btn-primary {
  background: linear-gradient(135deg, #948af6 0%, #6a5ae0 100%);
  box-shadow: 0 6px 24px rgba(122, 104, 240, 0.35), 0 0 40px rgba(127, 110, 242, 0.25);
}
.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--glass-border);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

/* ===== Month / week sections ===== */
.month-tag {
  width: fit-content;
  margin: 0 auto 30px;
  padding: 8px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.week { margin-bottom: 34px; }
.week:last-of-type { margin-bottom: 0; }

.week-tag {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.week-pill {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 650;
  color: var(--text);
}

.week-pill.current {
  background: linear-gradient(135deg, rgba(148, 138, 246, 0.35) 0%, rgba(106, 90, 224, 0.35) 100%);
  border-color: rgba(148, 138, 246, 0.5);
}

.week-range {
  font-size: 13px;
  font-weight: 400;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* ===== Card grid ===== */
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 0.94fr;
  gap: 20px;
}

.card {
  border-radius: 20px;
  padding: 22px 22px 20px;
  background: linear-gradient(160deg, #1b1836 0%, #14122a 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.flip-front {
  transition: border-color .18s, box-shadow .18s;
}
.flip-card:hover .flip-front {
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 10px 34px rgba(5, 4, 14, 0.45);
}

.pill {
  display: inline-block;
  align-self: flex-start;
  width: fit-content;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent-2);
  background: rgba(148, 138, 246, 0.12);
  border: 1px solid rgba(148, 138, 246, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 14px;
}

.card-row {
  display: flex;
  align-items: center;
  gap: 13px;
}

.card-icon {
  flex: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
}

.icon-img {
  background: radial-gradient(circle at 35% 35%, #3b3f8a 0%, #191938 70%);
}

.icon-solid {
  background: #f2f1f8;
  color: #16142a;
  font-weight: 700;
  font-size: 17px;
}

.icon-x { background: #101020; }

.card-text h3 {
  font-size: 17.5px;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.meta {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

/* ===== Flip cards ===== */
.flip-card {
  perspective: 1400px;
  cursor: pointer;
  outline: none;
  min-height: 320px;
}

.flip-card:focus-visible .flip-front { border-color: rgba(148, 138, 246, 0.6); }

.flip-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.65s cubic-bezier(0.4, 0.1, 0.2, 1);
  transform-style: preserve-3d;
}

.flip-card.flipped .flip-inner { transform: rotateY(180deg); }

.flip-face {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

.flip-front {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

.flip-back {
  position: absolute;
  inset: 0;
  transform: rotateY(180deg);
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: flex-start;
  overflow: hidden;
}

.flip-back h3 {
  font-size: 16px;
  font-weight: 650;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.back-body {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

/* front summary (visible by default) */
.card-desc {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.flip-hint {
  margin-top: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent-2);
}

/* back analysis points */
.analysis {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.analysis li {
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}

.analysis-label {
  color: var(--accent-2);
  font-weight: 650;
}

.back-hint {
  margin-top: auto;
  font-size: 11px;
  color: var(--muted-2);
}

/* Newsletter */
.newsletter { display: flex; flex-wrap: wrap; gap: 10px; }

.newsletter input {
  flex: 1;
  min-width: 0;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--glass-border);
  border-radius: 9px;
  padding: 11px 14px;
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
  transition: border-color .15s;
}
.newsletter input::placeholder { color: var(--muted); }
.newsletter input:focus { border-color: rgba(148, 138, 246, 0.5); }
.newsletter input[aria-invalid="true"] { border-color: rgba(255, 120, 120, 0.7); }
.newsletter input[aria-invalid="true"]:focus { border-color: rgba(255, 120, 120, 0.9); }

/* Anti-bot honeypot: off-screen, out of the layout and tab order.
   Kept in the DOM (not display:none) so simple bots still fill it. */
.newsletter input.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  flex: 0 0 auto;
  opacity: 0;
  pointer-events: none;
}

.newsletter-msg {
  flex-basis: 100%;
  margin-top: 2px;
  font-size: 12px;
  line-height: 1.35;
  text-align: right;
  color: var(--muted);
}
.newsletter-msg.is-error { color: #ff9090; }
.newsletter-msg.is-ok { color: #7fe0a8; }

.btn-arrow {
  flex: none;
  width: 44px;
  height: 42px;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 9px;
  background: linear-gradient(135deg, #948af6 0%, #6a5ae0 100%);
  cursor: pointer;
  transition: filter .15s;
}
.btn-arrow:hover { filter: brightness(1.08); }

/* ===== Contact CTA band ===== */
.contact-cta {
  margin-top: 44px;
  border-radius: 20px;
  padding: 22px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px 28px;
  flex-wrap: wrap;
  background: linear-gradient(160deg, #1b1836 0%, #14122a 100%);
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.contact-cta-title {
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.contact-cta-sub {
  font-size: 14px;
  color: var(--muted);
  margin-top: 4px;
}

.contact-cta-btn {
  flex: none;
  white-space: nowrap;
}

/* ===== Footer ===== */
.footer {
  margin-top: 44px;
  border-radius: 16px;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

.footer .brand-name { font-size: 16px; }

.footer-copy {
  font-size: 12.5px;
  color: var(--muted-2);
  margin-left: 6px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.footer-links a,
.link-btn {
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
}
.footer-links a:hover, .link-btn:hover { color: var(--text); }

.link-btn {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
  cursor: pointer;
}

.footer-mail { color: var(--accent-2) !important; }
.footer-mail:hover { text-decoration: underline !important; }

.footer-newsletter {
  gap: 8px;
  align-items: center;
}

.footer-newsletter-label {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  margin-right: 2px;
}

.footer-newsletter input {
  width: 170px;
  flex: none;
  padding: 8px 12px;
}

.footer-newsletter .btn-arrow {
  width: 38px;
  height: 36px;
}

/* ===== Cookie banner ===== */
.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 50;
  width: min(880px, calc(100vw - 40px));
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(18, 16, 34, 0.82);
}

.cookie-banner p {
  flex: 1;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
}

.cookie-actions { display: flex; gap: 10px; flex: none; flex-wrap: wrap; }

/* ===== Cookie settings modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(8, 7, 16, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal {
  width: min(520px, calc(100vw - 40px));
  border-radius: 16px;
  padding: 28px;
  background: rgba(20, 18, 38, 0.92);
}

.modal h3 { font-size: 20px; font-weight: 650; margin-bottom: 8px; }

.modal-sub {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 20px;
}

.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-option strong { font-size: 14.5px; }

.cookie-option p {
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 3px;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 22px;
}

/* toggle switch */
.switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid var(--glass-border);
  cursor: pointer;
  transition: background .2s;
}
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: #cfcbe6;
  transition: transform .2s, background .2s;
}
.switch input:checked + .slider {
  background: linear-gradient(135deg, #948af6 0%, #6a5ae0 100%);
}
.switch input:checked + .slider::before { transform: translateX(20px); background: #fff; }
.switch.disabled .slider { cursor: not-allowed; opacity: 0.55; }

[hidden] { display: none !important; }

/* ===== Responsive ===== */
@media (max-width: 980px) {
  .grid { grid-template-columns: 1fr 1fr; }
  .hero-title { font-size: 48px; }
}

@media (max-width: 680px) {
  .grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; }
  .footer { justify-content: center; }
  .cookie-banner { flex-direction: column; align-items: flex-start; }
}
