:root {
  --bg: #0d091f;
  --bg-gradient: radial-gradient(1100px 700px at 10% -10%, rgba(255, 94, 196, 0.28), transparent 60%),
                 radial-gradient(900px 700px at 100% 10%, rgba(79, 209, 255, 0.22), transparent 55%),
                 radial-gradient(1000px 800px at 50% 120%, rgba(46, 230, 166, 0.18), transparent 60%),
                 #0d091f;
  --panel: #181135;
  --panel-card: rgba(30, 22, 64, 0.75);
  --panel-border: rgba(124, 92, 255, 0.25);
  --panel-border-hover: rgba(255, 94, 196, 0.5);
  --text: #f4f0ff;
  --text-muted: #aca0d6;
  --text-dim: #7f74a8;
  
  --accent-pink: #ff5ec4;
  --accent-purple: #7c5cff;
  --accent-cyan: #4fd1ff;
  --accent-green: #2ee6a6;
  --accent-orange: #ffb347;
  --accent-hover: #ff7bd1;
  --error: #ff5c7a;
  
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --shadow-glow: 0 0 30px rgba(124, 92, 255, 0.25);
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

/* Layout Utilities */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 60px;
}

.section-tag {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.35);
  color: var(--accent-cyan);
  margin-bottom: 16px;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 16px;
}

.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
}

/* Shimmer and Gradient Text */
.gradient-text {
  background: linear-gradient(90deg, var(--accent-pink), var(--accent-orange), var(--accent-cyan), var(--accent-green));
  background-size: 300% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

@keyframes shimmer {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: #ffffff;
  box-shadow: 0 6px 20px -4px rgba(255, 94, 196, 0.5);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(255, 94, 196, 0.7);
  background: linear-gradient(135deg, var(--accent-hover), var(--accent-purple));
}

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

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-2px);
}

.btn-download {
  background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
  color: #ffffff;
  box-shadow: 0 6px 20px -4px rgba(79, 209, 255, 0.4);
}

.btn-download:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(79, 209, 255, 0.6);
  background: linear-gradient(135deg, #6ee0ff, var(--accent-purple));
}

.btn-lg {
  padding: 16px 34px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* Navbar */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  background: rgba(13, 9, 31, 0.75);
  border-bottom: 1px solid rgba(124, 92, 255, 0.15);
}

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

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #181135;
  border: 1px solid var(--panel-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-purple);
  font-size: 1.3rem;
  font-weight: bold;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s ease;
}

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

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

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  background: rgba(255, 94, 196, 0.1);
  border: 1px solid rgba(255, 94, 196, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-pink);
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.hero-description {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-muted);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.trust-strip {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 60px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
}

/* Hero Showcase Card */
.hero-card-wrapper {
  max-width: 840px;
  margin: 0 auto;
  perspective: 1000px;
}

.hero-card {
  background: linear-gradient(180deg, rgba(30, 22, 64, 0.9), rgba(20, 14, 46, 0.95));
  border: 1px solid rgba(124, 92, 255, 0.35);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px -20px rgba(124, 92, 255, 0.4), 0 0 0 1px rgba(255, 94, 196, 0.1);
  overflow: hidden;
  text-align: left;
}

.card-header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  background: rgba(13, 9, 31, 0.6);
  border-bottom: 1px solid var(--panel-border);
}

.window-dots {
  display: flex;
  gap: 6px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red { background: #ff5f56; }
.dot-yellow { background: #ffbd2e; }
.dot-green { background: #27c93f; }

.card-header-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-dim);
}

.card-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.chat-bubble-user {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  padding: 12px 18px;
  border-radius: 16px;
  border-bottom-right-radius: 4px;
  font-weight: 500;
  max-width: 80%;
  box-shadow: 0 4px 15px rgba(255, 94, 196, 0.3);
}

.chat-bubble-agent {
  align-self: flex-start;
  background: rgba(36, 26, 77, 0.85);
  border: 1px solid var(--panel-border);
  border-left: 4px solid var(--accent-cyan);
  padding: 18px 20px;
  border-radius: 16px;
  border-bottom-left-radius: 4px;
  max-width: 90%;
  color: var(--text);
}

.badge-cas {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(46, 230, 166, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(46, 230, 166, 0.4);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
}

/* Feature Grid */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

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

.feature-card {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent-purple), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--panel-border-hover);
  box-shadow: var(--shadow-card), var(--shadow-glow);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon-wrapper {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  background: rgba(124, 92, 255, 0.15);
  border: 1px solid rgba(124, 92, 255, 0.3);
  color: var(--accent-cyan);
}

.feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Interactive Playground Section */
.playground-box {
  background: linear-gradient(180deg, var(--panel), #140e2e);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-card);
}

.presets-container {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.preset-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--panel-border);
  color: var(--text-muted);
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.preset-chip:hover, .preset-chip.active {
  background: linear-gradient(135deg, rgba(255, 94, 196, 0.2), rgba(124, 92, 255, 0.2));
  border-color: var(--accent-pink);
  color: var(--text);
  transform: translateY(-1px);
}

.demo-input-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
}

.demo-input {
  flex: 1;
  background: rgba(13, 9, 31, 0.8);
  border: 2px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.demo-input:focus {
  border-color: var(--accent-cyan);
}

.demo-output-card {
  background: rgba(20, 14, 46, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 24px;
  min-height: 180px;
}

.demo-output-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 12px;
  margin-bottom: 16px;
}

.demo-output-text {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* Steps Pipeline */
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  position: relative;
}

.step-card {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  position: relative;
}

.step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-pink), var(--accent-purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.step-title {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 8px;
}

.step-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
}

/* Download Section & Platform Cards */
.download-section-box {
  background: linear-gradient(180deg, var(--panel), #140e2e);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  padding: 48px 36px;
  box-shadow: var(--shadow-card);
  text-align: center;
}

.download-hero-action {
  max-width: 600px;
  margin: 0 auto 48px;
}

.download-platforms-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  text-align: left;
}

.download-card {
  background: rgba(20, 14, 46, 0.8);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.download-card:hover {
  border-color: var(--accent-cyan);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px -6px rgba(79, 209, 255, 0.3);
}

.download-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.platform-icon {
  font-size: 1.6rem;
}

.download-card-title {
  font-size: 1.1rem;
  font-weight: 700;
}

.download-card-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.download-card-btn {
  width: 100%;
  font-size: 0.88rem;
  padding: 10px;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(9, 6, 20, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background: #181135;
  border: 1px solid rgba(124, 92, 255, 0.4);
  border-radius: var(--radius-lg);
  padding: 36px;
  max-width: 480px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.8), 0 0 40px rgba(124, 92, 255, 0.2);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}

.modal-overlay.active .modal-box {
  transform: translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

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

.modal-title {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 12px;
}

.modal-instruction-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.modal-step-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-purple);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  flex-shrink: 0;
}

/* Comparison Table */
.table-wrapper {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-lg);
  overflow-x: auto;
  box-shadow: var(--shadow-card);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(124, 92, 255, 0.15);
  font-size: 0.95rem;
}

.compare-table th {
  background: rgba(13, 9, 31, 0.8);
  font-weight: 700;
  color: var(--text-muted);
}

.compare-table th.highlight-col, .compare-table td.highlight-col {
  background: rgba(255, 94, 196, 0.08);
  font-weight: 700;
  color: var(--text);
  border-left: 1px solid rgba(255, 94, 196, 0.3);
  border-right: 1px solid rgba(255, 94, 196, 0.3);
}

.compare-table tr:last-child td {
  border-bottom: none;
}

.icon-check {
  color: var(--accent-green);
  font-weight: bold;
}

.icon-cross {
  color: var(--error);
  font-weight: bold;
}

/* FAQ Accordion */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--panel-card);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.faq-item.active {
  border-color: var(--accent-cyan);
}

.faq-question {
  width: 100%;
  padding: 20px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}

.faq-chevron {
  font-size: 1.2rem;
  color: var(--accent-cyan);
  transition: transform 0.2s ease;
}

.faq-item.active .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  padding: 0 24px;
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 20px;
}

/* CTA Banner */
.cta-box {
  background: linear-gradient(135deg, rgba(255, 94, 196, 0.2), rgba(124, 92, 255, 0.25));
  border: 1px solid rgba(255, 94, 196, 0.4);
  border-radius: var(--radius-lg);
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 20px 60px -20px rgba(255, 94, 196, 0.4);
}

.cta-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 16px;
}

.cta-desc {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 30px;
}

/* Footer */
.footer {
  border-top: 1px solid rgba(124, 92, 255, 0.15);
  padding: 48px 0;
  background: rgba(10, 7, 26, 0.9);
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-links {
  display: flex;
  gap: 20px;
  list-style: none;
}

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

/* Responsive Breakpoints */
@media (max-width: 900px) {
  .pipeline {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links, .nav-actions .btn-secondary {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
  .pipeline {
    grid-template-columns: 1fr;
  }
  .demo-input-bar {
    flex-direction: column;
  }
  .section {
    padding: 60px 0;
  }
  .hero-title {
    font-size: 2.2rem;
  }
}

/* Google Auth Button */
.google-btn {
  width: 100%;
  background: #ffffff;
  color: #1f1f1f;
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 16px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  transition: all 0.2s ease;
}

.google-btn:hover {
  background-color: #f2f2f2;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}
