/*
  Shared visual system for TechCoder's static inner pages.
  Page-specific rules live alongside their content; this layer keeps the
  experience recognisably one brand across every route.
*/

.subpage {
  min-height: 100vh;
  color: var(--text);
  background: #f4f8ff;
}

.subpage main { overflow: hidden; }
.subpage .site-header { background: linear-gradient(180deg, rgba(5, 16, 35, .94), rgba(5, 16, 35, .76)); }
.subpage .site-header.scrolled { background: rgba(5, 15, 32, .94); }

.page-hero {
  position: relative;
  min-height: 610px;
  padding: 181px 0 102px;
  overflow: hidden;
  color: var(--white);
  background: #07162c;
  isolation: isolate;
}

.page-hero::before,
.page-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
}

.page-hero::before {
  inset: 0;
  opacity: .75;
  background-image: linear-gradient(rgba(141, 195, 255, .08) 1px, transparent 1px), linear-gradient(90deg, rgba(141, 195, 255, .08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 80%, transparent);
}

.page-hero::after {
  top: -35vw;
  right: -18vw;
  width: 71vw;
  height: 71vw;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(62, 179, 255, .25), rgba(109, 90, 255, .12) 42%, transparent 68%);
  filter: blur(6px);
}

.page-hero--services::after { background: radial-gradient(circle, rgba(47, 220, 255, .24), rgba(86, 114, 255, .12) 42%, transparent 68%); }
.page-hero--solutions::after { background: radial-gradient(circle, rgba(173, 117, 255, .25), rgba(39, 210, 255, .13) 44%, transparent 70%); }
.page-hero--portfolio::after { background: radial-gradient(circle, rgba(135, 120, 255, .28), rgba(28, 204, 255, .12) 45%, transparent 70%); }
.page-hero--careers::after { background: radial-gradient(circle, rgba(99, 205, 255, .22), rgba(183, 249, 116, .1) 43%, transparent 69%); }
.page-hero--contact::after { background: radial-gradient(circle, rgba(47, 220, 255, .23), rgba(127, 115, 255, .14) 43%, transparent 69%); }

.page-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(345px, .97fr);
  gap: clamp(42px, 8vw, 130px);
  align-items: center;
}

.page-hero-copy { position: relative; z-index: 1; max-width: 690px; }
.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: #abedff;
  font-family: var(--font-mono);
  font-size: .66rem;
  font-weight: 500;
  letter-spacing: .13em;
  line-height: 1.45;
  text-transform: uppercase;
}

.page-eyebrow::before {
  width: 21px;
  height: 1px;
  content: "";
  background: currentColor;
}

.page-eyebrow--dark { color: #3977bf; }
.page-title { max-width: 790px; margin: 0 0 22px; color: inherit; font-size: clamp(3rem, 5.25vw, 5.1rem); line-height: 1.02; }
.page-title span { color: #80eaff; }
.page-lead { max-width: 610px; margin: 0 0 32px; color: #b4c9e3; font-size: 1.02rem; line-height: 1.82; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.page-actions .button { min-width: 165px; }

.page-hero-art {
  position: relative;
  min-height: 340px;
  border: 1px solid rgba(171, 224, 255, .21);
  border-radius: 26px;
  background: linear-gradient(140deg, rgba(47, 100, 163, .38), rgba(16, 36, 74, .6));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.1), 0 30px 65px rgba(0, 7, 30, .28);
  backdrop-filter: blur(13px);
}

.page-hero-art::before {
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(185, 224, 255, .13);
  border-radius: 17px;
  content: "";
  pointer-events: none;
}

.page-hero-art .art-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(77%, 300px);
  aspect-ratio: 1;
  border: 1px solid rgba(124, 221, 255, .31);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.page-hero-art .art-orbit::before,
.page-hero-art .art-orbit::after {
  position: absolute;
  border: 1px solid rgba(157, 122, 255, .4);
  border-radius: inherit;
  content: "";
}

.page-hero-art .art-orbit::before { inset: 15%; transform: rotate(43deg) scaleX(1.4); }
.page-hero-art .art-orbit::after { inset: 31%; border-color: rgba(47, 220, 255, .54); transform: rotate(-29deg) scaleX(1.55); }
.art-node { position: absolute; display: grid; width: 43px; height: 43px; place-items: center; border: 1px solid rgba(198, 236, 255, .31); border-radius: 12px; color: #c9f8ff; background: rgba(12, 39, 80, .78); box-shadow: 0 12px 26px rgba(0, 7, 32, .21); font-size: .92rem; }
.art-node--one { top: 24%; left: 12%; color: #0d3155; background: var(--cyan); }
.art-node--two { top: 18%; right: 10%; color: #e5ddff; background: #514381; }
.art-node--three { right: 15%; bottom: 15%; color: #d6fbff; }
.art-node--four { bottom: 14%; left: 13%; color: #d6fbff; }
.art-label { position: absolute; right: 31px; bottom: 29px; color: #a6c1df; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; }

.hero-breadcrumb { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 23px; color: #8da7ca; font-family: var(--font-mono); font-size: .58rem; letter-spacing: .07em; }
.hero-breadcrumb a:hover { color: var(--cyan); }
.hero-breadcrumb span { color: #4a6790; }

.page-section { position: relative; padding: 118px 0; overflow: hidden; }
.page-section--tint { background: linear-gradient(145deg, #f9fcff, #eaf3ff); }
.page-section--dark { color: var(--white); background: #07162d; }
.page-section--dark::before { position: absolute; inset: 0; content: ""; opacity: .5; background-image: linear-gradient(rgba(137, 187, 247, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(137, 187, 247, .045) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
.page-section > .container { z-index: 1; }

.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 46px; margin-bottom: 50px; }
.page-heading > div { max-width: 755px; }
.page-heading h2 { margin: 0; color: #11325e; }
.page-section--dark .page-heading h2 { color: var(--white); }
.page-heading h2 span { color: #4784cb; }
.page-section--dark .page-heading h2 span { color: var(--cyan); }
.page-heading > p { max-width: 385px; margin: 0 0 4px; color: #627a9a; font-size: .9rem; line-height: 1.78; }
.page-section--dark .page-heading > p { color: #9ab2d1; }

.page-grid { display: grid; gap: 17px; }
.page-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.page-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.page-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-grid--asym { grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); align-items: center; gap: clamp(40px, 7vw, 100px); }

.surface-card {
  position: relative;
  min-width: 0;
  padding: 27px;
  overflow: hidden;
  border: 1px solid #cddff2;
  border-radius: 18px;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(25, 69, 126, .07);
  transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s ease, border-color .3s ease;
}

.surface-card::after { position: absolute; right: -48px; bottom: -48px; width: 145px; height: 145px; border-radius: 50%; content: ""; opacity: 0; background: radial-gradient(circle, rgba(43, 214, 255, .18), transparent 65%); transition: opacity .3s ease; pointer-events: none; }
.surface-card:hover { z-index: 1; border-color: #8accec; box-shadow: 0 23px 42px rgba(25, 69, 126, .14); transform: translateY(-7px); }
.surface-card:hover::after { opacity: 1; }
.surface-card > * { position: relative; z-index: 1; }
.surface-card h3 { margin: 0 0 10px; color: #173c6d; font-size: 1.15rem; }
.surface-card p { margin: 0; color: #647a99; font-size: .78rem; line-height: 1.72; }

.icon-tile { display: grid; width: 45px; height: 45px; place-items: center; margin-bottom: 25px; border: 1px solid #b8dbf3; border-radius: 12px; color: #1869b9; background: linear-gradient(145deg, #dff5ff, #e8e6ff); font-size: 1rem; }
.card-index { position: absolute; top: 25px; right: 25px; color: #86a1c2; font-family: var(--font-mono); font-size: .59rem; letter-spacing: .08em; }
.card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; color: #2674c8; font-size: .7rem; font-weight: 800; }
.card-link i { transition: transform .2s ease; }
.card-link:hover i { transform: translateX(4px); }

.metric-card { min-height: 169px; padding: 25px; border: 1px solid rgba(167, 214, 255, .18); border-radius: 17px; color: var(--white); background: linear-gradient(145deg, rgba(40, 82, 135, .53), rgba(14, 35, 73, .61)); box-shadow: inset 0 1px 0 rgba(255,255,255,.07); }
.metric-card strong { display: block; margin-bottom: 10px; color: #dffbff; font-size: clamp(2rem, 3.3vw, 3rem); letter-spacing: -.08em; line-height: 1; }
.metric-card span { color: #a3b9d7; font-size: .67rem; font-weight: 700; line-height: 1.5; }

.check-list { display: grid; gap: 11px; margin: 24px 0 0; padding: 0; }
.check-list li { display: flex; align-items: flex-start; gap: 9px; list-style: none; color: #506985; font-size: .78rem; line-height: 1.55; }
.check-list i { margin-top: .24em; color: #3b8ae0; font-size: .69rem; }
.page-section--dark .check-list li { color: #b8cce3; }
.page-section--dark .check-list i { color: var(--cyan); }

.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; }
.tag-list span { padding: 6px 8px; border: 1px solid #cfdfef; border-radius: 5px; color: #557293; background: #f5faff; font-family: var(--font-mono); font-size: .54rem; }
.page-section--dark .tag-list span { border-color: rgba(162, 214, 255, .17); color: #aac6e3; background: rgba(255,255,255,.04); }

.mini-label { display: block; margin-bottom: 13px; color: #3d7fcc; font-family: var(--font-mono); font-size: .57rem; letter-spacing: .12em; text-transform: uppercase; }
.page-section--dark .mini-label { color: #9eeeff; }

.split-visual {
  position: relative;
  min-height: 410px;
  overflow: hidden;
  border: 1px solid #c4dcf4;
  border-radius: 25px;
  background: linear-gradient(145deg, #edf8ff, #dcecff);
  box-shadow: var(--shadow-md);
}
.split-visual::before { position: absolute; inset: 0; content: ""; opacity: .72; background-image: linear-gradient(rgba(50, 119, 216, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(50, 119, 216, .12) 1px, transparent 1px); background-size: 27px 27px; }
.visual-panel { position: absolute; z-index: 1; border: 1px solid rgba(138, 207, 255, .43); border-radius: 15px; background: linear-gradient(145deg, #163967, #0b2146); box-shadow: 0 19px 38px rgba(21, 62, 116, .21); }
.visual-panel--main { top: 17%; right: 10%; left: 12%; padding: 25px; color: #d9f7ff; }
.visual-panel--side { right: 6%; bottom: 12%; width: 45%; padding: 17px; color: #cbe8ff; }
.visual-panel small { display: block; margin-bottom: 17px; color: #85a9cf; font-family: var(--font-mono); font-size: .55rem; letter-spacing: .1em; }
.visual-panel strong { display: block; max-width: 285px; color: inherit; font-size: 1.45rem; letter-spacing: -.055em; line-height: 1.1; }
.visual-panel--side strong { font-size: .83rem; }
.visual-panel .visual-line { display: block; height: 7px; margin-top: 22px; border-radius: 99px; background: linear-gradient(90deg, var(--cyan), #8d78ff 72%, transparent 72%); }
.visual-orb { position: absolute; right: -9%; bottom: -18%; width: 260px; aspect-ratio: 1; border: 1px solid rgba(58, 140, 243, .36); border-radius: 50%; box-shadow: 0 0 0 31px rgba(75, 153, 250, .07), 0 0 0 64px rgba(75, 153, 250, .038); }

.process-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.process-step { position: relative; min-height: 196px; padding: 22px; border-top: 1px solid #b6d4ee; background: rgba(255,255,255,.33); }
.process-step:not(:last-child)::after { position: absolute; top: 39px; right: -7px; z-index: 2; width: 13px; height: 13px; border-top: 1px solid #86add7; border-right: 1px solid #86add7; content: ""; transform: rotate(45deg); }
.process-step span { display: block; margin-bottom: 31px; color: #5185bd; font-family: var(--font-mono); font-size: .6rem; }
.process-step h3 { margin: 0 0 9px; color: #183c6b; font-size: 1rem; }
.process-step p { margin: 0; color: #7084a0; font-size: .72rem; line-height: 1.62; }

.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid #caddef; border-radius: 12px; background: rgba(255,255,255,.72); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 21px; cursor: pointer; color: #1a416f; font-size: .82rem; font-weight: 800; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { flex: 0 0 auto; content: "+"; color: #347ac8; font-size: 1.25rem; font-weight: 500; transition: transform .2s ease; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { max-width: 790px; margin: 0; padding: 0 21px 19px; color: #657a98; font-size: .77rem; line-height: 1.75; }

.page-callout { position: relative; overflow: hidden; padding: 44px clamp(27px, 5vw, 63px); border: 1px solid rgba(163, 229, 255, .27); border-radius: 23px; color: var(--white); background: linear-gradient(115deg, #0c315e, #16295e 60%, #1e2766); }
.page-callout::after { position: absolute; top: -120px; right: -80px; width: 310px; height: 310px; border-radius: 50%; content: ""; background: radial-gradient(circle, rgba(51, 225, 255, .2), transparent 68%); }
.page-callout > * { position: relative; z-index: 1; }
.page-callout-layout { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
.page-callout h2 { max-width: 690px; margin: 0; font-size: clamp(1.85rem, 3.4vw, 3.05rem); }
.page-callout p { max-width: 600px; margin: 15px 0 0; color: #b7cbe3; font-size: .86rem; line-height: 1.7; }

.section-nav { display: flex; flex-wrap: wrap; gap: 8px; }
.section-nav button { padding: 9px 12px; border: 1px solid #c4d9ee; border-radius: 7px; color: #53708f; background: var(--white); font-size: .67rem; font-weight: 800; transition: border-color .2s ease, color .2s ease, background .2s ease, transform .2s ease; }
.section-nav button:hover { border-color: #65cceb; color: #1e6bb9; transform: translateY(-2px); }
.section-nav button.is-active { border-color: var(--cyan); color: #08234b; background: var(--cyan); }
[data-page-panel][hidden], [data-page-item][hidden] { display: none; }

.footer-route-list { display: flex; flex-wrap: wrap; gap: 8px 17px; margin-top: 19px; }
.footer-route-list a { color: #8098b9; font-size: .65rem; }
.footer-route-list a:hover { color: var(--cyan); }

@media (max-width: 960px) {
  .page-hero { min-height: 0; padding: 145px 0 78px; }
  .page-hero-layout { grid-template-columns: minmax(0, 1fr); gap: 38px; }
  .page-hero-art { width: min(620px, 100%); min-height: 315px; }
  .page-heading { align-items: flex-start; flex-direction: column; gap: 22px; }
  .page-heading > p { max-width: 620px; }
  .page-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-grid--asym { grid-template-columns: minmax(0, 1fr); }
  .process-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-step:nth-child(2)::after { display: none; }
}

@media (max-width: 700px) {
  .page-hero { padding: 124px 0 64px; }
  .page-title { font-size: clamp(2.55rem, 11.5vw, 3.65rem); }
  .page-lead { font-size: .93rem; }
  .page-section { padding: 80px 0; }
  .page-heading { margin-bottom: 35px; }
  .page-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-callout-layout { align-items: flex-start; flex-direction: column; }
  .page-callout .button { width: 100%; }
}

@media (max-width: 560px) {
  .page-hero { padding-top: 112px; }
  .page-hero-art { min-height: 280px; border-radius: 19px; }
  .art-node { width: 37px; height: 37px; border-radius: 10px; font-size: .75rem; }
  .art-node--one { left: 7%; }
  .art-node--two { right: 7%; }
  .art-node--three { right: 9%; bottom: 10%; }
  .art-node--four { bottom: 9%; left: 8%; }
  .art-label { right: 21px; bottom: 19px; }
  .page-grid--2, .page-grid--3, .page-grid--4 { grid-template-columns: minmax(0, 1fr); }
  .surface-card { padding: 23px 20px; }
  .metric-card { min-height: 140px; }
  .split-visual { min-height: 335px; }
  .visual-panel--main { top: 15%; right: 7%; left: 7%; padding: 20px; }
  .visual-panel--side { right: 6%; bottom: 11%; width: 57%; }
  .process-steps { grid-template-columns: minmax(0, 1fr); }
  .process-step:not(:last-child)::after { top: auto; right: auto; bottom: -7px; left: 32px; transform: rotate(135deg); }
  .page-callout { padding: 32px 22px; }
  .page-actions, .page-actions .button { width: 100%; }
  .section-nav { flex-wrap: nowrap; padding-bottom: 4px; overflow-x: auto; }
  .section-nav button { flex: 0 0 auto; }
}
