/* Tradelyst marketing site — single stylesheet.
 * Dark theme matching the product UI. Lime spot color #d4ff3a reserved for
 * brand mark + primary CTAs only. Sentence case throughout.
 */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --bg-3: #1c1c1c;
  --border: #262626;
  --text: #f4f4f4;
  --text-muted: #a3a3a3;
  --text-faint: #6b6b6b;
  --lime: #d4ff3a;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 8px;
  --max-w: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  background: var(--bg); color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--lime); }

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

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

/* ---------- Brand mark ---------- */
.brand-mark {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-weight: 700;
  letter-spacing: 0.05em;
  font-size: 18px;
}
.brand-slash { color: var(--lime); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.site-nav { display: flex; align-items: center; gap: 24px; }
.nav-link {
  color: var(--text-muted); font-size: 14px; padding: 8px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.nav-link:hover { color: var(--text); }
.nav-link-active { color: var(--text); border-bottom-color: var(--lime); }
.nav-link-app { color: var(--text-muted); }
.nav-link-lang {
  border: 1px solid var(--border);
  padding: 6px 10px !important;
  border-radius: 4px;
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.nav-link-lang:hover { border-color: var(--lime); color: var(--lime); }

.nav-toggle {
  display: none; background: none; border: none; padding: 8px;
  flex-direction: column; gap: 4px; cursor: pointer;
}
.nav-toggle span {
  display: block; width: 22px; height: 2px; background: var(--text); border-radius: 1px;
}

@media (max-width: 768px) {
  .site-nav {
    position: absolute; top: 64px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--border);
    padding: 16px;
    transform: translateY(-110%);
    transition: transform 0.2s;
  }
  .site-nav.open { transform: translateY(0); }
  .site-nav .nav-link, .site-nav .btn { padding: 12px 16px; }
  .nav-toggle { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  padding: 12px 20px; border-radius: 6px;
  border: 1px solid transparent;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  cursor: pointer; text-decoration: none;
}
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-primary {
  background: var(--lime); color: #0a0a0a;
}
.btn-primary:hover { background: #c4ef2a; color: #0a0a0a; }
.btn-secondary {
  background: var(--bg-3); color: var(--text); border-color: var(--border);
}
.btn-secondary:hover { background: var(--bg-2); border-color: var(--text-muted); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  border-bottom: 1px solid var(--border);
}
.hero-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--lime); margin-bottom: 16px;
}
.hero h1 {
  font-size: 56px; line-height: 1.05; margin: 0 0 16px;
  font-weight: 600; letter-spacing: -0.02em;
  max-width: 800px;
}
.hero p.lead {
  font-size: 20px; line-height: 1.5; color: var(--text-muted);
  max-width: 640px; margin: 0 0 32px;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }

@media (max-width: 768px) {
  .hero { padding: 56px 0 48px; }
  .hero h1 { font-size: 36px; }
  .hero p.lead { font-size: 17px; }
}

/* ---------- Section ---------- */
section.block { padding: 80px 0; border-bottom: 1px solid var(--border); }
section.block:last-of-type { border-bottom: none; }

.section-eyebrow {
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 12px;
}
.section-title {
  font-size: 36px; line-height: 1.15; margin: 0 0 16px;
  font-weight: 600; letter-spacing: -0.01em;
}
.section-lead {
  font-size: 18px; color: var(--text-muted); max-width: 720px; margin: 0 0 48px;
}

/* ---------- Three-up grid (value props) ---------- */
.three-up {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
@media (max-width: 900px) { .three-up { grid-template-columns: 1fr; } }

.feature-card {
  padding: 32px; border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-2);
}
.feature-card h3 {
  font-size: 18px; margin: 0 0 8px; font-weight: 600;
}
.feature-card .feat-icon {
  width: 32px; height: 32px; margin-bottom: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(212, 255, 58, 0.1); border-radius: 6px;
  font-size: 18px;
}
.feature-card p {
  margin: 0; color: var(--text-muted); font-size: 15px;
}

/* ---------- Feature with screenshot ---------- */
.feat-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center;
  padding: 48px 0;
}
.feat-row:nth-child(even) { direction: rtl; }
.feat-row > * { direction: ltr; }
@media (max-width: 900px) {
  .feat-row { grid-template-columns: 1fr; gap: 32px; padding: 24px 0; }
  .feat-row:nth-child(even) { direction: ltr; }
}

.feat-row h3 {
  font-size: 28px; margin: 0 0 16px; font-weight: 600; letter-spacing: -0.01em;
}
.feat-row p {
  color: var(--text-muted); font-size: 16px; margin: 0 0 16px;
}
.feat-row ul {
  list-style: none; padding: 0; margin: 16px 0;
  font-size: 15px;
}
.feat-row ul li {
  padding-left: 20px; position: relative; margin-bottom: 8px;
  color: var(--text);
}
.feat-row ul li::before {
  content: ""; position: absolute; left: 0; top: 11px;
  width: 8px; height: 2px; background: var(--lime);
}

/* ---------- Screenshot placeholder ---------- */
.screenshot {
  background: var(--bg-3); border: 1px solid var(--border); border-radius: var(--radius);
  aspect-ratio: 16 / 10;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px; text-align: center;
  color: var(--text-faint);
  position: relative;
  overflow: hidden;
}
.screenshot::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(45deg, rgba(255,255,255,0.02) 25%, transparent 25%),
    linear-gradient(-45deg, rgba(255,255,255,0.02) 25%, transparent 25%);
  background-size: 24px 24px;
}
.screenshot-label {
  font-family: ui-monospace, monospace; font-size: 11px;
  color: var(--lime); margin-bottom: 8px; letter-spacing: 0.05em;
  position: relative; z-index: 1;
}
.screenshot-desc {
  font-size: 14px; max-width: 440px;
  position: relative; z-index: 1;
  color: var(--text-muted);
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 32px;
}
@media (max-width: 1100px) { .pricing-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px)  { .pricing-grid { grid-template-columns: 1fr; } }

.tier {
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--bg-2);
  padding: 28px 24px; display: flex; flex-direction: column;
}
.tier-highlight {
  border-color: var(--lime);
  box-shadow: 0 0 0 1px var(--lime);
}
.tier-highlight-label {
  font-size: 11px; color: var(--lime); letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 8px; font-weight: 600;
}
.tier h3 {
  font-size: 18px; margin: 0 0 4px; font-weight: 600;
}
.tier .tier-tagline { font-size: 13px; color: var(--text-muted); margin: 0 0 16px; }
.tier-price {
  font-size: 36px; font-weight: 600; letter-spacing: -0.02em; margin: 0;
}
.tier-price-suffix { font-size: 15px; color: var(--text-muted); font-weight: 400; }
.tier-price-yearly {
  font-size: 12px; color: var(--text-muted); margin: 4px 0 24px;
}
.tier ul {
  list-style: none; padding: 0; margin: 0 0 24px;
  font-size: 14px; flex: 1;
}
.tier ul li {
  padding-left: 20px; position: relative; margin-bottom: 8px;
}
.tier ul li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 8px; height: 2px; background: var(--lime);
}
.tier .btn { width: 100%; }

.founder-counter {
  margin: 16px 0 24px; padding: 12px;
  border: 1px solid var(--lime); border-radius: 6px;
  background: rgba(212, 255, 58, 0.08);
  font-size: 13px; color: var(--text);
  text-align: center;
}
.founder-counter strong { color: var(--lime); }

/* ---------- Contact form ---------- */
.contact-form {
  display: grid; gap: 16px;
  max-width: 560px; margin-top: 32px;
}
.contact-form label {
  display: block; font-size: 13px; color: var(--text-muted); margin-bottom: 6px;
}
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 14px;
  background: var(--bg-2); border: 1px solid var(--border);
  border-radius: 6px; color: var(--text);
  font-family: inherit; font-size: 15px;
  transition: border-color 0.15s;
}
.contact-form input:focus,
.contact-form textarea:focus {
  outline: none; border-color: var(--lime);
}
.contact-form textarea { min-height: 140px; resize: vertical; }

/* honeypot stays invisible to humans */
.contact-form .honeypot {
  position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden;
}

.form-status {
  padding: 12px 16px; border-radius: 6px; font-size: 14px;
  margin-bottom: 16px;
}
.form-status.ok    { background: rgba(34, 197, 94, 0.1); border: 1px solid var(--green); color: #86efac; }
.form-status.error { background: rgba(239, 68, 68, 0.1); border: 1px solid var(--red); color: #fca5a5; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-2); border-top: 1px solid var(--border);
  padding: 64px 0 24px; margin-top: 80px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr 2fr; gap: 64px;
}
.footer-brand .footer-tagline {
  margin: 12px 0 0; color: var(--text-muted); font-size: 14px; max-width: 280px;
}
.footer-nav {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
}
.footer-col h4 {
  font-size: 13px; color: var(--text-muted); margin: 0 0 12px;
  font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
}
.footer-col a {
  display: block; margin-bottom: 8px; color: var(--text);
  font-size: 14px;
}
.footer-col a:hover { color: var(--lime); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  font-size: 12px; color: var(--text-faint);
}

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-nav { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Legal pages (long-form text) ---------- */
.legal {
  max-width: 760px; margin: 0 auto; padding: 64px 0;
}
.legal h1 { font-size: 32px; margin: 0 0 24px; }
.legal h2 { font-size: 20px; margin: 32px 0 12px; font-weight: 600; }
.legal p, .legal ul { color: var(--text-muted); font-size: 15px; }
.legal ul { padding-left: 20px; }
.legal a { color: var(--lime); text-decoration: underline; }
.legal .legal-note {
  border-left: 2px solid var(--lime); background: rgba(212, 255, 58, 0.05);
  padding: 12px 16px; margin: 16px 0; font-size: 13px; color: var(--text);
}

/* ---------- Utility ---------- */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
