/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg:       #0d0d0f;
  --bg2:      #111114;
  --card:     #1a1a1e;
  --card2:    #1e1e22;
  --border:   #2a2a30;
  --accent:   #007acc;
  --accent2:  #0098ff;
  --green:    #2d6a4f;
  --green2:   #4ec9b0;
  --text:     #e0e0e0;
  --muted:    #888;
  --faint:    #444;
  --radius:   12px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── Brand Icon ── */
.brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent) 0%, #0056b3 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: -0.5px;
}

.brand-icon.sm {
  width: 24px;
  height: 24px;
  font-size: 13px;
  border-radius: 6px;
}

/* ── Nav ── */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 15, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

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

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 16px;
  color: #fff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.nav-links a { transition: color 0.15s; }
.nav-links a:hover { color: #fff; }

.nav-github {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: border-color 0.15s, color 0.15s !important;
}

.nav-github:hover {
  border-color: var(--faint);
  color: #fff !important;
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 120px 24px 140px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -60%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(0, 122, 204, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

.hero-center {
  position: relative;
  z-index: 1;
  max-width: 640px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 14px;
  background: rgba(0, 122, 204, 0.12);
  border: 1px solid rgba(0, 122, 204, 0.25);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--accent2);
}

.hero-title {
  font-size: clamp(44px, 7vw, 72px);
  font-weight: 800;
  line-height: 1.08;
  color: #fff;
  letter-spacing: -1.5px;
}

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

.hero-sub {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 480px;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 12px 28px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  transition: background 0.15s, transform 0.1s;
}

.btn-primary:hover {
  background: var(--accent2);
  transform: translateY(-1px);
}

.btn-ghost {
  display: inline-block;
  padding: 10px 22px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, color 0.15s;
}

.btn-ghost:hover {
  border-color: var(--faint);
  color: #fff;
}

/* ── Sections ── */
.section-inner {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-size: clamp(26px, 4vw, 36px);
  font-weight: 700;
  color: #fff;
  text-align: center;
  margin-bottom: 10px;
}

.section-sub {
  color: var(--muted);
  text-align: center;
  font-size: 16px;
  margin-bottom: 56px;
}

/* ── Tools Section ── */
.tools {
  padding: 100px 24px;
  background: var(--bg2);
  border-top: 1px solid var(--border);
}

.tool-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.tool-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  transition: border-color 0.2s, transform 0.2s;
}

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

.tool-card.featured {
  border-color: rgba(0, 122, 204, 0.35);
  background: linear-gradient(160deg, var(--card) 0%, rgba(0,122,204,0.05) 100%);
}

.tool-card.coming-soon {
  opacity: 0.65;
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 16px;
}

.tool-icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.tool-icon.cf {
  background: rgba(0,122,204,0.12);
  border: 1px solid rgba(0,122,204,0.2);
}

.tool-icon.cf img {
  width: 36px;
  height: 36px;
  max-width: 36px;
  max-height: 36px;
  object-fit: contain;
  display: block;
}

.tool-icon.placeholder {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  color: var(--faint);
}

.tool-meta h3 {
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 4px;
}

.tool-tag {
  font-size: 12px;
  color: var(--accent2);
  font-weight: 500;
}

.coming-soon .tool-tag {
  color: var(--faint);
}

.tool-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  flex: 1;
}

.tool-desc em {
  font-style: normal;
  color: var(--green2);
  font-weight: 500;
}

.tool-features {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tool-features span {
  padding: 3px 10px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.tool-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.tool-platforms {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--faint);
}

.tool-platforms svg { flex-shrink: 0; }

.platform-label {
  font-size: 12px;
  color: var(--faint);
  margin-left: 2px;
}

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 40px 24px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #fff;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  color: var(--muted);
}

.footer-links a { transition: color 0.15s; }
.footer-links a:hover { color: #fff; }

.footer-copy {
  font-size: 12px;
  color: var(--faint);
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .hero { padding: 80px 24px 100px; }
  .tool-grid { grid-template-columns: 1fr; }
  .nav-links a:not(.nav-github) { display: none; }
}
