:root {
  --text: #505050;
  --accent: #fd6c1d;
  --accent-dark: #e65a0d;
  --muted: #8a8a8a;
  --bg: #ffffff;
  --bg-light: #f9f9f9;
  --bg-dark: #2d2d2d;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: #ff8c42
}

.accent {
  color: var(--accent)
}

/* ===== NAVIGATION ===== */
.landing-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  transition: all 0.3s ease;
}

.landing-nav.scrolled {
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 60px;
}

.nav-title {
  font-size: 20px;
  font-weight: 600;
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--accent);
}

.nav-links a.active {
  color: var(--accent);
  font-weight: 600;
}

/* Dropdown Navigation */
.nav-dropdown {
  position: relative;
}

.nav-dropdown::before {
  content: '';
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: 16px;
  background: transparent;
  display: none;
}

.nav-dropdown:hover::before {
  display: block;
}

.nav-dropdown-content {
  display: none;
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  min-width: 200px;
  padding: 8px 0;
  z-index: 1001;
}

.nav-dropdown:hover .nav-dropdown-content {
  display: block;
}

.nav-dropdown-content a {
  display: block;
  padding: 12px 20px;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-dropdown-content a:hover {
  background: rgba(253, 108, 29, 0.08);
  color: var(--accent);
  padding-left: 24px;
}

.hamburger-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  z-index: 1001;
}

.hamburger-menu span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: var(--text);
  border-radius: 3px;
  transition: all 0.3s ease;
}

.hamburger-menu.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger-menu.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-menu.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ===== BUTTONS ===== */
.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(253, 108, 29, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(253, 108, 29, 0.4);
}

.btn-secondary {
  background: white;
  color: var(--accent);
  padding: 12px 24px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 2px solid var(--accent);
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(253, 108, 29, 0.1);
  transform: translateY(-2px);
}

.btn-large {
  padding: 16px 32px;
  font-size: 16px;
}

/* ===== HERO SECTION ===== */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #f9f9f9 100%);
  padding: 120px 32px 80px;
}

.parallax-section {
  position: relative;
  overflow: hidden;
}

.parallax-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(253, 108, 29, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(253, 108, 29, 0.08) 0%, transparent 50%);
  z-index: 0;
}

.parallax-bg-light {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 100%);
  z-index: 0;
}

.parallax-bg-dark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(253, 108, 29, 0.1);
  color: var(--accent);
  padding: 8px 16px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 24px 0;
  color: var(--text);
  animation: fadeInUp 0.6s ease 0.1s backwards;
}

.hero-title .highlight {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--muted);
  margin: 0 0 48px 0;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  animation: fadeInUp 0.6s ease 0.2s backwards;
}

.hero-stats {
  display: flex;
  gap: 48px;
  justify-content: center;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s ease 0.3s backwards;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero-stat i {
  font-size: 32px;
  color: var(--accent);
}

.stat-number {
  font-size: 36px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
  max-width: 150px;
}

.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  animation: fadeInUp 0.6s ease 0.4s backwards;
}

/* ===== SECTIONS ===== */
.section-container {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 32px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-badge {
  display: inline-block;
  background: rgba(253, 108, 29, 0.1);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.section-badge.light {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.section-title {
  font-size: 40px;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}

.section-title.light {
  color: white;
}

/* ===== BENEFITS SECTION ===== */
.benefits-section {
  background: var(--bg);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 2), 1fr);
  gap: 32px;
}

.team-grid {
  grid-template-columns: repeat(3, 1fr);
}

.benefit-card {
  background: white;
  padding: 32px;
  border-radius: 16px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  transition: all 0.3s ease;
}

.benefit-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.benefit-card.accent-border {
  border-left: 4px solid var(--accent);
}

.benefit-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.benefit-icon i {
  font-size: 28px;
  color: white;
}

.benefit-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.benefit-card p {
  font-size: 14px;
  color: var(--accent);
  margin: 0 0 16px 0;
  font-weight: 500;
}

.benefit-detail {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ===== FEATURES SECTION ===== */
.features-section {
  background: var(--bg-light);
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.features-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  padding: 24px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s ease;
  border: 1px solid rgba(0, 0, 0, 0.06);
}

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

.feature-icon {
  font-size: 40px;
  color: var(--accent);
  margin-bottom: 16px;
}

.feature-card img {
  height: 40px;
  width: auto;
  margin-bottom: 16px;
  object-fit: contain;
}

.feature-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.feature-card p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

/* ===== HOW IT WORKS SECTION ===== */
.how-it-works-section {
  background: white;
}

.architecture-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-bottom: 64px;
  flex-wrap: wrap;
}

.flow-step {
  position: relative;
  text-align: center;
  max-width: 200px;
}

.flow-number {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
}

.flow-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 24px auto 16px;
}

.flow-icon i {
  font-size: 32px;
  color: white;
}

.flow-step h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text);
}

.flow-step p {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
  line-height: 1.4;
}

.flow-arrow {
  font-size: 24px;
  color: var(--accent);
  opacity: 0.4;
}

.tech-stack {
  text-align: center;
  background: var(--bg-light);
  padding: 32px;
  border-radius: 16px;
}

.tech-stack h3 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 32px 0;
  color: var(--text);
}

.tech-logos {
  display: flex;
  gap: 48px;
  justify-content: center;
  flex-wrap: wrap;
}

.tech-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.tech-item i {
  font-size: 48px;
  color: var(--accent);
}

.tech-item img {
  height: 48px;
  width: auto;
  object-fit: contain;
}

.tech-item span {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

/* ===== PERFORMANCE SECTION ===== */
.performance-section {
  background: var(--bg-dark);
  color: white;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
}

.metric-card {
  background: rgba(255, 255, 255, 0.05);
  padding: 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

.metric-card:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateY(-4px);
}

.metric-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 20px 0;
  color: white;
}

.metric-card canvas {
  margin-bottom: 16px;
}

.metric-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.metric-footer i {
  color: #4ade80;
}

/* ===== CTA SECTION ===== */
.cta-section {
  position: relative;
  z-index: 10;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  padding: 80px 32px;
  text-align: center;
}

.cta-container h2 {
  font-size: 40px;
  font-weight: 700;
  color: white;
  margin: 0 0 16px 0;
}

.cta-container p {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.9);
  margin: 0 0 32px 0;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.cta-buttons .btn-primary {
  background: white;
  color: var(--accent);
}

.cta-buttons .btn-secondary {
  background: transparent;
  color: white;
  border-color: white;
}

.cta-buttons .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* ===== SCROLL TO TOP BUTTON ===== */
.scroll-to-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 4px 12px rgba(253, 108, 29, 0.4);
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.scroll-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(253, 108, 29, 0.5);
}

.scroll-to-top:active {
  transform: translateY(-2px);
}

/* ===== FOOTER ===== */
.landing-footer {
  position: relative;
  z-index: 10;
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.8);
  padding: 64px 32px 32px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  flex: 1.5;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.footer-links {
  flex: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
}

.footer-logo {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.footer-brand p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.6);
  margin: 0;
}

.footer-column h4 {
  font-size: 14px;
  font-weight: 700;
  color: white;
  margin: 0 0 16px 0;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.footer-column a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 12px;
  transition: color 0.2s ease;
}

.footer-column a:hover {
  color: var(--accent);
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
  padding-bottom: 0;
}

.footer-bottom p {
  margin: 0;
  padding-bottom: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.4);
}

/* ===== RULES SHOWCASE SECTION ===== */
.rules-showcase-section {
  background: linear-gradient(135deg, #f9f9f9 0%, #ffffff 50%, #f9f9f9 100%);
  position: relative;
  overflow: hidden;
}

.rules-showcase-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 15% 50%, rgba(253, 108, 29, 0.06) 0%, transparent 50%),
    radial-gradient(circle at 85% 50%, rgba(253, 108, 29, 0.06) 0%, transparent 50%);
  pointer-events: none;
}

.rules-showcase-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.rules-showcase-text {
  z-index: 1;
  position: relative;
}

.rules-showcase-text .section-badge {
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.rules-showcase-text .section-title {
  text-align: left;
  margin-bottom: 16px;
}

.rules-showcase-text .section-intro {
  text-align: left;
  margin-bottom: 32px;
  font-size: 16px;
  color: var(--muted);
  line-height: 1.7;
}

.rules-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 32px;
}

.rules-feature-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 16px;
  background: white;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  transition: all 0.3s ease;
}

.rules-feature-item:hover {
  transform: translateX(8px);
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(253, 108, 29, 0.15);
}

.rules-feature-item i {
  font-size: 24px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 4px;
}

.rules-feature-item h4 {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 4px 0;
  color: var(--text);
}

.rules-feature-item p {
  font-size: 14px;
  color: var(--muted);
  margin: 0;
  line-height: 1.5;
}

.rules-cta-container {
  margin-top: 48px;
  display: flex;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.rules-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: gap 0.3s ease;
  width: 75%;
  max-width: 600px;
}

.rules-cta:hover {
  gap: 16px;
}

.rules-showcase-visual {
  position: relative;
  z-index: 1;
  min-height: 400px;
}

.rule-editor-preview {
  background: white;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.rule-editor-preview:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 48px rgba(253, 108, 29, 0.2);
}

.rule-editor-header {
  background: linear-gradient(135deg, var(--accent) 0%, #ff8c42 100%);
  color: white;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 16px;
  font-weight: 700;
}

.rule-editor-header i {
  font-size: 18px;
}

.rule-editor-section-preview {
  padding: 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.rule-editor-section-preview:last-child {
  border-bottom: none;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
}

.section-label i {
  color: var(--accent);
  font-size: 16px;
}

.ai-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.ai-badge i {
  font-size: 14px;
}

.rule-form-field {
  margin-bottom: 16px;
}

.rule-form-field:last-child {
  margin-bottom: 0;
}

.rule-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.rule-form-field-sm {
  /* Inherits from parent */
}

.field-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.field-value {
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
}

.cache-key-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  background: rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
}

.cache-key-chips .chip {
  background: rgba(59, 130, 246, 0.1);
  color: #3b82f6;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  font-family: 'Courier New', monospace;
}

.json-preview {
  background: #f8f9fa;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 6px;
  padding: 12px 16px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.json-line {
  color: var(--text);
}

.json-indent {
  padding-left: 20px;
}

.json-key {
  color: #d73a49;
  font-weight: 600;
}

.json-string {
  color: #032f62;
}

/* ===== ANIMATIONS ===== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .hero-title {
    font-size: 36px;
  }

  .hero-subtitle {
    font-size: 16px;
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
    align-items: center;
  }

  .hero-cta {
    flex-direction: column;
  }

  .hamburger-menu {
    display: flex;
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    height: 100vh;
    width: 70%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 24px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.1);
    transition: right 0.3s ease;
    z-index: 1000;
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 18px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  }

  /* Remove button styling from Dashboard link on mobile */
  .nav-links .btn-primary {
    background: none;
    color: var(--text);
    padding: 12px 0;
    border-radius: 0;
    box-shadow: none;
    border: none;
    display: block;
    width: 100%;
    text-align: center;
  }

  .nav-links .btn-primary:hover {
    color: var(--accent);
    transform: none;
    box-shadow: none;
  }

  /* Mobile dropdown styles */
  .nav-dropdown {
    width: 100%;
  }

  .nav-dropdown-content {
    position: static;
    display: none;
    box-shadow: none;
    border: none;
    padding: 0;
    margin: 8px 0 0 0;
    background: rgba(253, 108, 29, 0.05);
    border-radius: 4px;
  }

  .nav-dropdown.active .nav-dropdown-content {
    display: block;
  }

  .nav-dropdown-content a {
    font-size: 16px;
    padding: 10px 16px;
    border-bottom: none;
  }

  .nav-dropdown > a::after {
    content: " \25BC";
    font-size: 10px;
    margin-left: 8px;
  }

  .nav-dropdown.active > a::after {
    content: " \25B2";
  }

  .architecture-flow {
    flex-direction: column;
  }

  .flow-arrow {
    transform: rotate(90deg);
  }

  .footer-container {
    flex-direction: column;
    gap: 32px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section-title {
    font-size: 28px;
  }

  .benefits-grid,
  .features-grid,
  .features-grid-2col,
  .metrics-grid {
    grid-template-columns: 1fr;
  }

  .scroll-to-top {
    bottom: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
  }

  /* Rules Showcase Section - Mobile */
  .rules-showcase-content {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .rules-showcase-text .section-title,
  .rules-showcase-text .section-intro {
    text-align: center;
  }

  .rules-showcase-text .section-badge {
    display: flex;
    justify-content: center;
  }

  .rules-showcase-visual {
    min-height: auto;
  }

  .rule-editor-preview {
    font-size: 13px;
  }

  .rule-form-row {
    grid-template-columns: 1fr;
  }

  .json-preview {
    font-size: 11px;
  }

  .rules-cta-container {
    margin-top: 32px;
  }

  .rules-cta {
    width: 100%;
    max-width: none;
  }
}
