/* Shared, crawlable inner-page design for the PHM portfolio. */
.content-page {
  min-height: 100vh;
  padding: 1rem clamp(1rem, 4vw, 3rem) 4rem;
  background:
    radial-gradient(ellipse at 12% 5%, rgba(0, 206, 201, .12), transparent 34rem),
    radial-gradient(ellipse at 92% 12%, rgba(155, 142, 255, .14), transparent 38rem),
    var(--bg-primary);
  font-family: Vazirmatn, var(--font-body), sans-serif;
}
.page-header {
  position: sticky;
  top: .75rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1240px;
  margin: 0 auto 3rem;
  padding: .7rem .9rem;
  border: 1px solid var(--border-glass);
  border-radius: 1.2rem;
  background: rgba(8, 12, 24, .88);
  box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
  backdrop-filter: blur(18px);
}
.page-brand { display: inline-flex; align-items: center; gap: .65rem; flex: 0 0 auto; font-weight: 800; }
.page-brand img { width: 2.35rem; height: 2.35rem; }
.page-nav { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .25rem; }
.page-nav a, .page-contact-link {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.75rem;
  padding: .55rem .8rem; border-radius: .8rem; color: var(--text-secondary); font-size: .9rem;
  transition: background .2s ease, color .2s ease;
}
.page-nav a:hover, .page-nav a[aria-current="page"] { background: rgba(155, 142, 255, .14); color: var(--text-primary); }
.page-contact-link { background: #5140bd; color: #fff; font-weight: 700; }
.page-contact-link:hover { background: #4433a8; }
.content-page a:focus-visible { outline: 3px solid #00cec9; outline-offset: 3px; }
.skip-link { position: absolute; inset-block-start: .5rem; inset-inline-start: .5rem; z-index: 40; padding: .7rem 1rem; transform: translateY(-160%); border-radius: .7rem; background: #fff; color: #101827; }
.skip-link:focus { transform: translateY(0); }
.page-main { max-width: 1120px; margin: 0 auto; }
.page-breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 1.2rem; color: var(--text-muted); font-size: .85rem; }
.page-breadcrumb a { color: #b7adff; text-decoration: underline; text-underline-offset: .2em; }
.page-hero {
  position: relative; overflow: hidden; padding: clamp(2rem, 7vw, 5.5rem);
  border: 1px solid rgba(155, 142, 255, .24); border-radius: 2rem;
  background: linear-gradient(140deg, rgba(17, 27, 48, .96), rgba(11, 17, 32, .92));
  box-shadow: 0 28px 80px rgba(0, 0, 0, .24);
}
.page-hero::after { content: ""; position: absolute; inset: auto -8rem -13rem auto; width: 27rem; height: 27rem; border-radius: 50%; background: rgba(0, 206, 201, .1); filter: blur(50px); pointer-events: none; }
.page-eyebrow { display: inline-flex; align-items: center; gap: .5rem; color: #8be8e0; font-size: .9rem; font-weight: 700; }
.page-eyebrow::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: #00cec9; box-shadow: 0 0 1rem #00cec9; }
.page-hero h1 { max-width: 850px; margin: 1rem 0; font-size: clamp(2rem, 5.5vw, 4.5rem); line-height: 1.25; letter-spacing: -.04em; }
.page-hero h1 span { color: #9b8eff; }
.page-lead { max-width: 760px; color: var(--text-secondary); font-size: clamp(1.05rem, 2vw, 1.3rem); line-height: 2; }
.page-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.6rem; }
.page-button { display: inline-flex; align-items: center; justify-content: center; min-height: 2.9rem; padding: .7rem 1.1rem; border: 1px solid rgba(155, 142, 255, .34); border-radius: .85rem; background: rgba(155, 142, 255, .12); color: var(--text-primary); font-weight: 700; }
.page-button--primary { border-color: transparent; background: #5140bd; color: #fff; }
.page-section { margin-top: clamp(2rem, 5vw, 4rem); }
.page-section h2 { margin-bottom: .85rem; font-size: clamp(1.45rem, 3.1vw, 2.3rem); line-height: 1.4; }
.page-section > p { max-width: 820px; color: var(--text-secondary); line-height: 2; }
.page-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }
.page-card { min-width: 0; padding: 1.35rem; border: 1px solid var(--border-glass); border-radius: 1.25rem; background: linear-gradient(145deg, rgba(18, 28, 48, .94), rgba(12, 18, 32, .82)); }
.page-card { position: relative; overflow: hidden; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; }
.page-card:hover { transform: translateY(-4px); border-color: rgba(0, 206, 201, .42); box-shadow: 0 18px 48px rgba(0, 0, 0, .2); }
.product-category, .fact-label { display: inline-block; margin-top: .9rem; color: #82e4de; font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.section-heading { max-width: 760px; margin-bottom: 1.3rem; }
.section-heading h2 { margin: .65rem 0; }
.section-heading p, .page-note { color: var(--text-secondary); line-height: 1.9; }
.page-note { max-width: 720px; margin-top: 1.1rem; font-size: .85rem; }
.page-grid--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-split { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(250px, .8fr); align-items: start; gap: 1.2rem; }
.page-fact-card { padding: 1.4rem; border: 1px solid rgba(0, 206, 201, .24); border-radius: 1.25rem; background: linear-gradient(145deg, rgba(0, 206, 201, .09), rgba(18, 28, 48, .88)); }
.page-fact-card .page-list { margin-bottom: 1.1rem; }
.page-fact-card > a { color: #9bece6; font-weight: 700; text-underline-offset: .25em; }
.page-hero--product { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(220px, .7fr); align-items: center; gap: 1rem; }
.product-orbit { position: relative; display: grid; min-height: 280px; place-items: center; isolation: isolate; }
.orbit-ring { position: absolute; width: min(17rem, 72vw); aspect-ratio: 1; border: 1px solid rgba(0, 206, 201, .35); border-radius: 50%; box-shadow: 0 0 70px rgba(0, 206, 201, .08), inset 0 0 55px rgba(155, 142, 255, .08); animation: orbit-breathe 7s ease-in-out infinite; }
.orbit-core { display: grid; width: 6rem; aspect-ratio: 1; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 1.8rem; background: linear-gradient(145deg, #157e91, #6d5fba); box-shadow: 0 18px 60px rgba(0, 206, 201, .18); color: white; font-size: 2.5rem; font-weight: 800; }
.orbit-node { position: absolute; padding: .55rem .8rem; border: 1px solid var(--border-glass); border-radius: 999px; background: rgba(13, 21, 37, .94); color: var(--text-primary); font-size: .8rem; box-shadow: 0 8px 24px rgba(0, 0, 0, .22); }
.orbit-node--a { inset-block-start: 9%; inset-inline-start: 16%; }.orbit-node--b { inset-block-end: 14%; inset-inline-start: 9%; }.orbit-node--c { inset-block-end: 22%; inset-inline-end: 5%; }
.platform-flow { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr) auto minmax(0,1fr); align-items: stretch; gap: .65rem; margin-top: 1.4rem; }
.platform-flow article { min-width: 0; padding: 1.1rem; border: 1px solid var(--border-glass); border-radius: 1rem; background: linear-gradient(145deg, rgba(18, 28, 48, .94), rgba(12, 18, 32, .82)); }
.platform-flow article > span { color: #7fe6df; font-size: .78rem; font-weight: 800; }.platform-flow h3 { margin: .55rem 0; font-size: 1rem; }.platform-flow p { color: var(--text-secondary); font-size: .87rem; line-height: 1.8; }.platform-flow > i { align-self: center; color: #8be8e0; font-style: normal; }
@keyframes orbit-breathe { 50% { transform: scale(1.04); opacity: .75; } }
.page-card h2, .page-card h3 { margin: .5rem 0; font-size: 1.2rem; line-height: 1.6; }
.page-card p { color: var(--text-secondary); line-height: 1.9; }
.page-card a { display: inline-flex; margin-top: 1rem; color: #a89cff; font-weight: 700; text-underline-offset: .25em; }
.page-card-icon { display: grid; width: 2.8rem; height: 2.8rem; place-items: center; border-radius: .9rem; background: rgba(0, 206, 201, .13); color: #7fe6df; font-size: 1.35rem; }
.page-list { display: grid; gap: .65rem; margin: 1rem 0 0; padding-inline-start: 1.2rem; color: var(--text-secondary); line-height: 1.9; }
.page-callout { margin-top: 1.5rem; padding: 1.2rem 1.35rem; border-inline-start: 3px solid #00cec9; border-radius: .8rem; background: rgba(0, 206, 201, .07); color: var(--text-secondary); line-height: 1.9; }
.page-footer { max-width: 1120px; margin: 3rem auto 0; padding-top: 1.3rem; border-top: 1px solid var(--border-glass); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; color: var(--text-muted); font-size: .9rem; }
.page-footer nav { display: flex; flex-wrap: wrap; gap: .8rem; }
.page-footer a { color: var(--text-secondary); text-decoration: underline; text-underline-offset: .2em; }
.page-prose { max-width: 850px; }
.page-prose h2 { margin-top: 2rem; }
.page-prose p { margin-top: .8rem; color: var(--text-secondary); line-height: 2.05; }
.page-prose ul { margin: .75rem 0; padding-inline-start: 1.4rem; color: var(--text-secondary); line-height: 2; }
@media (max-width: 850px) {
  .page-header { align-items: flex-start; flex-wrap: wrap; }
  .page-nav { order: 3; width: 100%; justify-content: flex-start; }
  .page-nav a { padding-inline: .65rem; }
  .page-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-grid--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-flow > i { display: none; }
}
@media (max-width: 520px) {
  .content-page { padding-inline: .8rem; }
  .page-header { top: .4rem; margin-bottom: 1.5rem; gap: .4rem; }
  .page-brand { font-size: .9rem; }
  .page-contact-link { min-height: 2.5rem; padding-inline: .65rem; font-size: .85rem; }
  .page-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .page-nav a { min-height: 2.5rem; padding: .35rem; font-size: .82rem; }
  .page-hero { border-radius: 1.35rem; }
  .page-grid { grid-template-columns: 1fr; }
  .page-grid--four, .page-grid--three { grid-template-columns: 1fr; }
  .page-split, .page-hero--product { grid-template-columns: 1fr; }
  .product-orbit { min-height: 230px; }
  .platform-flow { grid-template-columns: 1fr; }
  .page-footer { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
