:root {
  --red: #FC3F1D;
  --red-hover: #E5371A;
  --red-light: #FFF1EE;
  --black: #000000;
  --dark: #1A1A1A;
  --gray-900: #333333;
  --gray-700: #555555;
  --gray-500: #888888;
  --gray-300: #CCCCCC;
  --gray-100: #F0F0F0;
  --gray-50: #FAFAFA;
  --white: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-lg: 0 4px 24px rgba(0,0,0,0.07);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-100);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-weight: 700;
  font-size: 17px;
  color: var(--black);
}

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

.nav a {
  color: var(--gray-700);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s;
}

.nav a:hover { color: var(--black); }

.nav-btn {
  background: var(--gray-100) !important;
  color: var(--dark) !important;
  padding: 7px 16px !important;
  border-radius: var(--radius-sm);
}

.nav-btn:hover { background: var(--gray-300) !important; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-primary { background: var(--red); color: var(--white); }
.btn-primary:hover { background: var(--red-hover); }
.btn-outline { background: transparent; color: var(--dark); border: 1px solid var(--gray-300); }
.btn-outline:hover { border-color: var(--gray-500); }
.btn-outline-white { background: transparent; color: var(--white); border: 1px solid rgba(255,255,255,0.35); }
.btn-outline-white:hover { border-color: rgba(255,255,255,0.7); background: rgba(255,255,255,0.08); }

/* Hero */
.hero {
  padding: 130px 0 40px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  color: var(--red);
  background: var(--red-light);
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 44px;
  font-weight: 800;
  line-height: 1.12;
  margin-bottom: 18px;
  letter-spacing: -1px;
  color: var(--black);
}

.hero-subtitle {
  font-size: 16px;
  color: var(--gray-700);
  margin-bottom: 28px;
  line-height: 1.7;
}

.hero-subtitle strong { color: var(--black); }

.hero-actions { display: flex; gap: 12px; }

/* Terminal */
.terminal {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0,0,0,0.15);
  border: 1px solid rgba(0,0,0,0.1);
}

.terminal-header {
  background: #2D2D2D;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

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

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

.dot.red { background: #FF5F57; }
.dot.yellow { background: #FEBC2E; }
.dot.green { background: #28C840; }

.terminal-title {
  font-size: 12px;
  color: #999;
  font-family: 'JetBrains Mono', monospace;
}

.terminal-body {
  background: #1E1E1E;
  padding: 20px;
  height: 300px;
  overflow-y: auto;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.8;
  color: #D4D4D4;
}

.terminal-body::-webkit-scrollbar { width: 4px; }
.terminal-body::-webkit-scrollbar-thumb { background: #444; border-radius: 4px; }

.terminal-line {
  white-space: pre-wrap;
  word-break: break-all;
}

.t-prompt { color: #28C840; margin-right: 8px; }
.t-cmd { color: #D4D4D4; }
.t-comment { color: #6A9955; }
.t-keyword { color: #569CD6; }
.t-string { color: #CE9178; }
.t-func { color: #DCDCAA; }
.t-output { color: #9CDCFE; }
.t-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: #D4D4D4;
  vertical-align: middle;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

/* Trust Bar */
.trust-bar {
  padding: 32px 0;
  border-bottom: 1px solid var(--gray-100);
}

.trust-label {
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 600;
  margin-bottom: 16px;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
}

.trust-logo {
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-300);
  letter-spacing: -0.3px;
}

/* Stats */
.stats-section { padding: 48px 0; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.stat-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--gray-50);
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
}

.stat-value {
  font-size: 34px;
  font-weight: 800;
  color: var(--black);
  letter-spacing: -1px;
}

.stat-unit { font-size: 20px; color: var(--red); }
.stat-label { font-size: 13px; color: var(--gray-500); margin-top: 4px; font-weight: 500; }

/* Section common */
.section-header { text-align: center; margin-bottom: 44px; }
.section-title { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: var(--black); margin-bottom: 8px; }
.section-subtitle { font-size: 16px; color: var(--gray-500); }

/* How it works */
.how-section {
  padding: 72px 0;
  border-top: 1px solid var(--gray-100);
}

.steps-grid {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  justify-content: center;
}

.step-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 28px;
  flex: 1;
  max-width: 300px;
  transition: box-shadow 0.2s;
}

.step-card:hover { box-shadow: var(--shadow-lg); }

.step-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 14px;
}

.step-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.step-card p { font-size: 14px; color: var(--gray-700); line-height: 1.6; }

.step-arrow {
  display: flex;
  align-items: center;
  color: var(--gray-300);
  padding-top: 48px;
}

/* Features */
.features {
  padding: 72px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

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

.feature-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--gray-300);
}

.feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 6px; color: var(--black); }
.feature-card p { font-size: 13px; color: var(--gray-700); line-height: 1.6; }

/* Benchmarks */
.benchmarks { padding: 72px 0; }

.bench-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-100);
  box-shadow: var(--shadow);
}

.bench-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.bench-table th {
  background: var(--gray-50);
  padding: 12px 18px;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--gray-500);
  border-bottom: 1px solid var(--gray-100);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.bench-table th.highlight-col { color: var(--red); }

.bench-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--gray-100);
  color: var(--gray-700);
}

.bench-table tr:last-child td { border-bottom: none; }
.bench-table td.highlight-col { background: var(--red-light); }
.bench-table td.winner { color: var(--red); font-weight: 700; }

.bench-source {
  text-align: center;
  font-size: 12px;
  color: var(--gray-500);
  margin-top: 12px;
}

/* Testimonials */
.testimonials {
  padding: 72px 0;
  background: var(--gray-50);
  border-top: 1px solid var(--gray-100);
  border-bottom: 1px solid var(--gray-100);
}

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

.testimonial-card {
  background: var(--white);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 24px;
}

.testimonial-text {
  font-size: 14px;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 18px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.testimonial-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-light);
  color: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.testimonial-name { font-size: 13px; font-weight: 600; color: var(--black); }
.testimonial-role { font-size: 12px; color: var(--gray-500); }

/* Demo / Chat */
.demo {
  padding: 72px 0;
}

.chat-container {
  max-width: 680px;
  margin: 0 auto;
  border-radius: var(--radius);
  border: 1px solid var(--gray-300);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-lg);
}

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-100);
}

.chat-header-left { display: flex; align-items: center; gap: 8px; }
.chat-status { width: 8px; height: 8px; border-radius: 50%; background: #34C759; }
.chat-title { font-size: 13px; font-weight: 600; color: var(--gray-700); }
.chat-model { font-size: 11px; color: var(--gray-500); background: var(--white); border: 1px solid var(--gray-100); padding: 3px 10px; border-radius: 12px; }

.chat-messages {
  height: 360px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 4px; }

.message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  width: fit-content;
  animation: fadeIn 0.25s ease;
  min-width: 0;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.message.user { align-self: flex-end; flex-direction: row-reverse; }

.message-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: var(--gray-100);
}

.message.bot .message-avatar { background: transparent; }

.message-content {
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 14px;
  line-height: 1.6;
  min-width: 0;
  overflow: hidden;
  max-width: 100%;
}

.message.bot .message-content { background: var(--gray-50); border: 1px solid var(--gray-100); }
.message.user .message-content { background: var(--red); color: var(--white); }
.message-content p { margin: 0; word-break: break-word; overflow-wrap: break-word; }

.message-content pre {
  background: var(--dark);
  color: #e5e5e5;
  padding: 10px;
  border-radius: 6px;
  margin-top: 8px;
  overflow-x: auto;
  font-size: 13px;
  font-family: 'JetBrains Mono', 'Consolas', monospace;
  max-width: 100%;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-content code {
  word-break: break-word;
}

.chat-input-wrap {
  display: flex;
  padding: 12px;
  gap: 8px;
  border-top: 1px solid var(--gray-100);
}

.chat-input {
  flex: 1;
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--dark);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.15s;
}

.chat-input:focus { border-color: var(--red); background: var(--white); }
.chat-input::placeholder { color: var(--gray-500); }

.chat-send {
  width: 40px;
  height: 40px;
  background: var(--red);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chat-send:hover { background: var(--red-hover); }
.chat-send:disabled { opacity: 0.4; cursor: not-allowed; }

.typing-indicator { display: flex; gap: 4px; padding: 6px 0; }

.typing-indicator span {
  width: 6px;
  height: 6px;
  background: var(--red);
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.3; }
  40% { transform: scale(1); opacity: 1; }
}

/* CTA */
.cta { padding: 72px 0; }

.cta-inner {
  background: var(--dark);
  border-radius: 16px;
  padding: 52px 40px;
  text-align: center;
  color: var(--white);
}

.cta-inner h2 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.cta-inner p { color: var(--gray-500); margin-bottom: 24px; font-size: 15px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; }

/* Footer */
.footer {
  padding: 20px 0;
  border-top: 1px solid var(--gray-100);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray-500);
}

.footer-left { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--dark); }
.footer-sub { font-weight: 400; color: var(--gray-500); }
.footer-dot { color: var(--gray-300); }
.footer-right { display: flex; align-items: center; gap: 20px; }
.footer-right a { color: var(--gray-500); text-decoration: none; transition: color 0.15s; }
.footer-right a:hover { color: var(--dark); }

/* Responsive */
@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-title { font-size: 32px; }
  .hero-terminal { order: -1; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .steps-grid { flex-direction: column; align-items: center; }
  .step-arrow { display: none; }
  .nav { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .cta-actions { flex-direction: column; align-items: center; }
  .footer-inner { flex-direction: column; gap: 12px; text-align: center; }
  .footer-right { flex-wrap: wrap; justify-content: center; }
  .trust-logos { gap: 20px; }
}
