/* ===== Reset & base ===== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #c0c0c0;
  background: #151515;
  line-height: 1.65;
}

a {
  color: #63c0f5;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* ===== Header ===== */
header {
  background: linear-gradient(135deg, #090d14 0%, #0d1f3c 60%, #162d55 100%);
  color: #fff;
  padding: 3rem 1.5rem 2.5rem;
  text-align: center;
  border-bottom: 2px solid #252525;
}

.header-inner {
  max-width: 860px;
  margin: 0 auto;
}

header h1 {
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
  color: #fff;
}

.tagline {
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  opacity: 0.80;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Main layout ===== */
main {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.5rem 4rem;
}

section {
  margin-top: 3rem;
}

section h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8e8e8;
  margin-bottom: 1rem;
  padding-bottom: 0.4rem;
  border-bottom: 3px solid #63c0f5;
  display: inline-block;
}

/* ===== Intro ===== */
.intro p {
  font-size: 1.05rem;
  max-width: 780px;
}

/* ===== Pipeline: two paths ===== */
.path-label {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #63c0f5;
  margin: 1.75rem 0 0.85rem;
}

.path-label:first-of-type {
  margin-top: 0.5rem;
}

.end-to-end {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.end-to-end + .end-to-end {
  margin-top: 0.85rem;
}

.e2e-tool {
  background: #1e1e1e;
  border: 1px solid #2a2a2a;
  border-left: 3px solid #63c0f5;
  border-radius: 8px;
  padding: 0.85rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.e2e-tool strong {
  color: #e8e8e8;
  font-size: 1.05rem;
}

.e2e-tool span {
  font-size: 0.88rem;
  color: #999;
}

/* ===== Pipeline steps ===== */
.steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-left: 0;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: #63c0f5;
  color: #151515;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

/* ===== Tool cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: #1e1e1e;
  border-radius: 12px;
  border: 1px solid #2a2a2a;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: box-shadow 0.2s, border-color 0.2s;
}

.card:hover {
  box-shadow: 0 6px 24px rgba(0,0,0,0.6);
  border-color: #63c0f5;
}

.card-header {
  padding: 1.1rem 1.25rem 0.9rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.card-header h3 {
  font-size: 1.2rem;
  font-weight: 700;
}

.card-header.rocketship  { background: #0d1f3c; }
.card-header.aifartist   { background: #0d2233; }
.card-header.autoaif     { background: #0a2318; }
.card-header.parametric  { background: #0e1b2e; }
.card-header.gpufit      { background: #1c0d2e; }
.card-header.dceprep     { background: #0e2b2b; }
.card-header.dce2bids    { background: #2b1c0d; }

.badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge.matlab  { background: #c0392b; color: #fff; }
.badge.python  { background: #b7770d; color: #fff; }
.badge.cuda    { background: #4a7c00; color: #fff; }
.badge.shell   { background: #2c6e49; color: #fff; }
.badge.agent   { background: #6d4bc0; color: #fff; }

.card-desc {
  padding: 1rem 1.25rem 0.5rem;
  font-size: 0.92rem;
  flex: 1;
  color: #b8b8b8;
}

.card-highlights {
  padding: 0.25rem 1.25rem 0.75rem 2.5rem;
  font-size: 0.85rem;
  color: #888;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.card-highlights code {
  font-size: 0.8rem;
  background: #2a2a2a;
  border-radius: 4px;
  padding: 0.05em 0.3em;
  color: #63c0f5;
}

.card-links {
  padding: 0.75rem 1.25rem 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-top: 1px solid #2a2a2a;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  padding: 0.4rem 0.9rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}

.btn.primary {
  background: #63c0f5;
  color: #111;
}

.btn.primary:hover {
  background: #89d0f8;
  text-decoration: none;
}

.btn.secondary {
  background: #2a2a2a;
  color: #c0c0c0;
}

.btn.secondary:hover {
  background: #363636;
  text-decoration: none;
}

/* ===== Comparison table ===== */
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

thead {
  background: #0d1f3c;
  color: #fff;
}

th, td {
  padding: 0.75rem 1.1rem;
  text-align: left;
}

td {
  color: #b8b8b8;
  border-bottom: 1px solid #2a2a2a;
}

tbody tr:nth-child(even) {
  background: #242424;
}

tbody tr:hover {
  background: #2c2c2c;
}

/* ===== Quick start ===== */
.qs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.qs-block {
  background: #1e1e1e;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #2a2a2a;
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}

.qs-block h3 {
  background: #0d1f3c;
  color: #fff;
  padding: 0.65rem 1rem;
  font-size: 1rem;
}

.qs-block pre {
  margin: 0;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.82rem;
  background: #111111;
  color: #cdd6f4;
  line-height: 1.6;
}

.qs-block code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
}

/* ===== Contact ===== */
.contact p {
  margin-bottom: 0.75rem;
  font-size: 1rem;
}

/* ===== Footer ===== */
footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #555;
  border-top: 1px solid #252525;
  margin-top: 2rem;
}

footer a {
  color: #555;
}

footer a:hover {
  color: #63c0f5;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  .cards {
    grid-template-columns: 1fr;
  }

  .qs-grid {
    grid-template-columns: 1fr;
  }

  .steps li {
    font-size: 0.95rem;
  }
}

