/* ==========================================================================
   Cybergen — AI Security page
   ========================================================================== */
.ai-tag { font-style: normal; display: inline-block; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; }
.t-crit { color: #fff; background: #d64545; }
.t-high { color: #7a2a00; background: #ffd2b0; }
.t-med { color: #6b5200; background: #ffe9a6; }
.t-ok { color: #0b5b3a; background: #c8f0dc; }
.t-blue { color: var(--navy); background: var(--accent); }

/* ---------- Hero ---------- */
.ai-hero .svc-hero-grid { grid-template-columns: 1fr 1.05fr; }
.ai-hero h1 { max-width: 640px; }
.ai-hero .stat-row { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 30px; }
.ai-hero .stat-row div { max-width: 210px; }
.ai-hero .stat-row strong { display: block; font-size: 34px; font-weight: 800; color: #fff; line-height: 1.05; }
.ai-hero .stat-row span { font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.45; }
.ai-hero .src { margin-top: 12px; font-size: 11.5px; color: rgba(255,255,255,.45); }

/* Dashboard mock */
.ai-dash { position: relative; z-index: 1; border-radius: 18px; background: #0b1f45; border: 1px solid rgba(148,212,244,.25); box-shadow: 0 40px 80px rgba(0,0,0,.45); overflow: hidden; font-size: 12px; color: #dfe9f5; }
.ai-dash .bar { display: flex; align-items: center; gap: 7px; padding: 11px 14px; background: #071736; border-bottom: 1px solid rgba(148,212,244,.14); }
.ai-dash .bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.18); }
.ai-dash .bar b { margin-left: 8px; font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,.75); }
.ai-dash .bar em { margin-left: auto; font-style: normal; font-size: 10px; letter-spacing: .12em; color: var(--accent); }
.ai-dash .body { padding: 16px; display: grid; gap: 12px; }
.ai-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ai-kpis div { padding: 12px; border-radius: 10px; background: rgba(148,212,244,.06); border: 1px solid rgba(148,212,244,.14); }
.ai-kpis small { display: block; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.55); }
.ai-kpis strong { display: block; font-size: 20px; font-weight: 700; color: #fff; margin-top: 4px; }
.ai-kpis span { font-size: 10.5px; color: #8fe0b4; }
.ai-chart { padding: 12px; border-radius: 10px; background: rgba(148,212,244,.04); border: 1px solid rgba(148,212,244,.12); }
.ai-chart .lg { display: flex; gap: 14px; font-size: 10.5px; color: rgba(255,255,255,.6); margin-bottom: 6px; }
.ai-chart .lg i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: middle; }
.ai-chart svg { width: 100%; height: 92px; display: block; }
.ai-apps { border-radius: 10px; border: 1px solid rgba(148,212,244,.12); overflow: hidden; }
.ai-apps div { display: grid; grid-template-columns: 1.2fr 1.4fr auto; gap: 10px; align-items: center; padding: 8px 12px; border-top: 1px solid rgba(148,212,244,.08); }
.ai-apps div:first-child { border-top: 0; background: rgba(148,212,244,.06); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.ai-apps b { font-weight: 600; color: #fff; }
.ai-apps span { color: rgba(255,255,255,.65); }
.ai-float { position: absolute; z-index: 3; right: -14px; bottom: 46px; width: 250px; padding: 14px; border-radius: 14px; background: #fff; color: var(--ink); box-shadow: 0 30px 60px rgba(0,0,0,.4); font-size: 12px; }
.ai-float .h { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.ai-float .h b { font-size: 12.5px; }
.ai-float p { margin: 0 0 8px; color: var(--muted); line-height: 1.5; }
.ai-float .q { padding: 8px 10px; border-radius: 8px; background: var(--light); font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--ink); margin-bottom: 8px; }
.ai-float .q mark { background: #ffd9d9; color: #9b1c1c; padding: 0 3px; border-radius: 3px; }
.ai-hero .vis { position: relative; }
.ai-caption { text-align: right; font-size: 11px; color: rgba(255,255,255,.4); margin-top: 10px; }

/* ---------- Frameworks strip ---------- */
.ai-fw { padding: 26px 0; border-bottom: 1px solid var(--line); background: #fff; }
.ai-fw .wrap { display: flex; align-items: center; gap: 12px 28px; flex-wrap: wrap; justify-content: center; }
.ai-fw small { font-size: 11px; font-weight: 700; letter-spacing: .16em; color: var(--muted); }
.ai-fw span { font-size: 13px; font-weight: 700; color: var(--navy); display: inline-flex; align-items: center; gap: 7px; }
.ai-fw span svg { width: 15px; height: 15px; color: var(--blue-2); }

/* ---------- Problem flow ---------- */
.ai-flow { display: grid; grid-template-columns: 1fr 56px 1fr 56px 1fr; align-items: stretch; margin-top: 50px; }
.ai-col { border-radius: 18px; padding: 26px; background: #fff; border: 1px solid var(--line); }
.ai-col.dark { background: var(--navy); border-color: var(--navy); color: #fff; }
.ai-col h3 { margin: 0 0 4px; font-size: 18px; color: var(--navy); }
.ai-col.dark h3 { color: #fff; }
.ai-col > small { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--blue-2); margin-bottom: 8px; }
.ai-col.dark > small { color: #ff9b9b; }
.ai-col ul { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 9px; }
.ai-col li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--light); font-size: 14px; font-weight: 500; color: var(--ink); }
.ai-col.dark li { background: rgba(255,255,255,.06); color: rgba(255,255,255,.88); }
.ai-col li svg { width: 17px; height: 17px; flex-shrink: 0; color: var(--blue-2); }
.ai-col.dark li svg { color: #ff8a8a; }
.ai-arrow { display: grid; place-items: center; color: var(--blue-2); }
.ai-arrow svg { width: 34px; height: 34px; }
.ai-callout { margin: 38px auto 0; max-width: 820px; text-align: center; font-size: 19px; font-weight: 600; line-height: 1.5; color: var(--navy); }
.ai-callout .hl { color: var(--blue-2); }

/* ---------- Risks grid ---------- */
.ai-risks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.ai-risk { padding: 26px; border-radius: 16px; background: rgba(148,212,244,.05); border: 1px solid var(--line-dark); transition: border-color .3s, transform .3s var(--ease); }
.ai-risk:hover { border-color: rgba(148,212,244,.45); transform: translateY(-3px); }
.ai-risk .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(148,212,244,.12); color: var(--accent); margin-bottom: 16px; }
.ai-risk .ic svg { width: 22px; height: 22px; }
.ai-risk h3 { color: #fff; font-size: 17px; margin: 0 0 8px; }
.ai-risk p { color: rgba(255,255,255,.7); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Four lenses ---------- */
.ai-lenses { display: grid; grid-template-columns: 1fr 460px 1fr; gap: 30px; align-items: center; margin-top: 50px; }
.ai-lens { padding: 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ai-lens + .ai-lens { margin-top: 18px; }
.ai-lens .n { font-size: 12px; font-weight: 800; color: var(--blue-2); letter-spacing: .1em; }
.ai-lens h3 { margin: 4px 0 6px; font-size: 18px; color: var(--navy); }
.ai-lens p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ai-lens .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ai-lens .chips span { font-size: 11.5px; font-weight: 600; color: var(--blue); background: rgba(11,106,163,.08); border-radius: 99px; padding: 4px 9px; }
.ai-wheel { width: 100%; height: auto; }
.ai-example { margin: 34px auto 0; max-width: 900px; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; padding: 18px 22px; border-radius: 14px; background: var(--navy); color: #fff; font-size: 14px; }
.ai-example b { color: var(--accent); font-weight: 600; }
.ai-example .pill-s { padding: 6px 12px; border-radius: 99px; background: rgba(148,212,244,.1); border: 1px solid rgba(148,212,244,.3); }
.ai-example .eq { color: rgba(255,255,255,.5); }

/* ---------- Loop ---------- */
.ai-loop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; position: relative; }
.ai-step { position: relative; padding: 26px 22px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.ai-step .num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: var(--accent); font-weight: 800; font-size: 14px; }
.ai-step h3 { margin: 14px 0 6px; font-size: 19px; color: var(--navy); }
.ai-step p { margin: 0 0 12px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ai-step ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ai-step li { position: relative; padding-left: 18px; font-size: 13px; color: var(--ink); }
.ai-step li::before { content: ""; position: absolute; left: 0; top: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(148,212,244,.25); }
.ai-step:not(:last-child)::after { content: ""; position: absolute; top: 44px; right: -18px; width: 16px; height: 16px; border-top: 2px solid var(--blue-2); border-right: 2px solid var(--blue-2); transform: rotate(45deg); z-index: 1; }
.ai-loopback { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 18px; font-size: 13px; font-weight: 600; color: var(--blue-2); }
.ai-loopback svg { width: 18px; height: 18px; }

/* ---------- Pipeline ---------- */
.ai-pipe { margin-top: 48px; border-radius: 22px; background: var(--navy-card); border: 1px solid var(--line-dark); padding: 26px; overflow-x: auto; }
.ai-pipe svg { display: block; width: 100%; min-width: 860px; height: auto; }
.ai-pipe-note { margin-top: 14px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.6); }

/* ---------- Product panels ---------- */
.ai-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.ai-panel { border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: 0 20px 40px rgba(7,28,66,.07); overflow: hidden; }
.ai-panel .ph { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--light); }
.ai-panel .ph b { font-size: 13px; color: var(--navy); }
.ai-panel .ph small { font-size: 10.5px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.ai-panel .pb { padding: 16px; display: grid; gap: 10px; font-size: 12.5px; }
.ai-panel .kv { display: grid; grid-template-columns: 92px 1fr; gap: 6px 10px; }
.ai-panel .kv span { color: var(--muted); }
.ai-panel .kv b { color: var(--ink); font-weight: 600; }
.ai-panel .rule-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 10px; border-radius: 9px; background: var(--light); }
.ai-panel .rule-row span { color: var(--ink); }
.ai-panel .log { display: grid; grid-template-columns: 54px 1fr; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); }
.ai-panel .log:first-child { border-top: 0; }
.ai-panel .log time { font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--muted); }
.ai-panel .log span { color: var(--ink); line-height: 1.45; }
.ai-panel .msg { padding: 10px; border-radius: 9px; background: #fff4f4; border: 1px solid #ffd2d2; color: #8a1f1f; line-height: 1.5; }
.ai-panel-cap { margin: 14px 0 0; font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.ai-panels > div h3 { font-size: 17px; color: var(--navy); margin: 18px 0 0; }

/* ---------- Six essentials ---------- */
.ai-six { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 48px; border: 1px solid var(--line-dark); border-radius: 20px; overflow: hidden; }
.ai-six > div { padding: 30px 28px; border-right: 1px solid var(--line-dark); border-bottom: 1px solid var(--line-dark); background: rgba(148,212,244,.03); transition: background .3s; }
.ai-six > div:nth-child(3n) { border-right: 0; }
.ai-six > div:nth-last-child(-n+3) { border-bottom: 0; }
.ai-six > div:hover { background: rgba(148,212,244,.08); }
.ai-six .n { font-size: 40px; font-weight: 300; color: var(--accent); line-height: 1; }
.ai-six h3 { color: #fff; font-size: 18px; margin: 14px 0 8px; }
.ai-six p { color: rgba(255,255,255,.72); font-size: 14px; line-height: 1.6; margin: 0; }

/* ---------- Services ---------- */
.ai-svcs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.ai-svc { display: flex; flex-direction: column; padding: 28px; border-radius: 16px; background: #fff; border: 1px solid var(--line); transition: transform .3s var(--ease), box-shadow .3s; }
.ai-svc:hover { transform: translateY(-4px); box-shadow: 0 24px 48px rgba(7,28,66,.1); }
.ai-svc .ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: var(--navy); color: var(--accent); }
.ai-svc .ic svg { width: 23px; height: 23px; }
.ai-svc h3 { margin: 16px 0 8px; font-size: 18px; color: var(--navy); }
.ai-svc p { margin: 0 0 14px; font-size: 14px; color: var(--muted); line-height: 1.6; }
.ai-svc ul { list-style: none; padding: 0; margin: 0 0 6px; display: grid; gap: 7px; }
.ai-svc li { display: flex; gap: 9px; font-size: 13.5px; color: var(--ink); }
.ai-svc li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--blue-2); margin-top: 2px; }
.ai-svc.feature { background: var(--navy); border-color: var(--navy); }
.ai-svc.feature h3 { color: #fff; }
.ai-svc.feature p { color: rgba(255,255,255,.72); }
.ai-svc.feature li { color: rgba(255,255,255,.88); }
.ai-svc.feature li svg { color: var(--accent); }
.ai-svc.feature .ic { background: var(--accent); color: var(--navy); }
.ai-svc .btn { margin-top: auto; align-self: flex-start; }

/* ---------- Timeline ---------- */
.ai-time { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; margin-top: 54px; }
.ai-time::before { content: ""; position: absolute; top: 15px; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--accent), var(--blue-2)); opacity: .5; }
.ai-time > div { position: relative; padding-top: 44px; }
.ai-time > div::before { content: ""; position: absolute; top: 6px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--navy); border: 3px solid var(--accent); }
.ai-time small { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--blue-2); }
.ai-time h3 { margin: 6px 0 8px; font-size: 18px; color: var(--navy); }
.ai-time p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Roles ---------- */
.ai-roles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 46px; }
.ai-role { padding: 24px; border-radius: 16px; background: rgba(148,212,244,.05); border: 1px solid var(--line-dark); }
.ai-role small { font-size: 11px; font-weight: 700; letter-spacing: .14em; color: var(--accent); }
.ai-role h3 { margin: 8px 0 10px; font-size: 17px; color: #fff; }
.ai-role p { margin: 0; font-size: 14px; color: rgba(255,255,255,.72); line-height: 1.6; }

/* ---------- Frameworks table ---------- */
.ai-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 44px; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; font-size: 14px; }
.ai-table th { text-align: left; background: var(--navy); color: #fff; padding: 14px 18px; font-size: 13px; letter-spacing: .04em; }
.ai-table td { padding: 16px 18px; border-top: 1px solid var(--line); vertical-align: top; color: var(--muted); line-height: 1.6; }
.ai-table td:first-child { font-weight: 700; color: var(--navy); width: 26%; }
.ai-table tr:nth-child(even) td { background: #fafcfd; }
.ai-table-wrap { overflow-x: auto; }

/* ---------- Related ---------- */
.ai-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.ai-related a { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 14px; background: #fff; border: 1px solid var(--line); transition: border-color .25s, transform .25s var(--ease); }
.ai-related a:hover { border-color: rgba(11,106,163,.4); transform: translateY(-3px); }
.ai-related small { font-size: 11px; font-weight: 700; letter-spacing: .12em; color: var(--blue-2); }
.ai-related b { font-size: 15.5px; color: var(--navy); line-height: 1.4; }
.ai-related span { margin-top: auto; font-size: 13px; font-weight: 700; color: var(--blue); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .ai-lenses { grid-template-columns: 1fr 1fr; }
  .ai-wheel-wrap { grid-column: 1 / -1; order: -1; max-width: 460px; margin: 0 auto; }
  .ai-roles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1080px) {
  .ai-hero .svc-hero-grid { grid-template-columns: 1fr; }
  .ai-float { right: 10px; }
  .ai-flow { grid-template-columns: 1fr; gap: 0; }
  .ai-arrow { height: 52px; transform: rotate(90deg); }
  .ai-loop, .ai-time { grid-template-columns: 1fr 1fr; }
  .ai-step:nth-child(2)::after { display: none; }
  .ai-time::before { display: none; }
  .ai-panels, .ai-svcs, .ai-risks, .ai-related { grid-template-columns: 1fr 1fr; }
  .ai-six { grid-template-columns: 1fr 1fr; }
  .ai-six > div:nth-child(3n) { border-right: 1px solid var(--line-dark); }
  .ai-six > div:nth-child(2n) { border-right: 0; }
  .ai-six > div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line-dark); }
  .ai-six > div:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 760px) {
  .ai-lenses, .ai-loop, .ai-time, .ai-panels, .ai-svcs, .ai-risks, .ai-roles, .ai-related, .ai-six { grid-template-columns: 1fr; }
  .ai-step::after { display: none; }
  .ai-six > div { border-right: 0 !important; border-bottom: 1px solid var(--line-dark) !important; }
  .ai-six > div:last-child { border-bottom: 0 !important; }
  .ai-kpis { grid-template-columns: 1fr 1fr 1fr; }
  .ai-kpis strong { font-size: 16px; }
  .ai-float { position: relative; right: auto; bottom: auto; width: auto; margin: -30px 12px 0; }
  .ai-apps div { grid-template-columns: 1fr auto; }
  .ai-apps div span { display: none; }
  .ai-hero .stat-row { gap: 18px; }
  .ai-table { font-size: 13px; }
  .ai-callout { font-size: 17px; }
}
