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

:root {
  --bg: #f7f6f3;
  --white: #ffffff;
  --ink: #18181a;
  --ink2: #3a3a3c;
  --muted: #8a8a8f;
  --border: #e2e0da;
  --blue: #2563eb;
  --blue-light: #eff4ff;
  --blue-mid: #dbeafe;
  --mono: "Geist Mono", monospace;
  --sans: "Geist", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--blue);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 246, 243, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 52px;
}

.nav-logo {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo .ext-badge {
  font-size: 10px;
  background: var(--blue-mid);
  color: var(--blue);
  padding: 2px 7px;
  border-radius: 20px;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-link {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
}
.nav-link:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-btn {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  background: var(--ink);
  color: #fff;
  border: none;
  padding: 7px 16px;
  border-radius: 5px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-btn:hover {
  background: var(--blue);
  text-decoration: none;
}

/* ── HERO ── */
.hero {
  max-width: 860px;
  margin: 0 auto;
  padding: 88px 32px 72px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--blue);
  background: var(--blue-light);
  border: 1px solid var(--blue-mid);
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 28px;
  letter-spacing: 0.04em;
  animation: fadeUp 0.5s ease both;
}

h1 {
  font-size: clamp(36px, 6vw, 62px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  margin-bottom: 20px;
  animation: fadeUp 0.5s 0.08s ease both;
}

h1 em {
  font-style: normal;
  color: var(--blue);
}

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  font-weight: 400;
  max-width: 520px;
  line-height: 1.7;
  margin-bottom: 36px;
  animation: fadeUp 0.5s 0.16s ease both;
}

.hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  animation: fadeUp 0.5s 0.22s ease both;
  margin-bottom: 64px;
}

.btn {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  padding: 10px 20px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: 0.15s;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--ink);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue);
  text-decoration: none;
}
.btn-ghost {
  background: var(--white);
  color: var(--ink2);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--ink);
  text-decoration: none;
}

/* ── MOCK POPUP ── */
.mock-wrap {
  animation: fadeUp 0.5s 0.28s ease both;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.mock-popup {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow:
    0 4px 40px rgba(0, 0, 0, 0.09),
    0 1px 3px rgba(0, 0, 0, 0.06);
  width: 340px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}

.mock-popup-bar {
  background: #f0eee9;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.mock-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}
.mock-dot.r {
  background: #ff5f57;
}
.mock-dot.y {
  background: #febc2e;
}
.mock-dot.g {
  background: #28c840;
}
.mock-bar-title {
  font-size: 11px;
  color: var(--muted);
  margin: 0 auto;
}

.mock-body {
  padding: 14px;
}

.mock-row {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.mock-input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink2);
  outline: none;
}
.mock-btn-sm {
  background: var(--ink);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  cursor: pointer;
  white-space: nowrap;
}

.mock-search {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 10px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}

.mock-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 8px 10px;
  margin-bottom: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-card:last-child {
  margin-bottom: 0;
}
.mock-card-title {
  font-size: 11px;
  color: var(--ink2);
}
.mock-card-title span {
  color: var(--blue);
  font-weight: 500;
}
.mock-card-actions {
  display: flex;
  gap: 4px;
}
.mock-icon-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 3px 6px;
  font-size: 10px;
  color: var(--muted);
  cursor: pointer;
}
.mock-card.active {
  border-color: var(--blue);
  background: var(--blue-light);
}
.mock-card.active .mock-card-title {
  color: var(--blue);
}

/* inline buttons mock */
.mock-inline {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 4px 40px rgba(0, 0, 0, 0.09);
  width: 300px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
}
.mock-inline-header {
  background: #f0eee9;
  border-bottom: 1px solid var(--border);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mock-inline-title {
  font-size: 12px;
  color: var(--ink2);
  font-weight: 500;
}
.mock-inline-btns {
  display: flex;
  gap: 5px;
}
.mock-inline-btn {
  font-family: var(--mono);
  font-size: 10px;
  padding: 4px 9px;
  border-radius: 4px;
  border: none;
  cursor: pointer;
  font-weight: 500;
}
.mock-inline-btn.rename {
  background: var(--blue);
  color: #fff;
}
.mock-inline-btn.transpose {
  background: var(--bg);
  color: var(--ink2);
  border: 1px solid var(--border);
}
.mock-inline-body {
  padding: 14px;
}
.mock-editor {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.mock-editor input {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--blue);
  border-radius: 4px;
  padding: 5px 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink);
  outline: none;
}
.mock-editor-btns {
  display: flex;
  gap: 4px;
}
.mock-save {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: 3px;
  padding: 5px 9px;
  font-size: 10px;
  cursor: pointer;
  font-family: var(--mono);
}
.mock-cancel {
  background: none;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 5px 9px;
  font-size: 10px;
  cursor: pointer;
  font-family: var(--mono);
  color: var(--muted);
}
.mock-children {
  border-top: 1px solid var(--border);
  padding-top: 8px;
}
.mock-child {
  font-size: 10px;
  color: var(--muted);
  padding: 3px 0;
  display: flex;
  gap: 6px;
  align-items: center;
}
.mock-child .arrow {
  color: var(--blue);
}
.mock-child del {
  color: #ccc;
}

/* ── DIVIDER ── */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 0;
}

/* ── SECTION ── */
.section {
  max-width: 860px;
  margin: 0 auto;
  padding: 64px 32px;
}

.section-label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

h2 {
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-bottom: 40px;
  line-height: 1.1;
}

/* ── FEATURES GRID ── */
.feat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}

.feat {
  background: var(--white);
  padding: 28px 26px;
  transition: background 0.15s;
}
.feat:hover {
  background: var(--blue-light);
}

.feat-icon {
  font-size: 16px;
  color: var(--blue);
  margin-bottom: 14px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-mid);
  border-radius: 6px;
}
.feat h3 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.feat p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.65;
}
.feat code {
  font-family: var(--mono);
  font-size: 11px;
  background: var(--blue-mid);
  color: var(--blue);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── WORKFLOWS ── */
.workflows {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 600px) {
  .workflows {
    grid-template-columns: 1fr;
  }
  nav{
        display: flex;
    height: 80px;
    flex-direction: column;
    flex-shrink: 0;
    gap: 10px;
    justify-content: space-evenly;
  }
}

.workflow-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 28px 26px;
  background: var(--white);
  position: relative;
  overflow: hidden;
}
.workflow-card::before {
  content: attr(data-label);
  position: absolute;
  top: 20px;
  right: 20px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  background: var(--blue-mid);
  color: var(--blue);
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}
.workflow-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 8px;
}
.workflow-card p {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 16px;
  line-height: 1.65;
}

.wf-steps {
  list-style: none;
}
.wf-steps li {
  font-size: 13px;
  color: var(--ink2);
  padding: 5px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  gap: 10px;
  align-items: baseline;
}
.wf-steps li:last-child {
  border-bottom: none;
}
.wf-steps li::before {
  content: counter(wf);
  counter-increment: wf;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--blue);
  background: var(--blue-mid);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.wf-steps {
  counter-reset: wf;
}

/* ── EXAMPLE ── */
.example-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px 36px;
}
.ex-row {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.ex-col {
  flex: 1;
  min-width: 200px;
}
.ex-label {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.tree-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--mono);
  font-size: 13px;
  padding: 5px 0;
  border-bottom: 1px dashed var(--border);
}
.tree-item:last-child {
  border-bottom: none;
}
.tree-indent {
  color: var(--border);
  user-select: none;
}
.ver {
  color: var(--blue);
  font-weight: 500;
}
.ver.old {
  color: var(--muted);
  text-decoration: line-through;
}
.ver.new {
  color: #16a34a;
}
.t-title {
  color: var(--ink2);
  font-size: 12px;
}

.ex-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--border);
  padding-top: 40px;
}

/* ── INSTALL ── */
.install-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.install-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 22px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
}

.install-num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue);
  color: #fff;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;

  line-height: 1;
}

.install-body h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.install-body p {
  font-size: 13px;
  color: var(--muted);
}
code {
  font-family: var(--mono);
  font-size: 12px;
  background: var(--blue-mid);
  color: var(--blue);
  padding: 1px 5px;
  border-radius: 3px;
}

/* ── SECURITY ── */
.security-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.sec-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px 20px;
}
.sec-card .icon {
  font-size: 15px;
  color: var(--blue);
  margin-bottom: 10px;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-mid);
  border-radius: 6px;
}
.sec-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
}
.sec-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── FOOTER ── */
footer {
  border-top: 1px solid var(--border);
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
footer span,
footer a {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--muted);
}
footer a:hover {
  color: var(--blue);
  text-decoration: none;
}

/* ── ANIM ── */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 640px) {
  nav {
    padding: 0 16px;
  }
  .hero {
    padding: 64px 16px 48px;
  }
  .section {
    padding: 48px 16px;
  }
  .mock-wrap {
    flex-direction: column;
  }
  footer {
    padding: 20px 16px;
  }
}
