: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.5rem;
  height: 100%;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: var(--transition);
  line-height: 1;
  padding: 8px 0;
  position: relative;
}

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

.nav-link.active {
  color: #ffffff;
  border-bottom: none;
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--primary);
  border-radius: 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(2, 132, 199, 0.15) 0%, transparent 60%),
              var(--bg-dark);
  text-align: center;
}

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

.tier-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 20px;
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: var(--accent-cyan);
  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-cyan);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.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;
}

.institutional-proof {
  border-top: 1px solid var(--border-color);
  padding-top: 28px;
  max-width: 1000px;
  margin: 0 auto;
}

.logos-grid {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  width: 100%;
}

.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-feature {
  border-color: rgba(2, 132, 199, 0.4);
  background: linear-gradient(180deg, #ffffff 0%, rgba(240, 249, 255, 0.6) 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;
}

/* --- What It Is Not --- */
.what-not {
  background-color: var(--bg-darker);
}

.what-not-card {
  background: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 48px;
  max-width: 800px;
  margin: 0 auto;
}

.what-not-card h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.what-not-card > p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.not-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}

.not-list li {
  position: relative;
  padding-left: 28px;
  color: var(--text-main);
  font-size: 0.95rem;
}

.not-list li::before {
  content: "✕";
  position: absolute;
  left: 0;
  top: 0;
  color: #ef4444;
  font-weight: 800;
}

.quote-box {
  border-left: 3px solid var(--primary);
  padding-left: 20px;
  margin-top: 24px;
}

.quote-box p {
  color: var(--accent-cyan);
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.6;
}

/* --- 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 --- */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
}

.toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--text-dark-muted);
}

.toggle-label.active {
  color: var(--text-dark);
}

.badge {
  background-color: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 12px;
  margin-left: 4px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 28px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: .3s;
}

.slider.round {
  border-radius: 28px;
}

.slider.round:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .3s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(24px);
}

/* --- Pricing Section Enhanced Grid --- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1240px;
  margin: 0 auto 50px;
  align-items: stretch;
}

@media (max-width: 1080px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 540px;
  }
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: var(--transition);
}

.pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.08);
}

.pricing-card.featured-card {
  border: 2px solid var(--primary);
  box-shadow: 0 25px 50px rgba(2, 132, 199, 0.12);
  transform: scale(1.02);
  z-index: 2;
}

.pricing-card.featured-card:hover {
  transform: scale(1.02) translateY(-4px);
}

.pricing-card.enterprise-card {
  border: 2px solid #0f172a;
}

.pricing-card-badge {
  position: absolute;
  top: 14px;
  right: 18px;
  font-size: 0.675rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 20px;
}

.badge-thematic {
  background: rgba(100, 116, 139, 0.1);
  color: #475569;
  border: 1px solid rgba(100, 116, 139, 0.2);
}

.badge-featured {
  background: rgba(2, 132, 199, 0.12);
  color: var(--primary);
  border: 1px solid rgba(2, 132, 199, 0.3);
}

.badge-enterprise {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

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

.pricing-card.featured-card .pricing-card-header {
  background: linear-gradient(180deg, rgba(2, 132, 199, 0.06) 0%, #ffffff 100%);
}

.pricing-card.enterprise-card .pricing-card-header {
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.05) 0%, #ffffff 100%);
}

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

.pricing-card.enterprise-card .tier-name {
  color: #0f172a;
}

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

.price-display .currency {
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
}

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

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

.pricing-subnote {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent-emerald);
  margin-bottom: 8px;
  min-height: 1.2rem;
}

.pricing-desc {
  color: var(--text-dark-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.pricing-card-body {
  padding: 24px 24px 28px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Free Bundle Included Box */
.included-bundle-box {
  background: rgba(2, 132, 199, 0.04);
  border: 1px solid rgba(2, 132, 199, 0.18);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
}

.included-bundle-header {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 700;
}

.enterprise-point-box {
  background: linear-gradient(135deg, rgba(2, 132, 199, 0.08) 0%, rgba(56, 189, 248, 0.12) 100%);
  border: 1px solid rgba(2, 132, 199, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 0.825rem;
  line-height: 1.45;
  color: #0c4a6e;
}

.enterprise-point-title {
  display: block;
  font-weight: 800;
  font-size: 0.725rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary);
  margin-bottom: 3px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 13px;
  margin-bottom: 28px;
  flex-grow: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: var(--text-dark);
}

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

.feature-cross-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 1px;
}

.feature-excluded {
  color: #94a3b8;
}

.pricing-btn-wrapper {
  margin-top: auto;
}

.btn-enterprise {
  background: #0f172a;
  color: #ffffff;
}

.btn-enterprise:hover {
  background: #1e293b;
  color: #ffffff;
}

/* --- Comparison Table --- */
.comparison-section {
  margin-top: 50px;
  padding-top: 40px;
  border-top: 1px solid var(--border-light);
}

.comparison-header {
  text-align: center;
  margin-bottom: 32px;
}

.comparison-header h3 {
  font-size: 1.85rem;
  font-family: var(--font-display);
  margin-bottom: 8px;
  color: var(--text-dark);
}

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

.comparison-table-wrapper {
  width: 100%;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.04);
  -webkit-overflow-scrolling: touch;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 920px;
  text-align: left;
  font-size: 0.875rem;
}

.comparison-table th,
.comparison-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table thead th {
  background: #0b1120;
  color: #ffffff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.comparison-table thead th:first-child {
  width: 32%;
  border-top-left-radius: 15px;
}

.comparison-table thead th.col-free {
  width: 14%;
  text-align: center;
  background: #1e293b;
}

.comparison-table thead th.col-thematic {
  width: 18%;
  text-align: center;
  background: #0f172a;
}

.comparison-table thead th.col-all {
  width: 18%;
  text-align: center;
  background: #0284c7;
}

.comparison-table thead th.col-enterprise {
  width: 18%;
  text-align: center;
  background: #04101e;
  border-top-right-radius: 15px;
}

.comparison-table thead .th-sub {
  display: block;
  font-size: 0.725rem;
  font-weight: 500;
  color: #94a3b8;
  margin-top: 2px;
}

.comparison-table thead .col-all .th-sub {
  color: #e0f2fe;
}

.comparison-table .category-header-row td {
  background: #f1f5f9;
  font-weight: 800;
  font-size: 0.775rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #334155;
  padding-top: 18px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-light);
}

.comparison-table tbody tr:hover td {
  background: rgba(2, 132, 199, 0.02);
}

.comparison-table td.col-center {
  text-align: center;
}

.table-check {
  color: #10b981;
  font-weight: 900;
  font-size: 1.15rem;
  line-height: 1;
}

.table-cross {
  color: #cbd5e1;
  font-size: 1.1rem;
  font-weight: 600;
  line-height: 1;
}

.table-highlight-col {
  background: rgba(2, 132, 199, 0.03);
}

.table-text-badge {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 6px;
}

.badge-included {
  background: rgba(16, 185, 129, 0.12);
  color: #065f46;
}

.badge-teaser {
  background: rgba(245, 158, 11, 0.12);
  color: #92400e;
}

.badge-limited {
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

/* --- 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: 800px;
  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(2, 132, 199, 0.2) 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;
  }

  .not-list {
    grid-template-columns: 1fr;
  }

  .header-nav {
    display: none;
  }
}

/* Table Head Price Display */
.table-head-tier {
  font-size: 1rem;
  font-weight: 800;
  display: block;
  margin-bottom: 4px;
}

.table-head-price {
  font-size: 1.25rem;
  font-weight: 900;
  font-family: var(--font-display);
  display: block;
  line-height: 1.2;
}

.table-head-sub {
  font-size: 0.725rem;
  font-weight: 500;
  opacity: 0.85;
  display: block;
  margin-top: 2px;
}

/* Action / Subscribe Row at Bottom of Table */
.comparison-table .action-row td {
  padding: 22px 18px 24px;
  background: #f8fafc;
  vertical-align: middle;
  border-bottom: none;
}

.comparison-table .action-row td:first-child {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-dark);
}

.comparison-table .action-row .btn {
  width: 100%;
  padding: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border-radius: 8px;
}

/* Action Row Specific Button Styles (High Contrast) */
.comparison-table .action-row .btn-outline {
  background-color: #ffffff !important;
  border: 2px solid var(--primary) !important;
  color: var(--primary) !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.15) !important;
}

.comparison-table .action-row .btn-outline:hover {
  background-color: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.comparison-table .action-row .btn-free {
  background-color: #f8fafc !important;
  border: 2px solid #94a3b8 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

.comparison-table .action-row .btn-free:hover {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.comparison-table .action-row .btn-primary {
  background: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.35) !important;
}

.comparison-table .action-row .btn-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
}

.comparison-table .action-row .btn-enterprise {
  background: #0f172a !important;
  border: 2px solid #0f172a !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

.comparison-table .action-row .btn-enterprise:hover {
  background: #1e293b !important;
  border-color: #1e293b !important;
}

.action-price-hint {
  display: block;
  font-size: 0.725rem;
  color: var(--text-dark-muted);
  margin-top: 6px;
  font-weight: 600;
}

/* Inline Action Row Toggle */
.table-action-toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.toggle-sub-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dark-muted);
}

.inline-billing-toggle {
  display: inline-flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 8px;
  gap: 3px;
  border: 1px solid #cbd5e1;
}

.billing-btn {
  background: transparent;
  border: none;
  font-size: 0.75rem;
  font-weight: 700;
  color: #475569;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.billing-btn.active {
  background: #ffffff;
  color: var(--primary);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.save-badge {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
  font-size: 0.65rem;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 4px;
  margin-left: 2px;
}

/* --- Unified Action Row Buttons (Identical Dimensions & Aligned Hints) --- */
.action-btn-cell {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
}

.btn-matrix-action {
  width: 100% !important;
  max-width: 160px !important;
  min-width: 130px !important;
  height: 44px !important;
  padding: 0 10px !important;
  font-size: 0.825rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  text-align: center !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  line-height: 1 !important;
  transition: all 0.2s ease !important;
}

/* Free button */
.btn-matrix-free {
  background-color: #f1f5f9 !important;
  border: 2px solid #94a3b8 !important;
  color: #0f172a !important;
}
.btn-matrix-free:hover {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

/* Standard and Premium share identical color */
.btn-matrix-primary {
  background: var(--primary) !important;
  border: 2px solid var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.25) !important;
}
.btn-matrix-primary:hover {
  background: var(--primary-hover) !important;
  border-color: var(--primary-hover) !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

/* Enterprise button - Sleek Dark Navy with Cyan Accent Border */
.btn-matrix-enterprise {
  background: #0b1120 !important;
  border: 2px solid #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.2) !important;
}
.btn-matrix-enterprise:hover {
  background: #0284c7 !important;
  border-color: #38bdf8 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.4) !important;
}

/* Identical aligned hint text below every button */
.action-price-hint {
  display: block !important;
  font-size: 0.725rem !important;
  color: #64748b !important;
  margin-top: 8px !important;
  height: 18px !important;
  line-height: 18px !important;
  font-weight: 600 !important;
  text-align: center !important;
  white-space: nowrap !important;
}

.table-footnote {
  margin-top: 14px !important;
  padding: 0 4px !important;
  font-size: 0.8rem !important;
  color: var(--text-dark-muted) !important;
  font-style: italic !important;
  text-align: right !important;
}
