/* Section scaffolding */
.section {
  padding: 64px 0;
  position: relative;
}

.grid-bg {
  background-image:
    linear-gradient(180deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 165, 233, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
}

.section-tint {
  background: rgba(8, 13, 28, 0.5);
}

.section-header {
  max-width: 672px;
  margin-bottom: 40px;
}

.section-header.center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.section-header.wide {
  max-width: 1232px;
}

.section-label {
  display: block;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 44px;
  line-height: 1.2;
  color: var(--color-text);
  letter-spacing: -0.5px;
}

.section-header p {
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-text-muted-60);
}

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

/* Glow badge (hero eyebrow pill) */
.glow-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-accent-bg-15);
  border: 1px solid var(--color-border);
  border-radius: 999px;
  padding: 7px 17px;
  box-shadow: 0 0 20px rgba(14, 165, 233, 0.2);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 24px;
}

.glow-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #00bcff;
}

/* Grids */
.grid {
  display: grid;
  gap: 20px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* Feature / glass cards */
.card {
  background: rgba(8, 13, 28, 0.7);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  padding: 25px;
}

.card-icon {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: var(--color-accent-bg-15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.card-icon img { width: 20px; height: 20px; }

.card h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-text);
  margin-bottom: 8px;
}

.card p {
  font-size: 14px;
  line-height: 1.625;
  color: var(--color-text-muted-40);
}

.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent);
  margin-bottom: 4px;
  display: block;
}

/* Robot fleet cards (colored per-robot) */
.robot-card {
  display: block;
  border-radius: 16px;
  border: 1px solid var(--robot-color, var(--color-border));
  background: linear-gradient(151deg, color-mix(in srgb, var(--robot-color, var(--color-accent)) 8%, transparent) 0%, rgba(8, 13, 28, 0.8) 100%);
  padding: 21px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.robot-card:hover,
.robot-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--robot-color, var(--color-accent));
  box-shadow: 0 8px 24px color-mix(in srgb, var(--robot-color, var(--color-accent)) 25%, transparent);
}

.robot-card .card-icon {
  background: color-mix(in srgb, var(--robot-color, var(--color-accent)) 15%, transparent);
}

.robot-card .card-eyebrow {
  color: var(--robot-color, var(--color-accent));
}

/* Steps (vertical workflow) */
.steps {
  display: flex;
  flex-direction: column;
}

.step {
  display: flex;
  gap: 24px;
  padding-bottom: 24px;
  position: relative;
}

.step-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--color-accent-bg-15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

.step-icon img { width: 20px; height: 20px; }

.step:not(:last-child)::before {
  content: '';
  position: absolute;
  left: 20px;
  top: 40px;
  bottom: 0;
  width: 1px;
  background: var(--color-border);
}

.step h3 {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 18px;
  color: var(--color-text);
  margin-bottom: 4px;
}

.step p {
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted-40);
  max-width: 640px;
}

/* Layer rows (technology architecture) */
.layer-row {
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: rgba(8, 13, 28, 0.5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 16px 24px;
  margin-bottom: 12px;
}

.layer-name {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 14px;
  color: var(--color-text);
  min-width: 160px;
}

.layer-name::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--color-accent);
}

.layer-tags {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.layer-tags span {
  font-size: 13px;
  color: var(--color-text-muted-40);
  white-space: nowrap;
}

/* Filter / tab pills */
.tab-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.tab-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: rgba(8, 13, 28, 0.5);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted-60);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.tab-pill img { width: 14px; height: 14px; }

.tab-pill.active,
.tab-pill:hover {
  background: var(--color-accent-bg-15);
  border-color: var(--color-accent);
  color: var(--color-text);
}

.tab-code {
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(14, 165, 233, 0.15);
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--color-accent);
}

/* Stat rows */
.stat-row {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
}

.stat-row .stat {
  text-align: center;
}

.stat .stat-value {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  color: var(--color-text);
}

.stat .stat-label {
  font-size: 13px;
  color: var(--color-text-muted-40);
  margin-top: 4px;
}

/* Forms */
.form-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 24px;
}

.form-field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted-60);
}

.form-field input,
.form-field select,
.form-field textarea {
  background: rgba(8, 13, 28, 0.6);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 14px 17px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--color-text);
  transition: border-color 0.15s ease;
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: rgba(232, 240, 255, 0.3);
}

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

.form-field textarea {
  resize: vertical;
  min-height: 106px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
}

/* FAQ accordion */
.faq-item {
  border: 1px solid var(--color-border);
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 15px;
  color: var(--color-text);
  text-align: left;
}

.faq-question .chevron {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border: solid var(--color-text-muted-40);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
  margin-top: -4px;
}

.faq-item.open .chevron {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.faq-answer p {
  padding: 0 24px 20px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--color-text-muted-40);
}

/* Hero media frame (used on inner-page heroes) */
.hero-media {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  aspect-ratio: 592 / 420;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 112px 0 64px;
}

@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 48px 0;
  }
}

.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  line-height: 1.15;
  letter-spacing: -1px;
  color: var(--color-text);
  margin-bottom: 24px;
}

.page-hero p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--color-text-muted-60);
  max-width: 544px;
}

.button-row {
  display: flex;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
