/* ===========================================================
   Star Ai Technology - blog.css
   Article pages under /blog. Standalone on purpose: the home
   page stylesheet carries the hero, particles and cursor, none
   of which an article needs. Tokens mirror css/styles.css.
   =========================================================== */

:root {
  --navy: #003366;
  --navy-deep: #00224A;
  --orange: #FF7A00;
  --orange-light: #FF9A33;
  --orange-ink: #A85F00;   /* orange text that passes contrast on white */
  --gold: #FFC107;
  --bg: #FFFFFF;
  --bg-2: #F4F7FC;
  --text: #0A2747;
  --muted: #5A7391;
  --border: rgba(0, 51, 102, 0.10);
  --shadow: 0 10px 30px rgba(0, 51, 102, 0.08);
  --shadow-lg: 0 22px 60px rgba(0, 51, 102, 0.14);
  --radius: 20px;
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --font-display: 'Montserrat', 'Inter', 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  --ease: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }

/* ── Header ── */
.b-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.b-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 72px; }
.b-header .brand img { height: 44px; width: auto; }
.b-nav { display: flex; align-items: center; gap: 10px; }
.b-back { font-weight: 600; font-size: 0.92rem; color: var(--navy); padding: 10px 14px; border-radius: 12px; transition: var(--ease); }
.b-back:hover { background: var(--bg-2); }
.b-cta {
  font-weight: 700; font-size: 0.92rem; color: #fff; padding: 10px 18px; border-radius: 12px;
  background: linear-gradient(135deg, var(--orange), var(--orange-light));
  box-shadow: 0 8px 22px rgba(255, 122, 0, 0.28); transition: var(--ease);
}
.b-cta:hover { transform: translateY(-2px); }

/* reading progress */
.b-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 60;
  background: linear-gradient(90deg, var(--orange), var(--gold)); }

/* ── Article hero ── */
.a-hero {
  background: radial-gradient(1200px 400px at 80% -10%, rgba(255, 122, 0, 0.18), transparent 60%),
              linear-gradient(160deg, var(--navy-deep), var(--navy) 70%);
  color: #fff; padding: 64px 0 72px;
}
.a-hero .inner { max-width: 780px; }
.crumbs { font-size: 0.85rem; color: #A9BCD2; margin-bottom: 22px; }
.crumbs a:hover { color: #fff; }
.crumbs span { margin: 0 8px; opacity: 0.6; }
.a-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 1.5px; text-transform: uppercase;
  color: #FFD54A; background: rgba(255, 193, 7, 0.12); border: 1px solid rgba(255, 193, 7, 0.35);
  padding: 5px 12px; border-radius: 999px;
}
.a-hero h1 {
  font-family: var(--font-display); font-weight: 800; line-height: 1.18;
  font-size: clamp(1.9rem, 4.4vw, 3rem); margin: 18px 0 16px;
}
.a-hero .lede { font-size: 1.12rem; color: #D3DEEB; max-width: 680px; }
.a-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; font-size: 0.88rem; color: #A9BCD2; }
.a-meta strong { color: #fff; font-weight: 600; }

/* ── Layout: body + table of contents ── */
.a-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 56px; padding: 56px 0 24px; }
.toc { position: sticky; top: 96px; align-self: start; border-left: 2px solid var(--border); padding-left: 18px; }
.toc h2 { font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.toc a { display: block; font-size: 0.9rem; color: var(--muted); padding: 5px 0; line-height: 1.4; transition: var(--ease); }
.toc a:hover, .toc a.active { color: var(--orange-ink); }

/* ── Prose ── */
.prose { max-width: 720px; font-size: 1.06rem; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 {
  font-family: var(--font-display); font-weight: 800; color: var(--navy);
  font-size: clamp(1.35rem, 2.6vw, 1.7rem); line-height: 1.3; margin-top: 2em; scroll-margin-top: 96px;
}
.prose h3 { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 1.15rem; margin-top: 1.6em; }
.prose p, .prose li { color: #22405F; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: 0.5em; }
.prose li::marker { color: var(--orange); font-weight: 700; }
.prose strong { color: var(--text); }
.prose a { color: var(--orange-ink); font-weight: 600; border-bottom: 1px solid rgba(168, 95, 0, 0.35); }

.callout {
  background: var(--bg-2); border: 1px solid var(--border); border-left: 4px solid var(--orange);
  border-radius: 14px; padding: 20px 22px;
}
.callout .label { display: block; font-size: 0.74rem; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; color: var(--orange-ink); margin-bottom: 6px; }
.callout p { margin: 0; }

.pullquote {
  font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; line-height: 1.45; color: var(--navy);
  padding: 6px 0 6px 22px; border-left: 4px solid var(--gold);
}

.steps { list-style: none; padding: 0 !important; counter-reset: step; display: grid; gap: 12px; }
.steps li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 62px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 2px 10px rgba(0, 51, 102, 0.04);
}
.steps li + li { margin-top: 0; }
.steps li::before {
  content: counter(step); position: absolute; left: 16px; top: 15px;
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; color: #fff; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--navy), #1E6FD9);
}

.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 520px; }
.prose th, .prose td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.prose th { background: var(--bg-2); font-family: var(--font-display); color: var(--navy); font-size: 0.88rem; }
.prose tr:last-child td { border-bottom: none; }

/* ── Feature / application cards inside an article ── */
.f-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.f-card {
  background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 18px 18px 16px;
  box-shadow: 0 2px 10px rgba(0, 51, 102, 0.04); border-top: 3px solid var(--navy);
}
.f-card.o { border-top-color: var(--orange); }
.f-card.g { border-top-color: var(--gold); }
.f-card h4 { font-family: var(--font-display); color: var(--navy); font-size: 1rem; line-height: 1.35; margin-bottom: 6px; }
.f-card p { font-size: 0.93rem; color: var(--muted); margin: 0; }
.f-card ul { margin-top: 8px; padding-left: 1.1em; font-size: 0.92rem; }
.f-card li + li { margin-top: 0.25em; }
.f-card .who { display: block; margin-top: 10px; font-size: 0.8rem; font-weight: 700; color: var(--orange-ink); }

/* growth journey: stage → stage → stage */
.journey { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; counter-reset: stage; }
.journey div {
  counter-increment: stage; position: relative; padding: 16px; border-radius: 14px;
  background: linear-gradient(160deg, var(--navy-deep), var(--navy)); color: #fff;
}
.journey div::before {
  content: "Stage " counter(stage); display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 1.4px;
  text-transform: uppercase; color: #FFD54A; margin-bottom: 6px;
}
.journey strong { color: #fff; font-family: var(--font-display); display: block; margin-bottom: 4px; }
.journey span { color: #C4D3E4; font-size: 0.9rem; line-height: 1.5; display: block; }

/* ── CTA ── */
.a-cta {
  margin: 48px 0 8px; padding: 32px; border-radius: var(--radius); color: #fff;
  background: linear-gradient(135deg, var(--navy-deep), var(--navy));
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px;
}
.a-cta h2 { font-family: var(--font-display); font-size: 1.35rem; color: #fff; margin: 0; }
.a-cta p { color: #C4D3E4; margin-top: 6px; font-size: 0.98rem; }
.a-cta .b-cta { white-space: nowrap; }

/* ── More articles ── */
.more { padding: 56px 0 72px; background: var(--bg-2); margin-top: 48px; }
.more h2 { font-family: var(--font-display); color: var(--navy); font-size: 1.5rem; margin-bottom: 24px; }
.more-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.m-card {
  display: flex; flex-direction: column; gap: 12px; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: var(--ease);
}
.m-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(255, 122, 0, 0.45); }
.m-card .a-tag { align-self: flex-start; color: #8F5000; background: rgba(255, 193, 7, 0.16); border-color: rgba(255, 122, 0, 0.3); }
.m-card h3 { font-family: var(--font-display); color: var(--navy); font-size: 1.1rem; line-height: 1.35; }
.m-card p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.m-card .go { color: var(--orange-ink); font-weight: 700; font-size: 0.88rem; }

/* ── Footer ── */
.b-footer { background: var(--navy-deep); color: #A9BCD2; padding: 32px 0; font-size: 0.88rem; }
.b-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.b-footer img { height: 38px; width: auto; }
.b-footer a:hover { color: #fff; }

/* ── Responsive ── */
@media (max-width: 960px) {
  .a-layout { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .toc { display: none; }
}
@media (max-width: 560px) {
  .b-back { display: none; }
  .b-header .brand img { height: 36px; }
  .a-hero { padding: 44px 0 52px; }
  .prose { font-size: 1rem; }
  .a-cta { padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ── Support Team number ── */
.b-phone { font-weight: 700; font-size: 0.9rem; color: var(--navy); padding: 10px 12px; border-radius: 12px; white-space: nowrap; transition: var(--ease); }
.b-phone:hover { background: var(--bg-2); color: var(--orange-ink); }
.b-support a { color: #fff; font-weight: 700; }
@media (max-width: 760px) { .b-phone { display: none; } }
