/* =========================================================
   ZERC LLC — style.css
   Palette: Midnight Azure + Periwinkle + Aqua
   ========================================================= */

:root {
  --bg: #0B0F1A;
  --bg-2: #10162A;
  --bg-3: #161D38;
  --line: #232C4D;
  --line-soft: #1B2340;
  --ink: #EDF1FF;
  --muted: #9AA6C6;
  --muted-2: #6F7AA0;
  --primary: #7A8CFF;
  --primary-deep: #4F66F0;
  --accent: #3ED5B0;
  --warn: #FFB86B;
  --sidebar-w: 264px;
  --radius: 16px;
  --radius-sm: 10px;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 40px;
}

body {
  font-size: 16px;
  font-family: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  background-color: var(--bg);
  color: var(--ink);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img {
  max-width: 100%;
  display: block;
}

/* ---------- Sidebar navigation (fixed) ---------- */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-w);
  height: 100vh;
  background-color: var(--bg-2);
  border-right: 1px solid var(--line-soft);
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  z-index: 50;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 40px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #ffffff;
  font-weight: 900;
  font-size: 18px;
}

.brand-name {
  font-size: 20px;
  color: var(--ink);
}

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

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.nav-link {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.nav-link:hover {
  color: var(--ink);
  background-color: var(--bg-3);
}

.nav-link.active {
  color: var(--ink);
  background-color: var(--bg-3);
  box-shadow: inset 3px 0 0 var(--primary);
}

.sidebar-cta {
  display: block;
  text-align: center;
  padding: 13px 16px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #ffffff;
  font-weight: 700;
  margin-bottom: 22px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sidebar-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(79, 102, 240, 0.35);
}

.sidebar-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  color: var(--muted-2);
}

.sidebar-meta a:hover {
  color: var(--accent);
}

/* ---------- Mobile bar ---------- */
.mobile-bar {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  background-color: var(--bg-2);
  border-bottom: 1px solid var(--line-soft);
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 60;
}

.mobile-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--ink);
  font-size: 18px;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

body.nav-open .nav-toggle span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

body.nav-open .nav-toggle span:nth-child(2) {
  opacity: 0;
}

body.nav-open .nav-toggle span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.sidebar-backdrop {
  display: none;
}

/* ---------- Main content ---------- */
.main-content {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, #0B0F1A 0%, #101831 55%, #0E1430 100%);
  overflow: hidden;
  padding: 80px 64px;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 30% 40%, #000 0%, transparent 75%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.hero h1 {
  font-size: 54px;
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero h1 span {
  color: var(--primary);
}

.hero-lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 34px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 38px;
}

.btn {
  display: inline-block;
  padding: 14px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  border: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: #ffffff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(79, 102, 240, 0.4);
}

.btn-ghost {
  background-color: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-trust span {
  font-size: 13px;
  color: var(--muted-2);
  border: 1px solid var(--line-soft);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Terminal visual */
.hero-visual {
  position: relative;
}

.term {
  background-color: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.term-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  background-color: var(--bg-3);
  border-bottom: 1px solid var(--line-soft);
}

.term-head .dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
}

.dot.red { background-color: #FF5F57; }
.dot.amber { background-color: #FEBC2E; }
.dot.green { background-color: #28C840; }

.term-title {
  margin-left: 10px;
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  font-size: 13px;
  color: var(--muted-2);
}

.term-body {
  padding: 22px 22px 26px;
  font-family: "SF Mono", "Consolas", "Menlo", monospace;
  font-size: 14px;
  line-height: 2;
}

.t-line { color: var(--muted); }
.t-prompt { color: var(--accent); font-weight: 700; }
.t-ok { color: var(--accent); }
.t-metric { color: var(--ink); }
.t-cursor { color: var(--primary); animation: blink 1s steps(2) infinite; }

@keyframes blink {
  50% { opacity: 0; }
}

.hero-badge {
  position: absolute;
  padding: 12px 18px;
  border-radius: 12px;
  background-color: var(--bg-3);
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4);
}

.badge-a {
  top: -18px;
  right: 24px;
  color: var(--accent);
}

.badge-b {
  bottom: -18px;
  left: 18px;
  color: var(--primary);
}

/* ---------- Stats strip ---------- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background-color: var(--line-soft);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}

.stat {
  background-color: var(--bg-2);
  padding: 46px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stat-num {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -1px;
  color: var(--ink);
}

.stat-num .counter {
  color: var(--primary);
}

.stat-label {
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Shared section base ---------- */
.build-section,
.process-section,
.comparison-section,
.faq-section,
.contact-section {
  padding: 96px 64px;
  max-width: 1240px;
  margin: 0 auto;
}

.process-section {
  background-color: var(--bg-2);
  max-width: none;
}

.comparison-section {
  background-color: var(--bg);
}

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}

.section-head h2 {
  font-size: 38px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.section-head p {
  color: var(--muted);
  font-size: 17px;
}

/* ---------- Bento grid ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: auto;
  gap: 20px;
}

.bento-card {
  background-color: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 34px 30px;
  transition: border-color 0.25s ease, transform 0.25s ease;
}

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

.bento-card.wide {
  grid-column: span 2;
}

.bento-index {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.bento-card h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 12px;
}

.bento-card p {
  color: var(--muted);
  font-size: 15px;
}

/* ---------- Timeline / process ---------- */
.process-section .section-head {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.timeline {
  list-style: none;
  max-width: 760px;
  margin: 0 auto;
  position: relative;
  padding-left: 0;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 33px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--line);
}

.timeline-step {
  display: flex;
  gap: 28px;
  position: relative;
  padding-bottom: 48px;
}

.timeline-step:last-child {
  padding-bottom: 0;
}

.step-num {
  flex-shrink: 0;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background-color: var(--bg);
  border: 2px solid var(--primary);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.timeline-step h3 {
  font-size: 21px;
  font-weight: 700;
  margin-bottom: 8px;
}

.timeline-step p {
  color: var(--muted);
  max-width: 560px;
}

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.compare-table th,
.compare-table td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}

.compare-table thead th {
  background-color: var(--bg-2);
  color: var(--ink);
  font-weight: 700;
}

.compare-table thead th.hl {
  color: var(--accent);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table td {
  color: var(--muted);
}

.compare-table td.hl {
  color: var(--ink);
  background-color: #121A36;
}

.compare-table th:first-child,
.compare-table td:first-child {
  color: var(--ink);
  font-weight: 600;
}

/* ---------- Statement ---------- */
.statement-section {
  padding: 110px 64px;
  text-align: center;
  background: linear-gradient(135deg, var(--primary-deep), var(--primary));
  position: relative;
  overflow: hidden;
}

.statement {
  font-size: 44px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -1px;
  color: #ffffff;
  max-width: 880px;
  margin: 0 auto 22px;
}

.statement-sub {
  font-size: 18px;
  color: #ffffff;
  max-width: 640px;
  margin: 0 auto;
}

/* ---------- FAQ ---------- */
.accordion {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.accordion-item {
  background-color: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.accordion-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  padding: 22px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.accordion-btn::after {
  content: "+";
  font-size: 24px;
  font-weight: 400;
  color: var(--primary);
  transition: transform 0.3s ease;
}

.accordion-item.open .accordion-btn::after {
  transform: rotate(45deg);
}

.accordion-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.accordion-panel p {
  padding: 0 24px 24px;
  color: var(--muted);
}

/* ---------- Contact ---------- */
.contact-section {
  background-color: var(--bg);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

.contact-info h2 {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-bottom: 18px;
}

.contact-info > p {
  color: var(--muted);
  margin-bottom: 34px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-list strong {
  font-size: 13px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
}

.contact-list a {
  color: var(--ink);
  font-size: 18px;
  font-weight: 600;
}

.contact-list a:hover {
  color: var(--primary);
}

.contact-list span {
  color: var(--muted);
}

.contact-form {
  background-color: var(--bg-2);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.field input,
.field textarea,
.news-form input {
  background-color: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--ink);
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.field input:focus,
.field textarea:focus,
.news-form input:focus {
  outline: none;
  border-color: var(--primary);
}

.field textarea {
  resize: vertical;
}

.form-note {
  font-size: 14px;
  color: var(--accent);
  min-height: 20px;
}

/* ---------- Footer ---------- */
.site-footer {
  position: relative;
  background-color: var(--bg-2);
  border-top: 1px solid var(--line-soft);
  padding: 72px 64px 40px;
  overflow: hidden;
}

.footer-watermark {
  position: absolute;
  right: -20px;
  bottom: -40px;
  font-size: 200px;
  font-weight: 900;
  letter-spacing: -6px;
  color: #131A34;
  pointer-events: none;
  user-select: none;
  line-height: 1;
}

.footer-news {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.footer-news h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.footer-news p {
  color: var(--muted);
}

.news-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.news-form input {
  min-width: 260px;
}

.footer-columns {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col h4 {
  font-size: 14px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
}

.footer-col a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-col span {
  color: var(--muted-2);
  font-size: 14px;
}

.footer-bottom {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 24px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted-2);
  font-size: 14px;
}

/* ---------- Scroll reveal ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero {
    padding: 90px 40px;
  }
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }
  .bento-card.wide {
    grid-column: span 2;
  }
  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
  }
  body.nav-open .sidebar {
    transform: translateX(0);
  }
  .sidebar-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 40;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
  }
  body.nav-open .sidebar-backdrop {
    pointer-events: auto;
    opacity: 1;
  }
  .main-content {
    margin-left: 0;
  }
  .mobile-bar {
    display: flex;
  }
  .hero {
    padding-top: 130px;
    min-height: auto;
  }
  .hero h1 {
    font-size: 42px;
  }
  .build-section,
  .process-section,
  .comparison-section,
  .faq-section,
  .contact-section {
    padding: 72px 32px;
  }
  .statement-section {
    padding: 80px 32px;
  }
  .statement {
    font-size: 32px;
  }
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .site-footer {
    padding: 60px 32px 32px;
  }
}

@media (max-width: 640px) {
  .hero h1 {
    font-size: 34px;
  }
  .hero-lede {
    font-size: 16px;
  }
  .bento {
    grid-template-columns: 1fr;
  }
  .bento-card.wide {
    grid-column: span 1;
  }
  .stats-strip {
    grid-template-columns: 1fr;
  }
  .stat {
    padding: 30px 24px;
  }
  .stat-num {
    font-size: 36px;
  }
  .section-head h2 {
    font-size: 30px;
  }
  .statement {
    font-size: 27px;
  }
  .footer-columns {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
  }
}
