:root {
  color-scheme: dark;
  --bg-main: #090d16;
  --bg-card: #131b2e;
  --bg-card-hover: #18223a;
  --bg-pane: #0d1322;
  --border-subtle: #202d4a;
  --border-focus: #0ea5e9;
  --text-primary: #f1f5f9;
  --text-muted: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-blue: #3b82f6;
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #f43f5e;
  --accent-violet: #8b5cf6;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

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

body {
  background-color: var(--bg-main);
  color: var(--text-primary);
  font-family: var(--font-sans);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border-subtle);
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.logo-shield {
  font-size: 1.6rem;
}

.brand-title {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: #fff;
}

.version-tag {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.5rem;
  border-radius: 9999px;
  border: 1px solid rgba(6, 182, 212, 0.3);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s ease;
}

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

/* Hero */
.hero-section {
  text-align: center;
  padding: 4rem 0 2.5rem;
}

.badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.85rem;
  border-radius: 9999px;
  border: 1px solid rgba(16, 185, 129, 0.25);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.hero-heading {
  font-size: 2.75rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.03em;
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #94a3b8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subheading {
  max-width: 720px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: 1.12rem;
  line-height: 1.6;
}

/* Tab Bar Navigation */
.sandbox-tabs {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 0.5rem;
}

.tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-muted);
  padding: 0.6rem 1.2rem;
  border-radius: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
  background: rgba(6, 182, 212, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(6, 182, 212, 0.35);
}

/* Sandbox Card */
.sandbox-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.75rem;
  margin-bottom: 3.5rem;
  box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.sandbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.sandbox-title-group h2 {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.sandbox-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.2rem;
}

.sandbox-actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 1.1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 0.45rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background-color: var(--accent-cyan);
  color: #06111e;
}

.btn-primary:hover {
  background-color: #22d3ee;
  box-shadow: 0 0 15px rgba(6, 182, 212, 0.4);
}

.btn-secondary {
  background-color: #1e293b;
  color: #e2e8f0;
  border-color: #334155;
}

.btn-secondary:hover {
  background-color: #334155;
}

.btn-outline {
  background: transparent;
  border-color: var(--border-subtle);
  color: var(--text-primary);
}

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

.btn-sm {
  padding: 0.25rem 0.65rem;
  font-size: 0.78rem;
  background: #1e293b;
  color: #cbd5e1;
  border: 1px solid #334155;
  border-radius: 0.35rem;
  cursor: pointer;
}

.btn-sm:hover {
  background: #334155;
  color: #fff;
}

/* Editor Grid */
.editor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

@media (max-width: 820px) {
  .editor-grid {
    grid-template-columns: 1fr;
  }
}

.editor-pane {
  display: flex;
  flex-direction: column;
  background-color: var(--bg-pane);
  border: 1px solid var(--border-subtle);
  border-radius: 0.6rem;
  overflow: hidden;
}

.pane-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.9rem;
  background-color: rgba(15, 23, 42, 0.6);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.8rem;
}

.pane-label {
  font-weight: 600;
  color: #cbd5e1;
}

.pane-meta {
  color: #64748b;
  font-family: var(--font-mono);
  font-size: 0.75rem;
}

textarea {
  width: 100%;
  height: 250px;
  background-color: transparent;
  color: #f1f5f9;
  border: none;
  padding: 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
  resize: vertical;
}

textarea:focus {
  outline: none;
}

/* Findings and Threat Summary */
.findings-box {
  margin-top: 1.25rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 1rem;
}

.findings-box.hidden {
  display: none;
}

.findings-header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.findings-badge {
  background: rgba(244, 63, 94, 0.15);
  color: var(--accent-rose);
  border: 1px solid rgba(244, 63, 94, 0.35);
  padding: 0.2rem 0.6rem;
  border-radius: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.findings-badge.clean-badge {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.35);
}

.findings-badge.warn-badge {
  background: rgba(245, 158, 11, 0.15);
  color: var(--accent-amber);
  border-color: rgba(245, 158, 11, 0.35);
}

.findings-note {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.findings-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.finding-chip {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.35rem;
  padding: 0.25rem 0.55rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: #94a3b8;
}

.finding-chip span {
  color: var(--accent-cyan);
  font-weight: 600;
}

/* Feature Grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-bottom: 4rem;
}

@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 550px) {
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  padding: 1.4rem;
}

.feature-icon {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
}

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.45rem;
}

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

/* Pricing Section */
.pricing-section {
  padding-bottom: 5rem;
}

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.4rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 2.5rem;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 950px) {
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 500px;
    margin: 0 auto;
  }
}

/* Whole-card link rule */
.pricing-card.whole-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 1rem;
  padding: 1.75rem;
  position: relative;
  transition: all 0.2s ease;
  cursor: pointer;
}

.pricing-card.whole-card-link:hover {
  border-color: var(--accent-cyan);
  background: var(--bg-card-hover);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px -10px rgba(6, 182, 212, 0.25);
}

.pricing-card.featured {
  border-color: var(--accent-cyan);
  background: linear-gradient(180deg, #16243d 0%, #131b2e 100%);
}

.pricing-card.featured-suite {
  border-color: var(--accent-violet);
  background: linear-gradient(180deg, #1e1938 0%, #131b2e 100%);
}

.pricing-card.featured-suite:hover {
  border-color: var(--accent-violet);
  box-shadow: 0 12px 30px -10px rgba(139, 92, 246, 0.35);
}

.pricing-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.pricing-badge.featured-badge {
  color: var(--accent-cyan);
}

.pricing-badge.suite-badge {
  color: var(--accent-violet);
}

.pricing-price {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
  color: #fff;
}

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

.pricing-tagline {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 1.25rem;
  min-height: 2.6rem;
}

.pricing-list {
  list-style: none;
  margin-bottom: 1.75rem;
  flex-grow: 1;
}

.pricing-list li {
  font-size: 0.82rem;
  color: #cbd5e1;
  margin-bottom: 0.55rem;
  padding-left: 1.2rem;
  position: relative;
}

.pricing-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent-emerald);
  font-weight: bold;
}

.card-action-btn {
  width: 100%;
  text-align: center;
}

.btn-suite {
  background-color: var(--accent-violet);
  color: #fff;
}

.btn-suite:hover {
  background-color: #a78bfa;
  box-shadow: 0 0 15px rgba(139, 92, 246, 0.4);
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 2.5rem 0;
  background: #060910;
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
}

.footer-sub {
  margin-top: 0.35rem;
  font-size: 0.78rem;
}
