/* =========================================================
   Zynosys Vortex — LANDING PAGE STYLES
   Theme: Warm Light — Orange (#FF8008) & Gold (#FFC729)
   Layout signature: asymmetric hero split + diagonal section
   dividers + a stepped "signal timeline" for How It Works.
   ========================================================= */

/* ---------- ROOT VARIABLES ---------- */
:root {
  --bg-primary: #fffaf0;
  --bg-secondary: #fff3dc;
  --bg-dark: #2a1a08;          /* deep warm brown for footer / risk bar */

  --text-primary: #2a1a08;
  --text-secondary: #5c4528;
  --text-muted: #8f7a5c;

  --accent-1: #ff8008;   /* primary orange */
  --accent-2: #ffc729;   /* golden yellow */
  --accent-3: #0fb5a0;   /* teal counterpoint */

  /* Darker variants for small TEXT on light backgrounds (readable contrast) */
  --accent-text: #a85400;
  --accent-3-text: #0a8a79;

  --gradient-neon: linear-gradient(135deg, var(--accent-1) 0%, var(--accent-2) 100%);
  --gradient-text: linear-gradient(135deg, #ff8008 0%, #e69500 100%);

  --glass-bg: rgba(255, 255, 255, 0.65);
  --glass-border: rgba(255, 128, 8, 0.18);

  --shadow-soft: 0 8px 32px rgba(255, 128, 8, 0.10);

  --radius-md: 14px;
  --radius-sm: 8px;
  --radius-lg: 24px;

  --font-display: 'Georgia', 'Iowan Old Style', 'Palatino Linotype', serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-w: 1240px;
  --header-h: 76px;
  --warning-h: 44px;

  --transition: 220ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- RESET ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

body {
  font-family: var(--font-body);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
input, select { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent-1);
  outline-offset: 2px;
}

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
p { color: var(--text-secondary); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent-text);
  margin-bottom: 10px;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn--solid {
  background: var(--gradient-neon);
  color: var(--bg-dark);
  box-shadow: 0 4px 20px rgba(255, 128, 8, 0.30);
}
.btn--solid:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255, 128, 8, 0.42); }
.btn--ghost {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
}
.btn--ghost:hover { border-color: var(--accent-1); color: var(--accent-text); }
.btn--outline {
  background: transparent;
  border: 1px solid var(--accent-3);
  color: var(--accent-3-text);
}
.btn--outline:hover { background: rgba(15, 181, 160, 0.08); }
.btn--lg { padding: 15px 30px; font-size: 1rem; }
.btn--full { width: 100%; padding: 14px; }

/* ---------- GLASS CARD ---------- */
.glass-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-soft);
}

/* =========================================================
   RISK WARNING BAR
   ========================================================= */
.risk-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--warning-h);
  background: var(--bg-dark);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 48px 0 16px;
  gap: 12px;
}
.risk-bar p {
  font-size: 0.78rem;
  color: #e6d6b8;
  text-align: center;
  max-width: 900px;
}
.risk-bar strong { color: var(--accent-2); }
.risk-bar__close {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #e6d6b8;
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.risk-bar__close:hover { background: rgba(255, 199, 41, 0.18); color: #fff; }
.risk-bar.is-hidden { display: none; }

/* =========================================================
   HEADER
   ========================================================= */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  background: rgba(255, 250, 240, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: 0 2px 16px rgba(255, 128, 8, 0.08);
}
.risk-bar.is-hidden ~ .header { top: 0; }

.header__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.nav { display: flex; align-items: center; gap: 30px; }
.nav-link {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--transition);
  position: relative;
}
.nav-link:hover,
.nav-link.active { color: var(--accent-1); }

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

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 26px;
  padding: 4px;
}
.hamburger span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}
.hamburger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-active span:nth-child(2) { opacity: 0; }
.hamburger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-drawer {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--glass-border);
}
.mobile-drawer.is-open { display: flex; }
.mobile-drawer .nav-link { padding: 12px 4px; border-bottom: 1px solid var(--glass-border); }
.mobile-drawer__actions { display: flex; gap: 10px; margin-top: 14px; }
.mobile-drawer__actions .btn { flex: 1; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  padding: 90px 24px 110px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 700px 500px at 85% 10%, rgba(255, 128, 8, 0.16), transparent 60%),
    radial-gradient(ellipse 600px 400px at 10% 90%, rgba(255, 199, 41, 0.20), transparent 60%);
}

.hero__grid-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 128, 8, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 128, 8, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
  -webkit-mask-image: linear-gradient(to bottom, black, transparent 85%);
  pointer-events: none;
}

.hero__content {
  position: relative;
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: start;
}

.hero__copy { padding-top: 12px; }

.hero__headline {
  font-size: clamp(2.4rem, 4.6vw, 3.6rem);
  line-height: 1.08;
  margin-bottom: 22px;
}
.hero__headline-accent {
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__sub {
  font-size: 1.08rem;
  max-width: 52ch;
  margin-bottom: 36px;
}

.hero__stats {
  display: flex;
  gap: 36px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-primary);
}
.stat__label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.hero__cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* --- Signup panel --- */
.hero__panel { position: relative; }
.signup-card { padding: 32px; }
.signup-card__title { font-size: 1.4rem; margin-bottom: 6px; }
.signup-card__sub { font-size: 0.88rem; margin-bottom: 24px; }

/* Generic replaceable form wrap styling — kept intentionally simple
   so a dropped-in PHP form inherits sane spacing without needing
   our specific class names. */
.form-wrap { position: relative; }
.form-row { margin-bottom: 16px; display: flex; flex-direction: column; gap: 6px; }
.form-row label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  font-weight: 600;
}
.form-row input,
.form-row select {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.94rem;
  color: var(--text-primary);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-row input::placeholder { color: var(--text-muted); }
.form-row input:focus,
.form-row select:focus {
  outline: none;
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(255, 128, 8, 0.18);
}
.form-row select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238f7a5c' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}
.form-row.has-error input,
.form-row.has-error select { border-color: #d93025; }
.field-error {
  font-size: 0.74rem;
  color: #d93025;
  min-height: 14px;
  display: block;
}
.form-fineprint {
  font-size: 0.74rem;
  color: var(--text-muted);
  text-align: center;
  margin-top: 14px;
}
.form-fineprint a { color: var(--accent-text); text-decoration: underline; }

.form-success {
  text-align: center;
  padding: 20px 6px 6px;
  color: var(--accent-3-text);
}
.form-success h3 { color: var(--text-primary); margin: 12px 0 6px; font-size: 1.2rem; }
.form-success p { font-size: 0.88rem; }

/* =========================================================
   TRUST STRIP
   ========================================================= */
.trust-strip {
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  background: var(--bg-secondary);
  padding: 20px 24px;
  overflow: hidden;
}
.trust-strip__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}
.trust-strip .dot {
  width: 3px; height: 3px;
  border-radius: 50%;
  background: var(--accent-1);
  display: inline-block;
}

/* =========================================================
   SHARED SECTION HEAD
   ========================================================= */
.section-head {
  max-width: 680px;
  margin: 0 auto 52px;
  padding: 0 24px;
  text-align: center;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); line-height: 1.18; margin-bottom: 14px; }
.section-sub { font-size: 1rem; }
.section-head--light h2 { color: var(--text-primary); }

section { padding: 96px 0; }

/* =========================================================
   FEATURES GRID
   ========================================================= */
.features { background: var(--bg-primary); }
.features__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 128, 8, 0.45);
  box-shadow: var(--shadow-soft);
}
.feature-card__icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: rgba(255, 199, 41, 0.22);
  color: var(--accent-text);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-card__icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 1.08rem; margin-bottom: 8px; color: var(--text-primary); }
.feature-card p { font-size: 0.9rem; }

/* =========================================================
   HOW IT WORKS — vertical stepped signal timeline
   ========================================================= */
.how {
  background: var(--bg-secondary);
  position: relative;
}
.how__timeline {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
}
.how__timeline::before {
  content: '';
  position: absolute;
  left: 43px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-1), var(--accent-2));
  opacity: 0.55;
}
.how__step {
  position: relative;
  padding-left: 88px;
  padding-bottom: 48px;
}
.how__step:last-child { padding-bottom: 0; }
.how__marker {
  position: absolute;
  left: 0;
  top: 0;
  width: 56px; height: 56px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--accent-1);
  box-shadow: var(--shadow-soft);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--accent-text);
  font-size: 1rem;
}
.how__step h3 { font-size: 1.15rem; margin-bottom: 8px; color: var(--text-primary); }
.how__step p { font-size: 0.94rem; max-width: 52ch; }

/* =========================================================
   TESTIMONIALS CAROUSEL
   ========================================================= */
.testimonials {
  background: var(--bg-primary);
  background-image: radial-gradient(ellipse 800px 400px at 50% 0%, rgba(255, 199, 41, 0.18), transparent 65%);
}
.carousel {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}
.carousel__track {
  display: flex;
  transition: transform 450ms cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel__slide {
  flex: 0 0 100%;
  padding: 4px;
}
.testimonial-card { padding: 36px; }
.testimonial-card__quote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  line-height: 1.5;
  color: var(--text-primary);
  margin-bottom: 24px;
}
.testimonial-card__person { display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: var(--gradient-neon);
  color: var(--bg-dark);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: 0.82rem;
}
.testimonial-card__person .name { font-weight: 600; font-size: 0.92rem; color: var(--text-primary); }
.testimonial-card__person .role { font-size: 0.8rem; color: var(--text-muted); }

.carousel__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 28px;
}
.carousel__btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--glass-border);
  background: var(--glass-bg);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}
.carousel__btn:hover { border-color: var(--accent-1); color: var(--accent-1); }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255, 128, 8, 0.28);
  transition: background var(--transition), transform var(--transition);
}
.carousel__dot.is-active { background: var(--accent-1); transform: scale(1.25); }

/* =========================================================
   FAQ ACCORDION
   ========================================================= */
.faq { background: var(--bg-secondary); }
.accordion {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}
.accordion__item {
  border-bottom: 1px solid var(--glass-border);
}
.accordion__trigger {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 4px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-primary);
  text-align: left;
}
.accordion__icon { transition: transform var(--transition); color: var(--accent-1); flex-shrink: 0; }
.accordion__trigger[aria-expanded="true"] .accordion__icon { transform: rotate(180deg); }
.accordion__panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition), padding var(--transition);
}
.accordion__panel p { padding-bottom: 20px; font-size: 0.93rem; max-width: 62ch; }

/* =========================================================
   LEGAL
   ========================================================= */
.legal { background: var(--bg-primary); }
.legal__grid {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.legal-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  padding: 26px;
}
.legal-card h3 { font-size: 1.02rem; margin-bottom: 10px; color: var(--accent-text); }
.legal-card p { font-size: 0.84rem; }

/* =========================================================
   FOOTER  (dark brown band — text colors set explicitly)
   ========================================================= */
.footer {
  background: var(--bg-dark);
  border-top: 3px solid var(--accent-1);
  padding: 64px 24px 28px;
  color: #e6d6b8;
}
.footer__top {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 199, 41, 0.18);
}
.footer .logo { color: #fff3dc; }
.footer__brand p { font-size: 0.86rem; margin-top: 12px; max-width: 32ch; color: #c9b896; }
.logo--footer { margin-bottom: 4px; }
.footer__col { display: flex; flex-direction: column; gap: 12px; }
.footer__col h4 { font-size: 0.86rem; color: #fff3dc; margin-bottom: 4px; }
.footer__col a { font-size: 0.86rem; color: #c9b896; transition: color var(--transition); }
.footer__col a:hover { color: var(--accent-2); }
.footer__note { font-size: 0.78rem; color: #a99772; }

.footer__bottom {
  max-width: var(--max-w);
  margin: 0 auto;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.78rem;
  color: #a99772;
}

/* =========================================================
   EXIT-INTENT POPUP
   ========================================================= */
.popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(42, 26, 8, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
}
.popup-overlay.is-visible { opacity: 1; visibility: visible; }

.popup {
  position: relative;
  width: 100%;
  max-width: 440px;
  padding: 40px 32px 32px;
  text-align: center;
  background: var(--bg-primary);
  transform: translateY(16px) scale(0.98);
  transition: transform var(--transition);
  max-height: 90vh;
  overflow-y: auto;
}
.popup-overlay.is-visible .popup { transform: translateY(0) scale(1); }
.popup .eyebrow { justify-content: center; }
.popup h3 { font-size: 1.3rem; margin-bottom: 10px; }
.popup__sub { font-size: 0.88rem; margin-bottom: 22px; }
.popup__close {
  position: absolute;
  top: 16px; right: 16px;
  color: var(--text-muted);
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  transition: background var(--transition), color var(--transition);
}
.popup__close:hover { background: rgba(255, 128, 8, 0.12); color: var(--text-primary); }
.popup__timer {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--accent-1);
  margin-bottom: 24px;
  letter-spacing: 0.02em;
}
.popup .form-row { text-align: left; }

/* =========================================================
   LANGUAGE SELECTOR
   ========================================================= */
.lang-select { display: flex; align-items: center; gap: 0.5rem; }
.lang-select select {
  background: var(--glass-bg);
  color: var(--text-primary);
  border: 1px solid var(--glass-border);
  padding: 0.55rem 0.75rem;
  border-radius: 12px;
  outline: none;
  font-size: 0.95rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.lang-select select:hover { border-color: var(--accent-1); }
.lang-select select:focus {
  border-color: var(--accent-1);
  box-shadow: 0 0 0 3px rgba(255, 128, 8, 0.18);
}
.lang-select option { color: var(--text-primary); background: #fff; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1024px) {
  .hero__content { grid-template-columns: 1fr; }
  .hero__panel { max-width: 480px; }
  .features__grid { grid-template-columns: repeat(2, 1fr); }
  .legal__grid { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .nav, .header__actions { display: none; }
  .hamburger { display: flex; }
}

@media (max-width: 768px) {
  .lang-select { width: 100%; }
  .lang-select select { width: 100%; }
}

@media (max-width: 640px) {
  section { padding: 64px 0; }
  .hero { padding: 48px 20px 72px; }
  .hero__stats { gap: 22px; }
  .features__grid { grid-template-columns: 1fr; padding: 0 20px; }
  .section-head { padding: 0 20px; margin-bottom: 36px; }
  .how__timeline { padding: 0 20px; }
  .how__step { padding-left: 68px; }
  .how__marker { width: 46px; height: 46px; font-size: 0.86rem; }
  .how__timeline::before { left: 33px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
  .footer__bottom { flex-direction: column; text-align: center; }
  .signup-card { padding: 24px; }
  .risk-bar { padding: 0 40px 0 12px; }
  .risk-bar p { font-size: 0.72rem; }
}