:root {
  --bg: #0b0d12;
  --bg-soft: #121620;
  --card: #161b28;
  --text: #e9edf5;
  --muted: #9aa6bf;
  --line: #2a3247;
  --brand: #5b8cff;
  --brand-2: #67d5b5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: radial-gradient(1200px 600px at 80% -100px, #1f2f55 0%, var(--bg) 50%);
  color: var(--text);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

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

.container {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(8px);
  background: rgba(8, 10, 14, 0.7);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.nav {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.brand-text {
  font-size: 22px;
  font-weight: 750;
  letter-spacing: 0.01em;
  line-height: 1;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  display: block;
}

.nav-links {
  display: inline-flex;
  gap: 20px;
  color: var(--muted);
}

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

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.lang-btn {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 7px 10px;
  cursor: pointer;
}

.lang-btn.is-active {
  background: rgba(107, 147, 255, 0.2);
  color: #dbe6ff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: linear-gradient(180deg, #6b93ff, #4b74df);
  color: white;
  padding: 11px 16px;
  border-radius: 10px;
  font-weight: 600;
  transition: transform 0.16s ease, opacity 0.16s ease;
}

.btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.btn-small {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
}

.hero {
  padding: 76px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand-2);
  font-weight: 600;
  font-size: 14px;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5.2vw, 56px);
  line-height: 1.05;
}

.free-badge {
  display: inline-flex;
  vertical-align: middle;
  margin-left: 10px;
  margin-top: -6px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(103, 213, 181, 0.55);
  background: rgba(103, 213, 181, 0.14);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}

.lead {
  margin: 16px 0 24px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
  max-width: 650px;
}

.system-requirement {
  margin: -8px 0 18px;
  color: #b6c4df;
  font-size: 14px;
}

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

.hero-points {
  margin: 20px 0 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.terminal-card {
  background: #0f1420;
  border: 1px solid #26314a;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.42);
}

.hero-preview-video {
  width: 100%;
  height: auto;
  display: block;
}

.demo-screenshot {
  display: block;
  width: 100%;
  height: auto;
}

.demo-stage {
  background: #0f1420;
}

.demo-topbar {
  height: 34px;
  background: #1a2234;
  border-bottom: 1px solid #26314a;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #8ea0c7;
  font-size: 12px;
}

.demo-topbar em {
  margin-left: 6px;
  font-style: normal;
  color: #90a1c8;
}

.demo-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #3f4f73;
}

.demo-topbar span:nth-child(1) {
  background: #ff5f56;
}

.demo-topbar span:nth-child(2) {
  background: #ffbd2e;
}

.demo-topbar span:nth-child(3) {
  background: #27c93f;
}

.demo-surface {
  position: relative;
  height: 280px;
  background: linear-gradient(180deg, #0e1320 0%, #0a0f1a 100%);
  overflow: hidden;
}

.hover-zone {
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 100%;
  background: linear-gradient(180deg, rgba(103, 213, 181, 0.22), rgba(103, 213, 181, 0.08));
  animation: edgePulse 3.6s ease-in-out infinite;
}

.hover-hint {
  position: absolute;
  top: 12px;
  left: 20px;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9cb1dc;
}

.sidecli-panel {
  position: absolute;
  top: 14px;
  left: 8px;
  width: 420px;
  height: 252px;
  border: 1px solid #30343d;
  border-radius: 0 0 14px 0;
  background: #191b20;
  overflow: hidden;
  box-shadow: 0 20px 35px rgba(0, 0, 0, 0.42);
  transform: translateX(calc(-100% - 26px));
  opacity: 0.2;
  animation: panelAutoHideCycle 5.8s cubic-bezier(0.44, 0.06, 0.18, 0.98) infinite;
}

.panel-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #171a20;
}

.app-header {
  height: 56px;
  padding: 9px 14px 7px;
  border-bottom: 1px solid #333840;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #c5ccd8;
}

.app-header-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.app-header-left strong {
  font-size: 17px;
  line-height: 1;
}

.app-header-left span {
  color: #8e97a8;
  font-size: 11px;
}

.app-header-icons {
  display: inline-flex;
  gap: 11px;
}

.app-header-icons i {
  width: 14px;
  height: 14px;
  border: 1px solid #646c7e;
  border-radius: 4px;
  opacity: 0.7;
}

.app-tabs {
  height: 40px;
  border-bottom: 1px solid #333840;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px;
}

.tab-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #2ad85d;
}

.tab-active {
  min-width: 138px;
  height: 30px;
  border-radius: 8px;
  background: #4f79a8;
  color: #e6eefb;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
}

.tab-active b {
  font-weight: 500;
  opacity: 0.9;
  margin-left: 14px;
}

.tab-add {
  margin-left: auto;
  color: #9aa2af;
  font-size: 21px;
  line-height: 1;
}

.panel-terminal {
  padding: 8px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, "Courier New", monospace;
  font-size: 13px;
  line-height: 1.65;
  color: #e3e7ef;
}

.panel-terminal .muted,
.panel-terminal p.muted {
  color: #a8b4d5;
}

.panel-terminal .green {
  color: #66d29f;
}

.panel-terminal .cyan {
  color: #56c8ff;
}

.panel-cursor {
  animation: blink 1s step-end infinite;
}

.mouse-pointer {
  position: absolute;
  width: 18px;
  height: 24px;
  left: 24%;
  top: 74%;
  background: #f4f8ff;
  clip-path: polygon(0% 0%, 0% 100%, 34% 72%, 55% 100%, 68% 93%, 47% 64%, 100% 64%);
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35));
  animation: pointerMoveCycle 5.8s cubic-bezier(0.44, 0.06, 0.18, 0.98) infinite;
}

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

@keyframes edgePulse {
  0%,
  34%,
  78%,
  100% {
    opacity: 0.2;
  }
  36%,
  64% {
    opacity: 0.9;
  }
}

@keyframes panelAutoHideCycle {
  0%,
  34%,
  78%,
  100% {
    transform: translateX(calc(-100% - 26px));
    opacity: 0.2;
  }
  46%,
  66% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes pointerMoveCycle {
  0% {
    left: 80%;
    top: 74%;
  }
  18% {
    left: 62%;
    top: 63%;
  }
  34% {
    left: 11%;
    top: 50%;
  }
  48% {
    left: 6%;
    top: 46%;
  }
  64% {
    left: 9%;
    top: 58%;
  }
  82% {
    left: 50%;
    top: 72%;
  }
  100% {
    left: 78%;
    top: 74%;
  }
}

.section {
  padding: 62px 0;
}

.section h2 {
  margin: 0 0 22px;
  font-size: clamp(30px, 4vw, 40px);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  padding: 18px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #161b28, #131824);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

code {
  background: #1d2436;
  border: 1px solid #2b3551;
  border-radius: 6px;
  padding: 1px 5px;
  color: #ccd8f4;
}

.section-alt {
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 30px;
}

.two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 42px;
  align-items: start;
}

.two-col p {
  color: var(--muted);
  line-height: 1.8;
}

.why-copy {
  max-width: 680px;
}

.why-copy p {
  margin: 0 0 18px;
}

.why-copy p:last-child {
  margin-bottom: 0;
}

.check-list {
  margin: 8px 0 0;
  padding: 16px 18px;
  list-style: none;
  color: var(--muted);
  line-height: 1.75;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(22, 27, 40, 0.55);
}

.check-list li {
  position: relative;
  padding-left: 18px;
}

.check-list li + li {
  margin-top: 10px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--brand-2);
}

.faq-list {
  display: grid;
  gap: 10px;
}

details {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  background: rgba(20, 26, 38, 0.75);
}

summary {
  cursor: pointer;
  font-weight: 600;
}

details p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.site-footer {
  border-top: 0;
  margin-top: 0;
}

.footer-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted);
}

.footer-links {
  display: inline-flex;
  gap: 14px;
}

.footer-links a:hover {
  color: var(--text);
}

.footer-license {
  padding: 0 0 18px;
  color: var(--muted);
  font-size: 12px;
}

.footer-license a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-license a:hover {
  color: var(--text);
}

@media (max-width: 960px) {
  .hero-grid,
  .two-col,
  .feature-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nav-links {
    display: none;
  }

  .nav-actions .btn-small {
    font-size: 12px;
    padding: 7px 10px;
  }

  .hero {
    padding-top: 50px;
  }

  .container {
    width: min(1120px, calc(100% - 24px));
  }
}
