/* ----------------------------------------------------------------------------
   Infibull — design system inspired by toritradez.com
   Dark violet hero with glow + cream content sections + serif headlines
---------------------------------------------------------------------------- */

:root {
  /* dark */
  --bg-dark:        #0b0410;
  --bg-dark-2:      #150620;
  --ink-light:      #f6efff;
  --ink-light-2:    #c9b8d8;
  --ink-dim:        #8d7ba0;

  /* cream */
  --bg-cream:       #f4f1ec;
  --bg-cream-2:     #ebe6dd;
  --ink:            #0b0410;
  --ink-2:          #2a1f33;
  --muted:          #6b6072;

  /* accent (violet/magenta — Tori-style) */
  --accent:         #b86bff;
  --accent-2:       #d199ff;
  --accent-ink:     #6a1ba8;
  --accent-glow:    rgba(184, 107, 255, 0.45);

  --line-dark:      rgba(255,255,255,0.08);
  --line-cream:     #ddd4c7;

  --radius:         16px;
  --radius-lg:      24px;
  --maxw:           1180px;

  --serif:          "Fraunces", ui-serif, Georgia, "Times New Roman", serif;
  --sans:           "Inter", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg-cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.italic { font-style: italic; }
.accent-text { color: var(--accent); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ----------------------------------------------------------------------------
   NAV
---------------------------------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 4, 16, 0.7);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line-dark);
}
.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--ink-light); font-weight: 600;
}
.brand-mark { display: inline-flex; }
.brand-word { font-family: var(--serif); font-size: 22px; letter-spacing: -0.01em; }
.nav-links {
  display: flex; align-items: center; gap: 26px;
}
.nav-links a {
  color: var(--ink-light-2); text-decoration: none; font-size: 14px; font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--ink-light); }
.nav-cta {
  background: var(--accent);
  color: #0b0410 !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: transform .1s, box-shadow .2s;
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px var(--accent-glow);
}

/* ----------------------------------------------------------------------------
   HERO
---------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: radial-gradient(ellipse at 50% -10%, #2a0c45 0%, var(--bg-dark) 55%, var(--bg-dark) 100%);
  color: var(--ink-light);
  padding: 96px 0 140px;
  overflow: hidden;
  isolation: isolate;
}
.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: -1;
}
.glow-1 {
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(184,107,255,0.45), transparent 60%);
  top: -200px; left: -150px;
}
.glow-2 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(247,0,255,0.25), transparent 60%);
  top: 100px; right: -200px;
}
.glow-3 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(184,107,255,0.30), transparent 65%);
  top: -300px; right: -250px;
}
.glow-4 {
  width: 800px; height: 800px;
  background: radial-gradient(circle, rgba(184,107,255,0.35), transparent 60%);
  bottom: -400px; left: 50%;
  transform: translateX(-50%);
}

.hero-inner { position: relative; z-index: 1; text-align: center; }

.chip {
  display: inline-block;
  padding: 8px 16px;
  border: 1px solid rgba(184,107,255,0.35);
  background: rgba(184,107,255,0.10);
  color: var(--accent-2);
  border-radius: 999px;
  font-size: 13px; font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 28px;
}
.chip-dark { color: var(--accent-2); }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(40px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 0 0 28px;
  color: var(--ink-light);
}
.display-sm {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 18px;
}

.hero-sub {
  font-size: clamp(17px, 1.4vw, 19px);
  color: var(--ink-light-2);
  max-width: 720px;
  margin: 0 auto 36px;
  line-height: 1.65;
}
.hero-sub.center { margin-left: auto; margin-right: auto; }

.cta-row {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 40px;
}
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 28px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  text-decoration: none;
  transition: transform .1s, background .2s, box-shadow .2s;
  cursor: pointer;
  border: 0;
  font-family: inherit;
}
.btn-primary {
  background: var(--accent);
  color: #0b0410;
  box-shadow: 0 10px 40px -10px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 50px -10px var(--accent-glow);
  background: var(--accent-2);
}
.btn-ghost {
  background: rgba(255,255,255,0.06);
  color: var(--ink-light);
  border: 1px solid var(--line-dark);
}
.btn-ghost:hover { background: rgba(255,255,255,0.10); }

.trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; gap: 22px; justify-content: center;
  color: var(--ink-dim);
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.trust li { display: inline-flex; gap: 8px; align-items: center; }
.trust span { color: var(--accent); }

.hero-chart {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 280px;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
  mask-image: linear-gradient(to top, #000 30%, transparent 100%);
  -webkit-mask-image: linear-gradient(to top, #000 30%, transparent 100%);
}
.hero-chart svg { width: 100%; height: 100%; display: block; }

/* ----------------------------------------------------------------------------
   STRIP (testimonial-ish band)
---------------------------------------------------------------------------- */
.strip {
  background: var(--bg-dark);
  color: var(--ink-light-2);
  padding: 28px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.strip-inner p {
  margin: 0; text-align: center; font-size: 15px;
  max-width: 900px; margin-left: auto; margin-right: auto;
}

/* ----------------------------------------------------------------------------
   SECTIONS
---------------------------------------------------------------------------- */
.section { padding: 110px 0; position: relative; overflow: hidden; }
.section-cream { background: var(--bg-cream); }
.section-cream.alt { background: var(--bg-cream-2); }
.section-dark  { background: var(--bg-dark); color: var(--ink-light); }

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}
.section-head .kicker { margin: 0 0 14px; }

.kicker {
  display: inline-block;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-ink);
  font-weight: 600;
  margin: 0 0 16px;
}
.section-dark .kicker { color: var(--accent-2); }

.serif-h {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.5vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  color: var(--ink);
}
.serif-h.light { color: var(--ink-light); }

.lead {
  font-size: clamp(16px, 1.4vw, 18px);
  color: var(--ink-2);
  max-width: 640px;
  line-height: 1.65;
}
.section-dark .lead { color: var(--ink-light-2); }
.lead.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ----------------------------------------------------------------------------
   PLAYBOOK SECTION
---------------------------------------------------------------------------- */
.two-col-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.col-text .lead { margin-bottom: 28px; }

.check-list {
  list-style: none; padding: 0; margin: 0 0 32px;
}
.check-list li {
  position: relative;
  padding: 12px 0 12px 36px;
  border-bottom: 1px solid var(--line-cream);
  color: var(--ink-2);
}
.check-list li:last-child { border-bottom: 0; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 16px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--accent);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b0410' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'><polyline points='5 12 10 17 19 7'/></svg>");
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Playbook visual card */
.col-visual { display: flex; justify-content: center; }
.playbook-card {
  width: 100%;
  max-width: 380px;
  aspect-ratio: 3 / 4;
  background: linear-gradient(160deg, #1a0a26 0%, #0b0410 100%);
  border-radius: var(--radius-lg);
  padding: 28px;
  color: var(--ink-light);
  position: relative;
  overflow: hidden;
  box-shadow:
    0 30px 80px -20px rgba(11, 4, 16, 0.35),
    0 0 0 1px rgba(184,107,255,0.18) inset;
  transform: rotate(-2deg);
  transition: transform .3s ease;
}
.playbook-card:hover { transform: rotate(0deg) translateY(-4px); }
.playbook-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(circle at 80% 0%, rgba(184,107,255,0.4), transparent 50%);
  pointer-events: none;
}
.pb-header {
  display: flex; justify-content: space-between; align-items: center;
  position: relative; z-index: 1;
  font-size: 12px; color: var(--ink-light-2);
}
.pb-pill {
  background: var(--accent); color: #0b0410;
  padding: 4px 10px; border-radius: 999px; font-weight: 600;
}
.pb-title { margin-top: 60px; position: relative; z-index: 1; }
.pb-eyebrow {
  font-size: 11px; letter-spacing: 0.3em; color: var(--accent-2); margin: 0 0 14px;
}
.pb-title h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 38px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0;
}
.pb-title em { font-style: italic; color: var(--accent-2); }
.pb-chart {
  position: absolute;
  left: 0; right: 0; bottom: 60px;
  height: 110px;
}
.pb-chart svg { width: 100%; height: 100%; }
.pb-footer {
  position: absolute; bottom: 24px; left: 28px; right: 28px;
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--ink-dim);
  z-index: 1;
}

/* ----------------------------------------------------------------------------
   SIGNUP FORM
---------------------------------------------------------------------------- */
.signup {
  display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 540px;
}
.signup input[type="email"] {
  flex: 1 1 240px;
  min-width: 0;
  padding: 15px 18px;
  font: inherit;
  border: 1px solid var(--line-cream);
  background: #fff;
  border-radius: 12px;
  color: var(--ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.signup input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184,107,255,0.18);
}
.signup button {
  padding: 15px 24px;
  font: inherit; font-weight: 600;
  background: var(--ink);
  color: var(--ink-light);
  border: 0; border-radius: 12px;
  cursor: pointer;
  transition: transform .05s, background .15s;
}
.signup button:hover { background: #1a0a26; }
.signup button:active { transform: translateY(1px); }
.signup-note { width: 100%; margin: 6px 0 0; color: var(--muted); font-size: 13px; }
.signup-status { width: 100%; margin: 8px 0 0; font-size: 14px; min-height: 1.2em; }
.signup-status.ok { color: var(--accent-ink); }
.signup-status.err { color: #b54141; }

.signup-center { margin: 0 auto; justify-content: center; }
.section-dark .signup input[type="email"] {
  background: rgba(255,255,255,0.06);
  border-color: var(--line-dark);
  color: var(--ink-light);
}
.section-dark .signup input[type="email"]::placeholder { color: var(--ink-dim); }
.section-dark .signup input[type="email"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(184,107,255,0.22);
}
.section-dark .signup button {
  background: var(--accent); color: #0b0410;
  box-shadow: 0 10px 40px -10px var(--accent-glow);
}
.section-dark .signup button:hover { background: var(--accent-2); }
.section-dark .signup-status.ok { color: var(--accent-2); }

/* ----------------------------------------------------------------------------
   STORY
---------------------------------------------------------------------------- */
.story-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.story-photo { display: flex; flex-direction: column; gap: 20px; }
.photo-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line-dark);
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.6);
  aspect-ratio: 4 / 5;
}
.photo-frame svg { width: 100%; height: 100%; }
.badge-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
}
.badge {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  padding: 14px 12px;
  text-align: center;
}
.badge strong {
  display: block;
  font-family: var(--serif);
  font-size: 24px;
  color: var(--accent-2);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.badge span {
  display: block; font-size: 11px; color: var(--ink-dim);
  letter-spacing: 0.06em; text-transform: uppercase;
  margin-top: 4px;
}

.story-text { color: var(--ink-light-2); }
.story-text p { margin: 0 0 18px; }
.story-text .dim { color: var(--ink-dim); border-left: 3px solid var(--accent); padding-left: 18px; margin-top: 24px; font-style: italic; }

/* ----------------------------------------------------------------------------
   FEATURE GRID
---------------------------------------------------------------------------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: #fff;
  border: 1px solid var(--line-cream);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 20px 50px -20px rgba(184,107,255,0.35);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(184,107,255,0.12);
  color: var(--accent-ink);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.feature p { color: var(--ink-2); margin: 0; font-size: 15px; line-height: 1.6; }

/* ----------------------------------------------------------------------------
   FAQ
---------------------------------------------------------------------------- */
.faq-wrap { max-width: 820px; margin: 0 auto; }
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: #fff;
  border: 1px solid var(--line-cream);
  border-radius: 14px;
  padding: 4px 24px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] {
  border-color: var(--accent);
  box-shadow: 0 10px 40px -20px rgba(184,107,255,0.35);
}
.faq summary {
  cursor: pointer;
  padding: 20px 0;
  font-weight: 600;
  font-size: 17px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.chev {
  width: 16px; height: 16px;
  position: relative;
  flex-shrink: 0;
  transition: transform .2s;
}
.chev::before, .chev::after {
  content: ""; position: absolute; background: var(--ink-2);
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.chev::before { width: 14px; height: 2px; }
.chev::after  { width: 2px; height: 14px; transition: transform .2s; }
.faq details[open] .chev::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-body {
  padding: 0 0 20px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.65;
  border-top: 1px solid var(--line-cream);
  padding-top: 16px;
  margin-top: -2px;
}
.faq-body p { margin: 0; }

/* ----------------------------------------------------------------------------
   FINAL CTA
---------------------------------------------------------------------------- */
.cta-section { text-align: center; padding: 120px 0 140px; }
.cta-section .signup-status { color: var(--ink-light-2); }

/* ----------------------------------------------------------------------------
   FOOTER
---------------------------------------------------------------------------- */
.footer {
  background: var(--bg-dark-2);
  color: var(--ink-light-2);
  padding: 60px 0 30px;
  border-top: 1px solid var(--line-dark);
}
.footer-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: 60px;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand p { color: var(--ink-dim); font-size: 14px; margin: 12px 0 0; max-width: 280px; }
.footer-cols {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-cols h4 {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-light); margin: 0 0 14px; font-weight: 600;
}
.footer-cols a {
  display: block; color: var(--ink-light-2); text-decoration: none;
  font-size: 14px; margin-bottom: 8px; transition: color .15s;
}
.footer-cols a:hover { color: var(--accent-2); }
.footer-fine {
  padding-top: 24px;
  color: var(--ink-dim); font-size: 12px; text-align: center;
  max-width: 760px; margin: 0 auto;
}
.footer-fine p { margin: 0; }

/* ----------------------------------------------------------------------------
   RESPONSIVE
---------------------------------------------------------------------------- */
@media (max-width: 960px) {
  .two-col-grid { grid-template-columns: 1fr; gap: 50px; }
  .story-grid { grid-template-columns: 1fr; gap: 40px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 40px; }
  .footer-cols { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
  .nav-links { gap: 14px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .section { padding: 72px 0; }
  .hero { padding: 64px 0 100px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 28px; }
  .playbook-card { transform: none; }
  .badge-row { grid-template-columns: repeat(3, 1fr); }
  .badge strong { font-size: 20px; }
  .display { font-size: clamp(34px, 9vw, 48px); }
  .cta-row { flex-direction: column; align-items: stretch; }
  .cta-row .btn { justify-content: center; }
}

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