/* =============================================================
   TransRisk v3 — platform.css
   Platform & Technology page
============================================================= */


/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */

.plat-hero {
  position: relative;
  background: var(--color-navy);
  overflow: hidden;
  padding: 96px 0 88px;
}

.plat-hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.055) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at 50% 50%, black 30%, transparent 100%);
}

.plat-hero-glow {
  position: absolute;
  bottom: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 300px;
  background: radial-gradient(ellipse, rgba(45,122,58,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.plat-hero-inner {
  position: relative;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.plat-hero-title {
  font-size: clamp(1.875rem, 4.5vw, 2.875rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.16;
  letter-spacing: -0.03em;
  margin: 14px 0 20px;
}

.plat-hero-title em {
  font-style: normal;
  color: #4ade80;
}

.plat-hero-sub {
  font-size: 1.0625rem;
  color: rgba(255,255,255,0.60);
  max-width: 620px;
  margin: 0 auto 36px;
  line-height: 1.72;
}


/* ═══════════════════════════════════════════════════════════
   SHARED SECTION HEADER
═══════════════════════════════════════════════════════════ */

.plat-hd {
  text-align: center;
  margin-bottom: 56px;
}

.plat-hd .section-title   { margin-bottom: 14px; }
.plat-hd .section-subtitle { margin: 0 auto; }


/* ═══════════════════════════════════════════════════════════
   SECTION 1 — ARCHITECTURE DIAGRAM
═══════════════════════════════════════════════════════════ */

.arch-section {
  padding: 96px 0 80px;
  background: var(--color-light);
}

.arch-diagram {
  background: #f8f9fa;
  border-radius: 12px;
  padding: 2rem;
  overflow-x: auto;
}

.arch-columns {
  display: flex;
  align-items: flex-start;
  gap: 0;
  min-width: 700px;
}

.arch-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.arch-col-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.5rem;
  text-align: center;
}

.arch-box {
  background: #0f1f2e;
  color: #fff;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: relative;
}

.arch-box strong {
  font-weight: 600;
  font-size: 0.82rem;
  color: #ffffff;
}

.arch-box span {
  font-size: 0.72rem;
  color: #9ca3af;
  line-height: 1.3;
}

.arch-box--engine {
  background: #2d7a3a;
}

.arch-box--engine span {
  color: #bbf7c8;
}

.arch-box--output {
  background: #ffffff;
  border: 1.5px solid #2d7a3a;
  color: #0f1f2e;
}

.arch-box--output strong {
  color: #0f1f2e;
}

.arch-box--output span {
  color: #6b7280;
}

.arch-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #2d7a3a;
  font-weight: 700;
  padding: 0 0.75rem;
  margin-top: 2rem;
  flex-shrink: 0;
}

/* .badge-new base defined in style.css (global) */

/* Arch-box context: align-self + margin-top for flex column layout */
.arch-box .badge-new {
  align-self: flex-start;
  margin-top: 3px;
}

/* Override span colour: badge always shows dark text on green pill */
.arch-box .badge-new,
.arch-box--engine .badge-new,
.arch-box--output .badge-new {
  color: #0f1f2e;
}

/* Hexagon icon in SAP box */
.arch-box-icon {
  font-size: 0.95rem;
  opacity: 0.45;
  line-height: 1;
  margin-bottom: 1px;
}

.arch-governance {
  margin-top: 1.25rem;
  background: #0f1f2e;
  border-radius: 8px;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.arch-governance-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #4ade80;
  text-transform: uppercase;
  white-space: nowrap;
}

.arch-governance-items {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}

.arch-governance-items span {
  font-size: 0.78rem;
  color: #d1d5db;
}

.arch-governance-items .dot {
  color: #4ade80;
  font-weight: 700;
}


/* ═══════════════════════════════════════════════════════════
   SECTION 2 — INTEGRATION CARDS
═══════════════════════════════════════════════════════════ */

.integ-section {
  padding: 96px 0;
  background: #fff;
}

.integ-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.integ-card {
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--transition), border-color var(--transition), transform var(--transition);
}

.integ-card:hover {
  box-shadow: var(--shadow-md);
  border-color: rgba(45,122,58,0.30);
  transform: translateY(-2px);
}

.integ-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
  gap: 8px;
}

.integ-card-icon {
  width: 44px;
  height: 44px;
  background: rgba(15,31,46,0.06);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-navy);
  flex-shrink: 0;
}

.integ-card-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text);
  line-height: 1.32;
  margin-bottom: 14px;
}

.integ-card-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}

.integ-card-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  font-size: 12.5px;
  color: var(--color-muted);
  line-height: 1.55;
}

.integ-bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--color-green);
  flex-shrink: 0;
  margin-top: 6px;
}


/* ═══════════════════════════════════════════════════════════
   SECTION 3 — DELIVERY MODELS
═══════════════════════════════════════════════════════════ */

.delivery-section {
  padding: 96px 0;
  background: var(--color-light);
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.delivery-tile {
  background: var(--color-navy);
  border-radius: var(--radius-xl);
  padding: 48px 44px;
  position: relative;
  overflow: hidden;
}

/* decorative glow bubble */
.delivery-tile::after {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45,122,58,0.18) 0%, transparent 70%);
  pointer-events: none;
}

.delivery-tile-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  margin-bottom: 24px;
  position: relative;
  z-index: 1;
}

.delivery-tile-title {
  font-size: 1.3125rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.24;
  margin-bottom: 22px;
  position: relative;
  z-index: 1;
}

.delivery-tile-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 30px;
  position: relative;
  z-index: 1;
}

.delivery-tile-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 14px;
  color: rgba(255,255,255,0.70);
  line-height: 1.55;
}

.delivery-bullet-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  margin-top: 8px;
}

.delivery-tile-best {
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 22px;
  position: relative;
  z-index: 1;
}

.delivery-tile-best-label {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #4ade80;
  margin-bottom: 7px;
}

.delivery-tile-best-text {
  font-size: 13.5px;
  color: rgba(255,255,255,0.58);
  font-style: italic;
  line-height: 1.55;
}


/* ═══════════════════════════════════════════════════════════
   SECTION 4 — SECURITY TILES
═══════════════════════════════════════════════════════════ */

.security-section {
  padding: 96px 0;
  background: #fff;
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.security-tile {
  padding: 28px 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.security-tile:hover {
  box-shadow: var(--shadow-sm);
  border-color: rgba(45,122,58,0.22);
}

.security-tile-icon {
  width: 40px;
  height: 40px;
  background: rgba(45,122,58,0.08);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-green);
  margin-bottom: 16px;
}

.security-tile-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--color-text);
  margin-bottom: 10px;
  line-height: 1.3;
}

.security-tile-text {
  font-size: 13px;
  color: var(--color-muted);
  line-height: 1.68;
}


/* ═══════════════════════════════════════════════════════════
   SECTION 5 — TECHNOLOGY STACK
═══════════════════════════════════════════════════════════ */

.techstack-section {
  padding: 80px 0;
  background: var(--color-light);
  text-align: center;
}

.techstack-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 32px 0 20px;
}

.techstack-pill {
  display: inline-flex;
  align-items: center;
  padding: 9px 20px;
  background: #fff;
  border: 1.5px solid var(--color-border);
  border-radius: 100px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text);
  letter-spacing: 0.005em;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.techstack-pill:hover {
  border-color: rgba(45,122,58,0.40);
  box-shadow: 0 2px 8px rgba(45,122,58,0.10);
}

.techstack-note {
  font-size: 13.5px;
  color: var(--color-muted);
  margin-top: 8px;
}


/* ═══════════════════════════════════════════════════════════
   SECTION 6 — BOTTOM CTA
═══════════════════════════════════════════════════════════ */

.plat-cta {
  padding: 96px 0;
  background: var(--color-navy);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.plat-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 28px 28px;
  pointer-events: none;
}

.plat-cta-inner {
  position: relative;
}

.plat-cta-title {
  font-size: clamp(1.625rem, 3.2vw, 2.375rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.025em;
  max-width: 640px;
  margin: 12px auto 36px;
}

.plat-cta-btns {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════ */

@media (max-width: 1100px) {
  .integ-grid    { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .plat-hero         { padding: 72px 0 64px; }
  .delivery-grid     { grid-template-columns: 1fr; }
  .delivery-tile     { padding: 36px 28px; }
  .integ-grid        { grid-template-columns: 1fr; }
  .security-grid     { grid-template-columns: 1fr; }
  .plat-cta          { padding: 72px 0; }
  .arch-section      { padding: 72px 0 64px; }
  .arch-columns      { flex-direction: column; min-width: unset; }
  .arch-arrow        { transform: rotate(90deg); margin: 0.25rem auto; padding: 0; }
  .techstack-section { padding: 64px 0; }
}
