/* ============================================================
   Partner Signal — shared design system
   Deep navy base, white, one accent (teal). Inter throughout.
   ============================================================ */

:root {
  --navy-950: #060f1a;
  --navy-900: #0a2239;
  --navy-800: #0e2c4b;
  --navy-700: #143a5e;
  --accent: #0f9b8e;
  --accent-bright: #2bd9c7;
  --accent-dark: #0b7a70;
  --ink: #16222e;
  --slate: #43566b;
  --muted: #71808f;
  --line: #e2e9f0;
  --line-dark: rgba(255, 255, 255, 0.14);
  --bg: #ffffff;
  --bg-soft: #f5f8fa;
  --radius: 14px;
  --maxw: 1160px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 16.5px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; }

a { color: var(--accent-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
}

.narrow { max-width: 780px; }

/* ---------- Typography ---------- */

h1, h2, h3, h4 {
  color: var(--navy-900);
  line-height: 1.18;
  letter-spacing: -0.022em;
  margin: 0;
}

h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.35rem); font-weight: 750; }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.012em; }

p { margin: 0 0 1.05em; }
p.lead { font-size: 1.16rem; color: var(--slate); line-height: 1.75; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin: 0 0 18px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.on-dark .eyebrow { color: var(--accent-bright); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head p { color: var(--slate); margin-top: 16px; font-size: 1.06rem; }

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(160%) blur(10px);
  -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; display: block; }
.brand:hover { text-decoration: none; }
.brand-name { margin-left: 10px; font-size: 1.28rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1; color: var(--navy-900); white-space: nowrap; }
.brand-accent { color: var(--accent); margin-left: 0.16em; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: var(--slate);
  font-size: 0.95rem;
  font-weight: 550;
  padding: 9px 14px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color 0.15s ease, background 0.15s ease;
}
.main-nav a:hover { color: var(--navy-900); background: var(--bg-soft); text-decoration: none; }
.main-nav a[aria-current="page"] { color: var(--navy-900); font-weight: 700; }
.main-nav a.nav-cta {
  margin-left: 12px;
  background: var(--navy-900);
  color: #fff;
  font-weight: 650;
  padding: 10px 20px;
  border-radius: 999px;
}
.main-nav a.nav-cta:hover { background: var(--navy-700); color: #fff; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  width: 44px;
  height: 44px;
  cursor: pointer;
  padding: 10px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--navy-900);
  margin: 5px 0;
  border-radius: 2px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 650;
  font-size: 0.99rem;
  padding: 14px 28px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-navy { background: var(--navy-900); color: #fff; }
.btn-navy:hover { background: var(--navy-700); color: #fff; }
.btn-ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
.btn-ghost-light:hover { border-color: #fff; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--navy-900); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 480px at 85% -10%, rgba(43, 217, 199, 0.16), transparent 60%),
    radial-gradient(700px 500px at -10% 110%, rgba(20, 58, 94, 0.55), transparent 60%),
    linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 55%, var(--navy-800) 100%);
  color: #dbe6f0;
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { padding: 108px 0 96px; max-width: 820px; }
.hero h1 { color: #fff; margin-bottom: 24px; }
.hero h1 .accent { color: var(--accent-bright); }
.hero p.lead { color: #b9cbdd; max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin-top: 58px;
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.92rem;
  color: #93a9bf;
}
.hero-meta strong { display: block; color: #fff; font-size: 0.98rem; font-weight: 650; }

/* decorative signal rings in hero */
.hero-rings {
  position: absolute;
  right: -140px;
  top: 50%;
  transform: translateY(-50%);
  width: 560px;
  height: 560px;
  opacity: 0.5;
  pointer-events: none;
}

/* page hero (sub pages) */
.page-hero {
  background:
    radial-gradient(700px 360px at 90% -20%, rgba(43, 217, 199, 0.13), transparent 60%),
    linear-gradient(160deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  color: #dbe6f0;
}
.page-hero-inner { padding: 84px 0 72px; max-width: 780px; }
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4.4vw, 3rem); margin-bottom: 18px; }
.page-hero p.lead { color: #b9cbdd; margin-bottom: 0; }

/* ---------- Sections ---------- */

.section { padding: 104px 0; }
.section.soft { background: var(--bg-soft); }
.section.tight { padding: 72px 0; }

/* ---------- Cards & grids ---------- */

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

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 34px 32px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
.card:hover {
  border-color: #c9d6e2;
  box-shadow: 0 14px 34px rgba(10, 34, 57, 0.08);
  transform: translateY(-2px);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--slate); font-size: 0.99rem; margin-bottom: 0; }
.card .card-kicker {
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: 14px;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(15, 155, 142, 0.1);
  color: var(--accent-dark);
  margin-bottom: 20px;
}
.icon-badge svg { width: 23px; height: 23px; }

/* steps */
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy-900);
  color: #fff;
  font-weight: 750;
  font-size: 1.02rem;
  margin-bottom: 20px;
}
.step-card ul, .card ul { margin: 12px 0 0; padding-left: 1.25em; color: var(--slate); font-size: 0.98rem; }
.step-card li, .card li { margin-bottom: 7px; }

/* two-column feature row */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.feature-row .sticky { position: sticky; top: 110px; }

/* plain lists */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--slate);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: rgba(15, 155, 142, 0.12);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6.5px;
  top: 9px;
  width: 6px;
  height: 3.5px;
  border-left: 2px solid var(--accent-dark);
  border-bottom: 2px solid var(--accent-dark);
  transform: rotate(-45deg);
}
.limit-list { list-style: none; margin: 0; padding: 0; }
.limit-list li {
  position: relative;
  padding-left: 32px;
  margin-bottom: 14px;
  color: var(--slate);
}
.limit-list li::before {
  content: "";
  position: absolute;
  left: 1px;
  top: 11px;
  width: 18px;
  height: 2px;
  background: var(--navy-900);
  border-radius: 2px;
  opacity: 0.55;
}

/* definition / detail table */
.detail-table { width: 100%; border-collapse: collapse; font-size: 0.99rem; }
.detail-table th, .detail-table td {
  text-align: left;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.detail-table th {
  width: 190px;
  color: var(--navy-900);
  font-weight: 650;
  background: var(--bg-soft);
  border-right: 1px solid var(--line);
}
.detail-table td { color: var(--slate); }
.detail-table tr:last-child th, .detail-table tr:last-child td { border-bottom: none; }
.table-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}

/* prose (privacy etc.) */
.prose h2 { font-size: 1.45rem; margin: 52px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 30px 0 8px; }
.prose p, .prose li { color: var(--slate); }
.prose ul { padding-left: 1.3em; margin: 0 0 14px; }
.prose li { margin-bottom: 7px; }

/* CTA band */
.cta-band {
  background:
    radial-gradient(640px 320px at 88% -30%, rgba(43, 217, 199, 0.18), transparent 60%),
    linear-gradient(150deg, var(--navy-950), var(--navy-900) 60%, var(--navy-800));
  border-radius: 20px;
  padding: 62px 56px;
  color: #dbe6f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: #b9cbdd; margin: 0; max-width: 540px; }

/* contact panel */
.contact-panel {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 38px 36px;
}
.contact-panel .email-big {
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--navy-900);
  word-break: break-all;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--navy-950);
  color: #9db1c6;
  padding: 70px 0 0;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 54px;
}
.footer-brand img { height: 32px; width: auto; display: block; margin-bottom: 18px; }
.footer-brand p { font-size: 0.94rem; max-width: 340px; margin: 0; }
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin: 4px 0 18px;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links li { margin-bottom: 11px; }
.footer-links a { color: #9db1c6; font-size: 0.96rem; }
.footer-links a[href^="mailto:"] { white-space: nowrap; }
.footer-logo { display: inline-flex; align-items: center; margin-bottom: 18px; }
.footer-logo img { height: 32px; width: auto; display: block; margin-bottom: 0; }
.footer-logo .brand-name { color: #fff; }
.footer-logo .brand-accent { color: var(--accent-bright); }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 0.88rem;
  color: #71879c;
}

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */

@media (max-width: 920px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row .sticky { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero-rings { display: none; }
}

@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 72px 0; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .hero-inner { padding: 72px 0 64px; }
  .cta-band { padding: 44px 30px; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }

  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 14px 20px 20px;
    box-shadow: 0 24px 40px rgba(10, 34, 57, 0.1);
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 10px; }
  .main-nav a.nav-cta { margin: 10px 0 0; text-align: center; }
  .detail-table th { width: 128px; }
}

/* Language switcher */
.lang-switch { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; font-size: 0.88rem; font-weight: 650; white-space: nowrap; }
.lang-switch a { color: var(--muted); padding: 4px 2px; }
.lang-switch a:hover { color: var(--navy-900); text-decoration: none; }
.lang-switch .lang-current { color: var(--navy-900); }
.lang-switch .lang-sep { color: var(--line); }
@media (max-width: 860px) { .lang-switch { margin: 10px 0 0; } }
html[lang="ja"] body { font-family: "Inter", "Noto Sans JP", "Hiragino Kaku Gothic ProN", sans-serif; }
html[lang^="zh"] body { font-family: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang^="de"] body, html[lang^="fr"] body, html[lang^="es"] body, html[lang^="pt"] body { font-family: "Inter", -apple-system, "Segoe UI", sans-serif; }

/* Figures (diagrams) */
.figure-wrap { margin: 40px auto 0; max-width: 880px; }
.figure-wrap img { width: 100%; height: auto; display: block; border: 1px solid var(--line, #dbe4ec); border-radius: 16px; background: #fff; }
.figure-wrap figcaption { text-align: center; color: var(--slate); font-size: 0.92rem; margin-top: 12px; }
.figure-wide { max-width: 1020px; }
.pain-card p { margin-bottom: 0; }
.contrast-note { max-width: 820px; margin: 34px auto 0; text-align: center; color: var(--slate); font-size: 1.05rem; }
.contrast-note strong { color: var(--navy-900); }
