/* SaaS Launchpad Pro - Design System */

:root {
  --bg-dark: #07090e;
  --bg-card: rgba(15, 23, 42, 0.6);
  --bg-card-hover: rgba(30, 41, 59, 0.8);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --accent-cyan: #06b6d4;
  --accent-violet: #8b5cf6;
  --accent-gradient: linear-gradient(135deg, var(--accent-cyan), var(--accent-violet));
  --border-subtle: rgba(255, 255, 255, 0.08);
  --font-sans: 'Inter', -apple-system, sans-serif;
  --glass-bg: rgba(15, 23, 42, 0.65);
  --glass-border: rgba(255, 255, 255, 0.1);
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 50%, rgba(6, 182, 212, 0.08), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(139, 92, 246, 0.08), transparent 25%);
  background-attachment: fixed;
}

.glassmorphism {
  background: var(--glass-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
}

/* Glass Header */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 20px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(7, 9, 14, 0.7);
}

.logo {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-links {
  display: flex;
  gap: 24px;
}
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--text-main);
}

.btn {
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
  border: none;
  text-decoration: none;
  display: inline-block;
}
.btn-primary {
  background: var(--text-main);
  color: var(--bg-dark);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(255,255,255,0.1);
}
.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-subtle);
}
.btn-outline:hover {
  background: var(--border-subtle);
}

/* Hero Section */
.hero {
  padding: 160px 5% 100px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 6px 14px;
  background: rgba(139, 92, 246, 0.1);
  color: var(--accent-violet);
  border: 1px solid rgba(139, 92, 246, 0.2);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: 56px;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 24px;
  font-weight: 800;
}
.hero p {
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
}

.hero-mockup {
  margin-top: 60px;
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  padding: 10px;
  box-shadow: 0 30px 60px rgba(0,0,0,0.4);
  transform: perspective(1000px) rotateX(5deg);
  transition: transform 0.5s;
}
.hero-mockup:hover {
  transform: perspective(1000px) rotateX(0deg);
}
.hero-mockup img {
  width: 100%;
  border-radius: 10px;
  display: block;
  min-height: 400px;
  object-fit: cover;
}

/* Section Common */
.section-head {
  text-align: center;
  margin-bottom: 60px;
}
.section-head h2 {
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
}
.section-head p {
  color: var(--text-muted);
}

/* Tabbed Features */
.features {
  padding: 100px 5%;
  max-width: 1000px;
  margin: 0 auto;
}
.tabs-nav {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}
.tab-btn {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s;
}
.tab-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-main);
}
.tab-btn.active {
  background: var(--accent-gradient);
  color: #fff;
  border-color: transparent;
}
.tab-content {
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}
.tab-content.active {
  display: block;
}
.feature-detail {
  display: flex;
  gap: 40px;
  align-items: center;
}
.feature-text {
  flex: 1;
}
.feature-text h3 {
  font-size: 28px;
  margin-bottom: 16px;
}
.feature-text p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 16px;
}
.feature-text ul {
  list-style: none;
}
.feature-text ul li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-main);
}
.feature-text ul li::before {
  content: "✓";
  color: var(--accent-cyan);
  font-weight: bold;
}
.feature-image {
  flex: 1;
}
.glass-box {
  width: 100%;
  height: 300px;
  border-radius: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--text-muted);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
}

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

/* Interactive ROI Calculator */
.roi-section {
  padding: 100px 5%;
}
.roi-container {
  max-width: 800px;
  margin: 0 auto;
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.roi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.roi-label h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.roi-label p {
  font-size: 13px;
  color: var(--text-muted);
}
.roi-input {
  display: flex;
  align-items: center;
  gap: 12px;
}
.roi-input input[type="range"] {
  width: 200px;
  accent-color: var(--accent-violet);
  cursor: pointer;
}
.roi-value {
  font-weight: 700;
  font-size: 18px;
  width: 60px;
  text-align: right;
  color: var(--accent-cyan);
}
.roi-result {
  text-align: center;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
}
.roi-result-val {
  font-size: 56px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin: 8px 0;
}

/* Pricing Section */
.pricing-section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.billing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 24px;
  font-weight: 500;
}
.billing-toggle span {
  transition: color 0.3s;
}
.billing-toggle span.active {
  color: var(--text-main);
}
.billing-toggle span:not(.active) {
  color: var(--text-muted);
}
.discount-badge {
  background: rgba(34, 197, 94, 0.1);
  color: #22c55e;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  margin-left: 8px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  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: var(--bg-card-hover);
  transition: .4s;
}
.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
}
.slider.round {
  border-radius: 34px;
}
.slider.round:before {
  border-radius: 50%;
}
input:checked + .slider {
  background: var(--accent-gradient);
}
input:checked + .slider:before {
  transform: translateX(22px);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
  margin-top: 40px;
}
.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 24px;
  padding: 40px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s;
}
.pricing-card.popular {
  border-color: var(--accent-violet);
  transform: scale(1.02);
  position: relative;
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent-gradient);
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
}
.pricing-card:hover {
  border-color: rgba(6, 182, 212, 0.4);
}
.pricing-name {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 12px;
}
.pricing-price {
  font-size: 48px;
  font-weight: 800;
  margin-bottom: 8px;
}
.pricing-price span {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
}
.pricing-desc {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}
.pricing-features {
  list-style: none;
  margin-bottom: 40px;
  flex: 1;
}
.pricing-features li {
  margin-bottom: 16px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pricing-features li::before {
  content: "✓";
  color: var(--accent-cyan);
  font-weight: bold;
}
.pricing-card .btn {
  width: 100%;
}

/* FAQ Section */
.faq-section {
  padding: 100px 5%;
  max-width: 800px;
  margin: 0 auto;
}
.faq-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: inherit;
}
.faq-question .icon {
  font-size: 20px;
  transition: transform 0.3s;
}
.faq-item.open .faq-question .icon {
  transform: rotate(45deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 24px;
}
.faq-item.open .faq-answer {
  padding: 0 24px 20px;
  max-height: 200px;
}
.faq-answer p {
  color: var(--text-muted);
  font-size: 15px;
}

/* Demo Modal */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  backdrop-filter: blur(4px);
}
.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}
.modal-content {
  width: 90%;
  max-width: 500px;
  padding: 40px;
  border-radius: 24px;
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 28px;
  cursor: pointer;
}
.close-modal:hover {
  color: var(--text-main);
}
.modal-content h2 {
  font-size: 28px;
  margin-bottom: 8px;
}
.modal-content p {
  color: var(--text-muted);
  margin-bottom: 32px;
}
.demo-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.demo-form input, .demo-form select {
  padding: 14px 20px;
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 15px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s;
}
.demo-form input:focus, .demo-form select:focus {
  border-color: var(--accent-violet);
}
.demo-form button {
  margin-top: 8px;
  padding: 16px;
  font-size: 16px;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #22c55e;
  color: #fff;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.3s;
  z-index: 1000;
}
.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Social Proof Toast */
.social-proof-toast {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  transform: translateX(-150%);
  opacity: 0;
  transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 900;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
}
.social-proof-toast.show {
  transform: translateX(0);
  opacity: 1;
}
.social-proof-toast .icon {
  font-size: 24px;
}
.social-proof-toast .text {
  display: flex;
  flex-direction: column;
}
.social-proof-toast .text strong {
  font-size: 14px;
}
.social-proof-toast .text small {
  color: var(--text-muted);
  font-size: 12px;
}

@media (max-width: 768px) {
  .hero h1 { font-size: 40px; }
  .roi-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .roi-input input[type="range"] { width: 100%; }
  .feature-detail { flex-direction: column; }
}


/* Stats Section */
.stats-section {
  padding: 40px 5%;
  background: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.stats-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
  max-width: 1000px;
  margin: 0 auto;
}
.stat-item {
  text-align: center;
}
.stat-item h3 {
  font-size: 48px;
  font-weight: 800;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}
.stat-item p {
  color: var(--text-muted);
  font-size: 16px;
  font-weight: 500;
}

/* Testimonials Section */
.testimonials-section {
  padding: 100px 5%;
  max-width: 1200px;
  margin: 0 auto;
}
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 32px;
}
.testimonial-card {
  padding: 32px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.quote {
  font-size: 18px;
  font-style: italic;
  margin-bottom: 32px;
  line-height: 1.6;
}
.author {
  display: flex;
  align-items: center;
  gap: 16px;
}
.author img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--accent-violet);
}
.author-info h4 {
  font-size: 16px;
  margin-bottom: 4px;
}
.author-info p {
  color: var(--text-muted);
  font-size: 14px;
}

/* Footer Section */
.footer-section {
  background: rgba(7, 9, 14, 0.9);
  border-top: 1px solid var(--border-subtle);
  padding: 80px 5% 40px;
  margin-top: 60px;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto 60px;
}
.footer-brand {
  max-width: 300px;
}
.footer-brand .logo {
  margin-bottom: 16px;
  display: inline-block;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: 15px;
}
.footer-links {
  display: flex;
  gap: 80px;
  flex-wrap: wrap;
}
.link-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.link-group h4 {
  font-size: 16px;
  margin-bottom: 8px;
  color: var(--text-main);
}
.link-group a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.link-group a:hover {
  color: var(--accent-cyan);
}
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom p {
  color: var(--text-muted);
  font-size: 14px;
}
.social-links {
  display: flex;
  gap: 16px;
}
.social-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
}
.social-links a:hover {
  color: var(--text-main);
}
