/* ============================================================
   Enformia — modern redesign
   ============================================================ */
:root {
  --brand:        #35baf2;
  --brand-600:    #1d8fd1;
  --brand-700:    #1769a8;
  --navy:         #15375e;
  --navy-900:     #0d2440;
  --ink:          #16263c;
  --muted:        #5d6f86;
  --line:         #e4ecf4;
  --bg:           #ffffff;
  --bg-soft:      #f3f8fd;
  --bg-mist:      #eaf4fc;
  --radius:       18px;
  --radius-sm:    12px;
  --shadow-sm:    0 2px 8px rgba(21,55,94,.06);
  --shadow:       0 12px 32px rgba(21,55,94,.10);
  --shadow-lg:    0 28px 60px rgba(21,55,94,.16);
  --maxw:         1180px;
  --grad:         linear-gradient(135deg, #3fc3f5 0%, #1d8fd1 55%, #1769a8 100%);
  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-600); }

h1, h2, h3, h4 { color: var(--navy); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.3rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p  { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--mist { background: linear-gradient(180deg, var(--bg-mist), #fff); }
.center { text-align: center; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 720px; }
.center .lead { margin-left: auto; margin-right: auto; }
.eyebrow {
  display: inline-block; font-size: .82rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand-600); margin-bottom: 14px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  font-weight: 600; font-size: 1rem; padding: 13px 26px; border-radius: 999px;
  cursor: pointer; border: 1.5px solid transparent; transition: .22s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px rgba(29,143,209,.32); }
.btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 32px rgba(29,143,209,.42); }
.btn--ghost { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.45); }
.btn--ghost:hover { background: rgba(255,255,255,.22); color: #fff; transform: translateY(-2px); }
.btn--outline { background: #fff; color: var(--navy); border-color: var(--line); }
.btn--outline:hover { color: var(--brand-700); border-color: var(--brand); transform: translateY(-2px); }
.btn--light { background: #fff; color: var(--navy); }
.btn--light:hover { background: #fff; color: var(--brand-700); transform: translateY(-2px); box-shadow: var(--shadow); }
.btn--sm { padding: 10px 20px; font-size: .92rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid rgba(228,236,244,.9);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.nav__logo img { height: 66px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  color: var(--ink); font-weight: 600; font-size: .98rem; padding: 9px 14px; border-radius: 10px;
  transition: .18s;
}
.nav__links a:hover, .nav__links a.active { color: var(--brand-700); background: var(--bg-mist); }
.nav__cta { margin-left: 10px; }
.nav__toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav__toggle span { width: 24px; height: 2.5px; background: var(--navy); border-radius: 2px; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: linear-gradient(150deg, #0d2440 0%, #15375e 42%, #1769a8 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background: url("../image/cloud_background.jpg") center/cover no-repeat;
  opacity: .14; mix-blend-mode: screen;
}
.hero::after {
  content: ""; position: absolute; right: -180px; top: -160px; width: 620px; height: 620px;
  background: radial-gradient(circle, rgba(63,195,245,.5), transparent 62%); filter: blur(10px);
}
.hero__inner { position: relative; z-index: 1; padding: 120px 0 130px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero h1 .accent { background: linear-gradient(90deg,#7ddcff,#3fc3f5); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero p { font-size: 1.28rem; color: rgba(255,255,255,.88); margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__wave { position: absolute; bottom: -1px; left: 0; width: 100%; z-index: 1; display: block; }

/* ---------- Pillars / feature cards ---------- */
.grid { display: grid; gap: 26px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 34px 30px; box-shadow: var(--shadow-sm); transition: .25s ease; height: 100%;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #d4e6f5; }
.card__icon {
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: var(--bg-mist); color: var(--brand-600); margin-bottom: 20px;
}
.card__icon svg { width: 28px; height: 28px; }
.card h3 { margin-bottom: .4em; }
.card p { color: var(--muted); margin-bottom: 0; }
.feature-list { list-style: none; margin: 16px 0 0; padding: 0; }
.feature-list li { position: relative; padding: 6px 0 6px 28px; color: var(--muted); }
.feature-list li::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--brand); opacity: .18;
}
.feature-list li::after {
  content: ""; position: absolute; left: 5px; top: 18px; width: 6px; height: 6px;
  border-radius: 50%; background: var(--brand-600);
}

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 24px; text-align: center; }
.stat__num { font-size: clamp(2.2rem,4vw,3rem); font-weight: 800; color: var(--brand-600); line-height: 1; }
.stat__label { color: var(--muted); font-size: .98rem; margin-top: 8px; }

/* ---------- Split / alternating rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media img { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.split--reverse .split__media { order: 2; }

/* ---------- Game cards ---------- */
.games { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
.game {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); transition: .25s; display: flex; flex-direction: column;
}
.game:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.game__img { aspect-ratio: 16/9; overflow: hidden; background: var(--navy-900); }
.game__img img { width: 100%; height: 100%; object-fit: cover; transition: .4s; }
.game:hover .game__img img { transform: scale(1.06); }
.game__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.game__tag { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand-600); }
.game h3 { margin: 6px 0 .5em; }
.game p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Domain chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  background: #fff; border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: 600; color: var(--navy); box-shadow: var(--shadow-sm);
}

/* ---------- Measurement system cards (self report) ---------- */
.sys-card { background:#fff; border:1px solid var(--line); border-radius: var(--radius); padding: 30px; box-shadow: var(--shadow-sm); transition:.25s; height:100%; }
.sys-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.sys-card__head { display:flex; align-items:baseline; justify-content:space-between; gap:12px; border-bottom:1px solid var(--line); padding-bottom:14px; margin-bottom:14px; }
.sys-card__head h3 { margin:0; }
.sys-card__count { font-size:.85rem; font-weight:700; color:#fff; background:var(--grad); padding:4px 12px; border-radius:999px; white-space:nowrap; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; }
.member { display: grid; grid-template-columns: 150px 1fr; gap: 28px; align-items: start; }
.member__photo img { width: 150px; height: 150px; border-radius: 20px; object-fit: cover; box-shadow: var(--shadow); }
.member__role { color: var(--brand-600); font-weight: 700; font-size: .95rem; margin: 2px 0 12px; }
.member p { color: var(--muted); font-size: .96rem; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; border-radius: 26px; padding: 64px 48px; color:#fff;
  background: linear-gradient(135deg,#15375e,#1769a8); text-align:center; box-shadow: var(--shadow-lg); }
.cta-band::after { content:""; position:absolute; left:-120px; bottom:-160px; width:480px; height:480px;
  background: radial-gradient(circle, rgba(63,195,245,.45), transparent 60%); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { color:#fff; }
.cta-band p { color: rgba(255,255,255,.88); max-width: 560px; margin: 0 auto 1.8rem; font-size:1.15rem; }
.cta-band .hero__actions { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-900); color: rgba(255,255,255,.72); padding: 64px 0 32px; }
.footer__grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer__logo { background:#fff; padding:10px 14px; border-radius:12px; display:inline-block; }
.footer__logo img { height: 36px; }
.footer h4 { color:#fff; font-size:.95rem; letter-spacing:.06em; text-transform:uppercase; margin-bottom:16px; }
.footer ul { list-style:none; margin:0; padding:0; }
.footer li { margin-bottom: 10px; }
.footer a { color: rgba(255,255,255,.72); }
.footer a:hover { color:#fff; }
.footer__about { max-width: 340px; font-size:.95rem; margin-top:16px; }
.footer__contact { font-size:.95rem; margin-top:14px; line-height:1.7; }
.footer__contact a { color:#fff; font-weight:600; }
.cta-band__email { margin-top: 22px; font-size: 1rem; color: rgba(255,255,255,.9); }
.cta-band__email a { color:#fff; font-weight:700; text-decoration: underline; text-underline-offset: 3px; }
.footer__bottom { border-top:1px solid rgba(255,255,255,.12); padding-top:24px; font-size:.85rem; color: rgba(255,255,255,.5);
  display:flex; flex-wrap:wrap; gap:8px; justify-content:space-between; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Trademark note ---------- */
.fineprint { font-size: .82rem; color: var(--muted); line-height: 1.6; max-width: 920px; margin: 32px auto 0; text-align:center; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .grid--3, .games { grid-template-columns: repeat(2,1fr); }
  .grid--4 { grid-template-columns: repeat(2,1fr); }
  .split, .team { grid-template-columns: 1fr; gap: 36px; }
  .split--reverse .split__media { order: 0; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 64px 0; }
  .nav__links {
    position: fixed; inset: 88px 0 auto 0; flex-direction: column; align-items: stretch;
    background: #fff; padding: 16px; gap: 4px; border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow); transform: translateY(-130%);
    visibility: hidden; pointer-events: none;
    transition: transform .3s ease, visibility .3s ease; z-index: 99;
  }
  .nav__links.open { transform: translateY(0); visibility: visible; pointer-events: auto; }
  .nav__links a { padding: 14px 16px; }
  .nav__cta { margin: 8px 0 0; }
  .nav__toggle { display: flex; }
  .nav--open .nav__toggle span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
  .nav--open .nav__toggle span:nth-child(2) { opacity: 0; }
  .nav--open .nav__toggle span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
  .grid--3, .grid--4, .games, .stats { grid-template-columns: 1fr; }
  .stats { gap: 32px; }
  .member { grid-template-columns: 1fr; }
  .member__photo img { width: 120px; height: 120px; }
  .footer__grid { grid-template-columns: 1fr; }
  .cta-band { padding: 48px 26px; }
}
