/* Corporate website base styles: layout and structure only */
:root {
  /* Brand colours derived from the SDE logo */
  --navy: #16246b;
  --navy-soft: #2b3d92;
  --accent: #2f4bc0;
  --accent-dark: #223aa0;
  --gold: #f5cf00;
  --ink: #1a2530;
  --ink-soft: #55636f;
  --line: #e2e8ef;
  --bg: #f6f8fb;
  --white: #ffffff;
  --ph-bg: #fff8e6;
  --ph-line: #e0b64a;
  --ph-ink: #8a6410;
  --max: 1120px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
.site-header {
  background: var(--white);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 18px; color: var(--navy); }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--accent), var(--navy-soft));
  color: #fff; display: grid; place-items: center;
  font-size: 16px; font-weight: 700; letter-spacing: -1px;
  flex: none;
}
.site-nav { display: flex; align-items: center; gap: 30px; font-size: 15px; }
.site-nav a { color: var(--ink-soft); transition: color .15s; white-space: nowrap; }
.site-nav a:hover { color: var(--accent); }
.site-nav a.active { color: var(--navy); font-weight: 600; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; font-size: 20px; cursor: pointer; color: var(--navy); }

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(140deg, var(--navy) 0%, var(--navy-soft) 62%, #3c52a6 100%);
  color: #fff;
  padding: 88px 0 92px;
}
.hero .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 5px 16px; margin-bottom: 26px; color: #cfe0f2;
}
.hero h1 { font-size: clamp(30px, 4.6vw, 48px); line-height: 1.3; margin: 0 0 20px; font-weight: 700; letter-spacing: -.01em; max-width: 820px; }
.hero p.lead { font-size: 17px; color: #d5e3f1; max-width: 700px; margin: 0 0 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-block; padding: 12px 26px; border-radius: 8px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-outline { background: #fff; color: var(--navy); border-color: var(--line); }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 720px; margin-bottom: 46px; }
.section-head .kicker { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--accent); text-transform: uppercase; }
.section-head h2 { font-size: clamp(25px, 3vw, 34px); margin: 12px 0 12px; color: var(--navy); line-height: 1.35; }
.section-head p { color: var(--ink-soft); margin: 0; }

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

.card {
  background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: 30px 28px; transition: box-shadow .18s, transform .18s;
}
.section.alt .card { background: var(--bg); }
.card:hover { box-shadow: 0 10px 28px rgba(15,43,70,.09); transform: translateY(-2px); }
.card .num { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .08em; }
.card h3 { font-size: 19px; margin: 12px 0 10px; color: var(--navy); }
.card p { color: var(--ink-soft); font-size: 15px; margin: 0; }

.prose { max-width: 780px; color: var(--ink-soft); }
.prose h3 { color: var(--navy); font-size: 20px; margin: 34px 0 10px; }
.prose p { margin: 0 0 16px; }
.prose ul { padding-left: 20px; }
.prose li { margin-bottom: 8px; }

.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line);
}
.info-list li:last-child { border-bottom: none; }
.info-list .label { width: 120px; flex: none; color: var(--ink-soft); font-size: 14px; }
.info-list .value { flex: 1; }

.cta-band {
  background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%);
  color: #fff; padding: 56px 0; text-align: center;
}
.cta-band h2 { font-size: 27px; margin: 0 0 12px; }
.cta-band p { color: #cfe0f2; margin: 0 0 26px; }

/* ---------- Placeholder ---------- */
.ph {
  display: inline; background: var(--ph-bg); color: var(--ph-ink);
  border-bottom: 1px dashed var(--ph-line); padding: 1px 5px; border-radius: 3px;
  font-size: .94em;
}
.ph-block {
  display: block; background: var(--ph-bg); color: var(--ph-ink);
  border: 1px dashed var(--ph-line); border-radius: 8px; padding: 14px 18px;
  margin: 12px 0; font-size: 14px;
}
.template-note {
  background: #eef4fd; border: 1px solid #c9ddf7; color: #2a4d75;
  border-radius: 8px; padding: 12px 18px; font-size: 14px; margin: 0 0 28px;
}

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #b9cbdd; padding: 46px 0 24px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 36px; margin-bottom: 34px; }
.site-footer h4 { color: #fff; font-size: 15px; margin: 0 0 14px; }
.site-footer a { display: block; padding: 3px 0; color: #b9cbdd; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 20px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--ink-soft); margin: 0 0 18px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .sep { margin: 0 8px; color: #a9b5c1; }

/* ---------- News list ---------- */
.news-list { border-top: 1px solid var(--line); }
.news-item {
  display: grid; grid-template-columns: 132px 1fr; gap: 26px; align-items: start;
  padding: 26px 4px; border-bottom: 1px solid var(--line); background: transparent;
  transition: background .15s;
}
.news-item:hover { background: #fff; }
.news-date { color: var(--ink-soft); font-size: 14px; padding-top: 3px; }
.news-item h3 { font-size: 19px; margin: 0 0 8px; color: var(--navy); }
.news-item p { color: var(--ink-soft); font-size: 15px; margin: 0; }
.tag {
  display: inline-block; font-size: 12px; padding: 2px 10px; border-radius: 999px;
  background: #eaf2fd; color: var(--accent-dark); margin-bottom: 8px;
}
.news-more { justify-self: end; font-size: 14px; color: var(--accent); white-space: nowrap; padding-top: 3px; }

/* ---------- Cases ---------- */
.case-card { overflow: hidden; padding: 0; }
.case-visual {
  height: 132px; display: grid; place-items: center;
  background: linear-gradient(135deg, #e8f0fa, #d6e6f7);
  color: var(--navy-soft); font-size: 13px; letter-spacing: .08em;
  border-bottom: 1px solid var(--line);
}
.case-body { padding: 24px 26px 28px; }
.case-body h3 { font-size: 18px; margin: 0 0 8px; color: var(--navy); }
.case-body p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.case-meta { margin-top: 16px; font-size: 13px; color: var(--ink-soft); border-top: 1px dashed var(--line); padding-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .news-item { grid-template-columns: 1fr; gap: 8px; }
  .news-more { justify-self: start; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .nav-toggle { display: block; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 16px;
    box-shadow: 0 12px 24px rgba(15,43,70,.1);
  }
  .site-nav.open { display: flex; }
  .site-nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  .hero { padding: 62px 0 68px; }
  .section { padding: 56px 0; }
}

/* ---------- Corporate site components ---------- */
.brand-logo { height: 46px; width: auto; display: block; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-text strong { font-size: 16px; color: var(--navy); }
.brand-text small { font-size: 11px; color: var(--ink-soft); letter-spacing: .05em; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat-card { background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; }
.stat-card .value { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.2; }
.stat-card .unit { font-size: 15px; font-weight: 600; color: var(--ink-soft); margin-left: 4px; }
.stat-card .label { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.stat-card .basis { font-size: 12px; color: #8a97a4; margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }

.timeline { border-left: 2px solid var(--line); margin-left: 10px; padding-left: 28px; }
.timeline-item { position: relative; padding: 0 0 26px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -35px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line);
}
.timeline-item .date { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .04em; }
.timeline-item h3 { font-size: 17px; margin: 6px 0 6px; color: var(--navy); }
.timeline-item p { margin: 0; color: var(--ink-soft); font-size: 15px; }

.fact-list { list-style: none; padding: 0; margin: 0; }
.fact-list li { padding: 13px 0; border-bottom: 1px solid var(--line); display: flex; gap: 16px; }
.fact-list li:last-child { border-bottom: none; }
.fact-list .k { width: 152px; flex: none; color: var(--ink-soft); font-size: 14px; }
.fact-list .v { flex: 1; }

.source-note {
  background: #f0f4fb; border-left: 3px solid var(--accent);
  padding: 14px 18px; font-size: 13px; color: var(--ink-soft);
  border-radius: 0 8px 8px 0; margin-top: 32px;
}
.source-note a { color: var(--accent); text-decoration: underline; }
.gold-line { height: 3px; width: 46px; background: var(--gold); border-radius: 2px; margin: 0 0 18px; }

@media (max-width: 860px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .brand-text small { display: none; }
  .fact-list li { flex-direction: column; gap: 4px; }
  .fact-list .k { width: auto; }
}
