/* ============================================
   AcuGIS Styler product page
   Extends home.css tokens, buttons, footer, type
   ============================================ */

:root {
  --styler: #1565c0;
  --styler-deep: #0f4c75;
  --styler-soft: #eef4fb;
  --styler-line: #d7e4f2;
}

.st-hero .btn:focus-visible,
.st-text-link:focus-visible,
.st-related a:focus-visible {
  outline: 3px solid rgba(21, 101, 192, 0.4);
  outline-offset: 2px;
}

.st-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 72px;
  background:
    radial-gradient(ellipse 80% 60% at 78% 12%, rgba(25, 118, 210, 0.12), transparent 55%),
    radial-gradient(ellipse 50% 40% at 8% 88%, rgba(21, 101, 192, 0.06), transparent 50%),
    linear-gradient(180deg, #f0f6fc 0%, var(--bg) 100%);
}

.st-hero .eyebrow {
  color: var(--styler-deep);
}

.st-hero h1 {
  font-size: clamp(36px, 5vw, 52px);
  margin-bottom: 12px;
  max-width: 14em;
}

.st-hero .hero-kicker {
  color: var(--styler-deep);
}

.st-hero .hero-actions {
  align-items: center;
}

.st-text-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  font-size: 15px;
  font-weight: 700;
  color: var(--styler-deep);
}

.st-text-link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.15s ease;
}

.st-text-link:hover svg,
.st-text-link:focus-visible svg {
  transform: translateX(3px);
}

.st-arch {
  margin: 0;
  padding: 22px 18px 20px;
  background:
    radial-gradient(circle at 50% 42%, rgba(21, 101, 192, 0.08), transparent 58%),
    linear-gradient(180deg, #ffffff 0%, #f4f8fb 100%);
  border: 1px solid var(--styler-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.st-arch-label {
  margin: 0 0 14px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--styler-deep);
}

.st-arch-stack {
  display: grid;
  justify-items: center;
  gap: 0;
}

.st-node {
  width: min(100%, 280px);
  padding: 14px 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.st-node--hub {
  width: min(100%, 300px);
  border-color: var(--styler);
  background: linear-gradient(180deg, #f4f8fb 0%, #ffffff 100%);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.12);
}

.st-node-kicker {
  margin: 0 0 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--styler);
}

.st-node-name {
  margin: 0;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--navy-deep);
}

.st-node-meta {
  margin: 6px 0 0;
  font-size: 12px;
  line-height: 1.35;
  color: var(--muted);
}

.st-arrow {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  color: var(--styler);
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
}

.st-arrow span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.st-section {
  padding: 80px 0;
}

.st-section--soft {
  background: var(--styler-soft);
}

.st-section--alt {
  background: var(--soft);
}

.st-section-header {
  max-width: 720px;
  margin: 0 auto 40px;
  text-align: center;
}

.st-section-header .eyebrow {
  color: var(--styler-deep);
}

.st-section-header h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  margin-bottom: 12px;
}

.st-section-header p {
  color: var(--muted);
  font-size: 17px;
}

.st-flow {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 8px;
  align-items: stretch;
}

.st-flow-step {
  padding: 22px 18px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-align: center;
}

.st-flow-step h3 {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--navy-deep);
  margin-bottom: 8px;
}

.st-flow-step p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

.st-flow-step--hub {
  border-color: var(--styler);
  background: var(--styler-soft);
}

.st-flow-join {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--styler);
  font-size: 20px;
  font-weight: 700;
}

.st-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.st-card {
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.st-card h3 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--styler-deep);
  margin-bottom: 10px;
}

.st-card p {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.55;
}

.st-mode {
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 26px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.st-mode h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.st-mode p {
  font-size: 16px;
  color: var(--muted);
}

.st-os-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.st-os-card {
  padding: 24px 22px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.st-os-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.st-os-card p {
  font-size: 15px;
  color: var(--muted);
}

.st-related {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  gap: 24px 40px;
  align-items: center;
  padding: 28px 32px;
  background: var(--drive-soft, #eef8f6);
  border: 1px solid #c5e4de;
  border-radius: var(--radius-lg);
}

.st-related .eyebrow {
  color: #0b7a70;
}

.st-related h2 {
  font-size: clamp(24px, 3vw, 30px);
  margin-bottom: 10px;
}

.st-related p {
  font-size: 16px;
  color: var(--muted);
  max-width: 42em;
}

.st-cta.cta {
  background:
    radial-gradient(ellipse 60% 50% at 80% 20%, rgba(50, 130, 184, 0.24), transparent 55%),
    linear-gradient(135deg, #071e33 0%, #0a334f 45%, #0f4c75 100%);
}

.st-cta .btn-outline-light:hover,
.st-cta .btn-outline-light:focus {
  background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 1100px) {
  .st-card-grid,
  .st-os-grid {
    grid-template-columns: 1fr 1fr;
  }

  .st-related {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .st-related .product-cta {
    justify-self: start;
  }
}

@media (max-width: 900px) {
  .st-flow {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .st-flow-join {
    min-height: 28px;
    transform: rotate(90deg);
  }
}

@media (max-width: 720px) {
  .st-hero,
  .st-section {
    padding: 48px 0;
  }

  .st-hero h1 {
    font-size: 32px;
  }

  .st-card-grid,
  .st-os-grid {
    grid-template-columns: 1fr;
  }

  .st-hero .hero-actions .btn,
  .st-cta .btn {
    width: 100%;
  }

  .st-related {
    padding: 22px 18px;
  }

  .st-node,
  .st-node--hub {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-text-link svg {
    transition: none;
  }

  .st-text-link:hover svg,
  .st-text-link:focus-visible svg {
    transform: none;
  }
}
