/* ============================
   SpecWise – Final Layout Version
   ============================ */

:root {
  --bg: #05060a;
  --ink: #e6e8ef;
  --muted: #9aa3b2;
  --panel: #11131b;
  --cyan: #7dd3fc;
  --violet: #a78bfa;
  --green: #86efac;
  --border-soft: rgba(255, 255, 255, 0.06);
  --border-strong: rgba(255, 255, 255, 0.12);
}

/* RESET */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;

  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(167, 139, 250, 0.18), transparent 55%),
    radial-gradient(900px 600px at 0% 20%, rgba(125, 211, 252, 0.18), transparent 55%),
    var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 22px;
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================
   NAV
   ============================ */

nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(5, 6, 10, 0.96), rgba(5, 6, 10, 0.9));
  border-bottom: 1px solid var(--border-soft);
  backdrop-filter: blur(14px);
}

nav .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.logo-mark {
  width: 26px;
  height: 26px;
  border-radius: 9px;
  background: conic-gradient(
    from 180deg,
    var(--cyan),
    var(--violet),
    var(--green),
    var(--cyan)
  );
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.5);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 14px;
}

.nav-links a {
  color: var(--muted);
  font-weight: 500;
}

.nav-links a:hover {
  color: var(--cyan);
}

.lang-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-strong);
  font-size: 11px;
  font-weight: 600;
}

.lang-pill span {
  padding: 3px 10px;
  border-radius: 999px;
}

.lang-pill .active {
  background: var(--cyan);
  color: #05060a;
}

/* ============================
   MAIN – CENTER CONTENT VERTICALLY
   ============================ */

main {
  flex: 1;
  display: flex;
  /* use viewport height so content floats in the middle,
     not stuck to the top */
  padding-top: 12vh;
  padding-bottom: 10vh;
}

main .wrap {
  width: 100%;
}

/* sections closer together; height is handled by vh padding above */
section {
  margin-bottom: 26px;
}

h1 {
  font-size: clamp(34px, 5.4vw, 56px);
  line-height: 1.05;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(28px, 4.2vw, 40px);
  margin-bottom: 18px;
}

h3 {
  font-size: 20px;
  margin-bottom: 6px;
}

p {
  margin: 6px 0;
}

.muted {
  color: var(--muted);
}

/* ============================
   HERO / GRID
   ============================ */

.hero-layout {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 880px) {
  nav .inner {
    gap: 16px;
  }

  .nav-links {
    gap: 16px;
    font-size: 13px;
  }

  main {
    padding-top: 10vh;
    padding-bottom: 8vh;
  }

  .hero-layout {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}

/* ============================
   CARDS / BUTTONS
   ============================ */

.card {
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06),
    rgba(255, 255, 255, 0.02)
  );
  border-radius: 20px;
  border: 1px solid var(--border-soft);
  padding: 26px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.75);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-strong);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 11px 20px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary {
  background: var(--violet);
  color: #05060a;
  box-shadow: 0 10px 26px rgba(88, 28, 135, 0.6);
}

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.3);
}

/* ============================
   FLOW / STEPS
   ============================ */

.flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.step {
  position: relative;
  padding: 18px 16px 16px;
  border-radius: 16px;
  background: rgba(6, 8, 15, 0.9);
  border: 1px solid var(--border-soft);
}

.step-num {
  position: absolute;
  top: -12px;
  left: 15px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--violet);
  color: #05060a;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 10px 24px rgba(88, 28, 135, 0.7);
}

/* ============================
   COMPARISON PANELS
   ============================ */

.compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

@media (max-width: 800px) {
  .compare {
    grid-template-columns: 1fr;
  }
}

.panel {
  padding: 18px;
  border-radius: 16px;
  font-size: 14px;
  background: rgba(6, 8, 15, 0.9);
  border: 1px solid var(--border-soft);
}

.panel.bad {
  border-color: rgba(252, 165, 165, 0.5);
  background: rgba(15, 6, 6, 0.9);
}

.panel.good {
  border-color: rgba(134, 239, 172, 0.5);
  background: rgba(6, 15, 10, 0.9);
}

.panel ul {
  margin-left: 18px;
  margin-top: 6px;
}

/* ============================
   BUILT LIST
   ============================ */

.built-list {
  list-style: none;
  columns: 2;
  column-gap: 30px;
  font-size: 15px;
}

.built-list li {
  margin-bottom: 8px;
  break-inside: avoid;
}

@media (max-width: 800px) {
  .built-list {
    columns: 1;
  }
}

/* ============================
   QUOTE / CALLOUT
   ============================ */

.quote {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 12px;
  border-left: 4px solid var(--violet);
  background: rgba(167, 139, 250, 0.16);
  font-size: 14px;
}

/* ============================
   FORMS
   ============================ */

form {
  margin-top: 16px;
}

input,
textarea {
  width: 100%;
  background: rgba(6, 8, 15, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 12px;
  padding: 10px 12px;
  margin: 6px 0;
  color: var(--ink);
  font-family: inherit;
  font-size: 14px;
}

textarea {
  min-height: 110px;
  resize: vertical;
}

form button {
  margin-top: 8px;
  width: 100%;
  padding: 13px;
  border-radius: 12px;
  border: none;
  background: var(--cyan);
  color: #05060a;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(56, 189, 248, 0.5);
}

/* ============================
   FOOTER
   ============================ */

footer {
  text-align: center;
  padding: 16px 0 22px;
  font-size: 13px;
  color: var(--muted);
  opacity: 0.9;
  border-top: 1px solid var(--border-soft);
}
