/* Custom Software section: /custom hub and one page per product (2026-11-20) */

.cs-hero { padding: 150px 24px 72px; background: var(--bg); position: relative; overflow: hidden; }
.cs-hero::before {
  content: ""; position: absolute; inset: -40% -20% auto auto; width: 720px; height: 720px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.14), transparent 65%); pointer-events: none;
}
.cs-hero .container { position: relative; }
.cs-crumbs { font-size: 0.85rem; color: var(--text-3); margin-bottom: 22px; }
.cs-crumbs a { color: var(--text-2); text-decoration: none; }
.cs-crumbs a:hover { color: var(--accent-text); }
.cs-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; max-width: 860px; margin-bottom: 20px; }
.cs-hero .cs-lede { font-size: 1.15rem; line-height: 1.7; color: var(--text-2); max-width: 680px; margin-bottom: 32px; }
.cs-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.cs-section { padding: 84px 24px; background: var(--bg); }
.cs-section.alt { background: var(--bg-2); }
.cs-section h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.cs-section .cs-sub { color: var(--text-2); font-size: 1.02rem; line-height: 1.7; max-width: 680px; margin-bottom: 40px; }
.cs-center { text-align: center; }
.cs-center .cs-sub { margin-left: auto; margin-right: auto; }

/* Product cards on the hub */
.cs-products { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; }
.cs-product {
  display: flex; flex-direction: column; padding: 32px; border-radius: var(--radius-lg);
  background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; color: inherit;
  transition: border-color 0.3s, transform 0.3s;
}
a.cs-product:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.cs-product-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 22px; min-height: 40px; }
.cs-product-head img { height: 36px; width: auto; }
.cs-product h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.02em; margin-bottom: 8px; }
.cs-product p { color: var(--text-2); font-size: 0.95rem; line-height: 1.65; margin-bottom: 20px; }
.cs-product .cs-meta { font-size: 0.82rem; color: var(--text-3); margin-bottom: 18px; }
.cs-product .cs-go { margin-top: auto; font-weight: 700; font-size: 0.9rem; color: var(--accent-text); }
.cs-product.cs-next { border-style: dashed; border-color: rgba(59,130,246,0.4); background: linear-gradient(135deg, rgba(59,130,246,0.06), rgba(6,182,212,0.03)); }
.cs-product.cs-next .cs-plus {
  width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2));
}

.cs-status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.78rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.cs-status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgba(34,197,94,0.18); }

/* Steps */
.cs-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: cs; }
.cs-step { padding: 26px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); }
.cs-step::before {
  counter-increment: cs; content: counter(cs, decimal-leading-zero);
  display: block; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent-text); margin-bottom: 12px;
}
.cs-step strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.cs-step span { color: var(--text-2); font-size: 0.9rem; line-height: 1.6; }

/* Product page: GroundOPS accent, scoped to the page */
.go-page { --go-amber: #e79f23; --go-green: #1b372e; }
.go-logo { height: 44px; width: auto; margin-bottom: 26px; }
.go-logo.on-light { display: none; }
html.light .go-logo.on-dark { display: none; }
html.light .go-logo.on-light { display: block; }
.go-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.go-pill { font-size: 0.78rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text-2); }
.go-pill.live { color: var(--text); }
.go-pill.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.go-help { font-size: 0.88rem; color: var(--text-3); margin-top: 18px; }
.go-help a { color: var(--accent-text); }

/* A partial, angled look at the product: the image files themselves are crops, never the full screen */
.go-peek { position: relative; margin-top: 64px; height: 470px; perspective: 1800px; overflow-x: clip; }
.go-peek figure { margin: 0; position: absolute; overflow: hidden; box-shadow: var(--shadow-lg); border: 1px solid var(--border); }
.go-peek img { display: block; width: 100%; height: auto; }
.go-peek-desk {
  left: 0; top: 0; width: 82%; border-radius: var(--radius-lg);
  transform: rotateX(14deg) rotateY(-10deg) rotateZ(2deg); transform-origin: left center;
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 100%);
  -webkit-mask-image: linear-gradient(100deg, #000 55%, transparent 96%);
          mask-image: linear-gradient(100deg, #000 55%, transparent 96%);
}
.go-peek-phone {
  right: 4%; top: 120px; width: 250px; border-radius: 28px 28px 0 0; border: 6px solid var(--bg-card-2); border-bottom: 0;
  transform: rotateZ(-4deg);
  -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
}
.go-peek-tag {
  position: absolute; font-size: 0.8rem; font-weight: 600; color: var(--text); padding: 8px 14px; border-radius: 999px;
  background: var(--bg-card); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.go-peek-tag::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--go-amber); margin-right: 8px; vertical-align: 1px; }
.go-peek-tag-a { left: 3%; bottom: 18px; }
.go-peek-tag-b { right: 6%; bottom: 18px; }
@media (max-width: 900px) {
  .go-peek { height: 360px; }
  .go-peek-desk { width: 100%; }
  .go-peek-phone { width: 170px; top: 140px; right: 0; }
}
@media (max-width: 560px) {
  .go-peek { height: 300px; margin-top: 44px; }
  .go-peek-desk { width: 135%; transform: rotateX(12deg) rotateY(-8deg) rotateZ(2deg); }
  .go-peek-phone { width: 140px; top: 120px; }
  .go-peek-tag { font-size: 0.72rem; padding: 6px 10px; }
  .go-peek-tag-a { display: none; }
  .go-peek-tag-b { right: 0; bottom: 4px; }
}

.go-pains { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
@media (max-width: 1024px) { .go-pains { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .go-pains { grid-template-columns: 1fr; } }
.go-pain { padding: 22px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--bg-card); font-size: 0.95rem; line-height: 1.6; color: var(--text-2); }
.go-pain i { color: var(--go-amber); margin-right: 8px; }

.go-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.go-feature { padding: 28px; border-radius: var(--radius-lg); background: var(--bg-card); border: 1px solid var(--border); }
.go-feature .go-ico {
  width: 44px; height: 44px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 16px;
}
.go-feature h3 { font-size: 1.08rem; font-weight: 700; margin-bottom: 8px; }
.go-feature p { font-size: 0.92rem; line-height: 1.65; color: var(--text-2); }

.go-seasons { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.go-season { padding: 32px; border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--bg-card); }
.go-season h3 { display: flex; align-items: center; gap: 10px; font-size: 1.2rem; font-weight: 800; margin-bottom: 14px; }
.go-season h3 i { color: var(--go-amber); }
.go-season ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.go-season li { color: var(--text-2); font-size: 0.95rem; line-height: 1.55; padding-left: 22px; position: relative; }
.go-season li::before { content: "\2713"; position: absolute; left: 0; color: var(--green); font-weight: 700; }

.go-faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.go-faq details { border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-card); padding: 18px 22px; }
.go-faq summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.go-faq summary::-webkit-details-marker { display: none; }
.go-faq summary::after { content: "+"; color: var(--accent-text); font-size: 1.2rem; line-height: 1; }
.go-faq details[open] summary::after { content: "\2212"; }
.go-faq p { margin-top: 12px; color: var(--text-2); font-size: 0.95rem; line-height: 1.65; }

.cs-cta { padding: 84px 24px; background: var(--bg-2); text-align: center; }
.cs-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 14px; }
.cs-cta p { color: var(--text-2); max-width: 600px; margin: 0 auto 28px; line-height: 1.7; }
.cs-cta .cs-actions { justify-content: center; }

@media (max-width: 1024px) {
  .cs-steps { grid-template-columns: repeat(2, 1fr); }
  .go-features { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .cs-hero { padding: 120px 16px 56px; }
  .cs-section, .cs-cta { padding: 60px 16px; }
  .cs-steps, .go-features, .go-seasons { grid-template-columns: 1fr; }
    .cs-products { grid-template-columns: 1fr; }
}

/* "CTS" before the GroundOPS logo, so the product name is CTS GroundOPS */
.go-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.go-brand .go-logo { margin: 0; }
.go-cts { font-size: 1.75rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text); line-height: 1; padding-bottom: 2px; }
.go-brand-sm { margin: 0; gap: 8px; }
.go-brand-sm .go-cts { font-size: 1.25rem; }
