/* ===== El Chismoso — Styles ===== */

:root {
  --bg: #09090b;
  --surface: #18181b;
  --surface-hover: #27272a;
  --border: #27272a;
  --border-light: #3f3f46;
  --text: #fafafa;
  --text-secondary: #a1a1aa;
  --muted: #71717a;
  --accent: #22c55e;
  --accent-glow: rgba(34, 197, 94, 0.15);
  --accent-hover: #16a34a;
  --accent-dim: #166534;
  --warning-bg: #422006;
  --warning-border: #92400e;
  --warning-text: #fbbf24;
  --error: #f87171;
  --gradient-start: #22c55e;
  --gradient-end: #06b6d4;
}

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

/* Grain overlay for texture */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.03;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

body {
  font-family: 'Space Grotesk', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  -webkit-font-smoothing: antialiased;
}

/* ===== Animations ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50% { box-shadow: 0 0 20px 4px rgba(34, 197, 94, 0.2); }
}

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

@keyframes gradient-shift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes bounce-in {
  0% { transform: scale(0.9); opacity: 0; }
  60% { transform: scale(1.02); }
  100% { transform: scale(1); opacity: 1; }
}

/* ===== Header ===== */
.header {
  text-align: center;
  margin-bottom: 3rem;
  animation: fadeUp 0.6s ease-out;
}

.logo-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.logo-icon {
  font-size: 2.5rem;
  animation: float 3s ease-in-out infinite;
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  background-size: 200% 200%;
  animation: gradient-shift 4s ease infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.tagline {
  color: var(--text-secondary);
  font-size: 1.15rem;
  font-style: italic;
}

.tagline-sub {
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 0.25rem;
}

/* ===== Hero ===== */
.hero {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease-out 0.1s both;
}

.hero-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.05), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  position: relative;
  overflow: hidden;
}

.hero-card::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.hero-badge {
  display: inline-block;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.hero-title {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.hero-card p {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.hero-sub {
  color: var(--muted) !important;
  font-size: 0.95rem !important;
}

.highlight {
  color: var(--accent);
  font-weight: 600;
}

.emoji-float {
  display: inline-block;
  animation: float 2s ease-in-out infinite;
}

.hero-card .btn {
  margin-top: 0.5rem;
}

/* ===== Section headings ===== */
section h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  letter-spacing: -0.01em;
}

.section-emoji {
  margin-right: 0.35rem;
}

/* ===== How it works ===== */
.how-it-works {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease-out 0.2s both;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.step {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.25rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  animation: fadeUp 0.5s ease-out calc(var(--delay) + 0.3s) both;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 8px 30px rgba(34, 197, 94, 0.08);
}

.step-icon {
  font-size: 2rem;
  display: block;
  margin-bottom: 0.5rem;
}

.step-number {
  display: inline-block;
  width: 28px;
  height: 28px;
  line-height: 28px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.8rem;
  margin-bottom: 0.75rem;
}

.step h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.step p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== Use cases ===== */
.use-cases {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease-out 0.3s both;
}

.cases-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.cases-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.case-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
  transition: transform 0.2s, border-color 0.2s;
}

.case-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-light);
}

.case-icon {
  font-size: 1.75rem;
  display: block;
  margin-bottom: 0.5rem;
}

.case-card h3 {
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}

.case-card p {
  color: var(--text-secondary);
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ===== Pricing ===== */
.pricing {
  margin-bottom: 3.5rem;
  text-align: center;
  animation: fadeUp 0.6s ease-out 0.4s both;
}

.price-card {
  background: var(--surface);
  border: 1px solid var(--accent);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  position: relative;
  box-shadow: 0 0 40px rgba(34, 197, 94, 0.08);
}

.price-popular {
  position: absolute;
  top: -12px;
  background: var(--accent);
  color: #000;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3rem 1rem;
  border-radius: 100px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-amount {
  font-size: 3.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--gradient-start), var(--gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-top: 0.5rem;
}

.price-currency {
  font-size: 1.5rem;
}

.price-detail {
  color: var(--text-secondary);
  font-size: 1.05rem;
  margin-bottom: 0.5rem;
}

.price-includes {
  list-style: none;
  text-align: left;
  width: 100%;
  max-width: 300px;
  margin: 0.5rem 0;
}

.price-includes li {
  padding: 0.4rem 0;
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.price-includes li::first-letter {
  color: var(--accent);
}

.price-card .btn {
  margin-top: 0.5rem;
}

.price-footnote {
  color: var(--muted);
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

/* ===== Features ===== */
.features {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease-out 0.5s both;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.feature-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  transition: border-color 0.2s;
}

.feature-item:hover {
  border-color: var(--border-light);
}

.feature-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.feature-item strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.feature-item p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* ===== FAQ ===== */
.faq {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease-out 0.6s both;
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.faq-item[open] {
  border-color: var(--border-light);
}

.faq-item summary {
  padding: 1rem 1.25rem;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color 0.15s;
}

.faq-item summary:hover {
  color: var(--accent);
}

.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::marker { display: none; content: ''; }

.faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--muted);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  padding: 0 1.25rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  line-height: 1.55;
}

/* ===== Bottom CTA ===== */
.cta-bottom {
  margin-bottom: 2rem;
  animation: fadeUp 0.6s ease-out 0.7s both;
}

.cta-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(6, 182, 212, 0.08));
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  text-align: center;
}

.cta-card h2 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cta-card p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.65rem 1.3rem;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  border: none;
  font-size: 0.95rem;
  font-family: inherit;
  transition: all 0.2s;
}

.btn-primary {
  background: var(--accent);
  color: #000;
}

.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.25);
}

.btn-large {
  padding: 0.9rem 2rem;
  font-size: 1.05rem;
  border-radius: 12px;
}

.pulse-btn {
  animation: pulse-glow 2.5s ease-in-out infinite;
}

.pulse-btn:hover {
  animation: none;
}

.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border-light);
  margin-left: 0.5rem;
}

.btn-secondary:hover {
  border-color: var(--text-secondary);
  background: var(--surface-hover);
}

/* ===== Footer ===== */
.footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.footer-main {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 0.4rem;
}

.footer-disclaimer {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ===== Success page ===== */
.message {
  margin-bottom: 1.5rem;
  animation: fadeUp 0.5s ease-out;
}

.message.error {
  color: var(--error);
}

.license-box {
  margin-bottom: 2rem;
  animation: fadeUp 0.5s ease-out 0.1s both;
}

.license-box label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  font-size: 1rem;
}

.key-warning {
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  margin-bottom: 1rem;
  color: var(--warning-text);
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.5;
}

.key-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.license-box input {
  width: 100%;
  max-width: 400px;
  padding: 0.7rem 0.85rem;
  font-family: ui-monospace, 'SF Mono', monospace;
  font-size: 0.95rem;
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 10px;
  color: var(--text);
  outline: none;
  transition: border-color 0.15s;
}

.license-box input:focus {
  border-color: var(--accent);
}

.platform-links {
  list-style: none;
  margin-bottom: 1rem;
}

.platform-links li {
  margin-bottom: 0.75rem;
}

.note {
  font-size: 0.85rem;
  color: var(--muted);
}

.instructions {
  margin-top: 2rem;
  animation: fadeUp 0.5s ease-out 0.3s both;
}

.instructions h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

.instructions ol {
  padding-left: 1.25rem;
  color: var(--text-secondary);
}

.instructions li {
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
}

.instructions strong {
  color: var(--text);
}

.downloads {
  animation: fadeUp 0.5s ease-out 0.2s both;
}

.downloads h2 {
  font-size: 1.125rem;
  margin-bottom: 0.75rem;
}

/* ===== Tutorial / Keyboard shortcuts ===== */
.tutorial-section {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease-out 0.25s both;
}

.tutorial-intro {
  color: var(--text-secondary);
  font-size: 0.95rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.platform-toggle {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.platform-btn {
  padding: 0.45rem 1.1rem;
  border-radius: 8px;
  border: 1px solid var(--border-light);
  background: var(--surface);
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.platform-btn.active {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
}

.platform-btn:hover:not(.active) {
  border-color: var(--text-secondary);
}

.shortcuts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.shortcut-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem;
  transition: border-color 0.2s, transform 0.2s;
}

.shortcut-card:hover {
  border-color: var(--border-light);
  transform: translateY(-2px);
}

.shortcut-card.shortcut-primary {
  border-color: var(--accent-dim);
}

.shortcut-step {
  display: inline-block;
  width: 24px;
  height: 24px;
  line-height: 24px;
  text-align: center;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-weight: 700;
  font-size: 0.75rem;
  margin-bottom: 0.75rem;
}

.shortcut-keys {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

kbd {
  display: inline-block;
  background: var(--surface-hover);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  padding: 0.2rem 0.55rem;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.kbd-label {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

.shortcut-card strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.shortcut-card p {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.5;
}

.shortcuts-extra {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
}

.shortcuts-extra h3 {
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
}

.shortcuts-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.shortcut-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.shortcut-mini .shortcut-keys {
  margin-bottom: 0;
  flex-shrink: 0;
}

.shortcut-mini span {
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* ===== Stealth / Anti-proctoring section ===== */
.stealth-section {
  margin-bottom: 3.5rem;
  animation: fadeUp 0.6s ease-out 0.35s both;
}

.stealth-hero {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.08), rgba(6, 182, 212, 0.05));
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 2rem 1.75rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}

.stealth-hero::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gradient-start), var(--gradient-end));
}

.stealth-tagline {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.stealth-explanation {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.stealth-subtitle {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--accent);
}

.proctoring-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.proctor-card {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem;
  transition: border-color 0.2s, transform 0.2s;
}

.proctor-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.proctor-check {
  color: var(--accent);
  font-size: 1.25rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.proctor-card strong {
  display: block;
  font-size: 0.88rem;
  margin-bottom: 0.2rem;
}

.proctor-card p {
  color: var(--text-secondary);
  font-size: 0.8rem;
  line-height: 1.4;
}

.stealth-why {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem 1.75rem;
}

.stealth-why h3 {
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.stealth-why p {
  color: var(--text-secondary);
  font-size: 0.88rem;
  line-height: 1.55;
}

.stealth-why code {
  background: var(--surface-hover);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  font-size: 0.82rem;
  color: var(--accent);
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  body { padding: 1.25rem 1rem; }

  .header h1 { font-size: 2.25rem; }

  .steps { grid-template-columns: 1fr; }

  .cases-grid { grid-template-columns: 1fr; }

  .features-grid { grid-template-columns: 1fr; }

  .proctoring-grid { grid-template-columns: 1fr; }

  .shortcuts-grid { grid-template-columns: 1fr; }

  .shortcuts-list { grid-template-columns: 1fr; }

  .price-amount { font-size: 2.5rem; }

  .hero-card { padding: 2rem 1.5rem; }

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

@media (max-width: 400px) {
  .header h1 { font-size: 1.85rem; }
  .logo-icon { font-size: 2rem; }
}
