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

body {
  font-family: "Courier New", Courier, monospace;
  background: #fdf6ec;
  color: #1a1a1a;
}

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

/* ── Navbar────────────────── */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 48px;
  border-bottom: 2px solid #1a1a1a;
  background: #fdf6ec;
  position: sticky;
  top: 0;
  z-index: 100;
}

.navbar-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.navbar-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.navbar-links a {
  font-size: 14px;
  font-weight: 500;
}

.btn-primary {
  background: #1a1a1a;
  color: #fdf6ec;
  padding: 10px 22px;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-block;
}

.btn-primary:hover {
  background: #333;
}

.btn-outline {
  background: transparent;
  color: #1a1a1a;
  padding: 10px 22px;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: inline-block;
}

.btn-orange {
  background: #ff9f43;
  color: #1a1a1a;
  padding: 8px 18px;
  border: 2px solid #1a1a1a;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
}

/* ── Hero──────────────────── */
.hero {
  text-align: center;
  padding: 90px 48px 80px;
  border-bottom: 2px solid #1a1a1a;
}

.badge {
  display: inline-block;
  background: #fff3e0;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 28px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -2px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.hero h1 span {
  color: #ff9f43;
}

.hero p {
  font-size: 18px;
  color: #555;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.6;
}

.hero-btns {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}

.code-window {
  background: #1a1a1a;
  border-radius: 12px;
  padding: 28px;
  max-width: 600px;
  margin: 0 auto;
  text-align: left;
}

.window-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  display: inline-block;
}

.dot-red {
  background: #ff5f56;
}

.dot-amber {
  background: #ffbd2e;
}

.dot-green {
  background: #27c93f;
}

.code-window pre {
  color: #ff9f43;
  font-size: 13px;
  line-height: 1.8;
  overflow-x: auto;
  white-space: pre-wrap;
}

.code-window .c-cls {
  color: #aef;
}

.code-window .c-tag {
  color: #ff9f43;
}

.code-window .c-attr {
  color: #ffd;
}

/* ── Features──────────────── */
.features {
  padding: 80px 48px;
  border-bottom: 2px solid #1a1a1a;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 12px;
}

.section-header p {
  font-size: 16px;
  color: #555;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  overflow: hidden;
}

.feature-card {
  padding: 36px 28px;
  border-right: 2px solid #1a1a1a;
  background: #fff;
}

.feature-card:last-child {
  border-right: none;
}

.feature-card .icon {
  font-size: 28px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

/* ── Demo──────────────────── */
.demo-section {
  padding: 80px 48px;
  border-bottom: 2px solid #1a1a1a;
  background: #fff8f0;
}

.demo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: 860px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

.demo-panel {
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 12px;
  padding: 24px;
}

.panel-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: #888;
}

.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.cat-btn {
  font-size: 12px;
  padding: 5px 12px;
  border: 1.5px solid #1a1a1a;
  border-radius: 6px;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-weight: 600;
  transition: all 0.15s;
}

.cat-btn.active {
  background: #1a1a1a;
  color: #fff;
}

.cat-btn.new-btn {
  border-color: #ff9f43;
}

.cat-btn.new-btn.active {
  background: #ff9f43;
  color: #1a1a1a;
}

.class-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 280px;
  overflow-y: auto;
}

.class-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 12px;
  border-radius: 8px;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all 0.15s;
}

.class-row:hover {
  background: #fff3e0;
  border-color: #ff9f43;
}

.class-row code {
  font-size: 13px;
  color: #c0392b;
}

.class-row span {
  font-size: 12px;
  color: #888;
  text-align: right;
  max-width: 150px;
}

.preview-canvas {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  background: #f8f4ef;
  border-radius: 8px;
  border: 1.5px dashed #ccc;
  margin-bottom: 16px;
}

.preview-box {
  background: #ff9f43;
  padding: 20px 28px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  border: 2px solid #1a1a1a;
  transition: all 0.3s;
}

.preview-info {
  background: #f0e8d8;
  border-radius: 8px;
  padding: 12px 16px;
}

.preview-info small {
  font-size: 11px;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  display: block;
  margin-bottom: 4px;
}

.preview-info code {
  font-size: 13px;
  color: #c0392b;
}

/* ── Docs──────────────────── */
.docs-section {
  padding: 80px 48px;
  border-bottom: 2px solid #1a1a1a;
}

.docs-inner {
  max-width: 860px;
  margin: 0 auto;
}

.doc-group {
  margin-bottom: 44px;
}

.doc-group h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1a1a1a;
}

.doc-table {
  border: 1.5px solid #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
}

.doc-row {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1.2fr;
  border-bottom: 1px solid #e5e5e5;
}

.doc-row:last-child {
  border-bottom: none;
}

.doc-cell {
  padding: 12px 16px;
  font-size: 13px;
}

.doc-cell.cls {
  font-family: "Courier New", monospace;
  color: #c0392b;
  background: #fff;
}

.doc-cell.desc {
  color: #444;
  background: #fafafa;
  border-left: 1px solid #e5e5e5;
}

.doc-cell.css {
  font-family: "Courier New", monospace;
  font-size: 12px;
  color: #666;
  background: #fff8f0;
  border-left: 1px solid #e5e5e5;
}

/* ── New Classes───────────── */
.new-section {
  padding: 80px 48px;
  border-bottom: 2px solid #1a1a1a;
  background: #fff8f0;
}

.new-section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.new-badge {
  display: inline-block;
  background: #ff9f43;
  border: 2px solid #1a1a1a;
  border-radius: 999px;
  padding: 4px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.new-section h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.new-section>.new-section-inner>p {
  font-size: 15px;
  color: #555;
  margin-bottom: 36px;
}

.new-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}

.new-card {
  background: #fff;
  border: 2px solid #1a1a1a;
  border-radius: 10px;
  padding: 18px 20px;
}

.new-card .tag {
  background: #ff9f43;
  color: #1a1a1a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  display: inline-block;
}

.new-card code {
  font-size: 13px;
  color: #c0392b;
  display: block;
  margin-bottom: 5px;
}

.new-card p {
  font-size: 13px;
  color: #555;
  margin-bottom: 5px;
}

.new-card small {
  font-size: 11px;
  color: #888;
  font-family: "Courier New", monospace;
}

/* ── Install───────────────── */
.install-section {
  padding: 80px 48px;
  border-bottom: 2px solid #1a1a1a;
  text-align: center;
}

.install-inner {
  max-width: 680px;
  margin: 0 auto;
}

.install-section h2 {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 14px;
}

.install-section p {
  font-size: 16px;
  color: #555;
  margin-bottom: 40px;
}

.install-steps {
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: left;
}

.install-block {
  background: #1a1a1a;
  border-radius: 10px;
  padding: 20px 24px;
}

.install-block small {
  display: block;
  color: #888;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.install-block code {
  font-size: 14px;
  line-height: 1.7;
}

.code-orange {
  color: #ff9f43;
}

.code-green {
  color: #7fff7f;
}

.code-blue {
  color: #aef;
}

/* ── Footer────────────────── */
footer {
  padding: 32px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 16px;
}

.footer-meta {
  font-size: 14px;
  color: #888;
  margin-left: 10px;
}

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

.footer-links a {
  font-size: 14px;
  color: #555;
}

.footer-links a:hover {
  color: #1a1a1a;
}

/* ── Responsive────────────── */
@media (max-width: 768px) {
  .navbar {
    padding: 14px 20px;
  }

  .navbar-links {
    gap: 14px;
  }

  .hero,
  .features,
  .demo-section,
  .docs-section,
  .new-section,
  .install-section {
    padding: 60px 20px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-card {
    border-right: none;
    border-bottom: 2px solid #1a1a1a;
  }

  .feature-card:last-child {
    border-bottom: none;
  }

  footer {
    padding: 24px 20px;
  }
}