:root {
  --bg-primary: #0f0a1c;
  --bg-secondary: rgba(26, 18, 48, 0.6);
  --bg-panel: rgba(43, 30, 77, 0.4);
  --text-primary: #ffffff;
  --text-secondary: #a79fbe;
  --primary-color: #a855f7;
  --primary-hover: #9333ea;
  --accent-color: #ec4899;
  --border-color: rgba(168, 85, 247, 0.2);
  --border-highlight: rgba(168, 85, 247, 0.5);
}

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

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.blob-bg {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(168,85,247,0.15) 0%, rgba(236,72,153,0.05) 50%, rgba(15,10,28,0) 70%);
  border-radius: 50%;
  z-index: -1;
  pointer-events: none;
  filter: blur(40px);
}

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

/* Typography */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
}

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

/* Navbar */
.navbar {
  padding: 24px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

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

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 8px;
}

.brand-name {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

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

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

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

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  border: none;
}

.btn-primary {
  background: var(--primary-color);
  color: white !important;
  box-shadow: 0 4px 14px rgba(168, 85, 247, 0.3);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(168, 85, 247, 0.4);
}

.btn-secondary {
  background: var(--bg-panel);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: rgba(168, 85, 247, 0.1);
  border-color: var(--border-highlight);
  transform: translateY(-2px);
}

.btn-large {
  padding: 14px 28px;
  font-size: 1.1rem;
}

/* Hero Section */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  padding: 120px 24px;
  min-height: 80vh;
}

.hero-content {
  flex: 1;
  max-width: 600px;
}

.hero-title {
  font-size: 4.5rem;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--text-secondary);
  margin-bottom: 40px;
  font-weight: 400;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  flex: 1;
  display: flex;
  justify-content: center;
  position: relative;
}

/* Glass Mockup */
.glass-mockup {
  background: var(--bg-secondary);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  width: 100%;
  max-width: 500px;
  overflow: hidden;
  transform: perspective(1000px) rotateY(-5deg) rotateX(5deg);
  transition: transform 0.3s ease;
}

.glass-mockup:hover {
  transform: perspective(1000px) rotateY(0deg) rotateX(0deg);
}

.mockup-header {
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--border-color);
}

.dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #4b4453;
  margin-right: 6px;
}

.dots span:nth-child(1) { background: #ef4444; }
.dots span:nth-child(2) { background: #eab308; }
.dots span:nth-child(3) { background: #22c55e; }

.mockup-body {
  padding: 24px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
}

.script-line { margin-bottom: 12px; }
.scene-heading { font-weight: bold; text-transform: uppercase; }
.character { text-align: center; font-weight: bold; margin-top: 16px; }
.dialogue { text-align: center; width: 70%; margin: 0 auto; }
.action { color: #d1d5db; }

.ai-suggestion {
  background: rgba(168, 85, 247, 0.15);
  border-left: 3px solid var(--primary-color);
  padding: 12px;
  border-radius: 4px;
  margin: 16px 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #e9d5ff;
}

/* Features */
.features {
  padding: 100px 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

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

.features-tabs-container {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.features-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.feature-tab {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  padding: 12px 24px;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 500;
  font-size: 1rem;
  transition: all 0.2s ease;
  font-family: inherit;
}

.feature-tab:hover {
  background: rgba(168, 85, 247, 0.1);
  color: var(--text-primary);
  border-color: rgba(168, 85, 247, 0.3);
}

.feature-tab.active {
  background: var(--primary-color);
  color: white;
  border-color: var(--primary-color);
}

.tab-pane {
  display: none !important;
  animation: fadeIn 0.4s ease forwards;
}

.tab-pane.active {
  display: grid !important;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

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

.glass-panel {
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 32px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.glass-panel:hover {
  transform: translateY(-5px);
  border-color: var(--border-highlight);
}

.feature-icon {
  font-size: 2rem;
  margin-bottom: 20px;
  display: inline-block;
  background: rgba(168, 85, 247, 0.1);
  padding: 12px;
  border-radius: 12px;
}

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

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

/* Philosophy Section */
.philosophy {
  margin-top: 2rem;
  margin-bottom: 6rem;
}

.philosophy-panel {
  text-align: center;
  padding: 4rem 3rem;
  border-left: 4px solid var(--primary-color);
  border-right: 4px solid var(--secondary-color);
  background: linear-gradient(135deg, rgba(20,20,30,0.8) 0%, rgba(30,20,40,0.8) 100%);
}

.philosophy-panel h2 {
  font-size: 2.2rem;
  margin-bottom: 1.5rem;
}

.philosophy-panel p {
  font-size: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.8;
  max-width: 800px;
  margin: 0 auto;
}

.philosophy-panel strong {
  color: var(--text-primary);
}

/* CTA Section */
.cta-section {
  padding: 60px 24px 120px;
}

.cta-panel {
  text-align: center;
  background: linear-gradient(135deg, rgba(168,85,247,0.1), rgba(236,72,153,0.05));
  border: 1px solid var(--border-highlight);
}

.cta-panel h2 {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.cta-panel p {
  color: var(--text-secondary);
  margin-bottom: 32px;
  font-size: 1.1rem;
}

/* Footer */
footer {
  border-top: 1px solid rgba(255,255,255,0.05);
  padding: 40px 0;
  margin-top: 40px;
}

.footer-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--text-primary);
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Pricing Section */
.pricing {
  padding: 100px 24px;
}

.pricing-toggle-container {
  display: flex;
  justify-content: center;
  margin-bottom: 48px;
}

.pricing-toggle {
  display: flex;
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: 30px;
  padding: 4px;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  padding: 10px 24px;
  border-radius: 26px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 1rem;
}

.toggle-btn.active {
  background: var(--primary-color);
  color: white;
  box-shadow: 0 4px 10px rgba(168, 85, 247, 0.3);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 64px;
}

.pricing-grid.hidden {
  display: none;
}

.pricing-card {
  display: flex;
  flex-direction: column;
  position: relative;
}

.pricing-card.popular {
  border-color: var(--primary-color);
  transform: scale(1.02);
  box-shadow: 0 10px 40px rgba(168, 85, 247, 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.5px;
}

.pricing-card h3 {
  font-size: 1.5rem;
  margin-bottom: 8px;
}

.price {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.price span {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
}

.plan-desc {
  color: var(--text-secondary);
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.features-list {
  list-style: none;
  margin-bottom: 32px;
  flex-grow: 1;
}

.features-list li {
  margin-bottom: 12px;
  padding-left: 28px;
  position: relative;
}

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

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.top-up-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 800px;
  margin: 0 auto 32px;
  border-color: var(--border-highlight);
}

.top-up-info h3 {
  margin-bottom: 8px;
  font-size: 1.4rem;
}

.top-up-info p {
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.top-up-features {
  list-style: none;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.top-up-features li {
  font-size: 0.9rem;
  background: rgba(255,255,255,0.05);
  padding: 4px 12px;
  border-radius: 12px;
}

.top-up-price {
  text-align: right;
  min-width: 150px;
}

.top-up-price .price {
  margin-bottom: 16px;
}

.pricing-note {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
}

/* Tooltips */
.features-list li.tooltip {
  position: relative;
  cursor: help;
}

.features-list li.tooltip span.feature-text {
  border-bottom: 1px dotted rgba(255,255,255,0.4);
}

.features-list li.tooltip:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 0;
  transform: translateY(-8px);
  background: var(--bg-primary);
  color: var(--text-primary);
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid var(--border-highlight);
  font-size: 0.8rem;
  font-weight: 500;
  width: 220px;
  white-space: normal;
  line-height: 1.4;
  box-shadow: 0 4px 20px rgba(0,0,0,0.5);
  z-index: 10;
  pointer-events: none;
  text-align: left;
}

/* Responsive */
@media (max-width: 900px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 80px 24px;
  }
  
  .hero-actions {
    justify-content: center;
  }

  .hero-title {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .pricing-card.popular {
    transform: scale(1);
  }
  .top-up-section {
    flex-direction: column;
    text-align: center;
  }
  .top-up-price {
    text-align: center;
    width: 100%;
  }
  .top-up-features {
    justify-content: center;
  }
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  justify-content: center;
  align-items: center;
}

.modal.active {
  display: flex;
}

.modal-content {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  width: 90%;
  max-width: 500px;
  padding: 32px;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
  position: relative;
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 24px;
  color: var(--text-secondary);
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  background: transparent;
  border: none;
  line-height: 1;
}

.close-modal:hover {
  color: var(--text-primary);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 24px;
}

.contact-form .form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.contact-form .form-group label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
}

.contact-form .form-group input,
.contact-form .form-group textarea {
  padding: 12px;
  border-radius: 8px;
  border: 1px solid var(--border-color);
  background: rgba(0, 0, 0, 0.2);
  color: var(--text-primary);
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.contact-form .form-group input:focus,
.contact-form .form-group textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.form-status {
  text-align: center;
  margin-top: 16px;
  font-size: 0.9rem;
}

.form-status.success { color: #22c55e; }
.form-status.error { color: #ef4444; }
