/* Reusable enterprise UI components */

/* ---------- Icons (Lucide-style stroke) ---------- */
.ui-icon {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  flex-shrink: 0;
}

.ui-icon-sm {
  width: 16px;
  height: 16px;
}

.ui-icon-lg {
  width: 24px;
  height: 24px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--teal-tint);
  color: var(--teal-deep);
  border: 1px solid rgba(14, 124, 123, 0.12);
}

.icon-badge-ink {
  background: rgba(159, 225, 203, 0.12);
  color: #9fe1cb;
  border-color: rgba(159, 225, 203, 0.18);
}

/* ---------- Cards ---------- */
.ui-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 24px 22px;
  box-shadow: var(--shadow-xs);
  transition:
    transform var(--duration) var(--ease),
    box-shadow var(--duration) var(--ease),
    border-color var(--duration) var(--ease);
}

.ui-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.ui-card-static:hover {
  transform: none;
  box-shadow: var(--shadow-xs);
}

.ui-card-feature .ui-card-label,
.feature-card .feature-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 10px;
  font-weight: 500;
}

.feature-card h3,
.ui-card-feature h3 {
  margin: 0 0 8px;
}

.feature-card p,
.ui-card-feature p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.65;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .feature-grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

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

/* Technology chips / cards */
.tech-card-ui {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px 14px;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.tech-card-ui:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.tech-card-ui .tech-logo {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}

.tech-card-ui .tech-logo img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

/* Stats */
.stat-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}

@media (min-width: 800px) {
  .stat-grid.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 20px 18px;
}

.stat-card strong,
.stat-card .stat-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.stat-card span,
.stat-card .stat-label {
  display: block;
  margin-top: 6px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* Timeline / process */
.timeline {
  display: grid;
  gap: 0;
}

@media (min-width: 900px) {
  .timeline.cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .timeline.cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }
}

.timeline-step {
  position: relative;
  padding: 20px 0 20px 22px;
  border-left: 2px solid var(--border);
}

@media (min-width: 900px) {
  .timeline-step {
    padding: 28px 20px 0 0;
    border-left: none;
    border-top: 2px solid var(--border);
  }

  .timeline-step::before {
    content: "";
    position: absolute;
    top: -6px;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 3px var(--surface);
  }
}

.timeline-step .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--teal-deep);
  margin-bottom: 8px;
}

.timeline-step h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.timeline-step p {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  max-width: 32ch;
}

/* Architecture diagram */
.arch-diagram {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(14, 124, 123, 0.06), transparent 60%),
    var(--surface);
  padding: 28px 20px;
  box-shadow: var(--shadow-sm);
}

@media (min-width: 720px) {
  .arch-diagram {
    padding: 36px 32px;
  }
}

.arch-layer {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 0;
}

.arch-node {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 12px 16px;
  min-width: 100px;
  text-align: center;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}

.arch-node:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.arch-node.accent {
  background: var(--teal-tint);
  border-color: rgba(14, 124, 123, 0.22);
  color: var(--teal-deep);
}

.arch-node.ink {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.arch-node span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-faint);
}

.arch-node.ink span {
  color: rgba(255, 255, 255, 0.65);
}

.arch-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 0;
  color: var(--ink-faint);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.arch-connector svg {
  color: var(--teal);
}

.arch-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 12px;
}

/* Feature list */
.feature-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}

.feature-list li:last-child {
  margin-bottom: 0;
}

.feature-list .check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--teal-tint);
  color: var(--teal-deep);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-list .check svg {
  width: 12px;
  height: 12px;
}

/* Comparison table */
.ui-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}

.ui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 560px;
}

.ui-table th,
.ui-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--ink-soft);
}

.ui-table th {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: var(--bg);
  font-weight: 500;
}

.ui-table tr:last-child td {
  border-bottom: none;
}

.ui-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}

/* Pricing-ready */
.pricing-grid {
  display: grid;
  gap: 16px;
}

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

.pricing-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background: var(--surface);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-xs);
}

.pricing-card.featured {
  border-color: var(--teal);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-card .price {
  font-family: var(--font-display);
  font-size: 2rem;
  margin: 8px 0 4px;
}

.pricing-card .price-note {
  font-size: 13px;
  color: var(--ink-faint);
  margin-bottom: 20px;
}

.pricing-card .btn {
  margin-top: auto;
  width: 100%;
}

/* CTA banner */
.cta-banner {
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 70% 80% at 100% 0%, rgba(14, 124, 123, 0.35), transparent 55%),
    var(--ink);
  color: #fff;
  padding: 40px 28px;
}

@media (min-width: 720px) {
  .cta-banner {
    padding: 48px 44px;
    display: grid;
    grid-template-columns: 1.4fr auto;
    gap: 32px;
    align-items: center;
  }
}

.cta-banner h2 {
  color: #fff;
  margin: 0 0 10px;
}

.cta-banner p {
  color: #b7c1d1;
  margin: 0;
  max-width: 48ch;
}

.cta-banner .eyebrow {
  color: #9fe1cb;
}

.cta-banner .eyebrow::before {
  background: #9fe1cb;
}

.cta-banner .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

@media (min-width: 720px) {
  .cta-banner .actions {
    margin-top: 0;
    justify-content: flex-end;
  }
}

.cta-banner .btn-primary {
  background: #fff;
  color: var(--ink);
}

.cta-banner .btn-primary:hover {
  background: #9fe1cb;
}

/*
 * Dark ink CTAs: base .btn-ghost uses a light surface fill + ink text,
 * which becomes unreadable on navy panels. Use a solid mint secondary
 * so labels stay high-contrast next to the white primary button.
 */
.cta-banner .btn-ghost,
.about-cta .btn-ghost,
.contact-cta .btn-ghost,
.wt-cta .btn-ghost,
.svc-cta .btn-ghost,
.home-section.ink .btn-ghost,
.ai-section.ink .btn-ghost,
.ins-cta .btn-ghost,
.cs-cta .btn-ghost,
.tech-cta .btn-ghost,
.ind-cta .btn-ghost,
.sol-cta .btn-ghost,
.sa-next .btn-ghost {
  background: #9fe1cb !important;
  color: #12213c !important;
  -webkit-text-fill-color: #12213c !important;
  border-color: #9fe1cb !important;
}

.cta-banner .btn-ghost:hover,
.about-cta .btn-ghost:hover,
.contact-cta .btn-ghost:hover,
.wt-cta .btn-ghost:hover,
.svc-cta .btn-ghost:hover,
.home-section.ink .btn-ghost:hover,
.ai-section.ink .btn-ghost:hover,
.ins-cta .btn-ghost:hover,
.cs-cta .btn-ghost:hover,
.tech-cta .btn-ghost:hover,
.ind-cta .btn-ghost:hover,
.sol-cta .btn-ghost:hover,
.sa-next .btn-ghost:hover {
  background: #b6ead8 !important;
  border-color: #b6ead8 !important;
  color: #12213c !important;
  -webkit-text-fill-color: #12213c !important;
}

/* FAQ accordion polish */
.faq-accordion details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  margin-bottom: 10px;
  overflow: hidden;
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}

.faq-accordion details[open] {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.faq-accordion summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 48px 18px 20px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  position: relative;
  transition: color var(--duration) var(--ease);
}

.faq-accordion summary::-webkit-details-marker {
  display: none;
}

.faq-accordion summary::after {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid var(--teal-deep);
  border-bottom: 1.5px solid var(--teal-deep);
  transform: translateY(-65%) rotate(45deg);
  transition: transform var(--duration) var(--ease);
}

.faq-accordion details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}

.faq-accordion .faq-body {
  padding: 0 20px 18px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--ink-soft);
  max-width: 68ch;
}

/* Testimonial */
.testimonial-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 28px 24px;
  box-shadow: var(--shadow-xs);
}

.testimonial-card blockquote {
  margin: 0 0 18px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.45;
  color: var(--ink);
}

.testimonial-card .byline {
  font-size: 13.5px;
  color: var(--ink-faint);
}

.testimonial-card .byline strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 2px;
}

/* Team */
.team-grid {
  display: grid;
  gap: 14px;
}

@media (min-width: 720px) {
  .team-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.team-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  padding: 22px 20px;
  text-align: center;
}

.team-card .avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-tint), #dce8e6);
  border: 1px solid var(--border);
}

.team-card h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.team-card .role {
  font-size: 13px;
  color: var(--ink-faint);
  margin: 0;
}

/* Section divider */
.section-divider {
  height: 1px;
  border: 0;
  margin: 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* Pattern panel */
.pattern-panel {
  position: relative;
  overflow: hidden;
}

.pattern-panel > .pattern-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%230e7c7b' fill-opacity='0.06'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

/* Link underline animation */
.link-underline {
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: background-size var(--duration-slow) var(--ease);
}

.link-underline:hover {
  background-size: 100% 1px;
}

/* Media zoom */
.media-zoom {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.media-zoom img {
  width: 100%;
  transition: transform var(--duration-slow) var(--ease-out);
}

.media-zoom:hover img {
  transform: scale(1.03);
}


/* Related topical hubs */
.related-hubs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.related-hubs a {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-deep);
  text-decoration: none;
}
.related-hubs a:hover { text-decoration: underline; }
.related-hubs-label {
  width: 100%;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 2px;
}


/* Knowledge graph related panel (no redesign — compact link groups) */
.kg-panel {
  padding: 48px 0 56px;
  border-top: 1px solid var(--border);
  background: var(--surface);
}
.kg-panel .kg-head {
  margin-bottom: 22px;
  max-width: 62ch;
}
.kg-panel .kg-head .eyebrow { margin-bottom: 8px; }
.kg-panel .kg-head h2 {
  font-size: clamp(1.35rem, 2.2vw, 1.75rem);
  margin: 0 0 8px;
}
.kg-panel .kg-head p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 15px;
}
.kg-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 720px) {
  .kg-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .kg-grid { grid-template-columns: repeat(3, 1fr); }
}
.kg-group h3 {
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0 0 10px;
  font-family: var(--font-sans);
}
.kg-group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.kg-group li { margin: 0 0 7px; }
.kg-group a {
  font-size: 14px;
  font-weight: 500;
  color: var(--teal-deep);
  text-decoration: none;
  line-height: 1.4;
}
.kg-group a:hover { text-decoration: underline; }
.kg-entities {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.kg-entities a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid var(--border);
}
.kg-entities a:hover { color: var(--teal-deep); border-color: var(--teal); }
.kg-summary {
  margin: 20px 0 0;
  padding: 16px 18px;
  border-left: 3px solid var(--teal);
  background: var(--bg);
  max-width: 72ch;
}
.kg-summary strong { display: block; margin-bottom: 6px; font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); }
.kg-summary p { margin: 0; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }


/* AI-friendly documentation blocks (preserve design language) */
.ai-doc {
  margin: 28px 0;
  padding: 20px 22px;
  border: 1px solid var(--border);
  border-left: 3px solid var(--teal);
  background: var(--surface);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  max-width: 72ch;
}
.ai-doc h2, .ai-doc h3 {
  font-family: var(--font-sans);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink-faint);
  font-weight: 600;
  margin: 0 0 10px;
}
.ai-doc p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.ai-doc p:last-child { margin-bottom: 0; }
.ai-doc ul { margin: 0; padding-left: 1.15rem; color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; }
.ai-doc li { margin: 0 0 6px; }
.ai-doc a { color: var(--teal-deep); font-weight: 500; }
.ai-doc-grid { display: grid; gap: 14px; margin: 28px 0; }
@media (min-width: 800px) { .ai-doc-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.ai-doc.ink-soft-bg { background: var(--bg); }
.llm-page .page-hero { padding: 56px 0 40px; background: var(--surface); border-bottom: 1px solid var(--border); }
@media (min-width:640px) { .llm-page .page-hero { padding: 80px 0 56px; } }
.llm-page .page-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 0; max-width: 18ch; }
.llm-page .page-hero .lead { margin: 16px 0 0; color: var(--ink-soft); max-width: 60ch; line-height: 1.7; }
.llm-page .breadcrumbs { font-size: 13px; margin-bottom: 14px; color: var(--ink-faint); }
.llm-page .breadcrumbs a { color: var(--teal-deep); text-decoration: none; }
.llm-body { padding: 40px 0 72px; }
.llm-body h2 { font-size: clamp(1.25rem, 2vw, 1.55rem); margin: 36px 0 12px; }
.term-block { padding: 22px 0; border-bottom: 1px solid var(--border); max-width: 760px; scroll-margin-top: 88px; }
.term-block h2 { font-size: 1.25rem; margin: 0 0 8px; }
.term-block .full-name { font-size: 13px; color: var(--ink-faint); margin: 0 0 8px; }
.term-block .def { margin: 0 0 12px; color: var(--ink-soft); line-height: 1.7; font-size: 15px; }
.term-meta { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 13.5px; }
.term-meta a { color: var(--teal-deep); font-weight: 500; text-decoration: none; }
.term-meta a:hover { text-decoration: underline; }
.term-index { display: flex; flex-wrap: wrap; gap: 8px 12px; margin: 0 0 28px; }
.term-index a { font-size: 13.5px; color: var(--teal-deep); font-weight: 500; text-decoration: none; }
.cmp-table-wrap { overflow-x: auto; margin: 18px 0 24px; }
.cmp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 520px; }
.cmp-table th, .cmp-table td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; color: var(--ink-soft); line-height: 1.5; }
.cmp-table th { background: var(--surface); color: var(--ink); font-weight: 600; }
.cmp-cols { display: grid; gap: 16px; margin: 16px 0 24px; }
@media (min-width:720px) { .cmp-cols { grid-template-columns: 1fr 1fr; } }
.cmp-card h3 { margin: 0 0 8px; font-size: 1.05rem; }
.cmp-card ul { margin: 0; padding-left: 1.15rem; color: var(--ink-soft); line-height: 1.6; font-size: 14.5px; }
.ai-overview-section { padding: 20px 0; border-bottom: 1px solid var(--border); max-width: 800px; }
.ai-overview-section h2 { font-size: 1.15rem; margin: 0 0 10px; font-family: var(--font-sans); }
.ai-overview-section ul, .ai-overview-section ol { margin: 0; padding-left: 1.15rem; color: var(--ink-soft); line-height: 1.65; }
.ai-overview-section p { margin: 0; color: var(--ink-soft); line-height: 1.7; }
.ai-overview-section a { color: var(--teal-deep); }
.machine-banner { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-faint); margin-bottom: 10px; }
.prose-p { color: var(--ink-soft); line-height: 1.7; max-width: 70ch; font-size: 15px; }
