/* ─── PCBScope — Landing Page ─── */

:root {
  --color-bg: #0a0e1a;
  --color-surface: #111827;
  --color-border: #1f2937;
  --color-text: #e5e7eb;
  --color-text-muted: #9ca3af;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-accent: #60a5fa;
  --color-green: #22c55e;
  --font: "Inter", system-ui, -apple-system, sans-serif;
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

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

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

/* ─── Navigation ─── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  background: rgba(10, 14, 26, 0.8);
  border-bottom: 1px solid var(--color-border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.05rem;
}

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

.nav-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links a:hover { color: white; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.btn-sm { padding: 8px 18px; font-size: 0.85rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; }
.btn-block { width: 100%; }

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

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}
.btn-outline:hover { border-color: var(--color-text-muted); background: rgba(255,255,255,0.04); }

/* ─── Hero ─── */
.hero {
  padding: 140px 0 100px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero h1 {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

.hero-sub {
  margin-top: 20px;
  font-size: 1.1rem;
  color: var(--color-text-muted);
  max-width: 480px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 14px;
  margin-top: 32px;
}

.hero-note {
  margin-top: 14px;
  font-size: 0.82rem;
  color: var(--color-text-muted);
}

/* ─── Hero Visual (App Mockup) ─── */
.hero-visual { display: flex; justify-content: flex-end; }

.hero-window {
  width: 460px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0,0,0,0.4);
}

.window-bar {
  display: flex;
  gap: 7px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--color-border);
}

.window-bar span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--color-border);
}
.window-bar span:first-child { background: #ef4444; }
.window-bar span:nth-child(2) { background: #f59e0b; }
.window-bar span:last-child { background: var(--color-green); }

.window-body { padding: 20px; min-height: 260px; position: relative; }

.mock-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.mock-icon {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background: var(--color-border);
}

.mock-icon.active { background: var(--color-primary); opacity: 0.8; }

.mock-board {
  position: relative;
  height: 180px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: rgba(59,130,246,0.04);
  overflow: hidden;
}

.mock-chip {
  position: absolute;
  top: 40px;
  left: 60px;
  width: 80px;
  height: 36px;
  background: var(--color-primary);
  opacity: 0.3;
  border-radius: 4px;
}

.mock-chip.sm {
  top: 100px;
  left: 180px;
  width: 50px;
  height: 24px;
  opacity: 0.2;
}

.mock-trace {
  position: absolute;
  top: 58px;
  left: 140px;
  width: 100px;
  height: 2px;
  background: var(--color-accent);
  opacity: 0.3;
}

.mock-trace.v {
  top: 60px;
  left: 205px;
  width: 2px;
  height: 40px;
}

/* ─── Features ─── */
.features { padding: 100px 0; }

.section-title {
  text-align: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.section-sub {
  text-align: center;
  color: var(--color-text-muted);
  margin-top: 8px;
  font-size: 1.05rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}

.feature-card {
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  transition: border-color 0.2s, transform 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(59,130,246,0.1);
  color: var(--color-accent);
  margin-bottom: 18px;
}

.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--color-text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

/* ─── Pricing ─── */
.pricing {
  padding: 100px 0;
  background: rgba(255,255,255,0.015);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 56px auto 0;
}

.price-card {
  padding: 40px 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-align: center;
}

.price-card.featured {
  border-color: var(--color-primary);
  box-shadow: 0 0 40px rgba(59,130,246,0.12);
  position: relative;
}

.price-badge {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 16px;
}

.price-card.featured .price-badge { color: var(--color-accent); }

.price-amount {
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 28px;
}

.price-currency {
  font-size: 1.5rem;
  vertical-align: super;
  margin-right: 2px;
}

.price-period {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  font-weight: 500;
}

.price-features {
  list-style: none;
  margin-bottom: 28px;
  text-align: left;
}

.price-features li {
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--color-text-muted);
  font-size: 0.92rem;
}

.price-features li::before {
  content: "\2713";
  color: var(--color-green);
  margin-right: 10px;
  font-weight: 700;
}

/* ─── Download ─── */
.download { padding: 100px 0; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 560px;
  margin: 56px auto 0;
}

.download-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 36px 24px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-text);
  transition: border-color 0.2s, transform 0.2s;
}

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

.dl-label { font-weight: 600; font-size: 1.1rem; }
.dl-note { font-size: 0.78rem; color: var(--color-text-muted); text-align: center; }

.download-note {
  text-align: center;
  margin-top: 24px;
  font-size: 0.85rem;
  color: var(--color-text-muted);
}

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

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand p {
  color: var(--color-text-muted);
  font-size: 0.88rem;
  margin-top: 4px;
}

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

.footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-links a:hover { color: white; }

.footer-copy {
  color: #4b5563;
  font-size: 0.8rem;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; flex-wrap: wrap; }
  .hero-visual { justify-content: center; }
  .hero-window { width: 100%; max-width: 400px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .nav-links a:not(.btn) { display: none; }
}
