@font-face {
  font-family: "Greed Extended";
  src: url("assets/fonts/GreedExtended-Medium-TRIAL.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
}
@font-face {
  font-family: "Greed Extended";
  src: url("assets/fonts/GreedExtended-SemiBold-TRIAL.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
}

:root {
  --white: #ffffff;
  --offwhite: #f7f7f7;
  --paper: #faf7fd;
  --black: #0b0612;
  --ink: #17032d;
  --accent: #8234f5;
  --accent-2: #b46bff;
  --accent-dark: #46038f;
  --gray: #707070;
  --line: rgba(23, 3, 45, 0.1);
  --line-light: rgba(255, 255, 255, 0.14);
  --max: 1280px;
  --radius-pill: 80px;
  --radius: 28px;
  --radius-sm: 16px;
  --font-display: "Greed Extended", sans-serif;
  --font-body: "Geist", sans-serif;
  --font-mono: "Roboto Mono", monospace;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Badges / eyebrows ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: rgba(130, 52, 245, 0.09);
  border: 1px solid rgba(130, 52, 245, 0.18);
  padding: 7px 14px;
  border-radius: 100px;
  margin: 0 0 16px;
}
.eyebrow--light {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
}
.lede {
  font-size: 18px;
  line-height: 1.55;
  color: #4a4453;
  margin: 14px 0 0;
  max-width: 640px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--ink);
}
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -2px;
}
h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -1.2px;
}
h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.btn--pill { border-radius: var(--radius-pill); }
.btn--accent {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 8px 24px -8px rgba(130, 52, 245, 0.65);
}
.btn--accent:hover { transform: translateY(-2px); box-shadow: 0 14px 32px -8px rgba(130, 52, 245, 0.75); }
.btn--dark { background: var(--accent-dark); color: #fff; }
.btn--dark:hover { transform: translateY(-2px); background: #370270; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { transform: translateY(-2px); box-shadow: 0 10px 26px -10px rgba(0,0,0,0.35); }

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 110px 24px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}
.section__head { max-width: 720px; }
.section--wealth { background: var(--paper); max-width: none; }
.section--wealth > * { max-width: var(--max); margin-left: auto; margin-right: auto; width: 100%; }
.section--faq { background: var(--paper); max-width: none; }
.section--faq > * { max-width: var(--max); margin-left: auto; margin-right: auto; width: 100%; }

/* ---------- Scroll reveal ---------- */
/* Initial hidden states are applied by GSAP at runtime (script.js).
   If the animation library fails to load, elements simply stay visible. */

/* ---------- Nav ---------- */
.nav {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 20;
  background: rgba(11, 6, 18, 0.28);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.nav__inner {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 24px;
}
.nav__logo img { filter: brightness(0) invert(1); }
.nav__links { display: flex; gap: 28px; }
.nav__links a { color: #fff; font-size: 15px; opacity: 0.85; transition: opacity 0.2s; }
.nav__links a:hover { opacity: 1; }
.nav .btn--accent { padding: 11px 20px; font-size: 14px; box-shadow: none; }
.nav .btn--accent:hover { transform: none; box-shadow: 0 8px 20px -8px rgba(130, 52, 245, 0.7); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 920px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--black);
}
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 78%; }
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,6,18,0.05) 0%, rgba(11,6,18,0.08) 40%, rgba(11,6,18,0.2) 60%, rgba(11,6,18,0.85) 78%, rgba(11,6,18,0.97) 95%);
}
.hero__content {
  position: relative;
  z-index: 1;
  max-width: var(--max);
  margin: 0 auto;
  width: 100%;
  padding: 24px 24px 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 26px;
}
.hero__content h1 { color: #fff; }
.hero__line { display: block; }

/* ---------- Wealth / feature accordion ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.feature-list { display: flex; flex-direction: column; }
.feature-item {
  text-align: left;
  padding: 24px 4px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 0.2s;
}
.feature-item:last-child { border-bottom: 1px solid var(--line); }
.feature-item:hover { background: rgba(130, 52, 245, 0.04); }
.feature-item__head {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 19px;
  font-weight: 500;
}
.feature-icon__wrap {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(130, 52, 245, 0.1);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.feature-item.is-open .feature-icon__wrap { background: var(--accent); }
.feature-item.is-open .feature-icon__wrap .feature-icon { color: #fff; }
.feature-icon { width: 20px; height: 20px; color: var(--accent-dark); transition: color 0.2s; }
.feature-item__body {
  display: none;
  padding-left: 54px;
  color: #57505f;
  font-size: 15px;
  line-height: 1.6;
}
.feature-item.is-open .feature-item__body { display: block; }

.feature-image { border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 60px -30px rgba(23,3,45,0.35); }
.feature-image img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Wallet (dark, dramatic) ---------- */
.section--wallet {
  background: var(--black);
  color: #fff;
  max-width: none;
  padding: 110px 0;
}
.section--wallet > * { max-width: var(--max); margin-left: auto; margin-right: auto; width: 100%; padding-left: 24px; padding-right: 24px; }
.wallet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.wallet-copy h2 { color: #fff; }
.wallet-copy .lede { color: rgba(255,255,255,0.68); }
.wallet-media { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 30px 70px -30px rgba(0,0,0,0.6); }
.wallet-media img { width: 100%; height: 500px; object-fit: cover; }
.wallet-pills {
  position: absolute;
  bottom: 20px; left: 20px;
  display: flex;
  gap: 8px;
}
.wallet-pills span {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: -0.2px;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 7px 13px;
  border-radius: 20px;
}

.chat-mock {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  padding: 48px;
  margin-top: 48px;
}
.chat-mock__phone { position: relative; border-radius: var(--radius-sm); overflow: hidden; box-shadow: 0 24px 50px -20px rgba(0,0,0,0.6); }
.chat-mock__phone img { width: 100%; height: 520px; object-fit: cover; }
.chat-mock__bubbles {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px;
}
.chat-mock__copy h2 { color: #fff; }
.chat-mock__copy .lede { color: rgba(255,255,255,0.68); }
.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 14px;
  line-height: 1.4;
  box-shadow: 0 8px 20px -12px rgba(0,0,0,0.5);
}
.bubble p { margin: 0; }
.bubble__name { font-weight: 600; font-size: 12px; margin-bottom: 2px !important; }
.bubble__time { display: block; font-size: 10px; color: var(--gray); margin-top: 4px; }
.bubble--in { align-self: flex-start; background: #fff; color: #111; border-bottom-left-radius: 4px; }
.bubble--out { align-self: flex-end; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; border-bottom-right-radius: 4px; }
.bubble--out .bubble__time { color: rgba(255,255,255,0.75); }

/* ---------- Problems carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
}
.carousel__track::-webkit-scrollbar { display: none; }
.problem-card {
  scroll-snap-align: start;
  flex: 0 0 340px;
  min-height: 340px;
  border-radius: var(--radius);
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 12px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.problem-card:hover { transform: translateY(-6px); box-shadow: 0 24px 50px -24px rgba(23,3,45,0.3); }
.problem-card h3 { position: relative; z-index: 1; }
.problem-card p { position: relative; z-index: 1; margin: 0; line-height: 1.55; color: #57505f; }
.problem-card--dark { background: var(--black); color: #fff; border-color: rgba(255,255,255,0.08); }
.problem-card--dark h3 { color: #fff; }
.problem-card--dark p { color: rgba(255,255,255,0.72); }
.problem-card__bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0.5;
}
.problem-card--dark::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,6,18,0.2) 0%, rgba(11,6,18,0.95) 80%);
}
.carousel__controls { display: flex; align-items: center; justify-content: space-between; margin-top: 28px; }
.carousel__dots { display: flex; gap: 8px; }
.carousel__dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.2s, width 0.25s;
}
.carousel__dots button.is-active { background: var(--accent); width: 22px; border-radius: 4px; }
.carousel__arrows { display: flex; gap: 12px; }
.carousel__arrows button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
}
.carousel__arrows button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  position: relative;
  text-align: left;
  padding: 22px 40px 22px 0;
  border-top: 1px solid var(--line);
  font-size: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: background 0.2s;
}
.faq-item:hover { background: rgba(130, 52, 245, 0.04); }
.faq-item:last-child { border-bottom: 1px solid var(--line); }
.faq-icon {
  position: absolute; right: 4px; top: 22px;
  width: 22px; height: 22px;
  color: var(--accent-dark);
  transition: transform 0.3s var(--ease);
}
.faq-item.is-open .faq-icon { transform: rotate(45deg); }
.faq-item__body {
  display: none;
  font-size: 15px;
  font-weight: 400;
  color: #57505f;
  line-height: 1.6;
  max-width: 640px;
}
.faq-item.is-open .faq-item__body { display: block; }

/* ---------- Waitlist (bold closing CTA) ---------- */
.section--waitlist {
  max-width: none;
  padding: 0 24px 140px;
}
.section--waitlist > * { max-width: 720px; margin-left: auto; margin-right: auto; }
.section--waitlist .section__head {
  max-width: 720px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section--waitlist .lede { max-width: 480px; }
.waitlist-form {
  max-width: 720px;
  background: linear-gradient(150deg, var(--accent-dark), var(--ink) 75%);
  border-radius: var(--radius);
  padding: 56px;
  box-shadow: 0 40px 80px -30px rgba(70, 3, 143, 0.45);
}
.waitlist-form label { font-size: 13px; color: rgba(255,255,255,0.7); display: block; margin-bottom: 10px; }
.waitlist-form__row { display: flex; gap: 12px; }
.waitlist-form input {
  flex: 1;
  padding: 15px 20px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-family: var(--font-body);
  font-size: 15px;
}
.waitlist-form input::placeholder { color: rgba(255,255,255,0.45); }
.waitlist-form input:focus { outline: 2px solid var(--accent-2); background: rgba(255,255,255,0.12); }
.waitlist-form input.is-invalid { outline: 2px solid #ff6b6b; }
.waitlist-form__note { font-size: 14px; margin-top: 14px; color: #d8b8ff; min-height: 20px; }
.waitlist-form__note--error { color: #ff9b9b; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #fff; }
.footer__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 64px 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}
.footer__brand { max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.footer__brand p { margin: 0; color: rgba(255,255,255,0.7); font-size: 14px; }
.footer__brand a { color: var(--accent-2); font-size: 14px; }
.footer__links { display: flex; flex-direction: column; gap: 12px; }
.footer__links a { color: rgba(255,255,255,0.85); font-size: 14px; transition: color 0.2s; }
.footer__links a:hover { color: var(--accent-2); }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .section, .section--wealth > *, .section--faq > *, .section--wallet > * { padding-top: 0; padding-bottom: 0; }
  .section { padding: 72px 24px; gap: 36px; }
  .section--wealth, .section--faq { padding-top: 72px; padding-bottom: 72px; }
  .section--wallet { padding: 72px 0; }
  .nav__links { display: none; }
  .feature-grid, .wallet-grid, .chat-mock { grid-template-columns: 1fr; }
  .feature-image { order: -1; height: 260px; }
  .chat-mock { padding: 24px; }
  .waitlist-form { padding: 32px; }
  .waitlist-form__row { flex-direction: column; }
}
