@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Requested Color Palette */
  --color-1: #db5d17;
  --color-2: #d7581e;
  --color-3: #c12914;
  --color-4: #cf4d2a;
  
  /* Light Mode Defaults */
  --bg-main: #ffffff;
  --bg-card: rgba(255, 255, 255, 0.7);
  --text-main: #000000;
  --text-muted: #555555;
  --primary: var(--color-1);
  --primary-hover: var(--color-3);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.08);
}

[data-theme="dark"] {
  /* Dark Mode Overrides */
  --bg-main: #000000;
  --bg-card: rgba(20, 20, 20, 0.7);
  --text-main: #ffffff;
  --text-muted: #aaaaaa;
  --primary: var(--color-1);
  --primary-hover: var(--color-2);
  --glass-border: rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 8px 32px 0 rgba(255, 255, 255, 0.05);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Outfit', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s ease, color 0.3s ease;
}

/* Background glowing orbs using the orange/red palette */
body::before, body::after {
  content: '';
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(150px);
  z-index: -1;
  opacity: 0.15;
  animation: float 10s infinite ease-in-out alternate;
}

body::before {
  background: radial-gradient(circle, var(--color-1), transparent);
  top: -10vw;
  left: -20vw;
}

body::after {
  background: radial-gradient(circle, var(--color-4), transparent);
  bottom: 10%;
  right: -20vw;
  animation-delay: -5s;
}

@keyframes float {
  0% { transform: translate(0, 0); }
  100% { transform: translate(50px, 50px); }
}

/* Containers with 7% margin instead of width/max-width */
.container {
  margin-left: 7%;
  margin-right: 7%;
}

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  margin-bottom: 1rem;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--color-1), var(--color-4));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-ai {
  background: linear-gradient(135deg, var(--color-3), var(--color-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 32px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 1.1rem;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
  border: none;
  gap: 10px;
}

.btn-primary {
  background: linear-gradient(135deg, var(--color-1), var(--color-3));
  color: #ffffff;
  box-shadow: 0 10px 20px -10px var(--color-1);
}

.btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 15px 25px -10px var(--color-3);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
}

.btn-outline:hover {
  background: rgba(128, 128, 128, 0.1);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  padding: 15px 0;
  z-index: 100;
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  transition: background 0.3s ease;
}

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

.logo-container img {
  height: 40px;
  width: auto;
  display: block;
}

/* Logo toggling */
body[data-theme="dark"] .logo-light { display: none; }
body[data-theme="dark"] .logo-dark { display: block; }
body:not([data-theme="dark"]) .logo-dark { display: none; }
body:not([data-theme="dark"]) .logo-light { display: block; }

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-link {
  color: var(--text-main);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 15px;
}

.theme-toggle {
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 5px;
  transition: color 0.3s ease;
}
.theme-toggle:hover { color: var(--primary); }

/* Hero Section */
.hero {
  padding: 120px 0 80px;
  text-align: center;
  min-height: calc(100vh - 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero p.subtitle {
  font-size: 1.2rem;
  color: var(--text-muted);
  margin: 0 auto 40px;
  font-weight: 400;
  /* Instead of max-width, use percentages */
  margin-left: 15%;
  margin-right: 15%;
}

.hero-tag {
  display: inline-block;
  padding: 8px 16px;
  background: rgba(219, 93, 23, 0.1);
  color: var(--color-1);
  border: 1px solid rgba(219, 93, 23, 0.2);
  border-radius: 50px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
  letter-spacing: 1px;
}

.hero .micro-text {
  display: block;
  margin-top: 16px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 40px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease, background 0.3s ease;
}

/* Section */
.section {
  padding: 80px 0;
}

.qr-advantage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.qr-text h2 {
  text-align: left;
}

.qr-text p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 24px;
}

.qr-visual .glass-card {
  text-align: center;
}

.qr-visual i.fa-qrcode {
  font-size: 8rem;
  color: var(--color-1);
  margin-bottom: 20px;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 1; }
  100% { transform: scale(1); opacity: 0.8; }
}

/* Modules Grid */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.module-card {
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.module-card:hover {
  transform: translateY(-5px);
}

.module-icon {
  width: 60px;
  height: 60px;
  background: rgba(219, 93, 23, 0.1);
  color: var(--color-1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.module-card h3 {
  font-size: 1.2rem;
  margin: 0;
}

.module-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* AI Section */
.ai-section {
  text-align: center;
  position: relative;
  overflow: hidden;
  border-color: rgba(207, 77, 42, 0.3);
}

.ai-section i.fa-robot {
  font-size: 4rem;
  color: var(--color-4);
  margin-bottom: 24px;
}

.ai-section p {
  margin: 0 10%;
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Pricing Section */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  align-items: stretch;
}

.pricing-card {
  padding: 40px 30px;
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--color-1);
  transform: scale(1.03);
  box-shadow: 0 20px 40px rgba(219, 93, 23, 0.15);
}

.pricing-card.popular::before {
  content: attr(data-badge);
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-1);
  color: #ffffff;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.plan-name { font-size: 1.5rem; font-weight: 700; margin-bottom: 10px; }
.plan-price { font-size: 3rem; font-weight: 800; margin-bottom: 10px; }
.plan-price span { font-size: 1rem; color: var(--text-muted); font-weight: 400; }
.plan-desc { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 30px; min-height: 40px; }
.plan-features { list-style: none; margin-bottom: 40px; flex-grow: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 15px; font-size: 0.95rem; color: var(--text-main); }
.plan-features li i { color: var(--color-1); margin-top: 4px; }
.pricing-card .btn { width: 100%; }

/* CTA Section */
.cta-section {
  text-align: center;
  padding: 100px 0;
}

.cta-section p {
  color: var(--text-muted);
  margin-bottom: 40px;
  font-size: 1.2rem;
}

/* FAQ Accordion */
.pricing-faq {
  padding: 80px 0;
  max-width: 800px;
  margin: 0 auto;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.faq-item {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  padding: 30px;
  box-shadow: var(--glass-shadow);
  transition: transform 0.3s ease;
}

.faq-item:hover {
  transform: translateY(-3px);
}

.faq-item h4 {
  font-size: 1.2rem;
  margin-bottom: 12px;
  color: var(--color-1);
}

.faq-item p {
  color: var(--text-muted);
  font-size: 1rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 40px 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .qr-advantage { grid-template-columns: 1fr; text-align: center; }
  .qr-text h2 { text-align: center; }
  .pricing-card.popular { transform: none; }
  .nav-links { display: none; /* simple mobile hide for now */ }
  .hero p.subtitle { margin-left: 5%; margin-right: 5%; }
}
