/* ===== DESIGN TOKENS ===== */
:root {
  --bg: #080810;
  --bg-card: #111120;
  --accent: #C9A84C;
  --accent-hover: #E0BC6A;
  --text: #F0EDE8;
  --text-muted: #9A97A0;
  --border: rgba(201, 168, 76, 0.2);
  --radius: 12px;
  --transition: 0.3s ease;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.1rem;
  opacity: 0;
  animation: fadeIn 0.5s ease forwards;
}
@keyframes fadeIn { to { opacity: 1; } }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* ===== TYPOGRAPHY ===== */
h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 700; letter-spacing: -1px; line-height: 1.2; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); font-weight: 600; line-height: 1.3; }
h3 { font-size: 1.25rem; font-weight: 600; }
p { color: var(--text); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }

/* ===== LAYOUT ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
section { padding: 5rem 0; }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 1rem 0;
  transition: background var(--transition), backdrop-filter var(--transition);
}
.navbar.scrolled {
  background: rgba(8, 8, 16, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.navbar .container {
  display: flex; align-items: center; justify-content: space-between;
}
.navbar-logo {
  font-size: 1.3rem; font-weight: 700; color: var(--accent);
  letter-spacing: -0.5px;
}
.navbar-logo:hover { color: var(--accent-hover); }
.navbar-links { display: flex; gap: 2rem; list-style: none; }
.navbar-links a {
  color: var(--text-muted); font-size: 0.95rem; font-weight: 500;
  transition: color var(--transition);
}
.navbar-links a:hover,
.navbar-links a.active { color: var(--accent); }
.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: var(--transition);
}
.mobile-menu {
  display: none; position: fixed; top: 60px; left: 0; right: 0;
  background: var(--bg-card); border-bottom: 1px solid var(--border);
  padding: 1.5rem;
}
.mobile-menu.open { display: block; }
.mobile-menu ul { list-style: none; display: flex; flex-direction: column; gap: 1rem; }
.mobile-menu a { color: var(--text); font-size: 1.1rem; font-weight: 500; }
.mobile-menu a:hover { color: var(--accent); }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 0.9rem 2rem;
  border-radius: var(--radius); font-weight: 600; font-size: 1rem;
  cursor: pointer; border: none; transition: var(--transition);
  text-align: center;
}
.btn-primary {
  background: var(--accent); color: #080810;
}
.btn-primary:hover {
  background: var(--accent-hover); color: #080810;
  transform: scale(1.03);
  box-shadow: 0 0 24px rgba(201, 168, 76, 0.35);
}
.btn-outline {
  background: transparent; color: var(--accent);
  border: 2px solid var(--accent);
}
.btn-outline:hover {
  background: var(--accent); color: #080810;
  transform: scale(1.03);
}

/* ===== CARDS ===== */
.card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 2rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(201, 168, 76, 0.1);
}

/* ===== GRID ===== */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }

/* ===== SECTION HEADER ===== */
.section-header { text-align: center; margin-bottom: 3rem; }
.section-header p { color: var(--text-muted); max-width: 600px; margin: 1rem auto 0; }

/* ===== SCROLL ANIMATIONS ===== */
.animate-on-scroll {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0; text-align: center;
  color: var(--text-muted); font-size: 0.9rem;
}

/* ===== FORMS ===== */
.form-group { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1.25rem; }
label { font-size: 0.9rem; font-weight: 500; color: var(--text-muted); }
input, select, textarea {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: 8px; padding: 0.75rem 1rem; color: var(--text);
  font-family: 'Inter', sans-serif; font-size: 1rem;
  transition: border-color var(--transition);
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(201, 168, 76, 0.1);
}
select option { background: var(--bg-card); }
textarea { resize: vertical; min-height: 120px; }
input[type="range"] {
  padding: 0; border: none; background: none;
  accent-color: var(--accent);
}

/* ===== PRICE DISPLAY ===== */
.price-result {
  background: var(--bg-card); border: 1px solid var(--accent);
  border-radius: var(--radius); padding: 1.5rem 2rem;
  text-align: center; margin-top: 2rem;
}
.price-result .price-label { color: var(--text-muted); font-size: 0.9rem; }
.price-result .price-value {
  font-size: 2.5rem; font-weight: 700; color: var(--accent);
  margin: 0.25rem 0;
}
.price-result .price-note { color: var(--text-muted); font-size: 0.85rem; }

/* ===== STEPS ===== */
.steps { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; }
.step {
  flex: 1; min-width: 200px; max-width: 280px;
  text-align: center; padding: 2rem 1.5rem;
}
.step-number {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent); color: #080810;
  font-weight: 700; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}

/* ===== QUESTIONS ===== */
.questions-list { max-width: 700px; margin: 0 auto; }
.question-item {
  padding: 1.25rem 1.5rem; border-left: 3px solid var(--accent);
  margin-bottom: 1rem; background: var(--bg-card); border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text-muted); font-size: 1.05rem;
}

/* ===== SUCCESS MESSAGE ===== */
.success-msg {
  display: none; background: rgba(201, 168, 76, 0.1);
  border: 1px solid var(--accent); border-radius: var(--radius);
  padding: 1.5rem; text-align: center; margin-top: 1.5rem;
  color: var(--accent); font-weight: 600;
}
.error-msg {
  display: none;
  background: rgba(224, 92, 92, 0.1);
  border: 1px solid #e05c5c;
  border-radius: var(--radius);
  padding: 1.5rem;
  text-align: center;
  margin-top: 1.5rem;
  color: #e05c5c;
  font-weight: 600;
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 80px;
}
.hero-blob {
  position: absolute; width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(201,168,76,0.12) 0%, transparent 70%);
  border-radius: 50%; top: 50%; left: 50%; transform: translate(-50%, -50%);
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes pulse {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.7; }
  50% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3.5rem; align-items: center; position: relative; z-index: 1;
}
.hero-content { max-width: 560px; }

/* ---- Word document mock ---- */
.hero-doc-mock {
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.55), 0 0 0 1px rgba(255,255,255,0.06);
  font-family: 'Inter', sans-serif;
}
.doc-titlebar {
  background: #2a2a3e; padding: 10px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.doc-dots { display: flex; gap: 6px; }
.doc-dots span {
  width: 12px; height: 12px; border-radius: 50%; display: block;
}
.doc-dots span:nth-child(1) { background: #ff5f57; }
.doc-dots span:nth-child(2) { background: #febc2e; }
.doc-dots span:nth-child(3) { background: #28c840; }
.doc-filename { font-size: 12px; color: #9a97a0; }
.doc-toolbar {
  background: #222233; padding: 7px 14px;
  display: flex; align-items: center; gap: 14px;
  font-size: 12px; color: #8886a0;
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.doc-toolbar-sep {
  width: 1px; height: 14px;
  background: rgba(255,255,255,0.12); margin: 0 2px;
}
.doc-tb-btn {
  cursor: default; padding: 2px 6px; border-radius: 3px;
  color: #c0bdd8;
}
.doc-body {
  background: #fff; padding: 28px 32px 32px;
  min-height: 240px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 13.5px; color: #111; line-height: 1.75;
}
.doc-uni {
  text-align: center; font-size: 11px; color: #555;
  text-transform: uppercase; letter-spacing: 0.8px;
  margin: 0 0 6px;
}
.doc-type-label {
  text-align: center; font-weight: 700; font-size: 14px;
  text-transform: uppercase; letter-spacing: 1px;
  margin: 0 0 4px;
}
.doc-on-topic {
  text-align: center; font-style: italic; color: #555;
  font-size: 12px; margin: 0 0 10px;
}
.doc-topic {
  text-align: center; font-weight: 700; font-size: 13px;
  margin: 0 0 14px; color: #111; min-height: 40px;
}
.doc-divider {
  border: none; border-top: 1px solid #ddd; margin: 12px 0 14px;
}
.doc-para { margin: 0; color: #222; text-indent: 2em; min-height: 60px; }
.doc-cursor {
  display: inline-block; width: 2px; height: 14px;
  background: #111; vertical-align: middle; margin-left: 1px;
  animation: blink-cur 1s step-end infinite;
}
@keyframes blink-cur {
  0%, 100% { opacity: 1; } 50% { opacity: 0; }
}
.hero-badge {
  display: inline-block; padding: 0.4rem 1rem;
  background: rgba(201,168,76,0.15); border: 1px solid var(--border);
  border-radius: 100px; font-size: 0.85rem; color: var(--accent);
  margin-bottom: 1.5rem; letter-spacing: 0.5px;
}
.hero h1 { margin-bottom: 1.25rem; }
.hero p { color: var(--text-muted); font-size: 1.15rem; margin-bottom: 2rem; max-width: 560px; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ===== STATS (why.html) ===== */
.stats-section { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-card); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; text-align: center; }
.stat-item { padding: 2.5rem 1rem; }
.stat-number { font-size: 2.8rem; font-weight: 800; color: var(--accent); line-height: 1; }
.stat-label { font-size: 0.82rem; color: var(--text-muted); margin-top: 0.4rem; text-transform: uppercase; letter-spacing: 0.5px; }

/* ===== RECEIPT MOCK (price.html) ===== */
.receipt-mock {
  border-radius: 14px; overflow: hidden;
  box-shadow: 0 20px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07);
  background: #1a1a2a; font-family: 'Inter', sans-serif;
}
.receipt-header {
  background: #C9A84C; padding: 14px 24px;
  display: flex; align-items: center; gap: 10px;
}
.receipt-icon { font-size: 1.2rem; }
.receipt-title { font-weight: 700; font-size: 13px; letter-spacing: 1.5px; color: #080810; }
.receipt-body { padding: 20px 24px; }
.receipt-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 9px 0; font-size: 13.5px; color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.receipt-row span:last-child { color: var(--text); font-weight: 500; }
.receipt-divider { border-top: 1px dashed rgba(255,255,255,0.15); margin: 6px 0; }
.receipt-total {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 0 4px; font-size: 15px; font-weight: 700; color: var(--text);
}
.receipt-total-price { font-size: 1.6rem; color: var(--accent); }
.receipt-footer {
  background: rgba(201,168,76,0.08); padding: 10px 24px;
  font-size: 12px; color: var(--accent); text-align: center;
  border-top: 1px solid rgba(201,168,76,0.2); letter-spacing: 0.3px;
}

/* ===== CHAT MOCK (contact.html) ===== */
.chat-mock {
  border-radius: 16px; overflow: hidden;
  box-shadow: 0 20px 56px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.07);
  background: #111120; font-family: 'Inter', sans-serif; display: flex; flex-direction: column;
  max-height: 360px;
}
.chat-header {
  background: #1a1a2e; padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.chat-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: #080810;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 12px; flex-shrink: 0;
}
.chat-name { font-weight: 600; font-size: 14px; color: var(--text); }
.chat-status { font-size: 11px; color: #4ade80; margin-top: 1px; }
.chat-body {
  flex: 1; overflow-y: auto; padding: 16px 14px;
  display: flex; flex-direction: column; gap: 10px;
  scrollbar-width: thin; scrollbar-color: rgba(255,255,255,0.1) transparent;
}
.chat-bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 16px;
  font-size: 13px; line-height: 1.5; word-break: break-word;
}
.chat-bubble.client {
  align-self: flex-end; background: var(--accent); color: #080810;
  border-bottom-right-radius: 4px; font-weight: 500;
}
.chat-bubble.agent {
  align-self: flex-start; background: #1e1e30; color: var(--text);
  border-bottom-left-radius: 4px;
}
.chat-typing { display: flex; gap: 5px; align-items: center; padding: 12px 16px; }
.chat-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: var(--text-muted);
  animation: chat-dot 1.2s infinite;
}
.chat-typing span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes chat-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero-content { max-width: 100%; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-doc-mock, .receipt-mock, .chat-mock { margin-top: 0.5rem; }
}

@media (max-width: 768px) {
  .navbar { background: #080810 !important; backdrop-filter: none !important; border-bottom: 1px solid var(--border); }
  .mobile-menu { background: #080810 !important; z-index: 99; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
  .steps { flex-direction: column; align-items: center; }
  section { padding: 3.5rem 0; }
  .hero { min-height: auto; padding: 100px 0 48px; }

  /* Doc mock — mobile */
  .doc-titlebar { padding: 8px 12px; }
  .doc-toolbar { padding: 5px 12px; gap: 10px; font-size: 11px; }
  .doc-body { padding: 18px 18px 22px; min-height: 180px; }
  .doc-uni { font-size: 9.5px; }
  .doc-type-label { font-size: 12px; }
  .doc-on-topic { font-size: 11px; }
  .doc-topic { font-size: 12px; min-height: 34px; }
  .doc-para { font-size: 12px; min-height: 48px; }

  /* Receipt mock — mobile */
  .receipt-header { padding: 11px 18px; }
  .receipt-body { padding: 14px 18px; }
  .receipt-row { font-size: 12.5px; padding: 7px 0; }
  .receipt-total { padding: 10px 0 2px; font-size: 14px; }
  .receipt-total-price { font-size: 1.35rem; }
  .receipt-footer { padding: 8px 18px; font-size: 11.5px; }

  /* Chat mock — mobile */
  .chat-mock { max-height: 300px; }
  .chat-header { padding: 11px 14px; }
  .chat-body { padding: 12px 10px; gap: 8px; }
  .chat-bubble { font-size: 12.5px; padding: 8px 12px; max-width: 85%; }

  /* Stats — mobile 2x2 */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 0; }
  .stat-item { padding: 1.2rem 0.5rem; }
  .stat-number { font-size: 2.2rem; }
  .stat-label { font-size: 0.75rem; }
}
