/* style.css */
:root {
  --bg: #020617;
  --purple: #8B5CF6;
  --cyan: #22D3EE;
  --pink: #F472B6;
  --text: #FFFFFF;
  --text-dim: #94A3B8;
  --glass: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.1);
  --radius: 24px;
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

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

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

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

.hidden { display: none !important; }

/* Animated Aura Background */
.aura-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  overflow: hidden;
  background: var(--bg);
}

.blob {
  position: absolute;
  width: 60vw;
  height: 60vw;
  filter: blur(120px);
  opacity: 0.4;
  border-radius: 50%;
  animation: move 20s infinite alternate ease-in-out;
}

.purple { background: var(--purple); top: -10%; left: -10%; animation-duration: 25s; }
.cyan { background: var(--cyan); bottom: -10%; right: -10%; animation-duration: 30s; }
.pink { background: var(--pink); top: 40%; left: 30%; animation-duration: 22s; }

@keyframes move {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(10%, 15%) scale(1.1); }
  100% { transform: translate(-5%, -10%) scale(0.9); }
}

/* Glassmorphism Cards */
.glass-card {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 32px;
}

/* Typography */
h1 {
  font-family: var(--font-display);
  font-size: clamp(40px, 8vw, 80px);
  line-height: 1.1;
  font-weight: 800;
  margin-bottom: 24px;
}

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

/* Header */
header {
  padding: 24px 0;
}

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

.logo {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  text-decoration: none;
  color: var(--text);
}

.status-pill {
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid rgba(34, 211, 238, 0.2);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 14px;
  font-weight: 600;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 8px;
}

.pulse {
  width: 8px;
  height: 8px;
  background: var(--cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--cyan);
  animation: pulse-anim 2s infinite;
}

@keyframes pulse-anim {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.5); opacity: 0.5; }
  100% { transform: scale(1); opacity: 1; }
}

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

.hero .sub {
  font-size: 20px;
  color: var(--text-dim);
  max-width: 700px;
  margin: 0 auto 48px;
}

.start-box {
  max-width: 480px;
  margin: 0 auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}

.checkbox-area {
  margin-bottom: 24px;
  text-align: left;
}

.check-container {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text-dim);
}

.check-container input { display: none; }

.checkmark {
  min-width: 20px;
  height: 20px;
  border: 2px solid var(--glass-border);
  border-radius: 6px;
  position: relative;
  margin-top: 2px;
}

.check-container input:checked + .checkmark {
  background: var(--pink);
  border-color: var(--pink);
}

.check-container input:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
}

.error-hint {
  color: var(--pink);
  font-size: 12px;
  font-weight: 600;
  margin-top: 8px;
  display: none;
}

.glow-button {
  width: 100%;
  padding: 20px;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--cyan), var(--pink));
  border: none;
  border-radius: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 0 20px rgba(244, 114, 182, 0.3);
}

.glow-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(244, 114, 182, 0.5);
}

.shake {
  animation: shake-anim 0.5s cubic-bezier(.36,.07,.19,.97) both;
}

@keyframes shake-anim {
  10%, 90% { transform: translate3d(-1px, 0, 0); }
  20%, 80% { transform: translate3d(2px, 0, 0); }
  30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
  40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  padding: 60px 0;
}

.feature {
  transition: transform 0.3s ease;
}

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

.emoji { font-size: 32px; margin-bottom: 16px; display: block; }

.feature h3 { font-family: var(--font-display); font-size: 20px; margin-bottom: 12px; }

.feature p { color: var(--text-dim); font-size: 15px; }

/* Comparison Table */
.comparison { padding: 60px 0; }

.section-title {
  font-family: var(--font-display);
  font-size: 36px;
  text-align: center;
  margin-bottom: 48px;
}

.table-scroll {
  overflow-x: auto;
  border-radius: var(--radius);
}

.glass-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--glass);
  backdrop-filter: blur(12px);
}

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

.glass-table th { color: var(--cyan); font-family: var(--font-display); font-size: 18px; }

.highlight { color: var(--pink); font-weight: 700; }

/* FAQ Section */
.faq-section { padding: 60px 0; }

.faq-accordion {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.faq-item { padding: 0; overflow: hidden; }

.faq-trigger {
  width: 100%;
  padding: 24px;
  background: none;
  border: none;
  color: white;
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-trigger::after {
  content: '+';
  color: var(--cyan);
  font-size: 24px;
}

.faq-item.active .faq-trigger::after { content: '-'; }

.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-content { max-height: 200px; }

.faq-content p { padding: 0 24px 24px; color: var(--text-dim); }

/* Footer */
footer {
  padding: 60px 0;
  text-align: center;
  border-top: 1px solid var(--glass-border);
  color: var(--text-dim);
  font-size: 14px;
}

/* Chat View & Loading */
#chat-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  background: black;
}

#loading-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1010;
}

.loader-content { text-align: center; }

.spinner {
  width: 60px;
  height: 60px;
  border: 4px solid var(--glass-border);
  border-top: 4px solid var(--pink);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 1s linear infinite;
}

@keyframes spin { 100% { transform: rotate(360deg); } }

#loading-status {
  font-family: var(--font-display);
  color: var(--cyan);
  letter-spacing: 1px;
}

.chat-header {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 1005;
}

.exit-btn {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: white;
  padding: 8px 16px;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
}

#iframe-wrap { width: 100%; height: 100%; }

/* Mobile Adjustments */
@media (max-width: 768px) {
  h1 { font-size: 48px; }
  .hero .sub { font-size: 16px; }
  .features-grid { grid-template-columns: 1fr; }
}
