/* ═══════════════════════════════════════════════════════════
   Langixy — shared styles for router/hub sections and the
   secondary pages (services, careers, legal). Mobile-first:
   base rules target small screens, min-width tiers scale up.
   ═══════════════════════════════════════════════════════════ */

/* ── Platform hub (Tool / Academy / MTPE) ─────────────────── */
.platform-hub { background: var(--navy-deep); padding: 84px 22px; position: relative; overflow: hidden; }
.platform-hub::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(700px 450px at 85% 20%, rgba(201,163,90,0.08), transparent 65%),
    radial-gradient(500px 350px at 15% 80%, rgba(26,37,80,0.5), transparent);
}
.platform-hub-inner { max-width: 1180px; margin: 0 auto; position: relative; }
.platform-head { max-width: 640px; }
.platform-head .h2 { margin-top: 22px; color: #fff; }
.platform-head p { margin: 22px 0 0; font-size: 15.5px; line-height: 1.75; color: #b9c2dd; }
.platform-grid {
  margin-top: 48px; display: grid; grid-template-columns: 1fr; gap: 14px;
}
.platform-card {
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px 28px; border-radius: 14px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08);
  transition: background 0.25s, border-color 0.25s, transform 0.25s;
  text-decoration: none; color: inherit;
}
.platform-card:hover {
  background: rgba(201,163,90,0.06); border-color: rgba(201,163,90,0.24);
  transform: translateY(-3px);
}
.platform-card-no {
  font-size: 10px; font-weight: 800; letter-spacing: 0.3em; color: var(--gold);
}
.platform-card h3 {
  margin: 6px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 500;
  color: #fff; letter-spacing: -0.015em;
}
.platform-card h3 em { font-style: italic; color: var(--gold); font-weight: 400; }
.platform-card p { margin: 0; font-size: 13.5px; line-height: 1.7; color: #8090b0; flex: 1; }
.platform-card-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold);
}

/* ── Services teaser (homepage) ───────────────────────────── */
.services-teaser { background: var(--paper); color: var(--ink); padding: 84px 22px; }
.services-teaser-inner { max-width: 1180px; margin: 0 auto; }
.services-teaser-head { max-width: 640px; }
.services-teaser-head p { margin: 22px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.services-teaser-grid { margin-top: 44px; display: grid; grid-template-columns: 1fr; gap: 14px; }
.service-teaser-card {
  display: block; padding: 32px 28px; border-radius: 14px;
  background: var(--cream); border-top: 3px solid var(--gold);
  text-decoration: none; color: inherit;
  transition: transform 0.25s, box-shadow 0.25s;
}
.service-teaser-card:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(17,26,54,0.1); }
.service-teaser-card .stc-no {
  font-size: 10px; font-weight: 800; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-deep);
}
.service-teaser-card h3 {
  margin: 12px 0 0; font-family: var(--serif); font-size: 26px; font-weight: 500;
  color: var(--ink); letter-spacing: -0.015em;
}
.service-teaser-card h3 em { font-style: italic; color: var(--gold-deep); font-weight: 400; }
.service-teaser-card p { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); }
.service-teaser-card .stc-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold-deep);
}

/* ── Service page template (it-automation.html / marketing.html) ── */
.service-hero .eyebrow, .careers-hero .eyebrow { color: var(--gold); }
.service-hero {
  padding: 96px 22px 56px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 75% 30%, rgba(201,163,90,0.12), transparent 65%),
    linear-gradient(158deg, var(--navy-deep) 0%, var(--navy) 60%, #0f1b3e 100%);
}
.service-hero-inner { max-width: 860px; margin: 0 auto; position: relative; z-index: 1; }
.service-hero h1 {
  font-family: var(--serif); font-weight: 500; margin: 22px 0 0;
  font-size: clamp(34px, 6vw, 68px); line-height: 1.06; letter-spacing: -0.025em; text-wrap: balance;
}
.service-hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.service-hero p { margin: 22px 0 0; font-size: 16px; line-height: 1.75; color: #b9c2dd; max-width: 560px; }
.service-hero .hero-actions { margin-top: 36px; }

/* Base is a light tone (var(--ink)/var(--muted) below assume a light
   background) — without this, a .service-block with no inline background
   override inherits the page's dark navy default and the text becomes
   unreadable. The second block on each service page alternates to
   var(--paper) inline for a subtle light/lighter rhythm. */
.service-block { padding: 64px 22px; background: var(--cream); color: var(--ink); }
.service-block-inner { max-width: 860px; margin: 0 auto; }
.service-block h2 { margin: 0 0 20px; }
.service-block > .service-block-inner > p { font-size: 15.5px; line-height: 1.8; color: var(--muted); margin: 0 0 32px; }
.service-feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.service-feature-list li {
  padding: 22px 0; border-top: 1px solid var(--rule);
  display: grid; grid-template-columns: 1fr; gap: 6px;
}
.service-feature-list li:last-child { border-bottom: 1px solid var(--rule); }
.service-feature-list h4 {
  margin: 0; font-family: var(--serif); font-size: 19px; font-weight: 600; color: var(--ink);
}
.service-feature-list p { margin: 0; font-size: 14px; line-height: 1.7; color: var(--muted); }

/* ── Careers page ──────────────────────────────────────────── */
.careers-hero {
  padding: 96px 22px 56px; position: relative; overflow: hidden;
  background:
    radial-gradient(900px 520px at 70% 30%, rgba(201,163,90,0.12), transparent 65%),
    linear-gradient(158deg, var(--navy-deep) 0%, var(--navy) 55%, #0f1b3e 100%);
}
.careers-hero-inner { max-width: 760px; margin: 0 auto; position: relative; z-index: 1; }
.careers-hero h1 {
  font-family: var(--serif); font-weight: 500; margin: 22px 0 0;
  font-size: clamp(34px, 6vw, 68px); line-height: 1.05; letter-spacing: -0.025em; text-wrap: balance;
}
.careers-hero h1 em { font-style: italic; font-weight: 400; color: var(--gold); }
.careers-hero p { margin: 22px 0 0; font-size: 16px; line-height: 1.75; color: #b9c2dd; max-width: 540px; }
.careers-stats { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 40px; padding-top: 32px; border-top: 1px solid rgba(255,255,255,0.1); }
.cs-num { font-family: var(--serif); font-size: 34px; font-weight: 500; color: var(--gold); line-height: 1; }
.cs-label { margin-top: 6px; font-size: 10.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: #5b6582; }

.careers-panel { padding: 64px 22px; background: var(--paper); }
.careers-panel-inner {
  max-width: 860px; margin: 0 auto; background: var(--cream); border-radius: 18px;
  padding: 36px 26px; border-top: 4px solid var(--gold);
}
.careers-panel h2 { margin: 0 0 16px; }
.careers-panel p { font-size: 15px; line-height: 1.8; color: var(--muted); margin: 0 0 28px; }
.careers-panel .btn-gold { width: 100%; justify-content: center; }
.careers-note { text-align: center; margin-top: 16px; font-size: 12px; color: var(--muted); }

.langs-list { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.langs-list span {
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em; color: var(--muted);
  background: var(--paper); border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px;
}

/* ── FAQ (homepage, native <details>/<summary> — no JS needed) ── */
.faq-section { background: var(--paper); color: var(--ink); padding: 84px 22px; }
.faq-inner { max-width: 780px; margin: 0 auto; }
.faq-head p { margin: 22px 0 0; font-size: 15.5px; line-height: 1.75; color: var(--muted); }
.faq-list { margin-top: 40px; display: grid; gap: 2px; }
.faq-item {
  border-top: 1px solid var(--rule); padding: 6px 0;
}
.faq-list .faq-item:last-child { border-bottom: 1px solid var(--rule); }
.faq-item summary {
  cursor: pointer; list-style: none; padding: 18px 34px 18px 0; position: relative;
  font-family: var(--serif); font-size: 18px; font-weight: 600; color: var(--ink);
  -webkit-tap-highlight-color: transparent;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 16px; font-size: 22px;
  color: var(--gold-deep); font-weight: 400; transition: transform 0.25s ease;
}
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { margin: 0 0 22px; font-size: 14.5px; line-height: 1.75; color: var(--muted); max-width: 640px; }

/* ── Legal pages (privacy / cookie policy) ────────────────── */
.legal-hero { padding: 90px 22px 40px; background: var(--navy-deep); }
.legal-hero-inner { max-width: 760px; margin: 0 auto; }
.legal-hero h1 {
  font-family: var(--serif); font-weight: 500; margin: 18px 0 0;
  font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.02em;
}
.legal-hero p { margin: 16px 0 0; font-size: 14px; color: #8090b0; }
.legal-body { padding: 48px 22px 90px; background: var(--paper); color: var(--ink); }
.legal-body-inner { max-width: 760px; margin: 0 auto; }
.legal-body h2 {
  font-family: var(--serif); font-weight: 600; font-size: 22px; margin: 44px 0 14px;
  letter-spacing: -0.01em; color: var(--ink);
}
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body li { font-size: 14.5px; line-height: 1.8; color: var(--muted); }
.legal-body ul { padding-left: 20px; margin: 12px 0; }
.legal-body a { color: var(--gold-deep); text-decoration: underline; text-underline-offset: 2px; }

/* ── responsive: mobile-first upgrade tiers ──────────────── */
@media (min-width: 640px) {
  .platform-grid { grid-template-columns: repeat(2, 1fr); }
  .services-teaser-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 980px) {
  .platform-hub { padding: 130px 48px; }
  .platform-grid { grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 64px; }
  .services-teaser { padding: 130px 48px; }
  .services-teaser-grid { gap: 22px; margin-top: 56px; }
  .service-hero { padding: 150px 48px 90px; }
  .service-block { padding: 90px 48px; }
  .careers-hero { padding: 150px 48px 90px; }
  .careers-panel { padding: 90px 48px; }
  .careers-panel-inner { padding: 52px 52px 44px; }
  .legal-hero { padding: 150px 48px 60px; }
  .legal-body { padding: 60px 48px 130px; }
  .faq-section { padding: 130px 48px; }
}
