/* CallOut WMS - SaaS-style marketing site */
:root {
  --primary: #C02535;
  --primary-hover: #9a1e2b;
  --primary-muted: rgba(192, 37, 53, 0.12);
  --text: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --white: #ffffff;
  --border: #e2e8f0;
  --border-subtle: #f1f5f9;
  --radius: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 12px 40px rgba(15, 23, 42, 0.1);
  --font-heading: 'DM Sans', -apple-system, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

/* ----- Navbar ----- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-subtle);
}
.navbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.navbar-brand { display: flex; align-items: center; }
.navbar-logo { height: 32px; width: auto; display: block; }
.navbar-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}
.navbar-nav a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: color 0.15s;
}
.navbar-nav a:hover { color: var(--primary); }
.navbar-nav a.btn-primary {
  color: white;
}
.navbar-nav a.btn-primary:hover {
  color: white;
}
.btn-nav { padding: 0.5rem 1rem; font-size: 0.875rem; font-weight: 600; }
.navbar-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--text);
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.9375rem;
  font-weight: 600;
  font-family: var(--font-body);
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s;
}
.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }
.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-xs);
}
.btn-primary:hover {
  background: var(--primary-hover);
  box-shadow: var(--shadow-sm);
}
.btn-white {
  background: white;
  color: var(--primary);
}
.btn-white:hover {
  background: var(--bg-subtle);
  color: var(--primary-hover);
}
.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-muted);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--primary); }

/* ----- Hero ----- */
.hero {
  position: relative;
  padding: 5rem 1.5rem 6rem;
  text-align: center;
  overflow: hidden;
}
.hero .hero-content {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
}
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, var(--primary-muted) 0%, transparent 50%),
    linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg) 100%);
  pointer-events: none;
}
.hero-label {
  position: relative;
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--primary);
  margin-bottom: 1rem;
}
.hero-title {
  position: relative;
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-desc {
  position: relative;
  font-size: 1.25rem;
  color: var(--text-secondary);
  line-height: 1.6;
  max-width: 560px;
  margin: 0 auto 2rem;
}
.hero-badges {
  position: relative;
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
}
.hero-badge svg { flex-shrink: 0; color: var(--primary); }
.hero-buttons {
  position: relative;
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ----- Trust bar ----- */
.trust-bar {
  background: var(--bg-muted);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.trust-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  text-align: center;
}
.trust-text {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ----- Sections ----- */
.section {
  padding: 5rem 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}
.section--light {
  background: var(--bg-subtle);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.section--light .section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 0.75rem;
  text-align: center;
}
.section-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.75rem;
}
.section-lead {
  text-align: center;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* ----- Trades grid ----- */
.trades-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.trade-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.trade-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.trade-icon {
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-muted);
  border-radius: var(--radius-md);
  margin-bottom: 1.25rem;
  color: var(--primary);
  flex-shrink: 0;
}
.trade-icon svg {
  width: 22px;
  height: 22px;
  min-width: 22px;
  min-height: 22px;
  max-width: 22px;
  max-height: 22px;
}
.trade-card h3 {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.trade-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.55;
}

/* ----- Features grid ----- */
#features .section-inner { padding: 0; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
}
.feature-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.feature-card h3 {
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
  color: var(--text);
}
.feature-card p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- Pricing ----- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 0.5rem;
  align-items: stretch;
}
.pricing-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  border: 1px solid var(--border-subtle);
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
}
.pricing-card:hover {
  border-color: var(--border);
  box-shadow: var(--shadow);
}
.pricing-card.featured {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.pricing-card.featured .price,
.pricing-card.featured h3 { color: white; }
.pricing-card.featured .features { color: rgba(255,255,255,0.9); }
.pricing-card.featured .btn-primary {
  background: white;
  color: var(--primary);
}
.pricing-card.featured .btn-primary:hover {
  background: var(--bg-subtle);
  color: var(--primary-hover);
}
.pricing-card h3 {
  font-family: var(--font-heading);
  font-size: 1.125rem;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.pricing-card .price {
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.25rem;
}
.pricing-card .price span { font-size: 0.9375rem; font-weight: 500; opacity: 0.85; }
.pricing-card .features {
  font-size: 0.9375rem;
  margin-bottom: 2rem;
  flex: 1;
  color: var(--text-muted);
}
.pricing-badge {
  font-size: 0.625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: rgba(255,255,255,0.25);
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
}
.pricing-card:not(.featured) .pricing-badge { background: var(--primary-muted); color: var(--primary); }

/* ----- FAQ ----- */
#faq { padding-bottom: 5rem; }
#faq .section-title { margin-bottom: 2rem; }
.faq-list {
  max-width: 640px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
}
.faq-item { border-bottom: 1px solid var(--border-subtle); }
.faq-item:last-child { border-bottom: none; }
.faq-question {
  width: 100%;
  padding: 1.25rem 1.5rem;
  text-align: left;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text);
  transition: background 0.15s;
}
.faq-question:hover { background: var(--bg-subtle); }
.faq-question::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: transform 0.2s;
  flex-shrink: 0;
  margin-left: 1rem;
}
.faq-item.open .faq-question::after { transform: rotate(45deg); color: var(--primary); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer-inner {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* ----- CTA section ----- */
.cta-section {
  background: var(--text);
  padding: 4rem 1.5rem;
  text-align: center;
}
.cta-inner { max-width: 600px; margin: 0 auto; }
.cta-title {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  color: white;
  margin-bottom: 0.5rem;
}
.cta-desc {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 1.5rem;
}
.cta-section .btn { margin-top: 0.25rem; }

/* ----- Footer ----- */
.footer {
  background: #0a0f1a;
  color: rgba(255,255,255,0.7);
  padding: 3rem 1.5rem 2rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.footer-logo { height: 28px; opacity: 0.9; }
.footer-links { display: flex; gap: 2rem; flex-wrap: wrap; }
.footer-links a {
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.15s;
}
.footer-links a:hover { color: white; }
.footer-bottom {
  max-width: 1200px;
  margin: 2rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
}
.footer-bottom p { font-size: 0.8125rem; color: rgba(255,255,255,0.5); }

/* ----- Signup page ----- */
.signup-page { padding: 4rem 1.5rem; min-height: 60vh; }
.signup-page h1 {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.signup-form {
  max-width: 400px;
  margin: 2rem auto 0;
  background: var(--white);
  padding: 2rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  font-family: var(--font-body);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-muted);
}
.form-error { color: var(--primary); font-size: 0.875rem; margin-top: 0.5rem; }

/* ----- Responsive ----- */
@media (max-width: 1024px) {
  .trades-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 768px) {
  .navbar-inner { padding: 1rem 1.25rem; }
  .navbar-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-subtle);
    margin-top: 0.5rem;
  }
  .navbar-nav.open { display: flex; }
  .navbar-toggle { display: flex; align-items: center; justify-content: center; }
  .hero { padding: 3.5rem 1.25rem 4.5rem; }
  .hero-badges { flex-direction: column; align-items: center; gap: 1rem; }
  .hero-buttons { flex-direction: column; }
  .section { padding: 4rem 1.25rem; }
  .section--light { padding-left: 1.25rem; padding-right: 1.25rem; }
  .trades-grid { grid-template-columns: 1fr; gap: 1rem; }
  .features-grid { grid-template-columns: 1fr; gap: 1rem; }
  .faq-question { padding: 1.125rem 1.25rem; }
  .faq-answer-inner { padding: 0 1.25rem 1.125rem 1.25rem; }
  .cta-section { padding: 3rem 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
