/* ============================================
   637 Digital — AI/Modern Dark Theme
   ============================================ */

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

:root {
  --bg:          #080b14;
  --bg-surface:  #0e1220;
  --bg-card:     #111827;
  --border:      rgba(255,255,255,.08);
  --border-glow: rgba(139,92,246,.35);

  --purple:      #8b5cf6;
  --purple-dim:  #6d28d9;
  --cyan:        #22d3ee;
  --cyan-dim:    #0891b2;
  --green:       #34d399;

  --text:        #e2e8f0;
  --text-muted:  #64748b;
  --text-dim:    #94a3b8;
  --white:       #ffffff;

  --font:       'Inter', system-ui, sans-serif;
  --mono:       'JetBrains Mono', 'Fira Code', monospace;
  --radius:     12px;
  --radius-lg:  20px;
}

html { scroll-behavior: smooth; }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Typography ---- */
h1, h2, h3 { color: var(--white); line-height: 1.2; font-weight: 800; }
h1 { font-size: clamp(2.25rem, 5.5vw, 3.75rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); letter-spacing: -.02em; }
h3 { font-size: 1.0625rem; font-weight: 700; }

.gradient-text {
  background: linear-gradient(135deg, var(--purple) 0%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 14px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  cursor: pointer;
  text-decoration: none;
  transition: all .18s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn--primary {
  background: linear-gradient(135deg, var(--purple), var(--cyan-dim));
  color: var(--white);
  border-color: transparent;
  box-shadow: 0 0 20px rgba(139,92,246,.3);
}
.btn--primary:hover {
  box-shadow: 0 0 32px rgba(139,92,246,.5);
  transform: translateY(-1px);
}
.btn--ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: var(--border);
}
.btn--ghost:hover {
  border-color: rgba(255,255,255,.2);
  color: var(--white);
}

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,11,20,.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--white);
  text-decoration: none;
  letter-spacing: -.01em;
}
.logo span {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}
.nav__links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color .15s;
}
.nav__links a:hover { color: var(--white); }

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 96px 0 88px;
  overflow: hidden;
}
.hero__glow {
  position: absolute;
  top: -80px;
  left: 30%;
  width: 600px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(139,92,246,.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero__text { display: flex; flex-direction: column; align-items: flex-start; }

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.3);
  border-radius: 20px;
  padding: 6px 16px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--purple);
  margin-bottom: 24px;
}
.badge-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: .4; }
}

.hero__text h1 { margin-bottom: 18px; }
.hero__sub {
  font-size: 1.0625rem;
  color: var(--text-dim);
  max-width: 480px;
  margin-bottom: 32px;
  line-height: 1.75;
}
.hero__cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero__stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.stack-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.stack-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.pill {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Hero visual — browser mockup */
.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
}
.wp-card {
  width: 100%;
  max-width: 360px;
  background: #0d1117;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(139,92,246,.15), 0 24px 60px rgba(0,0,0,.5);
  display: grid;
  grid-template-columns: 52px 1fr;
  grid-template-rows: auto 1fr;
}
.wp-card__bar {
  grid-column: 1 / -1;
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.07);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot--red    { background: #ff5f57; }
.dot--yellow { background: #ffbd2e; }
.dot--green  { background: #28c840; }
.wp-card__url {
  margin-left: 10px;
  flex: 1;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 5px;
  padding: 3px 10px;
  font-family: var(--mono);
  font-size: 0.65rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.wp-card__sidebar {
  grid-column: 1;
  background: #0d1117;
  border-right: 1px solid rgba(255,255,255,.06);
  padding: 14px 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sidebar-item {
  height: 8px;
  border-radius: 4px;
  background: rgba(255,255,255,.08);
}
.sidebar-item--active { background: rgba(139,92,246,.5); }
.sidebar-item--short  { width: 60%; }
.wp-card__body {
  grid-column: 2;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wp-block {
  height: 10px;
  border-radius: 4px;
  background: rgba(255,255,255,.07);
  animation: shimmer 2.2s ease-in-out infinite alternate;
}
.wp-block--title { height: 16px; width: 55%; background: rgba(139,92,246,.25); }
.wp-block--wide  { width: 100%; }
.wp-block--med   { width: 75%; }
.wp-block--short { width: 45%; }
@keyframes shimmer {
  from { opacity: .45; }
  to   { opacity: .9; }
}

.hero-badge {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
}
.hero-badge--1 {
  bottom: -10px;
  left: -20px;
  background: rgba(52,211,153,.12);
  border: 1px solid rgba(52,211,153,.3);
  color: var(--green);
}
.hero-badge--2 {
  top: 16px;
  right: -24px;
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.3);
  color: var(--purple);
}

/* ---- Section shared ---- */
.section-header {
  text-align: center;
  max-width: 560px;
  margin: 0 auto 56px;
}
.section-header h2 { margin: 6px 0 14px; }
.section-sub { color: var(--text-muted); font-size: 1rem; }

/* ---- How ---- */
.how {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.how__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.how-card {
  background: var(--bg-card);
  padding: 36px 32px;
  transition: background .2s;
}
.how-card:hover { background: #151d2e; }
.how-card__num {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--purple);
  letter-spacing: .08em;
  margin-bottom: 16px;
}
.how-card h3 { margin-bottom: 10px; }
.how-card p { color: var(--text-muted); font-size: 0.9375rem; line-height: 1.7; }

/* ---- Plugins ---- */
.plugins {
  padding: 96px 0;
  border-top: 1px solid var(--border);
}
.plugins__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.plugin-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.plugin-card:hover {
  border-color: var(--border-glow);
  box-shadow: 0 0 24px rgba(139,92,246,.1);
}
.plugin-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.plugin-card__icon {
  width: 40px; height: 40px;
  background: rgba(139,92,246,.12);
  border: 1px solid rgba(139,92,246,.2);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.plugin-card__icon svg { width: 20px; height: 20px; }
.plugin-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: .06em;
  padding: 3px 10px;
  border-radius: 4px;
  background: rgba(34,211,238,.1);
  color: var(--cyan);
  border: 1px solid rgba(34,211,238,.2);
  text-transform: uppercase;
}
.plugin-tag--live {
  background: rgba(52,211,153,.1);
  color: var(--green);
  border-color: rgba(52,211,153,.2);
}
.plugin-card h3 { color: var(--white); }
.plugin-card p { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.plugin-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 4px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.plugin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-dim);
  text-decoration: none;
  transition: color .15s;
}
.plugin-link:hover { color: var(--white); }
.plugin-link[aria-disabled="true"] { opacity: .35; pointer-events: none; }
.plugin-license {
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  padding: 2px 8px;
  border-radius: 4px;
}

/* Placeholder card */
.plugin-card--placeholder {
  border-style: dashed;
  min-height: 180px;
  justify-content: center;
}
.placeholder-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  text-align: center;
}
.placeholder-icon {
  font-size: 1.5rem;
  line-height: 1;
  color: var(--border-glow);
}
.placeholder-inner p { font-size: 0.875rem; }

/* ---- Contact ---- */
.contact {
  padding: 96px 0;
  border-top: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.contact__glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(34,211,238,.1) 0%, transparent 70%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  max-width: 600px;
  margin: 0 auto;
}
.contact__inner h2 { margin: 6px 0 16px; }
.contact__sub {
  color: var(--text-muted);
  font-size: 1rem;
  margin-bottom: 32px;
  line-height: 1.7;
}
.contact__email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--cyan);
  text-decoration: none;
  padding: 16px 28px;
  border: 1px solid rgba(34,211,238,.25);
  border-radius: var(--radius);
  background: rgba(34,211,238,.06);
  transition: all .18s;
}
.contact__email:hover {
  background: rgba(34,211,238,.12);
  border-color: rgba(34,211,238,.5);
  box-shadow: 0 0 28px rgba(34,211,238,.15);
}

/* ---- Footer ---- */
.footer {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__copy { font-size: 0.8125rem; color: var(--text-muted); }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .how__grid { grid-template-columns: 1fr; }
  .how-card:not(:last-child) { border-bottom: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { display: none; }
}
@media (max-width: 600px) {
  .nav__links a:not(:last-child) { display: none; }
  .hero { padding: 72px 0 64px; }
  .hero__cta { flex-direction: column; align-items: flex-start; }
  .footer__inner { flex-direction: column; text-align: center; }
}
