/* PLEIAD — dark developer landing (tikhub-clone inspired) */
:root {
  --bg: #0c0c10;
  --bg-soft: #0f0f14;
  --surface: #17171d;
  --card: #16161c;
  --card-hover: #1e1e26;
  --fg: #f2f2f0;
  --muted: #9ca3af;
  --border: #26262e;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --accent-dim: #1e1b4b;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 0.75rem;
  --max: 1200px;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", sans-serif;
  --mono: "Geist Mono", "SF Mono", Monaco, "Cascadia Code", monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--bg); scroll-padding-top: 88px; }

body {
  margin: 0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

::selection { background: var(--accent); color: #fff; }

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

/* ---------- header ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
  background: transparent;
}
.site-header.scrolled {
  background: color-mix(in oklab, var(--bg) 82%, transparent);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom-color: color-mix(in oklab, var(--border) 60%, transparent);
}
.site-header__inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; white-space: nowrap; }
.brand__wordmark { font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em; color: var(--muted); text-transform: uppercase; }
.brand b { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; }
.brand b em { font-style: normal; color: var(--accent); }

.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s ease, background 0.2s ease;
}
.site-nav a:hover { color: var(--fg); background: color-mix(in oklab, var(--fg) 5%, transparent); }

.nav-right { display: flex; align-items: center; gap: 12px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 38px;
  padding: 0 18px;
  border-radius: 9999px;
  font-size: 13.5px;
  font-weight: 500;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-family: inherit;
}
.btn--primary { background: var(--fg); color: var(--bg); }
.btn--primary:hover { background: color-mix(in oklab, var(--fg) 85%, transparent); box-shadow: 0 8px 20px -6px rgba(0,0,0,0.5); }
.btn--ghost { background: transparent; color: var(--fg); border-color: var(--border); }
.btn--ghost:hover { border-color: color-mix(in oklab, var(--fg) 25%, transparent); background: color-mix(in oklab, var(--fg) 4%, transparent); }
.btn--lg { height: 48px; padding: 0 26px; font-size: 15px; }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); box-shadow: 0 0 24px rgba(99,102,241,0.25); }

.menu-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--fg); border-radius: 8px; height: 38px; padding: 0 14px; cursor: pointer; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  padding: 168px 0 48px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(600px 320px at 18% 8%, rgba(99,102,241,0.14), transparent 60%),
    radial-gradient(700px 380px at 82% 12%, rgba(129,140,248,0.08), transparent 60%);
}
.hero__grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 72px 72px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero .container { position: relative; z-index: 1; text-align: center; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 9999px;
  background: color-mix(in oklab, var(--surface) 75%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in oklab, var(--border) 50%, transparent);
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  min-height: 34px;
  min-width: 220px;
}
.hero__badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2.2s ease-in-out infinite; flex-shrink: 0; }
@keyframes pulse-dot { 0%,100% { opacity: 1; } 50% { opacity: 0.4; } }
.typewriter-caret { display: inline-block; width: 2px; height: 1em; margin-left: 2px; background: var(--accent); vertical-align: middle; animation: caret-blink 1s step-end infinite; }
@keyframes caret-blink { 0%,100% { opacity: 1; } 50% { opacity: 0; } }

/* TrueFocus: second line words cycle blur, corner frame follows */
.hero__focus-line { position: relative; display: inline-flex; gap: 0.3em; justify-content: center; align-items: center; flex-wrap: wrap; color: var(--accent); }
.hero__focus-word > [data-focus-word] { display: inline-block; transition: filter 0.5s ease; }
.hero__focus-frame {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  opacity: 0;
  box-sizing: content-box;
  transition: transform 0.5s ease, width 0.5s ease, height 0.5s ease, opacity 0.4s ease;
  will-change: transform, width, height;
}
.hero__focus-frame .c { position: absolute; width: 12px; height: 12px; border: 0 solid var(--accent); filter: drop-shadow(0 0 4px rgba(99,102,241,0.45)); }
.hero__focus-frame .c.tl { top: -8px; left: -8px; border-top-width: 2.5px; border-left-width: 2.5px; }
.hero__focus-frame .c.tr { top: -8px; right: -8px; border-top-width: 2.5px; border-right-width: 2.5px; }
.hero__focus-frame .c.bl { bottom: -8px; left: -8px; border-bottom-width: 2.5px; border-left-width: 2.5px; }
.hero__focus-frame .c.br { bottom: -8px; right: -8px; border-bottom-width: 2.5px; border-right-width: 2.5px; }

.hero h1 {
  margin-top: 26px;
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.04;
}
.hero h1 .grad {
  background: linear-gradient(to right, var(--fg) 0%, var(--fg) 40%, var(--muted) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero h1 .accent-word { color: var(--accent); }

.hero__edition {
  margin-top: 30px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border-radius: 9999px;
  background: var(--surface);
  border: 1px solid var(--border);
}
.hero__edition button {
  min-width: 96px;
  height: 34px;
  padding: 0 20px;
  border: 0;
  border-radius: 9999px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.hero__edition button[aria-selected="true"] { background: var(--fg); color: var(--bg); }

.hero__lede {
  max-width: 660px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.hero__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 26px; margin-top: 28px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.hero__meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); opacity: 0.7; }

.hero__cta { margin-top: 38px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------- hero marquee (cards, tikhub style) ---------- */
.hero-marquee {
  position: relative;
  margin-top: 56px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  padding: 8px 0 4px;
}
.marquee__fade { position: absolute; top: 0; bottom: 0; width: 120px; z-index: 10; pointer-events: none; }
.marquee__fade--l { left: 0; background: linear-gradient(to right, var(--bg), transparent); }
.marquee__fade--r { right: 0; background: linear-gradient(to left, var(--bg), transparent); }
.marquee__row { display: flex; overflow: hidden; }
.marquee__row + .marquee__row { margin-top: 12px; }
.marquee__track { display: flex; flex: 0 0 auto; width: max-content; animation: scroll-left 48s linear infinite paused; }
.hero-marquee.is-running .marquee__track { animation-play-state: running; }
.hero-marquee:hover .marquee__track, .hero-marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__row--reverse .marquee__track { animation-direction: reverse; animation-duration: 40s; }
@keyframes scroll-left { to { transform: translateX(-50%); } }
.marquee__set { display: flex; flex: 0 0 auto; gap: 14px; padding: 0; margin-right: 14px; }
.marquee-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  width: 250px;
  flex-shrink: 0;
  padding: 18px;
  border-radius: 12px;
  background: color-mix(in oklab, var(--surface) 55%, transparent);
  backdrop-filter: blur(8px);
  border: 1px solid color-mix(in oklab, var(--accent) 15%, transparent);
  box-shadow: 0 0 12px rgba(99,102,241,0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background 0.3s ease;
  text-align: left;
}
.marquee-card:hover {
  transform: translateY(-3px);
  background: color-mix(in oklab, var(--surface) 75%, transparent);
  border-color: color-mix(in oklab, var(--accent) 32%, transparent);
  box-shadow: 0 0 22px rgba(99,102,241,0.16);
}
.marquee-card__icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}
.marquee-card:hover .marquee-card__icon { transform: scale(1.08); }
.marquee-card__icon img { width: 22px; height: 22px; border-radius: 6px; object-fit: contain; }
.marquee-card__txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.marquee-card__txt b { font-size: 14px; font-weight: 600; color: var(--fg); letter-spacing: -0.01em; }
.marquee-card__txt i { font-style: normal; font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ---------- section ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 720px; margin-bottom: 54px; }
.section-head__eyebrow { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.section-head h2 { margin-top: 16px; font-size: clamp(30px, 4vw, 46px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.12; }
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16.5px; line-height: 1.7; }
.section-head--center { max-width: 760px; margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.feature-card {
  position: relative;
  padding: 26px 24px 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}
.feature-card:hover {
  background: var(--card-hover);
  border-color: color-mix(in oklab, var(--accent) 30%, transparent);
  transform: translateY(-3px);
  box-shadow: 0 0 28px rgba(99,102,241,0.08);
}
.feature-card__tag { color: var(--muted); font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; }
.feature-card h3 { margin-top: 22px; font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.feature-card p { margin-top: 11px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.feature-card__num { position: absolute; top: 20px; right: 20px; color: color-mix(in oklab, var(--fg) 14%, transparent); font-family: var(--mono); font-size: 13px; font-weight: 600; }

/* ---------- split showcase ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
.split--reverse .split__media { order: -1; }
.split__copy .section-head { margin-bottom: 0; }
.split__list { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.split__list li { display: flex; gap: 12px; align-items: flex-start; color: var(--muted); font-size: 15px; line-height: 1.6; list-style: none; }
.split__list li::before { content: ""; flex: 0 0 auto; width: 6px; height: 6px; margin-top: 9px; border-radius: 50%; background: var(--accent); opacity: 0.8; }

/* media placeholder — real video/screenshot goes here */

/* ---------- feature showcase visuals ---------- */
.feature-card__visual {
  position: relative;
  height: 120px;
  margin: 4px 0 18px;
  border-radius: 10px;
  background:
    radial-gradient(120px 60px at 50% 0%, rgba(99,102,241,0.12), transparent 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--card) 100%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.feature-card__visual svg { color: var(--accent); }
.feature-card__visual .fx-grid { position: absolute; inset: 0; background-image: linear-gradient(to right, rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(to bottom, rgba(255,255,255,0.03) 1px, transparent 1px); background-size: 22px 22px; }

/* ---------- capability map ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.cap-item {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 22px 22px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.cap-item:hover { border-color: color-mix(in oklab, var(--accent) 26%, transparent); background: var(--card-hover); }
.cap-item__num { color: var(--accent); font-family: var(--mono); font-size: 12px; font-weight: 600; padding-top: 3px; }
.cap-item h3 { font-size: 16.5px; font-weight: 600; letter-spacing: -0.015em; line-height: 1.25; }
.cap-item p { margin-top: 7px; color: var(--muted); font-size: 13.5px; line-height: 1.6; }
.cap-item__status {
  align-self: start;
  padding: 3px 10px;
  border-radius: 9999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.cap-item__status--ok { color: var(--success); background: color-mix(in oklab, var(--success) 12%, transparent); }
.cap-item__status--warn { color: var(--warning); background: color-mix(in oklab, var(--warning) 12%, transparent); }
.cap-item__status--acc { color: var(--accent); background: color-mix(in oklab, var(--accent) 12%, transparent); }

/* ---------- workflow / steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.step {
  position: relative;
  padding: 26px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
}
.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 14px;
  right: 18px;
  color: color-mix(in oklab, var(--fg) 12%, transparent);
  font-family: var(--mono);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.step h3 { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }
.step p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.step__arrow { position: absolute; top: 50%; right: -18px; transform: translateY(-50%); color: var(--border); z-index: 2; }
.step:last-child .step__arrow { display: none; }

/* ---------- final CTA ---------- */
.final-cta { padding: 110px 0; position: relative; overflow: hidden; }
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(640px 340px at 50% 0%, rgba(99,102,241,0.14), transparent 65%);
  pointer-events: none;
}
.final-cta .container { position: relative; text-align: center; }
.final-cta h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.08; }
.final-cta h2 .accent-word { color: var(--accent); }
.final-cta p { max-width: 620px; margin: 20px auto 0; color: var(--muted); font-size: 17px; line-height: 1.7; }
.final-cta .hero__cta { margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-soft); }
.site-footer__inner { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer span { color: var(--muted); font-size: 13.5px; }
.site-footer a { color: var(--muted); font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; transition: color 0.2s ease; }
.site-footer a:hover { color: var(--fg); }

/* ---------- consultation dialog ---------- */
.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(5,5,8,0.72);
  backdrop-filter: blur(8px);
}
.dialog-backdrop.open { display: flex; }
.dialog {
  width: min(520px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px 34px 30px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}
.dialog__close {
  float: right;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.dialog__close:hover { color: var(--fg); background: color-mix(in oklab, var(--fg) 6%, transparent); }
.dialog .eyebrow { color: var(--accent); font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.dialog h2 { margin-top: 14px; font-size: 24px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.2; }
.dialog__intro { margin-top: 12px; color: var(--muted); font-size: 14.5px; line-height: 1.65; }
.consultation-form { margin-top: 24px; display: flex; flex-direction: column; gap: 14px; }
.consultation-form label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: 12.5px; font-weight: 500; }
.consultation-form input,
.consultation-form textarea {
  padding: 11px 13px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--fg);
  font-size: 14px;
  resize: vertical;
}
.consultation-form input:focus, .consultation-form textarea:focus { outline: none; border-color: var(--accent); }
.consultation-form__trap { position: absolute; left: -9999px; opacity: 0; height: 0; }
.consultation-form__status { font-size: 13px; min-height: 18px; }
.consultation-form__status--success { color: var(--success); }
.consultation-form__status--error { color: #f87171; }

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.6s ease, transform 0.6s ease; }
[data-reveal].in { opacity: 1; transform: translateY(0); }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split--reverse .split__media { order: 0; }
  .section { padding: 72px 0; }
}
@media (max-width: 700px) {
  .container { width: min(100% - 32px, var(--max)); }
  .site-nav, .nav-right .btn--ghost { display: none; }
  .menu-toggle { display: inline-flex; align-items: center; }
  .site-nav.open {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 96px 24px 24px;
    background: var(--bg);
  }
  .site-nav.open a { padding: 14px 8px; font-size: 18px; border-bottom: 1px solid var(--border); border-radius: 0; }
  .hero { padding: 130px 0 40px; }
  .hero h1 { font-size: clamp(34px, 10.5vw, 52px); }
  .hero__badge { min-width: 0; width: 100%; max-width: 300px; font-size: 12px; }
  .hero__edition button { min-width: 84px; padding: 0 14px; }
  .hero-marquee { margin-top: 40px; }
  .marquee-card { width: 210px; padding: 14px; }
  .marquee__fade { width: 48px; }
  .feature-grid, .steps, .cap-grid { grid-template-columns: 1fr; }
  .cap-item { grid-template-columns: 40px minmax(0, 1fr); }
  .cap-item__status { grid-column: 2; justify-self: start; }
  .site-footer__inner { flex-direction: column; justify-content: center; gap: 10px; padding: 28px 0; text-align: center; }
  .step__arrow { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee__track { animation: none !important; }
  .hero__badge .dot { animation: none; }
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; }
}
