/* ============================================================
   PARCELFORGEPRO — TOOL LAUNCHER
   ============================================================ */

:root {
  --bg-void:     #06060b;
  --bg-deep:     #0a0a14;
  --bg-surface:  #0f0f1a;
  --bg-card:     #111119;
  --bg-border:   rgba(255,255,255,0.06);

  --accent-deep:  #5b21b6;
  --accent:       #7c3aed;
  --accent-mid:   #8b5cf6;
  --accent-light: #a78bfa;
  --accent-pale:  #c4b5fd;
  --accent-glow:  rgba(139,92,246,0.15);

  --cyan:        #06b6d4;
  --green:       #10b981;
  --amber:       #f59e0b;

  --text-primary:   #eeeef2;
  --text-secondary: #9898b0;
  --text-muted:     #5c5c78;

  --font-sans:  'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
  --max-w: 1100px;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-sans);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
em { font-family: var(--font-serif); font-style: italic; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

/* ============ CANVAS BG ============ */
#bgCanvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
}

/* ============ NAV ============ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  background: rgba(6,6,11,0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--bg-border);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 15px;
}
.nav-logo-mark { width: 32px; height: 32px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  color: var(--text-secondary);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--text-primary); }

.nav-cta {
  padding: 8px 20px;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  color: var(--accent-light) !important;
  border-radius: 8px;
  font-weight: 600;
  font-size: 13px;
  transition: background 0.2s, border-color 0.2s;
}
.nav-cta:hover {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.4);
}

/* ============ HERO ============ */
.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 120px 20px 80px;
}

.hero-content {
  max-width: 780px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-light);
  background: rgba(139,92,246,0.06);
  border: 1px solid rgba(139,92,246,0.18);
  padding: 7px 18px;
  border-radius: 24px;
  margin-bottom: 32px;
}

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

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}

.hero-title {
  font-size: clamp(40px, 6.5vw, 76px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}

.hero-title em {
  background: linear-gradient(135deg, var(--accent-light) 0%, var(--cyan) 60%, var(--accent-pale) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: clamp(16px, 2vw, 20px);
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 48px;
  line-height: 1.7;
}

/* Metrics bar */
.hero-metrics {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 20px 8px;
  margin-bottom: 48px;
}

.metric {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 clamp(16px, 3vw, 36px);
}
.metric svg {
  width: 28px; height: 28px;
  color: var(--accent-light);
  flex-shrink: 0;
  opacity: 0.7;
}
.metric-value {
  display: block;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.metric-label {
  display: block;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.metric-divider {
  width: 1px;
  height: 36px;
  background: var(--bg-border);
  flex-shrink: 0;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-deep) 100%);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  transition: transform 0.15s, box-shadow 0.2s;
}
.hero-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(139,92,246,0.35);
}
.hero-cta svg {
  display: inline;
  animation: bobDown 2s ease-in-out infinite;
}
@keyframes bobDown {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px); }
}

/* ============ SECTION HEADERS ============ */
.section-header {
  text-align: center;
  margin-bottom: clamp(48px, 6vw, 72px);
}

.section-label {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(139,92,246,0.2);
  border-radius: 20px;
  background: rgba(139,92,246,0.05);
}

.section-title {
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}

.section-desc {
  font-size: 17px;
  color: var(--text-secondary);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ============ TOOLS SECTION ============ */
.tools {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 120px) 0;
}

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

.tool-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 20px;
  overflow: hidden;
  transition: border-color 0.35s, transform 0.3s, box-shadow 0.35s;
  cursor: pointer;
}

.tool-card:hover {
  border-color: rgba(139,92,246,0.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4), 0 0 40px rgba(139,92,246,0.08);
}

.tool-card:hover .tool-highlight {
  animation: highlightPulse 1.5s ease-in-out infinite;
}

@keyframes highlightPulse {
  0%, 100% { opacity: 0; }
  50% { opacity: 0.5; }
}

.tool-card-visual {
  background: linear-gradient(180deg, rgba(139,92,246,0.03) 0%, transparent 100%);
  border-bottom: 1px solid var(--bg-border);
  padding: 32px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.tool-illustration {
  width: 100%;
  max-width: 360px;
  height: auto;
}

.tool-card-body {
  padding: 28px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

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

.tool-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.tool-icon svg { width: 22px; height: 22px; }

.tool-icon--purple {
  background: rgba(139,92,246,0.1);
  border: 1px solid rgba(139,92,246,0.2);
  color: var(--accent-light);
}
.tool-icon--green {
  background: rgba(16,185,129,0.1);
  border: 1px solid rgba(16,185,129,0.2);
  color: var(--green);
}

.tool-card-header h3 {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.tool-tag {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.tool-card-body p {
  font-size: 14px;
  line-height: 1.75;
  color: var(--text-secondary);
  flex: 1;
}

.tool-card-footer {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--bg-border);
}

.tool-launch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-light);
  transition: gap 0.2s;
}

.tool-card:hover .tool-launch {
  gap: 12px;
}
.tool-card:hover .tool-launch svg {
  transform: translateX(2px);
  transition: transform 0.2s;
}

/* ============ WHY SECTION ============ */
.why {
  position: relative;
  z-index: 1;
  padding: clamp(60px, 8vw, 120px) 0;
  background: var(--bg-deep);
}

.why::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--bg-border), transparent);
}

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

.why-card {
  background: var(--bg-card);
  border: 1px solid var(--bg-border);
  border-radius: 16px;
  padding: 32px 24px;
  text-align: center;
  transition: border-color 0.3s, transform 0.25s;
}
.why-card:hover {
  border-color: rgba(139,92,246,0.2);
  transform: translateY(-3px);
}

.why-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  background: rgba(139,92,246,0.08);
  border: 1px solid rgba(139,92,246,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  color: var(--accent-light);
}
.why-icon svg { width: 22px; height: 22px; }

.why-card h4 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.why-card p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

/* ============ FOOTER ============ */
.footer {
  position: relative;
  z-index: 1;
  background: var(--bg-void);
  border-top: 1px solid var(--bg-border);
  padding: 48px 0 28px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.footer-brand { max-width: 300px; }
.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 12px;
}

.footer-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.footer-links a {
  color: var(--text-muted);
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--text-primary); }

.footer-bottom {
  padding-top: 20px;
  border-top: 1px solid var(--bg-border);
  text-align: center;
  font-size: 12px;
  color: var(--text-muted);
}

/* ============ SCROLL ANIMATIONS ============ */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ SCROLLBAR ============ */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--bg-border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .tools-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-metrics { flex-direction: column; gap: 16px; padding: 24px 32px; }
  .metric-divider { width: 100%; height: 1px; }
}

@media (max-width: 600px) {
  .why-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; gap: 20px; }
  .nav-links { gap: 16px; }
  .nav-links .nav-cta { padding: 6px 14px; }
}
