/* BSCA Landing Page Styles */
:root {
  --bg: #0b1220;
  --card: #0f172a;
  --muted: #94a3b8;
  --text: #e2e8f0;
  --primary: #16a34a; /* sustainable green */
  --primary-600: #15803d;
  --outline: #1e293b;
  --accent: #22d3ee; /* cyan accent */
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--text);
  background: linear-gradient(180deg, #0a0f1d 0%, #0b1220 40%, #0b1220 100%);
}

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

a { color: var(--text); text-decoration: none; opacity: 0.9; }
a:hover { opacity: 1; }

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.7);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--outline);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-logo { width: 36px; height: 36px; border-radius: 8px; }
.brand-name { letter-spacing: 0.2px; }

.nav { display: flex; align-items: center; gap: 18px; }
.nav a { font-weight: 500; }
.btn-small { padding: 10px 14px; border-radius: 10px; }

.nav-toggle { display: none; background: transparent; border: 0; padding: 10px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); margin: 5px 0; }

/* Hero */
.hero {
  padding: 72px 0 40px;
  background: radial-gradient(800px 400px at 20% 0%, rgba(34, 211, 238, 0.08), transparent 60%),
              radial-gradient(800px 400px at 80% 0%, rgba(22, 163, 74, 0.08), transparent 60%);
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}
.hero-copy h1 { font-size: 44px; line-height: 1.1; margin: 0 0 14px; }
.subtitle { color: var(--muted); font-size: 18px; line-height: 1.6; margin: 0 0 22px; }

.hero-cta { display: flex; gap: 14px; margin: 16px 0 8px; }
.hero-highlights { margin-top: 10px; color: var(--muted); display: grid; gap: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--outline);
  font-weight: 600; letter-spacing: 0.2px; transition: transform 0.03s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: white; border-color: transparent; }
.btn-primary:hover { background: var(--primary-600); }
.btn-outline { background: transparent; color: var(--text); }

.hero-visual { display: flex; justify-content: center; }
.visual-card {
  width: 100%;
  max-width: 420px;
  background: linear-gradient(180deg, #0b1426 0%, #0f1a30 100%);
  border: 1px solid var(--outline);
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
}
.visual-title { font-weight: 600; margin-bottom: 10px; opacity: 0.95; }
.visual-list { list-style: none; margin: 0; padding: 0; color: var(--muted); display: grid; gap: 10px; }
.visual-footer { margin-top: 16px; font-size: 13px; color: var(--muted); border-top: 1px dashed var(--outline); padding-top: 10px; }

/* Sections */
.section { padding: 56px 0; }
.section.alt { background: linear-gradient(180deg, #0b1220 0%, #0b1220 60%, #0c1424 100%); }
.section-title { margin: 0 0 22px; font-size: 30px; }

.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--outline);
  border-radius: 14px;
  padding: 18px;
}
.feature-icon { font-size: 22px; margin-bottom: 8px; }
.feature h3 { margin: 6px 0 8px; font-size: 18px; }
.feature p { margin: 0; color: var(--muted); line-height: 1.5; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  background: var(--card); border: 1px solid var(--outline); border-radius: 14px; padding: 16px;
}
.step-num {
  width: 32px; height: 32px; border-radius: 50%; background: #0b1220; border: 1px solid var(--outline);
  display: inline-flex; align-items: center; justify-content: center; font-weight: 700; margin-bottom: 8px; color: var(--accent);
}

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.price-card {
  background: var(--card); border: 1px solid var(--outline); border-radius: 14px; padding: 18px;
  position: relative; transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.price-card:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.3); }
.price-card.highlight { border-color: var(--primary); box-shadow: 0 0 0 1px rgba(22,163,74,0.3) inset; }

.plan-header { text-align: center; margin-bottom: 20px; }
.plan-header h3 { margin: 0 0 8px; letter-spacing: 0.3px; font-size: 20px; }
.price {
  font-size: 32px; margin: 8px 0 12px; font-weight: 700; color: var(--primary);
  display: flex; align-items: baseline; justify-content: center; gap: 2px;
}
.currency { font-size: 20px; }
.amount { font-weight: 700; }
.amount.annual { display: none; }
.period { font-size: 14px; color: var(--muted); font-weight: 400; }
.plan-description { color: var(--muted); font-size: 14px; line-height: 1.5; margin: 0; }

.popular-badge {
  position: absolute; top: -8px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: white; padding: 4px 12px; border-radius: 12px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.3px;
}

.features-list { list-style: none; margin: 0 0 20px; padding: 0; }
.features-list li {
  padding: 8px 0; font-size: 14px; line-height: 1.4; display: flex; align-items: flex-start;
  gap: 8px; border-bottom: 1px solid rgba(30, 41, 59, 0.3);
}
.features-list li:last-child { border-bottom: none; }
.included { color: var(--text); }
.excluded { color: var(--muted); opacity: 0.7; }

.pricing-btn { width: 100%; padding: 12px; font-weight: 600; }

/* Billing Toggle */
.billing-toggle {
  display: flex; align-items: center; justify-content: center; gap: 16px;
  margin: 32px 0; font-size: 14px;
}
.switch {
  position: relative; display: inline-block; width: 56px; height: 28px;
}
.switch input { opacity: 0; width: 0; height: 0; }
.slider {
  position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0;
  background: var(--outline); transition: 0.3s; border-radius: 28px;
}
.slider:before {
  position: absolute; content: ""; height: 20px; width: 20px; left: 4px; bottom: 4px;
  background: white; transition: 0.3s; border-radius: 50%;
}
input:checked + .slider { background: var(--primary); }
input:checked + .slider:before { transform: translateX(28px); }
.badge-save {
  background: var(--primary); color: white; padding: 2px 8px; border-radius: 12px;
  font-size: 12px; font-weight: 600; margin-left: 4px;
}

/* Comparison Table */
.comparison-section { margin-top: 48px; }
.comparison-title { text-align: center; margin: 0 0 24px; font-size: 24px; }
.comparison-table-wrapper {
  overflow-x: auto; background: var(--card); border: 1px solid var(--outline);
  border-radius: 14px; padding: 20px;
}
.comparison-table {
  width: 100%; border-collapse: collapse; font-size: 14px;
}
.comparison-table th {
  background: rgba(30, 41, 59, 0.5); padding: 12px; text-align: center;
  border-bottom: 2px solid var(--outline); font-weight: 600;
}
.comparison-table th.feature-column { text-align: left; min-width: 200px; }
.comparison-table td {
  padding: 12px; text-align: center; border-bottom: 1px solid rgba(30, 41, 59, 0.3);
}
.comparison-table td:first-child { text-align: left; font-weight: 500; }
.category-row td {
  background: rgba(30, 41, 59, 0.3); font-weight: 600; color: var(--primary);
  text-align: center; padding: 16px 12px; border-bottom: 2px solid var(--outline);
}
.included { color: var(--primary); font-weight: 600; }
.excluded { color: var(--muted); opacity: 0.5; }

/* FAQ */
.pricing-faq { margin-top: 48px; }
.pricing-faq h3 { text-align: center; margin: 0 0 24px; font-size: 24px; }
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card); border: 1px solid var(--outline); border-radius: 12px;
  margin-bottom: 12px; overflow: hidden;
}
.faq-question {
  padding: 16px 20px; cursor: pointer; display: flex; justify-content: space-between;
  align-items: center; font-weight: 500; transition: background 0.2s ease;
}
.faq-question:hover { background: rgba(30, 41, 59, 0.3); }
.faq-toggle {
  font-size: 20px; color: var(--muted); transition: transform 0.2s ease;
}
.faq-item.active .faq-toggle { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-answer p {
  margin: 0; padding: 0 20px 16px; color: var(--muted); line-height: 1.5;
}
.faq-item.active .faq-answer { max-height: 200px; }

.section-subtitle {
  text-align: center; color: var(--muted); font-size: 18px;
  margin: 0 0 32px; line-height: 1.5;
}

.note { color: var(--muted); margin-top: 16px; font-size: 14px; }

/* CTA */
.section.cta { background: radial-gradient(600px 280px at 50% 0%, rgba(34,211,238,0.12), transparent 70%); border-top: 1px solid var(--outline); border-bottom: 1px solid var(--outline); }
.cta-inner { text-align: center; }
.cta-actions { display: inline-flex; gap: 12px; margin-top: 8px; }

/* Footer */
.site-footer { border-top: 1px solid var(--outline); padding: 18px 0; }
.footer-inner { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; opacity: 0.9; }
.footer-links { display: inline-flex; gap: 14px; }
.footer-copy { color: var(--muted); font-size: 14px; justify-self: end; }

/* Responsive */
@media (max-width: 1000px) {
  .hero-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .comparison-table { font-size: 12px; }
  .comparison-table th.feature-column { min-width: 150px; }
}

@media (max-width: 720px) {
  .nav { position: fixed; inset: 64px 0 auto 0; background: rgba(11,18,32,0.95); padding: 16px; border-bottom: 1px solid var(--outline); transform: translateY(-120%); transition: transform 0.2s ease; flex-direction: column; gap: 12px; }
  .nav.open { transform: translateY(0); }
  .nav-toggle { display: inline-block; }
  .footer-inner { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 8px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .billing-toggle { flex-direction: column; gap: 12px; }
  .comparison-table-wrapper { padding: 12px; }
  .comparison-table { font-size: 11px; }
  .comparison-table th, .comparison-table td { padding: 8px 4px; }
  .comparison-table th.feature-column { min-width: 120px; }
  .faq-question { padding: 12px 16px; font-size: 14px; }
  .faq-answer p { padding: 0 16px 12px; font-size: 13px; }
}
