.ai-header,
.ai-main,
.ai-footer {
  width: min(1180px, calc(100% - 2rem));
  margin-inline: auto;
}

.ai-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(0, 234, 208, .18);
}

.ai-brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  color: var(--st-text);
  text-decoration: none;
}

.ai-brand img { width: 48px; height: 48px; object-fit: contain; }
.ai-brand span { display: grid; gap: .14rem; }
.ai-brand strong { font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; }
.ai-brand small { color: var(--st-muted); }

.ai-back {
  padding: .72rem 1rem;
  border: 1px solid var(--st-line);
  border-radius: 999px;
  color: var(--st-text);
  text-decoration: none;
  font-weight: 800;
}

.ai-main { padding: 2.5rem 0 4rem; }

.ai-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
  gap: 1.4rem;
  align-items: stretch;
  padding: clamp(1.5rem, 4vw, 3.4rem);
  border: 1px solid rgba(0, 191, 255, .28);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(0, 191, 255, .12), transparent 42%),
    linear-gradient(315deg, rgba(255, 63, 167, .1), transparent 45%),
    #0b111b;
  box-shadow: var(--st-shadow);
}

.ai-kicker {
  margin: 0 0 .55rem;
  color: var(--st-cyan);
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.ai-hero h1,
.ai-section h2 {
  margin: 0;
  color: var(--st-text);
  line-height: 1.02;
}

.ai-hero h1 { max-width: 820px; font-size: clamp(2.25rem, 7vw, 5.6rem); }
.ai-lead { max-width: 780px; margin: 1.2rem 0; color: #c8d6e6; font-size: clamp(1rem, 2.2vw, 1.3rem); line-height: 1.65; }

.ai-status {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .65rem .85rem;
  border: 1px solid rgba(255, 228, 56, .35);
  border-radius: 999px;
  color: var(--st-yellow);
  font-size: .8rem;
  font-weight: 850;
}

.ai-status span { width: .62rem; height: .62rem; border-radius: 50%; background: var(--st-yellow); box-shadow: 0 0 18px rgba(255, 228, 56, .8); }

.ai-promise {
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: .8rem;
  min-height: 310px;
  padding: 1.4rem;
  border: 1px solid rgba(81, 255, 125, .35);
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(81, 255, 125, .14), rgba(5, 7, 11, .88));
}

.ai-promise > span { color: var(--st-green); font-weight: 950; letter-spacing: .18em; }
.ai-promise strong { font-size: clamp(1.35rem, 3vw, 2rem); line-height: 1.18; }
.ai-promise small { color: var(--st-muted); line-height: 1.5; }

.ai-section { margin-top: clamp(3.5rem, 7vw, 6.5rem); }
.ai-section h2 { max-width: 780px; font-size: clamp(1.8rem, 4.5vw, 3.4rem); }
.ai-section > p:not(.ai-kicker) { max-width: 760px; color: var(--st-muted); line-height: 1.65; }

.ai-service-grid,
.ai-roadmap-grid,
.ai-link-grid { display: grid; gap: 1rem; margin-top: 1.5rem; }
.ai-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.ai-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid var(--st-line);
  border-radius: 22px;
  background: rgba(13, 19, 29, .92);
}

.ai-card::after { content: ""; position: absolute; inset: auto -25% -55% 35%; height: 240px; border-radius: 50%; filter: blur(55px); opacity: .18; }
.ai-card-knowledge::after { background: var(--st-blue); }
.ai-card-diagrams::after { background: var(--st-pink); }
.ai-card-icon { display: grid; place-items: center; width: 66px; height: 66px; margin-bottom: 1.4rem; border: 1px solid currentColor; border-radius: 18px; color: var(--st-cyan); font-size: 1.4rem; font-weight: 950; box-shadow: var(--st-glow-blue); }
.ai-card-diagrams .ai-card-icon { color: var(--st-pink); }
.ai-card > span { color: var(--st-yellow); font-size: .78rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.ai-card h3 { max-width: 520px; margin: .55rem 0 1rem; font-size: clamp(1.35rem, 3vw, 2rem); }
.ai-card ul,
.ai-trust ul { padding-left: 1.25rem; color: #c7d3e1; line-height: 1.7; }

.ai-flow ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .8rem; padding: 0; list-style: none; }
.ai-flow li { min-height: 210px; padding: 1.15rem; border: 1px solid var(--st-line); border-radius: 18px; background: var(--st-panel); }
.ai-flow li > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: var(--st-orange); color: #160b00; font-weight: 950; }
.ai-flow strong { display: block; margin-top: 1.1rem; font-size: 1.1rem; }
.ai-flow p { color: var(--st-muted); line-height: 1.55; }

.ai-link-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-link-grid a { display: grid; gap: .35rem; min-height: 120px; padding: 1.1rem; border: 1px solid rgba(0, 234, 208, .25); border-radius: 16px; background: rgba(0, 234, 208, .055); color: var(--st-text); text-decoration: none; }
.ai-link-grid a:hover { border-color: var(--st-cyan); transform: translateY(-2px); }
.ai-link-grid strong { color: var(--st-cyan); }
.ai-link-grid span { color: var(--st-muted); line-height: 1.45; }

.ai-roadmap-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ai-roadmap article { padding: 1.2rem; border-top: 4px solid var(--st-blue); border-radius: 4px 4px 16px 16px; background: var(--st-panel); }
.ai-roadmap article:nth-child(2) { border-color: var(--st-yellow); }
.ai-roadmap article:nth-child(3) { border-color: var(--st-green); }
.ai-roadmap article span { color: var(--st-muted); font-size: .72rem; font-weight: 950; letter-spacing: .15em; }
.ai-roadmap h3 { margin: .55rem 0; font-size: 1.35rem; }
.ai-roadmap p { margin-bottom: 0; color: var(--st-muted); line-height: 1.55; }

.ai-trust { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; padding: clamp(1.3rem, 3vw, 2.2rem); border: 1px solid rgba(255, 122, 0, .35); border-radius: 22px; background: rgba(255, 122, 0, .06); }
.ai-trust ul { margin: 0; columns: 2; }

.ai-footer { display: flex; flex-wrap: wrap; gap: .7rem 1.4rem; justify-content: space-between; padding: 1.5rem 0 2.4rem; border-top: 1px solid var(--st-line); color: var(--st-muted); font-size: .82rem; }
.ai-footer p { margin: 0; }
.ai-footer nav { display: flex; gap: 1rem; }
.ai-footer a { color: var(--st-cyan); }

@media (max-width: 860px) {
  .ai-hero,
  .ai-service-grid,
  .ai-trust { grid-template-columns: 1fr; }
  .ai-flow ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ai-link-grid,
  .ai-roadmap-grid { grid-template-columns: 1fr; }
  .ai-promise { min-height: 230px; }
}

@media (max-width: 560px) {
  .ai-header { align-items: flex-start; }
  .ai-brand small { display: none; }
  .ai-back { padding: .58rem .7rem; font-size: .76rem; }
  .ai-main { padding-top: 1.25rem; }
  .ai-hero { padding: 1.15rem; border-radius: 20px; }
  .ai-hero h1 { font-size: 2.35rem; }
  .ai-status { align-items: flex-start; border-radius: 15px; line-height: 1.45; }
  .ai-flow ol { grid-template-columns: 1fr; }
  .ai-flow li { min-height: 0; }
  .ai-trust ul { columns: 1; }
  .ai-footer { display: grid; }
}
