/* ===================================================================
   LIFEINFRAMES x TRADING — static rebuild
   =================================================================== */

:root {
  --bg: #02060e;
  --bg-panel: #0a1120;
  --bg-panel-2: #0d1526;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --text: #ffffff;
  --text-muted: #9aa3b2;
  --text-faint: #6b7385;
  --accent: #8a5525;
  --accent-hover: #a6672e;
  --accent2: #49178a;
  --accent2-hover: #5c1eae;
  --green: #22c55e;
  --red: #ef4444;
  --radius-sm: 6px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --maxw: 1120px;
  --font: "Figtree", "Figtree Placeholder", -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

/* Scroll-reveal enhancement: elements are visible by default (no JS
   dependency). JS only opts specific elements into a starting state
   (.reveal-ready) and then animates them in (.reveal-in) once seen —
   so a slow/blocked script never hides real content. */
.reveal-ready {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready.reveal-in {
  opacity: 1;
  transform: translateY(0);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* background ambience */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(
      ellipse 700px 500px at 50% -5%,
      rgba(138, 85, 37, 0.22),
      transparent 60%
    ),
    radial-gradient(
      ellipse 900px 600px at 85% 15%,
      rgba(73, 23, 138, 0.16),
      transparent 60%
    );
  pointer-events: none;
}

/* ---------- Navbar ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(2, 6, 14, 0.75);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.logo {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.15s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 24px;
  cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn-accent {
  background: var(--accent);
  color: #fff;
}

.btn-accent:hover {
  background: var(--accent-hover);
}

.btn-purple {
  background: var(--accent2);
  color: #fff;
  width: 100%;
  justify-content: center;
}

.btn-purple:hover {
  background: var(--accent2-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-strong);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}

.float-cta {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 90;
}

@media (max-width: 860px) {
  .float-cta {
    display: none;
  }
}

/* ---------- Hero ---------- */
.hero {
  text-align: center;
  padding: 110px 24px 80px;
}

.eyebrow {
  display: inline-block;
  padding: 6px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  font-weight: 600;
  margin: 0 0 22px;
  letter-spacing: -0.01em;
}

.hero p.lead {
  max-width: 620px;
  margin: 0 auto 14px;
  color: var(--text-muted);
  font-size: 17px;
}

.hero .tagline {
  font-size: 15px;
  color: var(--text-muted);
  margin-bottom: 30px;
}

.hero .tagline strong {
  color: var(--text);
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  margin-bottom: 46px;
  flex-wrap: wrap;
}

.discord-note {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 14px;
}

.discord-note svg {
  width: 26px;
  height: 26px;
  opacity: 0.85;
}

/* ---------- Section shared ---------- */
section {
  padding: 90px 0;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 64px;
}

.section-head h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  font-weight: 600;
  margin: 16px 0 14px;
}

.section-head p {
  color: var(--text-muted);
  font-size: 16px;
  margin: 0;
}

.tag {
  display: inline-block;
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 5px 14px;
  border-radius: 999px;
}

/* ---------- Feature rows ---------- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  padding: 46px 0;
  border-bottom: 1px solid var(--border);
}

.feature-row:last-child {
  border-bottom: none;
}

.feature-row.reverse .mock-panel {
  order: 2;
}

.feature-row .copy .tag {
  margin-bottom: 18px;
}

.feature-row h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  font-weight: 600;
  margin: 0 0 14px;
}

.feature-row p {
  color: var(--text-muted);
  margin: 0 0 20px;
  font-size: 15.5px;
}

.pill-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  font-size: 13px;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 6px 14px;
  border-radius: 999px;
}

@media (max-width: 860px) {
  .feature-row {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .feature-row.reverse .mock-panel {
    order: 0;
  }
}

/* ---------- Mock trading panel (decorative, hand-built) ---------- */
.mock-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.mock-panel .mock-chrome {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
}

.mock-panel .mock-chrome span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}

.mock-chart {
  width: 100%;
  height: 190px;
  display: block;
}

.mock-stat {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: rgba(10, 17, 32, 0.9);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
}

.mock-stat.up {
  color: var(--green);
}

.mock-stat.down {
  color: var(--red);
}

/* ---------- Pricing ---------- */
.toggle-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-bottom: 50px;
  font-size: 15px;
  color: var(--text-muted);
}

.toggle-row .active {
  color: var(--text);
  font-weight: 600;
}

.switch {
  position: relative;
  width: 46px;
  height: 26px;
  background: var(--bg-panel-2);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  cursor: pointer;
}

.switch .knob {
  position: absolute;
  top: 2px;
  left: 3px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s ease;
}

.switch.on .knob {
  transform: translateX(19px);
}

.price-card {
  max-width: 400px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(73, 23, 138, 0.16), rgba(10, 17, 32, 0.4));
  border: 1px solid rgba(138, 90, 220, 0.35);
  border-radius: var(--radius-lg);
  padding: 34px;
  position: relative;
}

.price-card .badge {
  position: absolute;
  top: 24px;
  right: 28px;
  font-size: 12px;
  border: 1px solid var(--border-strong);
  padding: 4px 12px;
  border-radius: 999px;
  color: var(--text-muted);
}

.price-card .amount {
  font-size: 44px;
  font-weight: 700;
  margin: 6px 0 10px;
}

.price-card .amount span {
  font-size: 16px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-card .amount .was {
  font-size: 22px;
  font-weight: 500;
  color: var(--text-faint);
  text-decoration: line-through;
  margin-right: 12px;
}

.price-card .amount .was span {
  font-size: 14px;
  text-decoration: line-through;
}

.price-card .amount .free {
  color: var(--green);
  font-size: 44px;
  font-weight: 700;
}

.price-card .badge.badge-free {
  border-color: var(--green);
  color: var(--green);
}

.price-card .desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 26px;
  min-height: 40px;
}

.price-card .included {
  margin-top: 28px;
  font-size: 13px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 16px 0 0;
}

.price-card li {
  padding: 9px 0;
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.price-card li::before {
  content: "✓";
  color: var(--green);
  font-weight: 700;
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  background: var(--bg-panel);
  overflow: hidden;
}

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 20px 22px;
  font-size: 15.5px;
  font-family: var(--font);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-q .chev {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  margin-left: 14px;
}

.faq-item.open .faq-q .chev {
  transform: rotate(180deg);
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-a p {
  padding: 0 22px 20px;
  margin: 0;
  color: var(--text-muted);
  font-size: 14.5px;
}

/* ---------- About: comparison table ---------- */
.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 920px;
  margin: 0 auto;
}

.compare .col {
  border-radius: var(--radius-lg);
  padding: 30px;
  border: 1px solid var(--border);
}

.compare .col.bad {
  background: rgba(239, 68, 68, 0.05);
}

.compare .col.good {
  background: linear-gradient(180deg, rgba(138, 85, 37, 0.14), rgba(10, 17, 32, 0.3));
  border-color: rgba(138, 85, 37, 0.35);
}

.compare h4 {
  margin: 0 0 20px;
  font-size: 16px;
  letter-spacing: 0.02em;
}

.compare ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.compare li {
  padding: 10px 0;
  font-size: 14.5px;
  color: var(--text-muted);
  display: flex;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}

.compare li:last-child {
  border-bottom: none;
}

.compare .col.bad li::before {
  content: "✕";
  color: var(--red);
}

.compare .col.good li::before {
  content: "✓";
  color: var(--green);
}

@media (max-width: 720px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

/* ---------- Who we are (about) ---------- */
.about-block {
  max-width: 760px;
  margin: 0 auto 90px;
  text-align: center;
}

.about-block p {
  color: var(--text-muted);
  font-size: 16px;
}

/* ---------- Contact form ---------- */
.contact-form {
  max-width: 560px;
  margin: 0 auto;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-size: 13.5px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.field input,
.field textarea {
  width: 100%;
  background: var(--bg-panel);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  color: var(--text);
  font-family: var(--font);
  font-size: 14.5px;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

@media (max-width: 560px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--border);
  padding: 64px 0 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
}

.footer-grid h5 {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 600;
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin-bottom: 10px;
}

.footer-grid li a {
  color: var(--text-muted);
  font-size: 14.5px;
}

.footer-grid li a:hover {
  color: var(--text);
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 14px;
  max-width: 320px;
  margin: 14px 0 0;
}

.footer-bottom {
  text-align: center;
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 50px;
}

@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Mobile nav ---------- */
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .nav-right .btn-accent {
    padding: 9px 16px;
    font-size: 14px;
  }
}

/* ---------- 404 / guide utility ---------- */
.center-page {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
}

.center-page h1 {
  font-size: 3rem;
  margin-bottom: 10px;
}

.center-page p {
  color: var(--text-muted);
  margin-bottom: 28px;
}

.author-line {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: 14px;
}

.author-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent2));
}
