/* ==========================================================================
   site-07 — Terminal Hacker theme
   Nền đen tuyền, chữ xanh lá monospace, hiệu ứng CRT/scanline.
   ========================================================================== */

:root {
  --bg: #0a0a0a;
  --bg-alt: #0d1310;
  --green-bright: #39ff14;
  --green-main: #00ff41;
  --green-dim: #14a637;
  --green-muted: #0d7a2a;
  --green-faint: #063d17;
  --border-green: rgba(0, 255, 65, 0.35);
  --font-mono: "JetBrains Mono", "Fira Code", "Space Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Buy modal overrides — tông đen/xanh-lá-terminal */
  --buy-modal-accent: #00ff41;
  --buy-modal-accent-text: #0a0a0a;
  --buy-modal-bg: #0a0a0a;
  --buy-modal-text: #39ff14;
  --buy-modal-muted: #0d7a2a;
  --buy-modal-border: rgba(0, 255, 65, 0.35);
  --buy-modal-radius: 4px;
  --buy-modal-font: "JetBrains Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--green-main);
  font-family: var(--font-mono);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

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

a {
  color: var(--green-main);
}

/* Scanline / CRT overlay */
.scanline-overlay {
  position: fixed;
  inset: 0;
  z-index: 9000;
  pointer-events: none;
  background: repeating-linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.15) 0px,
    rgba(0, 0, 0, 0.15) 1px,
    transparent 2px,
    transparent 3px
  );
  opacity: 0.35;
}

.crt-vignette {
  position: fixed;
  inset: 0;
  z-index: 8999;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(0, 0, 0, 0.55) 100%);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: rgba(10, 10, 10, 0.9);
  border-bottom: 1px solid var(--border-green);
  backdrop-filter: blur(4px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  flex-wrap: wrap;
  gap: 10px;
}

.logo {
  font-weight: 700;
  font-size: 15px;
  color: var(--green-bright);
  letter-spacing: -0.5px;
}

.logo-text {
  color: var(--green-main);
}

.top-nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.top-nav a {
  text-decoration: none;
  color: var(--green-dim);
  font-size: 13px;
  transition: color 0.15s ease;
}

.top-nav a::before {
  content: "./";
  color: var(--green-faint);
}

.top-nav a:hover {
  color: var(--green-bright);
}

/* Blink cursor */
@keyframes blink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0; }
}

.cursor-blink,
.cursor-inline {
  display: inline-block;
  color: var(--green-bright);
  animation: blink 1s step-end infinite;
}

@media (prefers-reduced-motion: reduce) {
  .cursor-blink,
  .cursor-inline {
    animation: none;
  }
}

/* Prompt symbol */
.prompt {
  color: var(--green-bright);
  font-weight: 700;
  margin-right: 6px;
}

/* Terminal window chrome */
.terminal-window {
  border: 1px solid var(--border-green);
  border-radius: 6px;
  background: var(--bg-alt);
  box-shadow: 0 0 24px rgba(0, 255, 65, 0.08), inset 0 0 40px rgba(0, 255, 65, 0.02);
  overflow: hidden;
  margin-bottom: 28px;
}

.terminal-titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  background: #0f1a12;
  border-bottom: 1px solid var(--border-green);
}

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

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

.titlebar-text {
  margin-left: 8px;
  font-size: 12px;
  color: var(--green-muted);
}

.terminal-body {
  padding: 20px 22px 26px;
}

.term-line {
  margin: 0 0 8px;
  font-size: 14px;
  word-break: break-word;
}

.term-output {
  color: var(--green-dim);
  padding-left: 20px;
}

/* Hero */
.hero {
  padding: 48px 0 32px;
}

.hero-headline {
  font-size: clamp(20px, 4vw, 32px);
  line-height: 1.4;
  margin: 18px 0 14px;
  font-weight: 700;
  min-height: 1.4em;
}

.typing-target {
  color: var(--green-bright);
}

.hero-sub {
  color: var(--green-muted);
  font-size: 14px;
  margin: 0 0 22px;
  padding-left: 20px;
}

.hero-cta-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding-left: 20px;
}

.btn {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 4px;
  border: 1px solid var(--green-main);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--green-main);
  color: #04140a;
}

.btn-primary:hover,
.btn-primary:focus-visible {
  box-shadow: 0 0 18px rgba(0, 255, 65, 0.55);
}

.btn-ghost {
  background: transparent;
  color: var(--green-main);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
  background: rgba(0, 255, 65, 0.08);
}

.btn-block {
  display: block;
  width: 100%;
  text-align: center;
}

/* ASCII product mock */
.ascii-mock {
  margin-top: 16px;
  overflow-x: auto;
}

.ascii-art {
  color: var(--green-main);
  font-size: clamp(9px, 1.6vw, 13px);
  line-height: 1.5;
  margin: 0;
  white-space: pre;
  text-shadow: 0 0 6px rgba(0, 255, 65, 0.35);
}

/* Section generic */
.section {
  padding: 56px 0;
  border-top: 1px dashed var(--border-green);
}

.section-alt {
  background: var(--bg-alt);
}

.section-heading {
  font-size: clamp(18px, 3vw, 24px);
  margin: 0 0 8px;
}

.section-desc {
  color: var(--green-muted);
  font-size: 13px;
  margin: 0 0 28px;
  padding-left: 20px;
}

/* Features grid — ASCII box cards */
.grid-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.feature-card {
  border: 1px solid var(--border-green);
  border-radius: 4px;
  padding: 18px 18px 20px;
  background: rgba(0, 255, 65, 0.02);
  position: relative;
}

.feature-card::before {
  content: "┌" attr(data-line) "┐";
  display: none;
}

.feature-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.feature-icon {
  font-size: 20px;
}

.feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--green-bright);
  margin: 0;
}

.feature-desc {
  font-size: 13px;
  color: var(--green-dim);
  margin: 0;
  padding-left: 4px;
}

.feature-card .term-prefix {
  color: var(--green-faint);
  font-size: 12px;
}

/* Steps */
.steps-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.step-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  border-left: 2px solid var(--border-green);
  padding-left: 16px;
}

.step-tag {
  color: var(--green-bright);
  font-weight: 700;
  font-size: 15px;
  min-width: 34px;
}

.step-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
  color: var(--green-bright);
}

.step-item p {
  margin: 0;
  font-size: 13px;
  color: var(--green-dim);
}

/* Use cases */
.usecases-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.usecase-item {
  border: 1px solid var(--border-green);
  border-radius: 4px;
  padding: 14px 18px;
  background: rgba(0, 255, 65, 0.02);
}

.usecase-item .usecase-head {
  color: var(--green-bright);
  font-weight: 700;
  font-size: 14px;
  margin: 0 0 6px;
}

.usecase-item .usecase-head::before {
  content: "> user_type: ";
  color: var(--green-faint);
  font-weight: 400;
}

.usecase-item p {
  margin: 0;
  font-size: 13px;
  color: var(--green-dim);
  padding-left: 12px;
}

/* Pricing */
.pricing-box {
  max-width: 460px;
  margin: 0 auto;
  text-align: center;
}

.ascii-frame-top,
.ascii-frame-bottom {
  margin: 0;
  color: var(--green-dim);
  font-size: 13px;
  text-align: center;
  overflow-x: auto;
}

.pricing-inner {
  border-left: 1px solid var(--border-green);
  border-right: 1px solid var(--border-green);
  padding: 24px 22px;
  background: rgba(0, 255, 65, 0.02);
}

.pricing-product {
  color: var(--green-muted);
  font-size: 13px;
  margin: 0 0 6px;
}

.pricing-price {
  font-size: clamp(24px, 5vw, 34px);
  font-weight: 800;
  color: var(--green-bright);
  margin: 0 0 10px;
  text-shadow: 0 0 10px rgba(0, 255, 65, 0.45);
}

.pricing-note {
  font-size: 12px;
  color: var(--green-dim);
  margin: 0 0 20px;
}

/* FAQ accordion */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--border-green);
  border-radius: 4px;
  background: rgba(0, 255, 65, 0.02);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: var(--green-main);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  padding: 14px 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.faq-question::before {
  content: "$ ";
  color: var(--green-faint);
}

.faq-toggle-icon {
  color: var(--green-dim);
  flex-shrink: 0;
  transition: transform 0.15s ease;
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.2s ease;
}

.faq-answer-inner {
  padding: 0 18px 16px 30px;
  font-size: 13px;
  color: var(--green-dim);
}

.faq-item.open .faq-answer {
  max-height: 600px;
}

/* CTA final */
.cta-final {
  border-top: 1px dashed var(--border-green);
}

.cta-contact-line {
  padding-left: 20px;
  font-size: 13px;
  color: var(--green-muted);
  margin: 10px 0 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border-green);
  padding: 32px 0 40px;
  background: var(--bg-alt);
}

.footer-disclaimer {
  color: var(--green-muted);
  font-size: 11.5px;
  line-height: 1.7;
  white-space: pre-wrap;
  margin: 0 0 18px;
}

.footer-copy {
  font-size: 12px;
  color: var(--green-faint);
  margin: 0;
}

/* Responsive */
@media (max-width: 640px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .terminal-body {
    padding: 16px 14px 20px;
  }

  .hero-sub,
  .hero-cta-row,
  .term-output {
    padding-left: 0;
  }

  .btn {
    width: 100%;
    text-align: center;
  }
}
