/* AI Agentic Workflows & Custom Apps page. Everything is scoped under .aiw so the legacy site styles are untouched. */
.aiw {
  --aiw-navy: #0B1530;
  --aiw-navy-2: #111C3D;
  --aiw-ink: #F8FAFC;
  --aiw-text: #CBD5E1;
  --aiw-muted: #94A3B8;
  --aiw-line: rgba(148, 163, 184, 0.18);
  --aiw-orange: #FF4F06;
  --aiw-pink: #EC4899;
  --aiw-violet: #8B5CF6;
  --aiw-cyan: #06B6D4;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--aiw-text);
  text-align: left;
  width: 980px;
  margin: 0 auto;
  line-height: 1.6;
  font-size: 15px;
}
.aiw *, .aiw *::before, .aiw *::after { box-sizing: border-box; }
.aiw h1, .aiw h2, .aiw h3, .aiw p, .aiw ul, .aiw li { margin: 0; padding: 0; background: none; }
.aiw ul { list-style: none; }
.aiw a { text-decoration: none; }
.aiw img { display: block; max-width: 100%; height: auto; border: 0; }

.aiw-section { background: var(--aiw-navy); border-radius: 18px; padding: 40px 44px; margin-bottom: 18px; position: relative; overflow: hidden; }
.aiw-eyebrow { display: inline-block; font-size: 12px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #FDBA74; margin-bottom: 10px; }
.aiw h2 { font-size: 28px; line-height: 1.25; font-weight: 800; color: var(--aiw-ink); font-family: inherit; margin-bottom: 12px; }
.aiw h3 { font-size: 17px; font-weight: 700; color: var(--aiw-ink); margin-bottom: 6px; }
.aiw-lead { font-size: 16px; color: var(--aiw-text); max-width: 760px; }
.aiw-grad-text { background: linear-gradient(90deg, #FF7A2F, #EC4899 50%, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* hero */
.aiw-hero { display: grid; grid-template-columns: 1fr 470px; gap: 18px; align-items: center; padding: 48px 32px 40px 44px;
  background: radial-gradient(800px 380px at 85% 40%, rgba(139, 92, 246, 0.35), transparent 60%),
              radial-gradient(600px 300px at 0% 100%, rgba(255, 79, 6, 0.28), transparent 60%),
              linear-gradient(135deg, #0B1530 0%, #1E1B4B 60%, #2E1065 100%); }
.aiw-hero h1 { font-family: inherit; font-size: 40px; line-height: 1.12; font-weight: 800; color: var(--aiw-ink); margin-bottom: 16px; letter-spacing: -0.01em; }
.aiw-hero p { font-size: 16px; color: #E2E8F0; margin-bottom: 24px; }
.aiw-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.aiw-btn { display: inline-block; padding: 12px 22px; border-radius: 999px; font-weight: 700; font-size: 15px; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.aiw-btn:hover { transform: translateY(-2px); }
.aiw-btn-primary { background: linear-gradient(90deg, #FF4F06, #EC4899); color: #fff !important; box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35); }
.aiw-btn-ghost { border: 1.5px solid rgba(255, 255, 255, 0.4); color: #fff !important; }
.aiw-btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.aiw-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.aiw-pills a { font-size: 12px; font-weight: 600; color: #E2E8F0 !important; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); padding: 4px 11px; border-radius: 999px; transition: background .15s ease, border-color .15s ease; }
.aiw-pills a:hover { background: rgba(255, 79, 6, 0.18); border-color: rgba(255, 106, 43, 0.7); color: #fff !important; }
.aiw-pills span { font-size: 12px; font-weight: 600; color: #E2E8F0; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); padding: 4px 11px; border-radius: 999px; }

/* intro split */
.aiw-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.aiw-checks li { position: relative; padding-left: 30px; margin-bottom: 10px; color: var(--aiw-text); }
.aiw-checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%;
  background: linear-gradient(135deg, #10B981, #06B6D4); }
.aiw-checks li::after { content: ""; position: absolute; left: 6px; top: 7px; width: 6px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.aiw-checks strong { color: var(--aiw-ink); }

/* offering cards */
.aiw-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.aiw-card { background: var(--aiw-navy-2); border: 1px solid var(--aiw-line); border-radius: 14px; padding: 22px; transition: border-color .2s ease, transform .2s ease; }
.aiw-card:hover { transform: translateY(-3px); border-color: rgba(236, 72, 153, 0.55); }
.aiw-card p { color: var(--aiw-muted); font-size: 14.5px; }
.aiw-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 12px; }
.aiw-icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.aiw-bg-orange { background: linear-gradient(135deg, #FF4F06, #F59E0B); }
.aiw-bg-violet { background: linear-gradient(135deg, #8B5CF6, #EC4899); }
.aiw-bg-blue { background: linear-gradient(135deg, #3B82F6, #06B6D4); }
.aiw-bg-green { background: linear-gradient(135deg, #10B981, #06B6D4); }
.aiw-figs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 22px; }
.aiw-fig { background: var(--aiw-navy-2); border: 1px solid var(--aiw-line); border-radius: 18px; padding: 8px; }
.aiw-fig img { border-radius: 14px; width: 100%; }
.aiw-fig figcaption { font-size: 13px; color: var(--aiw-muted); padding: 10px 8px 4px; }
.aiw figure { margin: 0; }

/* expertise tiles */
.aiw-stack { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 24px; }
.aiw-tile { border-radius: 14px; padding: 18px; color: #fff; min-height: 150px; position: relative; overflow: hidden; }
.aiw-tile::after { content: ""; position: absolute; right: -30px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }
.aiw-tile h3 { color: #fff; font-size: 16px; }
.aiw-tile p { font-size: 13px; color: rgba(255, 255, 255, 0.9); }
.aiw-tile svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 8px; }
.t-net { background: linear-gradient(135deg, #2563EB, #3B82F6); }
.t-sec { background: linear-gradient(135deg, #DC2626, #F97316); }
.t-tel { background: linear-gradient(135deg, #059669, #10B981); }
.t-wifi { background: linear-gradient(135deg, #0891B2, #22D3EE); }
.t-sto { background: linear-gradient(135deg, #6D28D9, #8B5CF6); }
.t-cloud { background: linear-gradient(135deg, #0284C7, #38BDF8); }
.t-int { background: linear-gradient(135deg, #BE185D, #EC4899); }
.t-ai { background: linear-gradient(135deg, #FF4F06, #EC4899 60%, #8B5CF6); }

/* lifecycle */
.aiw-process { background: radial-gradient(700px 300px at 50% 45%, rgba(139, 92, 246, 0.18), transparent 70%), var(--aiw-navy); }
.aiw-lifecycle-img { margin: 26px auto 8px; }
.aiw-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; counter-reset: step; }
.aiw-step { background: var(--aiw-navy-2); border: 1px solid var(--aiw-line); border-top: 4px solid var(--c); border-radius: 12px; padding: 16px; }
.aiw-step h3 { font-size: 15px; }
.aiw-step h3::before { counter-increment: step; content: counter(step); display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; background: var(--c); color: #fff; font-size: 12px; font-weight: 800; margin-right: 8px; vertical-align: 1px; }
.aiw-step p { font-size: 13px; color: var(--aiw-muted); }

/* real-photo strip */
.aiw-gallery-title { margin-top: 30px; font-size: 18px; }
.aiw-gallery { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.aiw-photo { position: relative; height: 230px; border-radius: 14px; overflow: hidden; border: 1px solid var(--aiw-line); }
.aiw-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.aiw-photo:hover img { transform: scale(1.06); }
.aiw-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 21, 48, 0) 35%, rgba(11, 21, 48, 0.92) 100%); }
.aiw-photo::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--c); z-index: 2; }
.aiw-photo figcaption { position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 2; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; }
.aiw-photo figcaption span { display: table; font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; background: var(--c); color: #fff; padding: 2px 8px; border-radius: 999px; margin-bottom: 6px; }
@media (prefers-reduced-motion: reduce) { .aiw-photo img { transition: none; } }

/* trust */
.aiw-trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 22px; }
.aiw-trust div { border-left: 3px solid var(--aiw-pink); padding: 2px 0 2px 14px; }
.aiw-trust p { font-size: 13.5px; color: var(--aiw-muted); }

/* call to action */
.aiw-cta { text-align: center; background: linear-gradient(120deg, #FF4F06 0%, #EC4899 50%, #8B5CF6 100%); }
.aiw-cta h2 { color: #fff; }
.aiw-cta p { color: #FFF1F2; font-size: 16px; margin: 0 auto 22px; max-width: 640px; }
.aiw-cta .aiw-btn-primary { background: #fff; color: #BE185D !important; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25); }
.aiw-cta .aiw-btn-ghost { border-color: rgba(255, 255, 255, 0.75); }

/* ---------- shared building blocks for the redesigned legacy pages ---------- */
.aiw-cards.aiw-3 { grid-template-columns: repeat(3, 1fr); }
.aiw-steps.aiw-3 { grid-template-columns: repeat(3, 1fr); }
a.aiw-card { display: block; color: inherit !important; }
a.aiw-card .aiw-more { display: inline-block; margin-top: 10px; font-size: 13.5px; font-weight: 700; color: #FDBA74; }
.aiw-lead a { color: #FDBA74 !important; text-decoration: underline; }
.aiw-lead + .aiw-lead { margin-top: 12px; }
.aiw-hero.aiw-hero-photo { grid-template-columns: 1fr 420px; }
.aiw-hero-img { border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.15); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45); }
.aiw-hero-img img { width: 100%; height: 300px; object-fit: cover; }
.aiw-media { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px; align-items: center; }
.aiw-media img { border-radius: 14px; border: 1px solid var(--aiw-line); width: 100%; }
.aiw-bullets { columns: 2; column-gap: 32px; margin-top: 16px; }
.aiw-bullets.one-col { columns: 1; }
.aiw-bullets li { position: relative; padding-left: 20px; margin-bottom: 9px; break-inside: avoid; color: var(--aiw-text); }
.aiw-bullets li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: linear-gradient(135deg, #FF4F06, #EC4899); }
.aiw-bullets strong { color: var(--aiw-ink); }
/* long-form text: articles, legal pages */
.aiw-doc { font-size: 15px; line-height: 1.75; color: var(--aiw-text); }
.aiw-doc h2 { font-size: 22px; margin: 28px 0 10px; }
.aiw-doc h2:first-child { margin-top: 0; }
.aiw-doc h3 { font-size: 17px; margin: 22px 0 8px; }
.aiw-doc p { margin: 0 0 14px; }
.aiw-doc ul, .aiw-doc ol { margin: 0 0 14px; padding-left: 22px; list-style: disc; }
.aiw-doc ol { list-style: decimal; }
.aiw-doc li { margin-bottom: 6px; }
.aiw-doc a { color: #FDBA74; text-decoration: underline; }
.aiw-doc strong { color: var(--aiw-ink); }
.aiw-doc img { border-radius: 12px; margin: 8px 0 16px; }
/* legacy form kept intact inside a themed panel */
.aiw-form { background: var(--aiw-navy-2); border: 1px solid var(--aiw-line); border-radius: 16px; padding: 26px 28px; }
.aiw-form table { width: 100%; }
.aiw-form td { color: var(--aiw-text); }
.aiw-side { display: grid; grid-template-columns: 1fr 300px; gap: 18px; align-items: start; }
.aiw-contact-card { background: var(--aiw-navy-2); border: 1px solid var(--aiw-line); border-top: 4px solid var(--c, #FF4F06); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.aiw-contact-card h3 { margin-bottom: 8px; }
.aiw-contact-card p { font-size: 14px; color: var(--aiw-text); margin-bottom: 8px; }
.aiw-contact-card a { color: #FDBA74; }

@media (prefers-reduced-motion: reduce) {
  .aiw-btn, .aiw-card { transition: none; }
}

/* ---------- responsive: tablets ---------- */
@media (max-width: 1000px) {
  .aiw { width: auto; }
  .aiw-hero, .aiw-hero.aiw-hero-photo { grid-template-columns: 1fr; }
  .aiw-hero > div:last-child { max-width: 560px; }
  .aiw-hero-img img { height: 260px; }
  .aiw-split, .aiw-media, .aiw-side { grid-template-columns: 1fr; gap: 22px; }
  .aiw-cards.aiw-3 { grid-template-columns: repeat(2, 1fr); }
  .aiw-stack, .aiw-steps, .aiw-trust { grid-template-columns: repeat(2, 1fr); }
  .aiw-steps.aiw-3 { grid-template-columns: 1fr; }
  .aiw-gallery { grid-template-columns: repeat(3, 1fr); }
  .aiw-lifecycle-img { width: 100%; height: auto; }
}

/* ---------- responsive: phones ---------- */
@media (max-width: 760px) {
  .aiw { font-size: 16px; }
  .aiw-section { padding: 26px 20px; border-radius: 16px; margin-bottom: 14px; }
  .aiw-hero, .aiw-hero.aiw-hero-photo { padding: 30px 20px 26px; gap: 22px; }
  .aiw-hero h1 { font-size: 30px; }
  .aiw-hero p, .aiw-lead, .aiw-cta p { font-size: 16px; }
  .aiw h2 { font-size: 24px; }
  .aiw h3 { font-size: 18px; }
  .aiw-card p, .aiw-step p, .aiw-trust p, .aiw-tile p, .aiw-fig figcaption { font-size: 15px; }
  .aiw-cards, .aiw-cards.aiw-3, .aiw-figs, .aiw-stack, .aiw-steps, .aiw-trust { grid-template-columns: 1fr; }
  .aiw-tile { min-height: 0; }
  .aiw-gallery { grid-template-columns: repeat(2, 1fr); }
  .aiw-photo { height: 170px; }
  .aiw-bullets { columns: 1; }
  .aiw-actions .aiw-btn { flex: 1 1 auto; text-align: center; }
  .aiw-form { padding: 18px 14px; overflow-x: auto; }
  .aiw-doc { font-size: 16px; }
}
