/* TradeLiq Landing Page — Design Tokens + Layout */

:root {
  --navy: #0F172A;
  --slate: #1E293B;
  --teal: #14B8A6;
  --teal-hover: #0D9488;
  --mint: #34D399;
  --off-white: #F8FAFC;
  --muted: #94A3B8;
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;
  --border: #E2E8F0;
  --surface: #FFFFFF;
  --success-bg: #ECFDF5;
  --success-text: #065F46;
  --info-bg: #F0FDFA;
  --info-text: #134E4A;
  --warning-bg: #FFFBEB;
  --warning-text: #92400E;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --max-width: 1140px;
  --section-padding: 5rem 1.5rem;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-body);
  background: var(--off-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color .15s; }
a:hover { color: var(--teal-hover); }

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

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; }

/* ─── Header / Nav ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--navy);
}

.logo svg { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-muted);
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s;
}

.nav-links a:hover { color: var(--navy); }

.mobile-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.mobile-toggle svg { width: 24px; height: 24px; color: var(--navy); }

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background .15s, transform .1s, box-shadow .15s;
}

.btn:active { transform: scale(.98); }

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

.btn-primary:hover {
  background: var(--teal-hover);
  color: #fff;
  box-shadow: 0 4px 14px rgba(20, 184, 166, .35);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--border);
}

.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal);
}

.btn-sm { padding: .5rem 1rem; font-size: .85rem; }

/* ─── Hero ─── */

.hero {
  padding: 6rem 1.5rem 5rem;
  text-align: center;
  background: linear-gradient(180deg, #fff 0%, var(--off-white) 100%);
}

.hero h1 {
  font-size: clamp(2rem, 1.4rem + 2.5vw, 3.25rem);
  font-weight: 800;
  color: var(--navy);
  line-height: 1.15;
  max-width: 720px;
  margin: 0 auto 1.25rem;
}

.hero h1 .accent { color: var(--teal); }

.hero .subtitle {
  font-size: clamp(1rem, .9rem + .5vw, 1.2rem);
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2.5rem;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.hero-badge {
  display: flex;
  align-items: center;
  gap: .4rem;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.hero-badge svg { width: 16px; height: 16px; color: var(--mint); }

/* ─── Features ─── */

.features {
  padding: var(--section-padding);
}

.section-label {
  text-transform: uppercase;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--teal);
  text-align: center;
  margin-bottom: .5rem;
}

.section-title {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
  max-width: 600px;
  margin: 0 auto 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 3rem;
  font-size: .95rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2rem;
  transition: box-shadow .2s, border-color .2s;
}

.feature-card:hover {
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  border-color: rgba(20, 184, 166, .3);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--info-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.feature-icon svg { width: 22px; height: 22px; color: var(--teal); }

.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.feature-card p {
  font-size: .9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ─── How It Works ─── */

.how-it-works {
  padding: var(--section-padding);
  background: var(--surface);
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin-top: .5rem;
}

.step {
  text-align: center;
  padding: 1.5rem 1rem;
}

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .5rem;
}

.step p {
  font-size: .875rem;
  color: var(--text-muted);
}

/* ─── Pricing ─── */

.pricing {
  padding: var(--section-padding);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: .5rem;
}

.pricing-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 14px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow .2s, border-color .2s;
}

.pricing-card:hover {
  box-shadow: 0 12px 32px rgba(15, 23, 42, .08);
}

.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: 0 0 0 1px var(--teal);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--teal);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: .3rem .9rem;
  border-radius: 20px;
}

.pricing-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: .25rem;
}

.pricing-price {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .25rem;
}

.pricing-price span {
  font-size: .9rem;
  font-weight: 500;
  color: var(--text-muted);
}

.pricing-trial {
  font-size: .8rem;
  color: var(--teal);
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.pricing-features {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.pricing-features li {
  font-size: .85rem;
  color: var(--text-body);
  padding: .35rem 0;
  display: flex;
  align-items: flex-start;
  gap: .5rem;
}

.pricing-features li::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 2px;
  background: var(--mint);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath fill-rule='evenodd' d='M16.707 5.293a1 1 0 010 1.414l-8 8a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L8 12.586l7.293-7.293a1 1 0 011.414 0z' clip-rule='evenodd'/%3E%3C/svg%3E") center / contain no-repeat;
}

.pricing-card .btn { width: 100%; justify-content: center; }

/* ─── CTA ─── */

.cta {
  padding: var(--section-padding);
  background: var(--navy);
  text-align: center;
}

.cta h2 {
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: .75rem;
}

.cta p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 2rem;
  font-size: 1rem;
}

.cta .btn-primary {
  font-size: 1rem;
  padding: .875rem 2rem;
}

/* ─── Footer ─── */

.site-footer {
  padding: 3rem 1.5rem;
  border-top: 1px solid var(--border);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-brand p {
  font-size: .85rem;
  color: var(--text-muted);
  margin-top: .5rem;
  max-width: 280px;
}

.footer-links h4 {
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--navy);
  margin-bottom: .75rem;
}

.footer-links ul { list-style: none; }

.footer-links li { margin-bottom: .4rem; }

.footer-links a {
  font-size: .85rem;
  color: var(--text-muted);
}

.footer-links a:hover { color: var(--teal); }

.footer-bottom {
  max-width: var(--max-width);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: .8rem;
  color: var(--text-muted);
}

/* ─── Legal page ─── */

.legal-page {
  padding: 4rem 1.5rem 5rem;
}

.legal-page .container {
  max-width: 760px;
}

.legal-page h1 {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .5rem;
}

.legal-page .legal-updated {
  font-size: .85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-page .legal-notice {
  background: var(--warning-bg);
  color: var(--warning-text);
  padding: 1rem 1.25rem;
  border-radius: 8px;
  font-size: .85rem;
  font-weight: 500;
  margin-bottom: 2rem;
}

.legal-page h2 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-top: 2.5rem;
  margin-bottom: .75rem;
}

.legal-page h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--navy);
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.legal-page p,
.legal-page li {
  font-size: .9rem;
  line-height: 1.7;
  color: var(--text-body);
}

.legal-page ul,
.legal-page ol {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal-page li { margin-bottom: .35rem; }

.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.5rem;
  font-size: .85rem;
}

.legal-page th,
.legal-page td {
  text-align: left;
  padding: .6rem .75rem;
  border-bottom: 1px solid var(--border);
}

.legal-page th {
  font-weight: 600;
  color: var(--navy);
  background: var(--off-white);
}

/* ─── Language Switcher ─── */

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: .125rem;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 2px;
  font-size: .8rem;
  font-weight: 600;
}

.lang-switcher a {
  padding: .25rem .5rem;
  border-radius: 4px;
  color: var(--text-muted);
  transition: background .15s, color .15s;
}

.lang-switcher a:hover { color: var(--navy); }

.lang-switcher a.active {
  background: var(--surface);
  color: var(--navy);
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
}

/* ─── Responsive ─── */

@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-toggle { display: block; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    padding: 1.5rem;
    gap: 1rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
  }

  .hero { padding: 4rem 1.5rem 3rem; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 380px; margin-left: auto; margin-right: auto; }
  .steps { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; }
}

@media (max-width: 480px) {
  .steps { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: center; }
}
