/* =====================================================================
   ProfiTestAI Production Stylesheet (Variant 1: InterviewCoder Style)
   ===================================================================== */

:root {
  --bg-primary: #0b0c10;
  --bg-surface: rgba(18, 20, 29, 0.7);
  --bg-surface-elevated: #151824;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(245, 158, 11, 0.4);
  
  --accent: #f59e0b;
  --accent-light: #fbbf24;
  --accent-glow: rgba(245, 158, 11, 0.22);
  --accent-muted: rgba(245, 158, 11, 0.08);
  
  --cyan: #38bdf8;
  --emerald: #10b981;
  --rose: #f87171;
  
  --text-main: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base resets */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(ellipse at 50% 0%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
    radial-gradient(circle at 90% 15%, rgba(56, 189, 248, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 10% 45%, rgba(99, 102, 241, 0.05) 0%, transparent 40%);
  background-repeat: no-repeat;
}

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

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

/* =====================================================================
   Navbar
   ===================================================================== */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(11, 12, 16, 0.78);
  border-bottom: 1px solid var(--border-subtle);
  transition: var(--transition);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.5px;
}

.nav-logo img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 0 16px var(--accent-glow);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-links a:hover {
  color: #ffffff;
}

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

.btn-lang {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: var(--text-main);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 6px;
}

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

.btn-nav-download {
  background: var(--accent);
  color: #000;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 700;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-nav-download:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

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

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent-muted);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  font-size: 13px;
  color: #fde68a;
  font-weight: 600;
  margin-bottom: 24px;
}

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

@keyframes pulse-glow {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.hero-title {
  font-size: clamp(38px, 5.8vw, 68px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.5px;
  max-width: 980px;
  margin: 0 auto 24px;
}

.hero-title span {
  background: linear-gradient(135deg, #ffffff 40%, var(--accent) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-desc {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-secondary);
  max-width: 720px;
  margin: 0 auto 36px;
  font-weight: 400;
  line-height: 1.6;
}

.hero-cta-group {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.btn-cta-primary {
  background: var(--accent);
  color: #0b0c10;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
  box-shadow: 0 10px 30px var(--accent-glow);
}

.btn-cta-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 15px 35px var(--accent-glow);
}

.btn-cta-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  padding: 14px 26px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

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

.hero-subtext {
  font-size: 13px;
  color: var(--text-muted);
}

/* =====================================================================
   Interactive Hero Simulator (macOS Window + Live HUD)
   ===================================================================== */
.demo-window {
  margin: 50px auto 0;
  max-width: 1040px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #0f121a;
  box-shadow: 0 25px 70px -10px rgba(0, 0, 0, 0.8), 0 0 50px rgba(245, 158, 11, 0.08);
  overflow: hidden;
  text-align: left;
}

.demo-header {
  background: #151822;
  padding: 12px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.demo-dots {
  display: flex;
  gap: 8px;
}

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

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

.demo-title-text {
  font-size: 12px;
  font-family: var(--font-mono);
  color: var(--text-secondary);
}

.demo-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  min-height: 420px;
  background: #0b0d13;
}

@media (max-width: 820px) {
  .demo-grid { grid-template-columns: 1fr; }
}

.exam-pane {
  padding: 28px;
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.exam-tags-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.exam-category-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: var(--transition);
}

.exam-category-btn.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: var(--cyan);
  color: var(--cyan);
}

.exam-question-box {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  margin-bottom: 18px;
  color: #f1f5f9;
}

.exam-choices {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.choice-item {
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 13px;
  color: #cbd5e1;
  transition: var(--transition);
  cursor: pointer;
}

.choice-item.correct {
  border-color: rgba(16, 185, 129, 0.6);
  background: rgba(16, 185, 129, 0.1);
  color: #34d399;
  font-weight: 600;
}

/* Right HUD Pane */
.hud-pane {
  background: radial-gradient(circle at 100% 0%, rgba(245, 158, 11, 0.08), transparent 70%), #11141d;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hud-dashed-widget {
  border: 2px dashed rgba(56, 189, 248, 0.7);
  border-radius: var(--radius-md);
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  padding: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
}

.hud-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.hud-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--cyan);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-key {
  font-size: 10px;
  font-family: var(--font-mono);
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
  color: #e2e8f0;
}

.hud-output-card {
  background: rgba(2, 6, 23, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin-bottom: 14px;
  min-height: 110px;
}

.hud-answer-header {
  font-weight: 700;
  color: var(--emerald);
  font-size: 14px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.hud-answer-body {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.btn-trigger-action {
  background: #2563eb;
  color: #ffffff;
  border: none;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  width: 100%;
}

.btn-trigger-action:hover {
  background: #1d4ed8;
}

.hud-footer-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 14px;
}

/* =====================================================================
   Bento Grid Section
   ===================================================================== */
.section-header {
  text-align: center;
  margin: 110px 0 50px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 16px;
  max-width: 620px;
  margin: 0 auto;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .bento-grid { grid-template-columns: 1fr; }
}

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  backdrop-filter: blur(12px);
  transition: var(--transition);
}

.bento-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.6);
}

.bento-card.span-2 {
  grid-column: span 2;
}

@media (max-width: 900px) {
  .bento-card.span-2 { grid-column: span 1; }
}

.bento-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-muted);
  border: 1px solid rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin-bottom: 20px;
}

.bento-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
}

.bento-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* =====================================================================
   Comparison Table
   ===================================================================== */
.comparison-wrapper {
  margin-top: 40px;
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

th, td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.02);
}

.col-profi {
  background: rgba(245, 158, 11, 0.05);
  font-weight: 600;
  color: #fde68a;
}

.tag-check {
  color: var(--emerald);
  font-weight: 800;
}

.tag-cross {
  color: var(--rose);
  font-weight: 800;
}

/* =====================================================================
   Testimonials / Social Proof
   ===================================================================== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

@media (max-width: 850px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

.testi-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.testi-stars {
  color: #f59e0b;
  margin-bottom: 14px;
  font-size: 14px;
}

.testi-text {
  font-size: 14px;
  color: #cbd5e1;
  line-height: 1.6;
  margin-bottom: 20px;
}

.testi-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
}

.author-meta h4 { font-size: 13px; font-weight: 700; }
.author-meta span { font-size: 11px; color: var(--text-muted); }

/* =====================================================================
   Pricing Section (Paddle Integration)
   ===================================================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 840px;
  margin: 40px auto 0;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

.pricing-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.pricing-card.popular {
  border-color: var(--accent);
  background: radial-gradient(circle at 50% 0%, rgba(245, 158, 11, 0.12), transparent 80%), var(--bg-surface);
  box-shadow: 0 0 35px rgba(245, 158, 11, 0.15);
}

.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.card-price {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.card-price span {
  font-size: 14px;
  color: var(--text-muted);
  font-weight: 500;
}

.feature-list {
  list-style: none;
  margin-bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #cbd5e1;
}

.feature-list li span {
  color: var(--emerald);
  font-weight: 800;
}

.btn-price-action {
  width: 100%;
  padding: 14px;
  border-radius: var(--radius-sm);
  border: none;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}

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

.btn-price-action.primary:hover {
  background: var(--accent-light);
  transform: translateY(-1px);
}

.btn-price-action.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.btn-price-action.secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.paddle-trust-mark {
  text-align: center;
  margin-top: 14px;
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

/* =====================================================================
   FAQ Accordion
   ===================================================================== */
.faq-wrap {
  max-width: 860px;
  margin: 40px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
}

.faq-item:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.faq-question {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font-weight: 600;
  font-size: 15px;
  user-select: none;
}

.faq-chevron {
  transition: transform 0.3s;
  font-size: 14px;
  color: var(--text-muted);
}

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

.faq-answer {
  display: none;
  padding: 0 24px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

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

/* =====================================================================
   Legal Disclaimer Alert
   ===================================================================== */
.disclaimer-alert {
  margin: 90px auto 40px;
  max-width: 980px;
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.25);
  border-radius: var(--radius-md);
  padding: 26px 32px;
}

.disclaimer-header {
  font-size: 14px;
  font-weight: 700;
  color: var(--rose);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.disclaimer-content {
  font-size: 13px;
  color: #cbd5e1;
  line-height: 1.65;
}

/* =====================================================================
   Footer
   ===================================================================== */
footer {
  border-top: 1px solid var(--border-subtle);
  padding: 50px 0 35px;
  font-size: 13px;
  color: var(--text-muted);
}

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

.footer-nav {
  display: flex;
  gap: 20px;
}

.footer-nav a:hover {
  color: #fff;
}

/* =====================================================================
   Paddle Checkout Modal Simulation
   ===================================================================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.paddle-dialog {
  background: #151824;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  width: 100%;
  max-width: 480px;
  padding: 30px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.9);
  position: relative;
}

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

.modal-close-btn:hover { color: #fff; }

.paddle-mor-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
}

.checkout-inputs {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 20px;
}

.input-field {
  width: 100%;
  padding: 12px 14px;
  background: #090a0f;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  color: #ffffff;
  font-size: 14px;
  outline: none;
  font-family: var(--font-main);
}

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

.terms-agreement-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin-top: 4px;
}

.terms-agreement-row input {
  margin-top: 3px;
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
}

.btn-complete-checkout {
  background: var(--accent);
  color: #000;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-weight: 800;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.btn-complete-checkout:hover {
  background: var(--accent-light);
}
