/* Inner pages (systems / services / team) + shared cards. Builds on site.css tokens. */

.top nav a[aria-current="page"] { color: var(--brand); }

/* ---------- page hero ---------- */
.page-hero { position: relative; padding-block: clamp(36px, 5vw, 64px) clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); overflow: hidden; }
.page-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60vw; height: 60vw; background: radial-gradient(closest-side, color-mix(in oklch, var(--c, var(--brand)) 10%, transparent), transparent); pointer-events: none; }
.page-hero .wrap { position: relative; }
.page-hero h1 { font-family: var(--f-display); font-weight: 700; font-size: clamp(60px, 9vw, 128px); line-height: .9; margin: 0 0 22px; max-width: 16ch; }
.page-hero .lead { font-size: clamp(18px, 1.7vw, 21px); color: var(--ink-soft); max-width: 52ch; margin: 0 0 30px; line-height: 1.75; }
.page-hero .note { font-size: 12.5px; color: var(--muted); margin: 14px 0 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }

.crumbs ol { list-style: none; margin: 0 0 clamp(28px, 4vw, 48px); padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 13.5px; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; color: var(--line); }
.crumbs a { text-decoration: none; color: var(--muted); }
.crumbs a:hover, .crumbs a[aria-current] { color: var(--ink-soft); }

.sys-hero h1 { font-size: clamp(52px, 6.5vw, 96px); }
.sys-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.sys-hero .devices { --led: var(--c); }
.sys-hero .laptop .lid { box-shadow: inset 0 0 0 1px oklch(0.35 0.02 200), 0 30px 80px -30px color-mix(in oklch, var(--c) 55%, transparent); }

/* ---------- content bands ---------- */
.band { padding-block: clamp(56px, 7vw, 100px); border-bottom: 1px solid var(--line); }
.band.alt { background: var(--bg-2); }
.wrap.narrow { max-width: 820px; }
.band-title { font-family: var(--f-display); font-weight: 700; font-size: clamp(40px, 5vw, 64px); line-height: .95; margin: 0 0 28px; }
.band-title.spaced { margin-top: clamp(48px, 6vw, 80px); }
.band-sub { color: var(--muted); margin: -16px 0 28px; }
.prose p { font-size: clamp(17px, 1.4vw, 19px); color: var(--ink-soft); margin: 0 0 18px; line-height: 1.85; max-width: 62ch; }
.prose p:first-child { color: var(--ink); }

.feature-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.feature-grid li { background: var(--bg); padding: 26px 24px 28px; position: relative; }
.band.alt .feature-grid li { background: var(--bg-2); }
.feature-grid li::before { content: ""; display: block; width: 22px; height: 2px; margin-bottom: 16px; background: var(--c, var(--brand)); box-shadow: 0 0 10px var(--c, var(--brand)); }
.feature-grid h3 { font-size: 19px; font-weight: 600; margin: 0 0 8px; line-height: 1.35; }
.feature-grid p { margin: 0; color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); }
.split .feats { --c: var(--c, var(--brand)); }

.mini-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.mini-steps li { position: relative; padding-inline-start: 34px; }
.mini-steps li::before { content: ""; position: absolute; inset-inline-start: 0; top: 6px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--gold); background: var(--bg); }
.mini-steps li::after { content: ""; position: absolute; inset-inline-start: 5px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 8px var(--brand); }
.mini-steps .mono { font-size: 12.5px; color: var(--brand); }
.mini-steps h3 { font-size: 19px; margin: 0 0 4px; font-weight: 600; }
.mini-steps p { margin: 0; color: var(--ink-soft); font-size: 15.5px; }
.mini-steps.row { grid-template-columns: repeat(4, 1fr); gap: 28px; }

.tags.big { font-size: 15px; gap: 10px 22px; justify-content: flex-end; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; font-size: 18px; font-weight: 600; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); color: var(--brand); font-size: 22px; line-height: 1; transition: transform .3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 22px; color: var(--ink-soft); max-width: 64ch; }

/* ---------- cards ---------- */
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
  --c: var(--brand);
  height: 100%; display: flex; flex-direction: column; gap: 8px;
  padding: 24px 22px; text-decoration: none;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
  transition: border-color .25s, transform .3s var(--ease), box-shadow .3s var(--ease);
}
.band.alt .card { background: var(--bg); }
.card:hover { border-color: color-mix(in oklch, var(--c) 70%, var(--line)); transform: translateY(-3px); box-shadow: 0 18px 40px -24px color-mix(in oklch, var(--c) 70%, transparent); }
.card b { font-size: 21px; font-weight: 600; line-height: 1.3; }
.card > span:not(.card-kind):not(.card-go) { color: var(--ink-soft); font-size: 15px; line-height: 1.65; }
.card-kind { font-size: 12px; color: var(--c); }
.card-go { margin-top: auto; padding-top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--c); font-weight: 500; }
.card-go svg { width: 16px; height: 16px; transition: transform .3s var(--ease); }
.card:hover .card-go svg { transform: translateX(-4px); }

/* device thumbnails on system cards */
.sys-card { padding-top: 18px; }
.card-shot { position: relative; display: block; margin: 0 0 14px; padding: 0 0 6% 0; padding-inline-end: 12%; }
.cs-laptop { display: block; padding: 2.4% 2.4% 3.2%; background: oklch(0.21 0.012 200); border-radius: 10px 10px 3px 3px; box-shadow: inset 0 0 0 1px oklch(0.35 0.02 200), 0 18px 40px -22px color-mix(in oklch, var(--c) 60%, transparent); position: relative; }
.cs-laptop::after { content: ""; position: absolute; left: -6%; right: -6%; bottom: -5%; height: 5%; background: linear-gradient(to bottom, oklch(0.42 0.012 200), oklch(0.26 0.01 200)); border-radius: 0 0 10px 10px / 0 0 30px 30px; }
.cs-laptop img, .cs-phone img { width: 100%; height: auto; border-radius: 2px; background: #f6f5fb; }
.cs-phone { position: absolute; bottom: 0; inset-inline-end: 0; width: 24%; padding: 2.2%; background: oklch(0.2 0.01 200); border-radius: 13% / 6%; box-shadow: inset 0 0 0 1px oklch(0.4 0.02 200), 0 14px 28px -8px oklch(0.05 0.01 200 / 0.8); transition: transform .5s var(--ease); }
.cs-phone img { border-radius: 10% / 4.6%; }
.sys-card:hover .cs-phone { transform: translateY(-5px) rotate(-1.5deg); }

.home-services { padding-block: clamp(80px, 10vw, 140px); border-top: 1px solid var(--line); }

/* ---------- team ---------- */
.team { display: grid; gap: clamp(28px, 4vw, 48px); }
.member { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; padding: clamp(24px, 3vw, 36px); background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; }
.avatar { width: 160px; height: 160px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: radial-gradient(circle at 30% 25%, color-mix(in oklch, var(--brand) 22%, var(--bg-3)), var(--bg)); box-shadow: 0 0 0 2px var(--gold-deep), 0 0 40px -8px rgba(240,216,168,.35); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar span { font-family: var(--f-display); font-size: 92px; font-weight: 700; color: var(--brand); line-height: 1; text-shadow: 0 0 24px rgba(240,216,168,.4); }
.member h2 { font-family: var(--f-display); font-weight: 700; font-size: clamp(48px, 5vw, 68px); line-height: .95; margin: 0 0 6px; }
.member .role { color: var(--brand); font-size: 13.5px; margin: 0 0 18px; }
.member p { color: var(--ink-soft); margin: 0 0 14px; max-width: 62ch; }
.member .tags { margin: 18px 0 0; }
.member .tags li::before { color: var(--brand); }

/* ---------- footers ---------- */
.page-cta { border-top: 0; }
.page-cta h2 { font-size: clamp(64px, 10vw, 150px); }
.site-foot { padding-block: clamp(48px, 6vw, 72px) 28px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.4fr .8fr; gap: 32px clamp(24px, 4vw, 56px); padding-bottom: 36px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.foot-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.foot-brand p { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; max-width: 34ch; }
.site-foot h2 { font-size: 14px; font-weight: 600; color: var(--ink-soft); margin: 0 0 12px; }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.site-foot nav a { text-decoration: none; color: var(--muted); font-size: 14.5px; }
.site-foot nav a:hover { color: var(--brand); }
.foot-sys ul { grid-template-columns: 1fr 1fr; column-gap: 20px; }
.foot-base { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }
footer .foot-links { display: flex; gap: 20px; }
footer .foot-links a { text-decoration: none; color: var(--muted); }
footer .foot-links a:hover { color: var(--brand); }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .sys-hero-grid, .split { grid-template-columns: 1fr; }
  .cards.three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mini-steps.row { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .cards.three, .mini-steps.row { grid-template-columns: 1fr; }
  .member { grid-template-columns: 1fr; justify-items: start; }
  .avatar { width: 112px; height: 112px; }
  .avatar span { font-size: 64px; }
  .foot-grid { grid-template-columns: 1fr; }
}
