/* Adeofarma — modern, clean, Apple-inspired */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --blue: #2165c5;
  --blue-soft: rgba(33, 101, 197, 0.1);
  --navy: #01225a;
  --radius: 28px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.wrap { width: min(1120px, 100% - 48px); margin-inline: auto; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}
.nav.scrolled { border-color: var(--line); }
.nav__bar { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.nav__logo img { height: 17px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; }
.nav__links a.link {
  font-size: 13px; letter-spacing: 0.01em; color: #424245; padding: 8px 14px; border-radius: 980px;
  transition: color 0.2s, background 0.2s;
}
.nav__links a.link:hover, .nav__links a.link.active { color: var(--ink); background: rgba(0, 0, 0, 0.05); }
.lang { display: inline-flex; margin-left: 10px; padding: 3px; background: rgba(0, 0, 0, 0.06); border-radius: 980px; }
.lang a { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 980px; color: #515154; transition: all 0.2s; }
.lang a:hover { color: var(--ink); }
.lang a[aria-current="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }
.nav__toggle { display: none; width: 40px; height: 40px; border: 0; background: none; cursor: pointer; position: relative; }
.nav__toggle span { position: absolute; left: 11px; right: 11px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), top 0.3s var(--ease); }
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 23px; }
.nav.open .nav__toggle span:first-child { top: 20px; transform: rotate(45deg); }
.nav.open .nav__toggle span:last-child { top: 20px; transform: rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: 980px; font-size: 15px; font-weight: 500;
  transition: transform 0.3s var(--ease), background 0.2s, box-shadow 0.3s;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: #1a54a6; transform: scale(1.03); box-shadow: 0 10px 30px rgba(33, 101, 197, 0.35); }
.btn--ghost { color: var(--blue); }
.btn--ghost:hover { background: var(--blue-soft); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 104px 0 40px; background: #fff; }
.hero__glow {
  position: absolute; right: -4%; top: -10%; width: 55%; height: 120%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(33,101,197,0.14), rgba(33,101,197,0) 72%);
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 32px; }
.eyebrow { display: inline-block; font-size: 14px; font-weight: 600; letter-spacing: 0.02em; color: var(--blue); margin-bottom: 16px; }
.hero h1 {
  font-size: clamp(30px, 3.6vw, 50px); line-height: 1.06; letter-spacing: -0.04em; font-weight: 400;
  overflow-wrap: break-word; hyphens: auto; color: var(--ink); padding-bottom: 0.06em;
}
.hero h1 b { font-weight: 700; }
.hero__tag { margin-top: 14px; font-size: clamp(16px, 1.4vw, 19px); line-height: 1.3; font-weight: 500; letter-spacing: -0.015em; color: var(--blue); max-width: 440px; }
.hero__cta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero__art { position: relative; display: grid; place-items: center; }
.hero__art img { width: min(100%, 460px); max-width: 100%; margin-right: 0; height: auto; filter: drop-shadow(0 30px 50px rgba(33,101,197,0.22)); animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@media (max-width: 1024px) { .hero__art img { width: min(100%, 400px); } }
@media (max-width: 820px) {
  .hero { padding: 88px 0 32px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__art { order: -1; }
  .hero__art img { width: min(70%, 280px); }
}

/* ---------- Sections ---------- */
.section { padding: 100px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark { background: linear-gradient(160deg, #01225a 0%, #0b3a85 100%); color: #fff; }
.section__head { max-width: 760px; margin-bottom: 44px; }
.section__head--center { margin-inline: auto; text-align: center; }
.section h2 { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.07; letter-spacing: -0.035em; font-weight: 700; }
.section--dark .eyebrow { color: #8ab4f8; }
.lead { margin-top: 16px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.45; color: var(--muted); }
.section--dark .lead { color: rgba(255, 255, 255, 0.72); }

.about__text { font-size: clamp(24px, 3.3vw, 42px); line-height: 1.22; letter-spacing: -0.025em; font-weight: 600; color: #86868b; }
.about__text p + p { margin-top: 0.9em; }
.about__text b { color: var(--ink); font-weight: 700; }

/* ---------- Cards ---------- */
.grid { display: grid; gap: 20px; }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  background: #fff; border-radius: var(--radius); padding: 38px 34px 40px; position: relative;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.section--alt .card { background: #fff; }
.card:hover { transform: translateY(-6px); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.09); }
.card__icon {
  width: 46px; height: 46px; display: grid; place-items: center; font-size: 22px;
  color: var(--blue); background: var(--blue-soft); border-radius: 16px; margin-bottom: 28px;
}
.card h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; }
.card ul { margin-top: 16px; }
.card li { position: relative; padding: 7px 0 7px 22px; color: var(--muted); font-size: 15px; }
.card li::before { content: ""; position: absolute; left: 2px; top: 17px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); opacity: 0.55; }
.card--glass { background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.card--glass:hover { box-shadow: 0 24px 60px rgba(0, 0, 0, 0.3); }
.card--glass .card__icon { background: rgba(255, 255, 255, 0.14); color: #fff; }
.card--glass li { color: rgba(255, 255, 255, 0.78); }
.card--glass li::before { background: #8ab4f8; }

/* ---------- Partners ---------- */
.logos { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.logo {
  height: 120px; display: grid; place-items: center; padding: 22px; background: var(--bg-alt); border-radius: 22px;
  transition: transform 0.5s var(--ease), background 0.3s;
}
.logo:hover { transform: translateY(-4px); background: #fff; box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08); }
.logo img { max-height: 64px; width: auto; max-width: 100%; object-fit: contain; filter: grayscale(1) contrast(1.15); opacity: 0.9; mix-blend-mode: multiply; transition: filter 0.4s, opacity 0.4s; }
.logo:hover img { filter: none; opacity: 1; mix-blend-mode: normal; }

/* ---------- Timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: linear-gradient(90deg, var(--blue), rgba(33, 101, 197, 0.15)); }
.milestone { position: relative; padding: 38px 20px 0 0; }
.milestone::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid var(--blue); }
.milestone strong { display: block; font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.milestone span { display: block; margin-top: 10px; font-size: 14px; color: var(--muted); max-width: 190px; }

/* ---------- Team ---------- */
.team { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.person { text-align: left; }
.person__photo { aspect-ratio: 1 / 1; overflow: hidden; border-radius: 24px; background: #e8e8ed; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.person:hover .person__photo img { transform: scale(1.05); }
.person h3 { margin-top: 16px; font-size: 16px; font-weight: 700; letter-spacing: -0.015em; }
.person p { margin-top: 4px; font-size: 14px; color: var(--muted); line-height: 1.4; min-height: 2.8em; }
.person__links { margin-top: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.person__links a.mail { font-size: 13px; color: var(--blue); word-break: break-all; }
.person__links a.mail:hover { text-decoration: underline; }
.person__links a.in { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; font-size: 15px; color: #fff; background: #0a66c2; flex: none; transition: transform 0.3s var(--ease); }
.person__links a.in:hover { transform: scale(1.12); }

.pv {
  margin-top: 70px; padding: 40px 44px; border-radius: var(--radius); background: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
}
.pv h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; max-width: 520px; line-height: 1.3; }
.pv__links { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.pv__links a { display: inline-flex; align-items: center; gap: 10px; color: var(--blue); }
.pv__links a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.footer { background: #1d1d1f; color: rgba(255, 255, 255, 0.72); padding: 80px 0 36px; font-size: 14px; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; }
.footer img.logo-w { height: 20px; width: auto; filter: brightness(0) invert(1); margin-bottom: 24px; }
.footer h4 { color: #fff; font-size: 13px; font-weight: 600; letter-spacing: 0.02em; margin-bottom: 14px; }
.footer p, .footer li { line-height: 1.8; }
.footer a { color: rgba(255, 255, 255, 0.85); transition: color 0.2s; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer__bottom { margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 12px; color: rgba(255, 255, 255, 0.5); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(32px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .logos { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 56px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 8px 24px 24px;
    background: rgba(255, 255, 255, 0.96); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--line); display: none;
  }
  .nav.open .nav__links { display: flex; }
  .nav__links a.link { font-size: 20px; padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .lang { margin: 16px 0 0; align-self: flex-start; }
  .section { padding: 72px 0; }
  .section__head { margin-bottom: 32px; }
  .timeline { grid-template-columns: 1fr; padding-left: 8px; }
  .timeline::before { display: none; }
  .milestone { padding: 0 0 34px 32px; }
  .milestone:last-child { padding-bottom: 0; }
  .milestone::before { left: -8px; top: 4px; z-index: 1; }
  .milestone:not(:last-child)::after { content: ""; position: absolute; left: -1px; top: 12px; bottom: -12px; width: 2px; background: var(--blue); opacity: .35; }
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .pv { padding: 30px 26px; }
}
@media (max-width: 640px) {
  .grid--3 { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .team { grid-template-columns: repeat(2, 1fr); gap: 24px 14px; }
  .person__links { flex-direction: column; align-items: flex-start; gap: 8px; }
  .person__links a.mail { white-space: nowrap; word-break: normal; font-size: clamp(10px, 3.2vw, 13px); letter-spacing: -0.01em; }
  .card { padding: 30px 26px 32px; }
}


/* about */
.about__lead { max-width: 820px; font-size: clamp(21px, 2.4vw, 30px); line-height: 1.2; letter-spacing: -0.03em; font-weight: 700; color: var(--ink); }
.about__lead b { color: var(--blue); }
.about__grid { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.about__item { background: var(--bg-alt); border-radius: var(--radius); padding: 30px 28px 32px; }
.about__item .card__icon { margin-bottom: 20px; }
.about__item p { font-size: 15px; line-height: 1.5; color: #424245; }
.about__item b { color: var(--ink); }
.about__note { margin-top: 20px; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; padding: 36px 40px; border-radius: var(--radius); background: linear-gradient(135deg, #01225a, #2165c5); color: #fff; }
.about__note p { font-size: clamp(17px, 1.7vw, 21px); line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; max-width: 640px; }
.about__note .btn--primary { background: #fff; color: var(--navy); }
.about__note .btn--primary:hover { background: #fff; box-shadow: 0 12px 30px rgba(0,0,0,.25); }
.footer__grid { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr; } .about__note { padding: 28px 26px; } }

/* 404 */
.err { min-height: 78vh; display: flex; align-items: center; text-align: center; }
.err__box { position: relative; display: flex; flex-direction: column; align-items: center; }
.err__code { font-size: clamp(110px, 24vw, 280px); font-weight: 700; letter-spacing: -0.06em; line-height: 0.9; background: linear-gradient(180deg, #2165c5, #9cc2ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.err h1 { margin-top: 12px; font-size: clamp(28px, 4vw, 48px); font-weight: 700; letter-spacing: -0.03em; }
.err .lead { max-width: 460px; }
.err .hero__cta { justify-content: center; margin-top: 30px; }
.footer .ext { display: inline-block; vertical-align: -2px; margin-left: 4px; opacity: 0.85; }

.footer a.ext-link { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.footer a.ext-link .ext { display: block; flex: none; width: 14px; height: 14px; margin: 0; vertical-align: baseline; }

/* hero: less empty space, glow centered on the logo */
.hero { padding: 120px 0 56px; }
.hero + .section { padding-top: 64px; }
.hero__glow { display: none; }
.hero__art::before {
  content: ""; position: absolute; inset: -22%; z-index: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(33,101,197,0.14), rgba(33,101,197,0) 72%);
}
.hero__art img { position: relative; z-index: 1; width: min(100%, 400px); }
.about__grid { margin-top: 40px; }
@media (max-width: 1024px) { .hero__art img { width: min(100%, 340px); } }
@media (max-width: 820px) {
  .hero { padding: 84px 0 24px; }
  .hero + .section { padding-top: 48px; }
  .hero__art img { width: min(64%, 240px); }
}
