/* ============================================
   ENSEMBLE THEME - Gold & Navy
============================================ */
:root {
  --bg: #0A1628;
  --surface: #0E1D33;
  --text: #F5F3EF;
  --muted: #A8B4C9;
  --primary: #C9A227;
  --primary-2: #E8C547;
  --stroke: rgba(201,162,39,0.15);
  --shadow: 0 18px 50px rgba(0,0,0,0.50);
  --radius: 18px;
  --maxw: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(1100px 500px at 20% -10%, rgba(201,162,39,0.12), transparent 55%),
    radial-gradient(900px 420px at 90% 0%, rgba(232,197,71,0.08), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg));
  line-height: 1.45;
}

a { color: inherit; text-decoration: none; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(10px);
  background: linear-gradient(180deg, rgba(10,22,40,0.85), rgba(10,22,40,0.40));
  border-bottom: 1px solid var(--stroke);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.nav-container {
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--text) !important;
}

.brand img { width: 38px; height: 38px; border-radius: 10px; display: block; }

.nav-links {
  display: flex;
  gap: 18px;
  align-items: center;
  font-weight: 600;
  font-size: 14px;
}

.nav-links a { color: var(--muted) !important; }
.nav-links a:hover { color: var(--primary-2) !important; text-decoration: none !important; }

/* Hamburger toggle (hidden on desktop) */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-direction: column;
  gap: 5px;
  z-index: 2;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}

.nav-toggle.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Nav menu wrapper (inline on desktop) */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px !important;
  border: 1px solid var(--stroke);
  background: rgba(201,162,39,0.06);
  color: var(--text);
  box-shadow: none;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  border-color: rgba(201,162,39,0.35);
  background: rgba(201,162,39,0.12);
  text-decoration: none;
}

.btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0A1628 !important;
  box-shadow: 0 14px 40px rgba(201,162,39,0.20);
}

.btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.05);
}

/* Hero */
.hero {
  position: relative;
  padding: 100px 0 60px;
  background-size: cover;
  background-position: center;
  text-align: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(10,22,40,0.78);
  backdrop-filter: blur(2px);
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(201,162,39,0.06);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 16px;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 0 0 4px rgba(201,162,39,0.15);
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(36px, 4.5vw, 54px);
  line-height: 1.08;
  letter-spacing: -0.6px;
}

h1 span { color: var(--primary-2); }

.sub {
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 18px;
  max-width: 52ch;
  line-height: 1.55;
}

.cta-row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center; }

.fineprint {
  margin-top: 18px;
  font-size: 14px;
  color: var(--muted);
}

/* Sections */
.section { padding: 50px 0; }

.section h2 {
  margin: 0 0 12px;
  font-size: 28px;
  letter-spacing: -0.3px;
}

.section p.lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 70ch;
  font-size: 16px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(201,162,39,0.03);
  padding: 20px;
  box-shadow: none;
  min-height: 150px;
}

.card h3 { margin: 0 0 8px; font-size: 17px; color: var(--primary-2); }
.card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  color: var(--primary);
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
}

/* How it works */
.how {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: stretch;
}

.steps {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(201,162,39,0.03);
  padding: 22px;
}

.step {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-top: 1px solid var(--stroke);
}

.step:first-child { border-top: 0; padding-top: 0; }

.num {
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 14px;
  color: #0A1628;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.step b { display: block; margin-bottom: 4px; }
.step span { color: var(--muted); font-size: 14px; display: block; line-height: 1.45; }

/* Features card */
.features-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(201,162,39,0.03);
  padding: 22px;
}

.features-card h3 { margin: 0 0 16px; font-size: 17px; color: var(--primary-2); }

.feature-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.feature-item .check {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(201,162,39,0.15);
  display: grid;
  place-items: center;
  color: var(--primary-2);
  font-size: 12px;
}

/* CTA band */
.cta {
  border-radius: 22px;
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(201,162,39,0.12), rgba(232,197,71,0.06));
  padding: 26px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.cta h3 { margin: 0 0 6px; font-size: 20px; }
.cta p { margin: 0; color: var(--muted); font-size: 15px; }

/* Philosophy section */
.philosophy {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.philosophy-item {
  text-align: center;
  padding: 24px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(201,162,39,0.03);
}

.philosophy-item .icon {
  font-size: 28px;
  margin-bottom: 12px;
}

.philosophy-item h4 {
  margin: 0 0 6px;
  font-size: 15px;
  color: var(--primary-2);
}

.philosophy-item p {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}

/* Footer */
footer {
  padding: 32px 0 44px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--stroke);
  margin-top: 28px;
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.foot a:hover { color: var(--primary-2); }

.foot-simple {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.foot-simple a { color: var(--muted) !important; }
.foot-simple a:hover { color: var(--primary-2) !important; text-decoration: none !important; }
.foot-divider { color: var(--muted); opacity: 0.55; }
.foot-tagline { color: var(--muted); text-align: center; margin-top: 12px; }

/* ============================================
   CONTENT PAGES (Support, Privacy)
============================================ */
.content-page {
  --maxw: 800px;
  line-height: 1.6;
}

.content-page a { color: var(--primary-2); }
.content-page a:hover { text-decoration: underline; }

.content-page .wrap { max-width: var(--maxw); }

.content {
  padding: 48px 0 80px;
}

.content h1 {
  margin: 0 0 8px;
  font-size: 36px;
  letter-spacing: -0.5px;
}

.subtitle,
.effective {
  color: var(--muted);
  margin-bottom: 40px;
}

.subtitle { font-size: 18px; }
.effective { font-size: 14px; }

.content h2 {
  margin: 40px 0 16px;
  font-size: 22px;
  color: var(--primary-2);
  letter-spacing: -0.2px;
}

.content h3 {
  margin: 28px 0 12px;
  font-size: 17px;
  color: var(--text);
}

.content p {
  margin: 0 0 16px;
  color: var(--muted);
}

.content ul {
  margin: 0 0 16px;
  padding-left: 24px;
  color: var(--muted);
}

.content li { margin-bottom: 8px; }
.content strong { color: var(--text); }

/* Support cards */
.support-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-top: 32px;
}

.support-card {
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: rgba(201,162,39,0.03);
  padding: 24px;
}

.support-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--primary-2);
}

.support-card p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
}

.support-card a.card-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.support-card a.card-link:hover { color: var(--primary-2); }

/* Contact box */
.contact-box {
  margin-top: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: linear-gradient(135deg, rgba(201,162,39,0.08), rgba(232,197,71,0.04));
  padding: 32px;
  text-align: center;
}

.contact-box h2 {
  margin: 0 0 12px;
  color: var(--text);
}

.contact-box p {
  margin: 0 0 20px;
  color: var(--muted);
}

.contact-box .btn {
  font-size: 16px;
  padding: 14px 28px;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--stroke);
  padding: 20px 0;
}

.faq-item:first-child { border-top: 1px solid var(--stroke); }

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.faq-item p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* ============================================
   RESPONSIVE
============================================ */
@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    padding: 16px 20px 20px;
    background: linear-gradient(180deg, rgba(10,22,40,0.95), rgba(10,22,40,0.98));
    border-bottom: 1px solid var(--stroke);
    backdrop-filter: blur(10px);
  }

  .nav-menu.open {
    display: flex;
  }

  .nav-inner {
    position: relative;
  }

  .nav-links {
    flex-direction: column;
    gap: 0;
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 12px 0;
    font-size: 16px;
    border-bottom: 1px solid var(--stroke);
  }

  .nav-links a:last-child {
    border-bottom: none;
  }

  .nav-menu > .btn {
    width: 100%;
    margin-top: 8px;
    text-align: center;
  }
}

@media (max-width: 960px) {
  .cards { grid-template-columns: 1fr; }
  .how { grid-template-columns: 1fr; }
  .philosophy { grid-template-columns: 1fr; }
  .feature-list { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .cta { flex-direction: column; text-align: center; }
  .cta .btn { width: 100%; }
  .content h1 { font-size: 28px; }
  .content h2 { font-size: 20px; }
  .support-cards { grid-template-columns: 1fr; }
  .foot-simple { flex-direction: column; gap: 8px; }
  .foot-divider { display: none; }
}

/* ============================================
   FLOATING EMAIL SIGNUP
============================================ */
.floating-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #0A1628;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: 0 8px 32px rgba(201,162,39,0.35);
  transition: transform .15s ease, box-shadow .15s ease;
}

.floating-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(201,162,39,0.45);
}

.floating-btn svg {
  flex-shrink: 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(10,22,40,0.85);
  backdrop-filter: blur(8px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .2s ease, visibility .2s ease;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 420px;
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--stroke);
  background: var(--surface);
  box-shadow: var(--shadow);
  transform: translateY(20px);
  transition: transform .25s ease;
}

.modal-overlay.active .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 24px;
  cursor: pointer;
  transition: background .12s ease, color .12s ease;
}

.modal-close:hover {
  background: rgba(201,162,39,0.1);
  color: var(--text);
}

.modal h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: var(--text);
}

.modal-subtitle {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

/* Subscribe form */
.subscribe-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.form-row {
  display: flex;
  gap: 12px;
}

.form-input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 12px;
  background: rgba(201,162,39,0.03);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: border-color .12s ease, background .12s ease;
}

.form-input::placeholder {
  color: var(--muted);
}

.form-input:focus {
  border-color: rgba(201,162,39,0.4);
  background: rgba(201,162,39,0.06);
}

.form-submit {
  width: 100%;
  margin-top: 4px;
}

.form-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* Form messages */
.form-message {
  text-align: center;
  padding: 20px 0;
}

.form-message .message-icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
}

.form-message.success .message-icon {
  background: rgba(76,175,80,0.15);
  color: #4CAF50;
}

.form-message.error .message-icon {
  background: rgba(244,67,54,0.15);
  color: #F44336;
}

.form-message h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: var(--text);
}

.form-message p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.modal-fine {
  margin: 16px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

/* Responsive */
@media (max-width: 480px) {
  .floating-btn span {
    display: none;
  }

  .floating-btn {
    padding: 14px;
  }

  .form-row {
    flex-direction: column;
  }

  .modal {
    padding: 24px;
  }
}
