/* ===== counter.gs — style.css ===== */

:root {
  --bg: #0a0a0a;
  --bg-elevated: #111111;
  --bg-card: #161616;
  --border: #222222;
  --border-hover: #333333;
  --text: #e8e8e8;
  --text-dim: #888888;
  --text-muted: #555555;
  --accent: #00d4aa;
  --accent-dim: rgba(0, 212, 170, 0.2);
  --accent-glow: rgba(0, 212, 170, 0.13);
  --error: #ff4444;
  --warning: #ffaa00;
  --font: 'Courier Prime', 'Courier New', Courier, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 14px;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ===== Header ===== */
header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.5px;
  cursor: pointer;
  text-decoration: none;
  color: var(--text);
}

.logo-icon {
  width: 28px; height: 28px;
  border: 1.5px solid var(--accent);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-glow);
}

.logo span { color: var(--accent); }

nav { display: flex; gap: 4px; }

.nav-link {
  padding: 6px 14px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-dim);
  font-size: 13px;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  background: none;
  font-family: var(--font);
}

.nav-link:hover, .nav-link.active {
  color: var(--text);
  background: var(--bg-card);
}

/* ===== Main ===== */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 80px 24px 60px;
}

/* ===== Hero ===== */
.hero {
  padding: 60px 0 40px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  font-size: 12px;
  color: var(--text-dim);
  margin-bottom: 28px;
}

.hero-badge .dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.hero h1 {
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -2px;
  margin-bottom: 16px;
  line-height: 1.1;
}

.hero h1 .accent { color: var(--accent); }

.hero-subtitle {
  font-size: 16px;
  color: var(--text-dim);
  max-width: 500px;
  margin: 0 auto 36px;
  line-height: 1.6;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--bg);
  font-family: var(--font);
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
}

.hero-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 32px var(--accent-dim);
}

.hero-cta svg { width: 16px; height: 16px; }

/* ===== Code Demo ===== */
.demo-section {
  margin: 40px 0;
}

.code-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
}

.code-header .dots { display: flex; gap: 6px; }

.code-header .dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}

.code-header .dot.r { background: #ff5f56; }
.code-header .dot.y { background: #ffbd2e; }
.code-header .dot.g { background: #27c93f; }

.code-header .filename {
  font-size: 12px;
  color: var(--text-muted);
  margin-left: 8px;
}

.code-body {
  padding: 20px 24px;
  overflow-x: auto;
}

.code-body pre {
  font-family: var(--font);
  font-size: 13px;
  line-height: 1.8;
  color: var(--text);
  white-space: pre;
}

.code-body .comment { color: var(--text-muted); }
.code-body .func { color: #82aaff; }
.code-body .arg { color: #c792ea; }
.code-body .str { color: #c3e88d; }
.code-body .num { color: #f78c6c; }
.code-body .kw { color: #ff5370; }
.code-body .result { color: var(--accent); }

/* ===== Features ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 40px 0;
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  transition: all 0.2s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent);
}

.feature-icon svg {
  width: 20px; height: 20px;
}

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

.feature-card p {
  font-size: 13px;
  color: var(--text-dim);
  line-height: 1.6;
}

/* ===== Content Pages ===== */
.page-section {
  display: none;
  animation: fadeIn 0.3s ease;
}

.page-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.page-header {
  padding: 20px 0 30px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.page-header h1 {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 8px;
}

.page-header p {
  color: var(--text-dim);
  font-size: 14px;
}

.page-content h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.page-content h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 24px 0 10px;
  color: var(--accent);
}

.page-content p {
  color: var(--text-dim);
  margin-bottom: 14px;
  font-size: 14px;
}

.page-content ul, .page-content ol {
  margin: 0 0 16px 20px;
  color: var(--text-dim);
  font-size: 14px;
}

.page-content li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.page-content a {
  color: var(--accent);
  text-decoration: none;
  cursor: pointer;
}

.page-content a:hover { text-decoration: underline; }

.page-content code {
  background: var(--bg-elevated);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--accent);
  border: 1px solid var(--border);
}

.page-content pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px 20px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  color: var(--text-dim);
  font-family: var(--font);
}

.page-content .last-updated {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 12px;
  color: var(--text-muted);
}

/* ===== Setup Steps ===== */
.setup-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.step-num {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

.step-body h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-body p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

/* ===== Support Cards ===== */
.support-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin: 24px 0;
}

.support-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  transition: all 0.2s;
  cursor: pointer;
}

.support-card:hover {
  border-color: var(--accent-dim);
  background: var(--accent-glow);
}

.support-card .icon {
  width: 32px; height: 32px;
  margin: 0 auto 12px;
  color: var(--accent);
}

.support-card .icon svg {
  width: 100%; height: 100%;
}

.support-card h3 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 6px;
}

.support-card p {
  font-size: 13px;
  color: var(--text-dim);
  margin: 0;
}

/* ===== Footer ===== */
footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

footer a {
  color: var(--text-dim);
  text-decoration: none;
  margin: 0 12px;
  cursor: pointer;
}

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

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .features { grid-template-columns: 1fr; }
  .support-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
  nav { display: none; }
}

/* ===== Scrollbar ===== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
