:root {
  --primary: #0284c7;
  --primary-hover: #0369a1;
  --primary-light: rgba(2, 132, 199, 0.1);
  --primary-glow: rgba(56, 189, 248, 0.35);
  
  --bg-dark: #0b1120;
  --bg-darker: #020617;
  --bg-light: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-dark: #0f172a;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #0f172a;
  --text-dark-muted: #475569;
  
  --border-color: #1e293b;
  --border-light: #e2e8f0;
  
  --accent-cyan: #38bdf8;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  
  --font-display: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background-color: var(--bg-light);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Typography --- */
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.pre-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
  margin-bottom: 14px;
}

.highlight {
  color: var(--primary);
}

/* --- Top Navigation Header --- */
.q-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 17, 32, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 0;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.25rem;
  color: #ffffff;
}

.logo img {
  height: 28px;
  width: auto;
}

.logo-fallback-wrapper {
  display: flex;
  align-items: center;
}

.logo-sub {
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  margin-left: 4px;
}

.header-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-link:hover {
  color: #ffffff;
}

.nav-link.active {
  color: #ffffff;
  border-bottom: 2px solid var(--accent-amber);
  padding-bottom: 2px;
}

.nav-link.pro-link {
  color: var(--accent-amber);
}

.nav-link.terminal-link {
  color: var(--accent-cyan);
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.85rem;
  border-radius: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: #ffffff;
  border: 1px solid rgba(56, 189, 248, 0.3);
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-hover) 0%, #075985 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(2, 132, 199, 0.4);
}

.btn-outline {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

.btn-outline:hover {
  background-color: rgba(255, 255, 255, 0.08);
  border-color: #ffffff;
}

.btn-full {
  width: 100%;
}

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

.dark-section {
  background-color: var(--bg-dark);
  color: var(--text-main);
}

.light-section {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 60px;
}

.section-header h2 {
  font-size: 2.35rem;
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-dark-muted);
  font-size: 1.1rem;
}

/* --- Hero Section --- */
.hero {
  padding: 100px 0 80px;
  background: radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.12) 0%, transparent 60%),
              var(--bg-dark);
  text-align: center;
}

.hero-content {
  max-width: 840px;
  margin: 0 auto;
}

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(251, 191, 36, 0.15);
  border: 1px solid rgba(251, 191, 36, 0.35);
  color: var(--accent-amber);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.pill-dot {
  width: 7px;
  height: 7px;
  background-color: var(--accent-amber);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-amber);
}

.hero-title {
  font-size: 3.5rem;
  margin-bottom: 20px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-bottom: 40px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  margin-bottom: 60px;
}

/* Institutional Proof */
.institutional-proof {
  border-top: 1px solid var(--border-color);
  padding-top: 32px;
}

.institutional-proof p {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 20px;
  font-weight: 600;
}

.logos-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px;
}

.logos-grid img {
  height: 20px;
  width: auto;
  max-width: 100px;
  object-fit: contain;
  opacity: 0.75;
  transition: var(--transition);
}

.logos-grid img:hover {
  opacity: 1;
  transform: translateY(-1px);
}

/* --- Features Grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--bg-card);
  padding: 32px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  border-color: var(--primary);
}

.feature-card.highlight-pro-feature {
  border-color: rgba(251, 191, 36, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, rgba(254, 243, 199, 0.25) 100%);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.feature-icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 10px;
}

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

/* --- QS Terminal Showcase Section --- */
.terminal-features-list {
  display: flex;
  flex-direction: column;
  gap: 60px;
}

.terminal-feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 40px;
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.terminal-feature.reverse {
  grid-template-columns: 1.25fr 1fr;
}

.terminal-feature.reverse .terminal-feature-content {
  order: 2;
}

.terminal-feature.reverse .terminal-feature-media {
  order: 1;
}

.feature-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 12px;
}

.terminal-feature-content h3 {
  font-size: 1.65rem;
  margin-bottom: 14px;
  color: var(--text-dark);
}

.terminal-feature-content p {
  color: var(--text-dark-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 18px;
}

.terminal-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.terminal-bullets li {
  position: relative;
  padding-left: 22px;
  color: var(--text-dark);
  font-size: 0.9rem;
  font-weight: 500;
}

.terminal-bullets li::before {
  content: "•";
  position: absolute;
  left: 4px;
  top: -2px;
  color: var(--primary);
  font-size: 1.3rem;
}

.terminal-feature-media {
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #0f172a;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
  background: #0b1120;
}

.terminal-screenshot {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* --- Pricing Section (Tabs) --- */
.pricing-tabs {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 36px;
  background: #e2e8f0;
  padding: 6px;
  border-radius: 10px;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.pricing-tab {
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-dark-muted);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pricing-tab.active {
  background: #ffffff;
  color: var(--text-dark);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.badge {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.7rem;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  max-width: 620px;
  margin: 0 auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.06);
  overflow: hidden;
}

.pricing-card-header {
  padding: 40px;
  text-align: center;
  border-bottom: 1px solid var(--border-light);
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.tier-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--accent-amber);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: block;
  margin-bottom: 12px;
}

.price-display {
  display: flex;
  align-items: baseline;
  justify-content: center;
  margin-bottom: 12px;
}

.price-display .currency {
  font-size: 2rem;
  font-weight: 700;
}

.price-display .amount {
  font-size: 4.5rem;
  font-weight: 900;
  font-family: var(--font-display);
  line-height: 1;
}

.price-display .period {
  font-size: 1.25rem;
  color: var(--text-dark-muted);
  font-weight: 600;
}

.pricing-desc {
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  max-width: 480px;
  margin: 0 auto;
}

.pricing-card-body {
  padding: 40px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 36px;
}

.pricing-subhead {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark-muted);
  padding-top: 8px;
  border-top: 1px solid #f1f5f9;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.feature-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #10b981;
  font-weight: 900;
  font-size: 1.1rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

/* --- FAQ Section --- */
.faq-accordion {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-question::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}

.faq-item.active .faq-question::after {
  content: "−";
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 24px;
}

.faq-answer p {
  color: var(--text-dark-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* --- Footer CTA & Site Footer --- */
.footer-cta {
  text-align: center;
  background: radial-gradient(circle at 50% 100%, rgba(251, 191, 36, 0.15) 0%, transparent 60%),
              var(--bg-dark);
}

.footer-cta h2 {
  font-size: 2.25rem;
  margin-bottom: 28px;
}

.footer-note {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 16px;
}

.site-footer {
  border-top: 1px solid var(--border-color);
  padding: 40px 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.disclaimer {
  font-size: 0.75rem;
  color: #475569;
  margin-top: 8px;
}

/* --- Sample Article Modal --- */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(2, 6, 23, 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  height: 85vh;
  border-radius: 16px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.5);
}

.close-modal {
  position: absolute;
  top: 14px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  color: #0f172a;
  cursor: pointer;
  z-index: 10;
}

.iframe-wrapper {
  width: 100%;
  height: 100%;
}

.iframe-wrapper iframe {
  width: 100%;
  height: 100%;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  .hero-title {
    font-size: 2.5rem;
  }
  
  .terminal-feature, .terminal-feature.reverse {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .terminal-feature.reverse .terminal-feature-content {
    order: 1;
  }
  
  .terminal-feature.reverse .terminal-feature-media {
    order: 2;
  }

  .header-nav {
    display: none;
  }
}
