@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;700&display=swap');

/* ============================================================
   AISEO.works — shared stylesheet
   Pages:
     body.page-index  → aiseo-works-index-v3.html  (pastel palette)
     body.page-poc    → automatic-offer-system-*.html  (terminal palette)
   ============================================================ */

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

body {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.6;
  overflow-x: hidden;
}

body.page-index { background: #0a0a0f; color: #c9c9d4; }
body.page-poc   { background: #0a0a0a; color: #d4d4d4; }

/* scanline overlay */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.08) 2px,
    rgba(0,0,0,0.08) 4px
  );
  pointer-events: none;
  z-index: 1000;
}

/* terminal container */
.terminal { margin: 0 auto; }
body.page-index .terminal { max-width: 800px; padding: 40px 32px 80px; }
body.page-poc   .terminal { max-width: 780px; padding: 40px 32px 60px; }

.bold { font-weight: 700; }

/* ============================================================
   page-index palette
   ============================================================ */
body.page-index .p    { color: #c993e4; } /* purple primary */
body.page-index .l    { color: #98eca4; } /* mint secondary */
body.page-index .t    { color: #9ED8D8; } /* teal accent */
body.page-index .w    { color: #FEFEDF; } /* cream bright */
body.page-index .dim  { color: #3a3a4a; }
body.page-index .mute { color: #6a6a7a; }

body.page-index a {
  color: #9ED8D8;
  text-decoration: none;
  border-bottom: 1px dashed #9ED8D8;
}
body.page-index a:hover {
  color: #98eca4;
  border-bottom-color: #98eca4;
}

body.page-index .cursor {
  background: #9ED8D8;
}

/* ============================================================
   page-poc palette
   ============================================================ */
body.page-poc .g      { color: #4ec94e; }
body.page-poc .y      { color: #f6a623; }
body.page-poc .r      { color: #e05555; }
body.page-poc .dim    { color: #555; }
body.page-poc .bright { color: #fff; }

body.page-poc .cursor {
  background: #4ec94e;
}

/* ============================================================
   shared: cursor, prompt, reveal system
   ============================================================ */
.cursor {
  display: inline-block;
  width: 10px;
  height: 1.1em;
  vertical-align: text-bottom;
  animation: blink 1s step-end infinite;
}
@keyframes blink { 50% { opacity: 0; } }

.prompt-line {
  opacity: 0;
  animation: typeIn 0.6s ease forwards 0.3s;
}
body.page-index .prompt-line { margin-bottom: 28px; }
body.page-poc   .prompt-line { margin-bottom: 24px; }
@keyframes typeIn { from { opacity: 0; } to { opacity: 1; } }

.step {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  margin-bottom: 0;
}
.step.visible { opacity: 1; transform: translateY(0); }

body.page-index .step-gap { margin-bottom: 32px; }
body.page-poc   .step-gap { margin-bottom: 28px; }

/* ============================================================
   shared: section headers
   ============================================================ */
.section-head h2 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 1px;
}
body.page-index .section-head h2 { margin-bottom: 14px; }
body.page-poc   .section-head h2 { margin-bottom: 12px; }

/* ============================================================
   shared: progress bar
   ============================================================ */
.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  width: 0%;
  transition: width 0.4s ease;
}
body.page-index .progress-bar { background: #9ED8D8; z-index: 2500; }
body.page-poc   .progress-bar { background: #4ec94e; z-index: 2000; }

/* ============================================================
   shared: language toggle
   ============================================================ */
.lang {
  position: fixed;
  top: 18px;
  right: 20px;
  z-index: 2500;
  font-size: 12px;
  letter-spacing: 1px;
  user-select: none;
}
.lang button {
  background: transparent;
  font-family: inherit;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
  transition: all 0.2s;
}

body.page-index .lang button          { border: 1px solid #c993e4; color: #c993e4; }
body.page-index .lang button.active   { background: #c993e4; color: #FEFEDF; }
body.page-index .lang button:hover    { border-color: #98eca4; color: #98eca4; }
body.page-index .lang button.active:hover { background: #98eca4; color: #0a0a0f; border-color: #98eca4; }

body.page-poc .lang button            { border: 1px solid #4ec94e; color: #4ec94e; }
body.page-poc .lang button.active     { background: #4ec94e; color: #0a0a0a; }
body.page-poc .lang button:hover      { border-color: #f6a623; color: #f6a623; }
body.page-poc .lang button.active:hover { background: #f6a623; color: #0a0a0a; border-color: #f6a623; }

/* shared: language visibility */
body:not(.lang-en) .only-en { display: none; }
body.lang-en .only-bg { display: none; }

/* ============================================================
   shared: signature (raketa5 ASCII + contact)
   ============================================================ */
.signature {
  margin-top: 56px;
  text-align: left;
}
.sig-ascii {
  display: inline-block;
  text-align: left;
  color: #dce1f9;
  font-size: 11px;
  line-height: 1.25;
  letter-spacing: 0;
  opacity: 0.47;
  margin: 0;
}
.sig-contact {
  margin-top: 14px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-align: left;
}
body.page-index .sig-contact { color: #6a6a7a; }
body.page-poc   .sig-contact { color: #777; }
.sig-contact a {
  color: #9ED8D8;
  text-decoration: none;
  border-bottom: 1px dashed #9ED8D8;
}
.sig-contact a:hover {
  color: #F0DCE4;
  border-bottom-color: #F0DCE4;
}

.back-btn {
  color: #9ED8D8;
  text-decoration: none;
  border: 1px solid #9ED8D8;
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 1px;
  display: inline-block;
  transition: all 0.2s;
}
.back-btn:hover {
  background: #9ED8D8;
  color: #0a0a0a;
}

/* ============================================================
   page-index only
   ============================================================ */
body.page-index .title {
  font-size: 22px;
  letter-spacing: 3px;
  font-weight: 700;
  margin-bottom: 6px;
}
body.page-index .subtitle {
  font-size: 13px;
  color: #6a6a7a;
  margin-bottom: 4px;
}

body.page-index .context {
  background: #12121a;
  border-left: 3px solid #c993e4;
  padding: 12px 18px;
  font-size: 14px;
  color: #b0b0c0;
}

body.page-index .card {
  border: 1px solid #2a2a3a;
  border-radius: 4px;
  padding: 14px 18px;
  background: #0f0f18;
  margin-bottom: 12px;
  transition: border-color 0.25s;
}
body.page-index .card:hover { border-color: #c993e4; }
body.page-index .card .label {
  font-weight: 700;
  font-size: 14px;
  color: #98eca4;
  letter-spacing: 0.5px;
}
body.page-index .card .desc {
  font-size: 13px;
  color: #8a8a9a;
  margin-top: 4px;
  line-height: 1.55;
}

body.page-index .numstep {
  display: flex;
  gap: 14px;
  padding: 8px 0;
  font-size: 14px;
}
body.page-index .numstep .n {
  color: #c993e4;
  font-weight: 700;
  min-width: 28px;
}
body.page-index .numstep .t-label { color: #FEFEDF; font-weight: 700; }
body.page-index .numstep .t-desc  { color: #7a7a8a; font-size: 13px; margin-left: 6px; }
body.page-index .numstep-sub {
  margin: 2px 0 14px 42px;
  padding-left: 12px;
  border-left: 1px solid #2a2a3a;
  font-size: 12px;
  color: #6a6a7a;
  line-height: 1.65;
}
body.page-index .numstep-sub .hl { color: #F0DCE4; }

body.page-index .news-item {
  border: 1px solid #2a2a3a;
  border-left: 3px solid #c993e4;
  border-radius: 3px;
  padding: 14px 18px;
  background: #0f0f18;
  margin-bottom: 14px;
  transition: border-color 0.25s, transform 0.2s;
}
body.page-index .news-item:hover {
  border-color: #9ED8D8;
  border-left-color: #9ED8D8;
  transform: translateX(2px);
}
body.page-index .news-meta {
  font-size: 11px;
  color: #6a6a7a;
  letter-spacing: 1px;
  margin-bottom: 6px;
}
body.page-index .news-meta .tag {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid #c993e4;
  color: #c993e4;
  border-radius: 2px;
  margin-right: 8px;
  font-size: 10px;
}
body.page-index .news-meta .date { color: #8a8a9a; }
body.page-index .news-title {
  color: #FEFEDF;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 6px;
  letter-spacing: 0.3px;
}
body.page-index .news-excerpt {
  color: #8a8a9a;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 10px;
}
body.page-index .news-link {
  display: inline-block;
  color: #9ED8D8;
  font-size: 12px;
  text-decoration: none;
  border-bottom: 1px dashed #9ED8D8;
  padding-bottom: 1px;
}
body.page-index .news-link:hover {
  color: #F0DCE4;
  border-bottom-color: #F0DCE4;
}
body.page-index .news-btn {
  display: inline-block;
  margin-top: 4px;
  padding: 5px 14px;
  border: 1px solid #9ED8D8;
  border-radius: 3px;
  color: #9ED8D8;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
}
body.page-index .news-btn:hover {
  background: #9ED8D8;
  color: #0a0a0f;
}

body.page-index .row {
  padding: 6px 0;
  border-bottom: 1px solid #1a1a25;
  font-size: 13px;
}
body.page-index .row:last-child { border-bottom: none; }
body.page-index .row .k { color: #98eca4; }
body.page-index .row .v { color: #8a8a9a; }

body.page-index .cta {
  margin-top: 10px;
  border: 1px solid #9ED8D8;
  background: linear-gradient(180deg, #0f1a18 0%, #0a0a0f 100%);
  padding: 22px 24px;
  text-align: center;
  border-radius: 4px;
}
body.page-index .cta .head {
  color: #FEFEDF;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
body.page-index .cta .sub {
  color: #8a8a9a;
  font-size: 13px;
  margin-bottom: 16px;
}
body.page-index .cta a.btn {
  display: inline-block;
  border: 1px solid #9ED8D8;
  color: #9ED8D8;
  padding: 10px 22px;
  font-size: 13px;
  letter-spacing: 1px;
  text-decoration: none;
  transition: all 0.2s;
  border-radius: 2px;
}
body.page-index .cta a.btn:hover {
  background: #9ED8D8;
  color: #0a0a0f;
}

body.page-index .footer {
  margin-top: 48px;
  padding-top: 18px;
  border-top: 1px solid #1a1a25;
  font-size: 12px;
  color: #4a4a5a;
  text-align: center;
}

/* ============================================================
   page-poc only
   ============================================================ */
body.page-poc .flow-step {
  border: 1px solid #333;
  border-radius: 4px;
  padding: 10px 16px;
  position: relative;
  background: #0f0f0f;
}
body.page-poc .flow-step .label { font-weight: 700; font-size: 14px; }
body.page-poc .flow-step .desc  { font-size: 13px; color: #888; margin-top: 2px; }

body.page-poc .step-1 { border-color: #f6a623; }
body.page-poc .step-2 { border-color: #f6a623; }
body.page-poc .step-3 { border-color: #e05555; }
body.page-poc .step-4 { border-color: #4ec94e; }
body.page-poc .step-5 { border-color: #4ec94e; }
body.page-poc .step-6 { border-color: #fff; }

body.page-poc .flow-arrow {
  text-align: center;
  font-size: 18px;
  line-height: 1.2;
  padding: 6px 0;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: color 0.3s, transform 0.15s;
}
body.page-poc .flow-arrow:hover {
  color: #4ec94e;
  transform: scale(1.3);
}
body.page-poc .flow-arrow.lit { color: #4ec94e; }

body.page-poc .context {
  background: #111;
  border-left: 3px solid #f6a623;
  padding: 10px 16px;
  font-size: 13px;
  color: #999;
}

body.page-poc .ascii-table {
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
}

body.page-poc .status-row {
  display: flex;
  justify-content: space-between;
  padding: 3px 0;
  border-bottom: 1px solid #1a1a1a;
  font-size: 13px;
}
body.page-poc .status-row:last-child { border-bottom: none; }
body.page-poc .status-val { text-align: right; }

body.page-poc .footer {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid #222;
  font-size: 12px;
  color: #444;
}
body.page-poc .footer pre { color: #555; font-size: 11px; line-height: 1.3; }

body.page-poc .hint {
  position: fixed;
  bottom: 20px;
  right: 24px;
  font-size: 11px;
  color: #333;
  z-index: 2000;
  transition: opacity 0.5s;
}
body.page-poc .hint span { color: #4ec94e; }
body.page-poc .hint.hidden { opacity: 0; }

body.page-poc .browser-frame {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  border: 1px solid #333;
  margin: 16px 0 8px;
  max-width: 100%;
}
body.page-poc .browser-chrome {
  background: #1e1e1e;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid #333;
}
body.page-poc .browser-dots {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
body.page-poc .browser-dots span {
  width: 12px; height: 12px;
  border-radius: 50%;
  display: inline-block;
}
body.page-poc .browser-dots .dot-r { background: #e05555; }
body.page-poc .browser-dots .dot-y { background: #f6a623; }
body.page-poc .browser-dots .dot-g { background: #4ec94e; }
body.page-poc .browser-url {
  background: #2a2a2a;
  border-radius: 4px;
  padding: 3px 10px;
  font-size: 11px;
  color: #777;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
body.page-poc .browser-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 600px) {
  body.page-index .terminal { padding: 30px 18px 60px; }
  body.page-index .title    { font-size: 18px; letter-spacing: 2px; }
  .lang                     { top: 12px; right: 12px; }
}
