/* src/public/css/landing.css */

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

:root {
  --bg-dark: #050505;
  --bg-card: rgba(15, 15, 20, 0.6);
  --bg-card-hover: rgba(25, 25, 30, 0.8);
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(59, 130, 246, 0.5);
  
  --primary: #3b82f6;
  --primary-hover: #2563eb;
  --primary-glow: rgba(59, 130, 246, 0.3);
  
  --accent: #8b5cf6;
  --accent-glow: rgba(139, 92, 246, 0.3);

  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dark: #334155;
  
  --font-main: 'Inter', -apple-system, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

/* Scroll Animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}
.delay-100 { transition-delay: 100ms; }
.delay-200 { transition-delay: 200ms; }
.delay-300 { transition-delay: 300ms; }

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Background Gradients */
.bg-glow-1 {
  position: absolute;
  top: -20%;
  left: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, var(--primary-glow) 0%, transparent 60%);
  z-index: -1;
  filter: blur(100px);
}
.bg-glow-2 {
  position: absolute;
  top: 40%;
  right: -10%;
  width: 40vw;
  height: 40vw;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
  z-index: -1;
  filter: blur(100px);
}

/* Layout */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

section {
  padding-top: 120px;
  padding-bottom: 120px;
}

/* Typography */
h1, h2, h3, h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.gradient-text {
  background: linear-gradient(135deg, #60a5fa, #c084fc);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title {
  text-align: center;
  font-size: 3rem;
  margin-bottom: 16px;
}

.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 64px auto;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-main);
  border: 1px solid var(--border-light);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Header */
header {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  background: rgba(5, 5, 5, 0.8);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  padding: 16px 0;
}

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

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
}

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

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

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

.auth-buttons {
  display: flex;
  gap: 16px;
  align-items: center;
}

/* Hero Section */
.hero {
  padding: 160px 0 100px 0;
  text-align: center;
}

.hero-pill {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 99px;
  background: rgba(59, 130, 246, 0.1);
  border: 1px solid var(--border-glow);
  color: #60a5fa;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 24px;
}

.hero h1 {
  font-size: 4.5rem;
  max-width: 800px;
  margin: 0 auto 24px auto;
}

.hero p {
  font-size: 1.25rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto 40px auto;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
}

/* Glass Cards */
.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.glass-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Problem & Solution */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}

.feature-list {
  list-style: none;
  margin-top: 24px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  color: var(--text-muted);
}

.feature-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-red { background: rgba(239, 68, 68, 0.1); color: #ef4444; }
.icon-green { background: rgba(16, 185, 129, 0.1); color: #10b981; }

/* Use Cases */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.use-case-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

/* Comparison Table */
.comparison-wrapper {
  overflow-x: auto;
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border-light);
}

.comparison-table th,
.comparison-table td {
  padding: 16px 24px;
  text-align: left;
  border-bottom: 1px solid var(--border-light);
}

.comparison-table th {
  background: rgba(255, 255, 255, 0.02);
  font-weight: 600;
  color: var(--text-main);
}

.comparison-table th.highlight {
  background: rgba(59, 130, 246, 0.1);
  color: #60a5fa;
}

.comparison-table td.highlight {
  background: rgba(59, 130, 246, 0.03);
}

/* Pricing */
.pricing-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

.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(--border-light);
  transition: .4s;
  border-radius: 34px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary);
}

input:checked + .slider:before {
  transform: translateX(22px);
}

/* Pricing List Layout */
.pricing-list-container {
  max-width: 800px;
  margin: 0 auto;
}

.pricing-list-header {
  display: flex;
  justify-content: space-between;
  padding: 0 24px 16px 24px;
  color: var(--text-main);
}

.pricing-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pricing-list-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #141b2d; /* matching screenshot dark blue */
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 24px;
  transition: border-color 0.3s ease, background 0.3s ease;
  cursor: pointer;
}

.pricing-list-item:hover,
.pricing-list-item.active {
  border-color: #3b82f6;
  background: #172136; /* slightly lighter on hover/active */
}

.pricing-list-item .plan-accounts {
  font-size: 1.125rem;
  font-weight: 500;
  color: #e2e8f0;
}

.pricing-list-item .plan-price {
  font-size: 1.125rem;
  font-weight: 600;
  color: #f8fafc;
}

/* FAQ */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 500;
}

.faq-answer {
  color: var(--text-muted);
  margin-top: 16px;
  display: none;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(45deg);
}

.faq-icon {
  transition: transform 0.3s;
}

/* CTA Banner */
.cta-banner {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(139, 92, 246, 0.1));
  border: 1px solid var(--border-glow);
  border-radius: 24px;
  padding: 64px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 64px 0 32px 0;
  background: #020202;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: 20px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 12px;
}

.footer-col ul a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-col ul a:hover {
  color: var(--text-main);
}

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  color: var(--text-muted);
  font-size: 0.875rem;
}

/* Responsive */
@media (max-width: 768px) {
  section { padding-top: 60px; padding-bottom: 60px; }
  .hero { padding: 120px 0 60px 0; }
  .hero h1 { font-size: 2.5rem; }
  .grid-2, .grid-3, .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-links { display: none; }
  .cta-banner { padding: 40px 20px; }
  .cta-banner h2 { font-size: 2rem; }
}
