/* AfterClaw landing page — dark technical theme
   Palette tuned to the real dashboard: deep navy base, electric-blue accent. */

:root {
  --bg:        #080b14;
  --bg-2:      #0c1122;
  --panel:     #111933;
  --panel-2:   #16203f;
  --border:    #20305c;
  --border-2:  #2c4178;
  --text:      #e6ebf7;
  --text-dim:  #9aa6c4;
  --text-mute: #66728f;
  --accent:    #5b9dff;
  --accent-2:  #38e0c8;
  --accent-soft: rgba(91, 157, 255, 0.14);
  --radius:    14px;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ===== NAV ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 11, 20, 0.82);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}
.brand { display: flex; align-items: center; font-weight: 700; }
.brand-name { font-size: 1.05rem; letter-spacing: 0.2px; }
.nav-links {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 0.9rem;
  color: var(--text-dim);
}
.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 12px; }

#lang-select {
  background: var(--panel);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.82rem;
  font-family: var(--sans);
  cursor: pointer;
}
.nav-gh {
  font-size: 0.85rem;
  padding: 7px 14px;
  border: 1px solid var(--border-2);
  border-radius: 8px;
  color: var(--text-dim);
  transition: all 0.15s;
}
.nav-gh:hover { color: var(--text); border-color: var(--accent); }
.nav-support {
  display: inline-flex;
  flex-shrink: 0;
  border-radius: 8px;
  transition: filter 0.15s, transform 0.15s;
}
.nav-support:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.nav-support img {
  display: block;
  width: auto;
  height: 32px;
  border: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 40px 24px 64px;
  background:
    radial-gradient(900px 380px at 50% -60px, rgba(91, 157, 255, 0.16), transparent 70%),
    linear-gradient(180deg, var(--bg-2), var(--bg));
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(91, 157, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(91, 157, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(620px 360px at 50% 30%, #000 35%, transparent 78%);
          mask-image: radial-gradient(620px 360px at 50% 30%, #000 35%, transparent 78%);
}
.hero-glow {
  position: absolute;
  width: 420px; height: 420px;
  right: -120px; top: -120px;
  background: radial-gradient(circle, rgba(56, 224, 200, 0.13), transparent 65%);
  pointer-events: none;
}
.hero-banner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 40px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow:
    0 0 0 1px rgba(91, 157, 255, 0.05),
    0 28px 80px -32px rgba(255, 107, 129, 0.45),
    0 22px 60px -34px rgba(56, 224, 200, 0.38);
}
.hero-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(8, 11, 20, 0.5) 62%,
    rgba(8, 11, 20, 0.9) 88%,
    var(--bg) 100%
  );
  pointer-events: none;
}
.hero-banner-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 0 24px 40px;
  text-align: center;
}
.hero-inner {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}
.hero-title {
  font-size: clamp(2.8rem, 7vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  background: linear-gradient(180deg, #ffffff, #aebede);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-tagline {
  font-size: clamp(1.1rem, 2.4vw, 1.42rem);
  font-weight: 600;
  margin-top: 10px;
  color: var(--text);
}
.hero-banner-caption .hero-tagline {
  text-shadow: 0 2px 14px rgba(8, 11, 20, 0.95), 0 1px 4px rgba(8, 11, 20, 0.9);
}
.hero-banner-caption .hero-title {
  filter: drop-shadow(0 3px 18px rgba(8, 11, 20, 0.85));
}
.hero-sub {
  font-size: 1rem;
  color: var(--text-dim);
  max-width: 580px;
  margin: 14px auto 0;
}

/* install command */
.install {
  margin-top: 34px;
  width: min(940px, 92vw);
  margin-left: 50%;
  transform: translateX(-50%);
}
.install-label {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-mute);
  margin-bottom: 8px;
}
.code-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
  max-width: 100%;
  margin: 0 auto;
}
.code {
  flex: 1;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--accent-2);
  background: var(--panel);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 13px 16px;
  text-align: left;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.5;
}
.code::before { content: "$ "; color: var(--text-mute); }
.code--oneline {
  white-space: nowrap;
  overflow-x: auto;
  font-size: 0.82rem;
}
.copy-btn {
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  border: none;
  border-radius: 10px;
  padding: 0 18px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  white-space: nowrap;
}
.copy-btn:hover { background: #7ab0ff; }
.copy-btn:active { transform: scale(0.96); }
.copy-btn.copied { background: var(--accent-2); }

.ghost-btn {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-dim);
  border: 1px solid var(--border-2);
  border-radius: 10px;
  padding: 11px 24px;
  transition: all 0.15s;
}
.ghost-btn:hover { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }

/* ===== SECTIONS ===== */
.section {
  max-width: 1120px;
  margin: 0 auto;
  padding: 52px 24px;
}
.section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--text-dim);
  max-width: 620px;
  margin: 14px auto 0;
}

/* ===== WHY ===== */
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.why-card {
  background: linear-gradient(160deg, var(--panel), var(--bg-2));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 24px;
}
.why-card h3 { font-size: 1.05rem; margin-bottom: 8px; }
.why-card h3::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 9px;
  vertical-align: middle;
  box-shadow: 0 0 8px var(--accent);
}
.why-card p { font-size: 0.92rem; color: var(--text-dim); }

/* ===== FEATURES ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 30px;
}
.feature {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 22px;
  transition: transform 0.16s, border-color 0.16s, background 0.16s;
}
.feature:hover {
  transform: translateY(-3px);
  border-color: var(--border-2);
  background: var(--panel-2);
}
.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 9px;
  background: var(--accent-soft);
  border: 1px solid var(--border-2);
  color: var(--accent);
  font-family: var(--mono);
  font-size: 0.95rem;
  margin-bottom: 14px;
}
.feature h3 { font-size: 1.02rem; margin-bottom: 6px; }
.feature p { font-size: 0.9rem; color: var(--text-dim); }

/* ===== SCREENSHOTS ===== */
.shots {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 30px;
}
.shot {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.16s, transform 0.16s;
}
.shot:hover { border-color: var(--border-2); transform: translateY(-3px); }
.shot img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top center;
  display: block;
  border-bottom: 1px solid var(--border);
  background: var(--bg-2);
}
.shot figcaption {
  min-height: 64px;
}
.shot figcaption {
  padding: 14px 16px;
  font-size: 0.84rem;
  color: var(--text-dim);
}

/* ===== QUICK START ===== */
.start-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 30px;
}
.start-block {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.code-block { max-width: 100%; }
.code-block .code { font-size: 0.82rem; }
.installers {
  margin-top: 22px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.installer-list {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.installer-list code {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 11px;
}
.start-note {
  margin-top: 18px;
  text-align: center;
  font-size: 0.88rem;
  color: var(--text-mute);
}

/* ===== FOOTER ===== */
.footer {
  border-top: 1px solid var(--border);
  background: var(--bg-2);
}
.footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 32px 24px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.footer-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.footer-lines .brand-name { font-size: 1.05rem; }
.footer-tagline {
  font-size: 0.86rem;
  color: var(--text-mute);
  margin: 0;
}
.footer-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-mute);
  margin-top: 2px;
}
.footer-meta .dot { color: var(--border-2); }
.footer-meta a:hover { color: var(--accent); }

.footer-support {
  display: inline-flex;
  flex-shrink: 0;
  margin-left: auto;
  border-radius: 9px;
  transition: filter 0.15s, transform 0.15s;
}
.footer-support:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.footer-support img {
  display: block;
  width: auto;
  height: 36px;
  border: 0;
}

.studio-avatar {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 1px solid var(--border-2);
  box-shadow: 0 0 0 4px rgba(91, 157, 255, 0.06);
  object-fit: cover;
  transition: transform 0.18s, box-shadow 0.18s;
}
.studio-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 18px rgba(91, 157, 255, 0.22);
}
.studio-text strong {
  color: var(--text-dim);
  font-weight: 700;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 860px) {
  .why-grid, .feature-grid, .shots, .start-grid {
    grid-template-columns: 1fr;
  }
  .nav-links { display: none; }
  .hero-banner { margin-bottom: 30px; }
  .hero-banner img {
    height: 360px;
    object-fit: cover;
    object-position: 50% 26%;
  }
}
@media (max-width: 520px) {
  .hero { padding: 28px 20px 44px; }
  .section { padding: 40px 20px; }
  .code-row { flex-direction: column; }
  .copy-btn { padding: 10px; }
  .hero-banner img { height: 300px; }
  .hero-banner-caption { padding-bottom: 28px; }
  .footer-support { margin-left: 92px; }
}
