/* Electronics Builder website styles */
:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: #1f2937;
  background: #f7f8fb;
  font-size: 16px;
  line-height: 1.6;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #eef2f7 100%);
}
a {
  color: #1565c0;
  text-decoration: none;
}
a:hover,
a:focus {
  color: #0d47a1;
  text-decoration: underline;
}

/* ── Header ─────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}
.brand {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #0f172a;
}
.brand:hover {
  color: #0d47a1;
  text-decoration: none;
}
.nav-toggle {
  display: none;
  border: none;
  background: transparent;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #102a43;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.site-nav {
  display: flex;
}
.nav-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav-list li a {
  display: inline-block;
  padding: 0.6rem 0;
  font-size: 0.95rem;
  color: #334155;
  position: relative;
  transition: color 0.2s ease;
}
.nav-list li a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 0;
  height: 2px;
  background: #0d47a1;
  border-radius: 1px;
  transition: width 0.22s ease;
}
.nav-list li a:hover,
.nav-list li a:focus,
.nav-list li a.active {
  color: #0d47a1;
  text-decoration: none;
}
.nav-list li a:hover::after,
.nav-list li a.active::after {
  width: 100%;
}
.nav-list li a.active {
  font-weight: 600;
}

/* ── Layout ──────────────────────────────────── */
.site-main {
  padding: 2rem 0 4rem;
}
.section {
  padding: 3.5rem 0;
}
.section-light {
  background: #ffffff;
}
.section-strong {
  background: #f0f6ff;
}
.section.small-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

/* ── Eyebrow label ───────────────────────────── */
.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
  margin: 0 0 1rem;
}

/* ── Hero ────────────────────────────────────── */
.hero {
  min-height: 70vh;
  display: grid;
  align-items: center;
  padding: 4rem 0;
  background-image: radial-gradient(circle, rgba(13, 71, 161, 0.07) 1px, transparent 1px);
  background-size: 30px 30px;
}
.hero-copy {
  max-width: 720px;
}
.hero-copy h1 {
  font-size: clamp(2.7rem, 3.3vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.025em;
  margin: 0 0 1rem;
  color: #0f172a;
}
.hero-copy p {
  max-width: 700px;
  margin-bottom: 1.75rem;
  color: #334155;
  font-size: 1.08rem;
}

/* ── Button ──────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  background: #0d47a1;
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.95rem 1.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.22s ease, transform 0.2s ease, box-shadow 0.2s ease;
}
.btn-primary::after {
  content: '→';
  display: inline-block;
  transition: transform 0.2s ease;
}
.btn-primary:hover,
.btn-primary:focus {
  background: #0b3b8a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(13, 71, 161, 0.28);
  text-decoration: none;
}
.btn-primary:hover::after {
  transform: translateX(3px);
}

/* ── Grids ───────────────────────────────────── */
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.75rem;
}

/* ── Cards ───────────────────────────────────── */
.card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  background: #ffffff;
  padding: 1.9rem;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.card:not(.banner-card):hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.10);
}
.card h3 {
  margin-top: 0;
  margin-bottom: 0.9rem;
  font-size: 1.2rem;
  color: #0f172a;
}
.card p {
  margin: 0;
  color: #475569;
}
.card-list {
  padding-left: 1.2rem;
  margin: 1rem 0 0;
  color: #475569;
}
.card-list li {
  margin-bottom: 0.6rem;
}

/* ── Section titles ──────────────────────────── */
.section-title {
  margin-bottom: 2rem;
}
.section-title h2 {
  margin: 0;
  font-size: clamp(2rem, 2.8vw, 2.8rem);
  letter-spacing: -0.02em;
  color: #0f172a;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 44px;
  height: 3px;
  background: linear-gradient(90deg, #1d4ed8, #93c5fd);
  border-radius: 2px;
  margin-top: 0.65rem;
}
.section-title p {
  margin: 0.9rem 0 0;
  color: #475569;
  max-width: 720px;
  font-size: 1.05rem;
}

/* ── Banner / CTA card ───────────────────────── */
.banner-card {
  padding: 2.5rem;
  border-radius: 24px;
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 60%, #1d4ed8 100%);
  color: #ffffff;
  box-shadow: 0 16px 48px rgba(29, 78, 216, 0.28);
  position: relative;
  overflow: hidden;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.banner-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 64px rgba(29, 78, 216, 0.38);
}
.banner-card::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 50%;
  pointer-events: none;
}
.banner-card::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: 20px;
  width: 280px;
  height: 280px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 50%;
  pointer-events: none;
}
.banner-card h3,
.banner-card p {
  margin: 0;
  position: relative;
  z-index: 1;
}
.banner-card h3 {
  font-size: 1.4rem;
  color: #ffffff;
}
.banner-card p {
  margin-top: 0.75rem;
  color: rgba(255, 255, 255, 0.88);
}
.banner-card .btn-primary {
  margin-top: 1.5rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(8px);
  position: relative;
  z-index: 1;
}
.banner-card .btn-primary:hover,
.banner-card .btn-primary:focus {
  background: rgba(255, 255, 255, 0.24);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

/* ── Feature list ────────────────────────────── */
.feature-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}
.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
  color: #475569;
}
.feature-list li::before {
  content: '✓';
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: #dbeafe;
  color: #1d4ed8;
  border-radius: 50%;
  font-size: 0.68rem;
  font-weight: 700;
  margin-top: 2px;
}

/* ── Footer ──────────────────────────────────── */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  padding: 3rem 0 1.5rem;
}
.footer-brand {
  font-weight: 700;
  font-size: 1rem;
  color: #ffffff;
  margin-bottom: 0.6rem;
}
.site-footer a {
  color: #93c5fd;
  transition: color 0.2s ease;
}
.site-footer a:hover {
  color: #bfdbfe;
  text-decoration: none;
}
.footer-note {
  border-top: 1px solid rgba(148, 163, 184, 0.15);
  padding: 1.25rem 0 2rem;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

/* ── Scroll reveal ───────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ── Responsive ──────────────────────────────── */
@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .site-header {
    border-bottom: none;
  }
}
@media (max-width: 780px) {
  .header-inner {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .site-nav {
    width: 100%;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.32s ease;
  }
  .site-nav.nav-open {
    max-height: 320px;
  }
  .nav-list {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem 0 0;
  }
  .hero {
    padding-top: 3rem;
    min-height: 55vh;
  }
  .banner-card {
    padding: 2rem 1.5rem;
  }
}
