:root {
  --bg: #f7f8fc;
  --surface: rgba(255,255,255,.84);
  --surface-solid: #ffffff;
  --surface-muted: #eef1f8;
  --text: #13182a;
  --muted: #606980;
  --line: rgba(26,35,61,.12);
  --brand: #6657ff;
  --brand-strong: #4938e8;
  --accent: #11a8a0;
  --shadow: 0 24px 70px rgba(32,38,70,.12);
  --radius: 26px;
  --max: 1180px;
}
html[data-theme='dark'] {
  --bg: #090b13;
  --surface: rgba(18,21,34,.84);
  --surface-solid: #121522;
  --surface-muted: #191d2c;
  --text: #f5f6fb;
  --muted: #a3aac0;
  --line: rgba(255,255,255,.10);
  --brand: #8d80ff;
  --brand-strong: #a69cff;
  --accent: #51d5ca;
  --shadow: 0 24px 80px rgba(0,0,0,.36);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(102,87,255,.15), transparent 30rem),
    radial-gradient(circle at 88% 16%, rgba(17,168,160,.11), transparent 26rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
button, select { font: inherit; }
img, svg { max-width: 100%; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 999; background: var(--text); color: var(--bg); padding: .75rem 1rem; border-radius: 10px; }
.skip-link:focus { top: 1rem; }
.container { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
.site-header { position: sticky; top: 0; z-index: 50; padding: .8rem 0; backdrop-filter: blur(16px); background: color-mix(in srgb, var(--bg) 72%, transparent); border-bottom: 1px solid transparent; }
.header-inner { min-height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .4rem .65rem .4rem 1rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: 0 10px 40px rgba(20,24,50,.07); }
.brand { display: inline-flex; align-items: center; gap: .75rem; font-weight: 850; letter-spacing: -.02em; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, var(--brand), var(--accent)); box-shadow: 0 10px 24px rgba(102,87,255,.25); }
.brand small { display: block; color: var(--muted); font-size: .72rem; font-weight: 650; letter-spacing: .03em; }
.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { padding: .65rem .8rem; border-radius: 10px; color: var(--muted); font-size: .92rem; font-weight: 700; }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); background: var(--surface-muted); }
.header-actions { display: flex; align-items: center; gap: .55rem; }
.theme-select { border: 1px solid var(--line); background: var(--surface-solid); color: var(--text); border-radius: 11px; padding: .58rem .65rem; cursor: pointer; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 11px; padding: .55rem .75rem; font-weight: 800; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-menu { position: absolute; top: calc(100% + .65rem); right: 0; width: min(280px, calc(100vw - 2rem)); padding: .6rem; display: grid; background: var(--surface-solid); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.mobile-menu a { padding: .75rem; border-radius: 10px; font-weight: 750; color: var(--muted); }
.mobile-menu a:hover { background: var(--surface-muted); color: var(--text); }
main { overflow: clip; }
.hero { padding: clamp(4.5rem, 10vw, 8rem) 0 4rem; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .55rem; padding: .42rem .72rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .82rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.eyebrow::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 18%, transparent); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; margin-top: 0; }
h1 { font-size: clamp(3rem, 8vw, 6.6rem); margin: 1.1rem 0 1.35rem; max-width: 12ch; }
h1 .gradient, .gradient-text { background: linear-gradient(115deg, var(--brand-strong), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { max-width: 64ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.hero-actions, .button-row { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 2rem; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 46px; padding: .72rem 1rem; border-radius: 13px; border: 1px solid var(--line); font-weight: 800; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.btn:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); }
.btn-primary { color: white; border-color: transparent; background: linear-gradient(135deg, var(--brand), var(--brand-strong)); box-shadow: 0 14px 28px rgba(102,87,255,.24); }
.btn-secondary { background: var(--surface); }
.profile-card { position: relative; min-height: 480px; padding: 1.25rem; border: 1px solid var(--line); border-radius: 34px; background: linear-gradient(155deg, color-mix(in srgb, var(--surface-solid) 88%, var(--brand) 12%), var(--surface)); box-shadow: var(--shadow); overflow: hidden; }
.profile-card::before, .profile-card::after { content: ''; position: absolute; border-radius: 50%; filter: blur(2px); }
.profile-card::before { width: 260px; height: 260px; right: -70px; top: -50px; background: rgba(102,87,255,.18); }
.profile-card::after { width: 180px; height: 180px; left: -60px; bottom: -50px; background: rgba(17,168,160,.16); }
.profile-visual { position: relative; z-index: 1; height: 100%; min-height: 450px; display: grid; align-content: space-between; padding: 1.4rem; border-radius: 25px; border: 1px solid var(--line); background: linear-gradient(180deg, transparent, color-mix(in srgb, var(--surface-solid) 80%, transparent)), url('/profile-placeholder.svg') center/cover no-repeat; }
.profile-label { width: fit-content; padding: .5rem .7rem; border-radius: 999px; background: var(--surface-solid); border: 1px solid var(--line); font-size: .8rem; font-weight: 800; }
.profile-copy { padding: 1rem; border-radius: 18px; background: color-mix(in srgb, var(--surface-solid) 84%, transparent); border: 1px solid var(--line); backdrop-filter: blur(12px); }
.profile-copy strong { display: block; font-size: 1.2rem; }
.profile-copy span { color: var(--muted); }
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-muted { border-block: 1px solid var(--line); background: color-mix(in srgb, var(--surface-muted) 54%, transparent); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2rem; align-items: end; margin-bottom: 2.2rem; }
.section-head h2 { font-size: clamp(2.2rem, 5vw, 4rem); margin-bottom: 0; }
.section-head p { color: var(--muted); margin: 0; max-width: 64ch; }
.grid { display: grid; gap: 1rem; }
.grid-2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { position: relative; padding: 1.35rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 14px 45px rgba(25,30,65,.055); overflow: hidden; }
.card::after { content: ''; position: absolute; width: 100px; height: 100px; border-radius: 50%; right: -55px; bottom: -55px; background: color-mix(in srgb, var(--brand) 10%, transparent); }
.card h3 { font-size: 1.35rem; margin-bottom: .6rem; }
.card p { color: var(--muted); margin: 0; }
.card-link { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1.1rem; color: var(--brand-strong); font-weight: 850; }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.icon-box { width: 44px; height: 44px; display: grid; place-items: center; margin-bottom: 1rem; border-radius: 14px; color: var(--brand-strong); background: color-mix(in srgb, var(--brand) 11%, var(--surface-solid)); border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line)); }
.meta-row { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .85rem; }
.badge { display: inline-flex; align-items: center; padding: .35rem .58rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-muted); color: var(--muted); font-size: .76rem; font-weight: 800; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; margin-top: 2.4rem; }
.stat { padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.stat strong { display: block; font-size: 2rem; letter-spacing: -.04em; }
.stat span { color: var(--muted); font-size: .88rem; }
.logo-card { min-height: 160px; display: grid; align-content: space-between; }
.logo-word { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 900; letter-spacing: -.055em; }
.timeline { position: relative; display: grid; gap: 1rem; }
.timeline::before { content: ''; position: absolute; left: 16px; top: 10px; bottom: 10px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-left: 3.3rem; }
.timeline-dot { position: absolute; left: 7px; top: .25rem; width: 20px; height: 20px; border: 5px solid var(--bg); border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 1px var(--line); }
.timeline-item strong { display: block; }
.timeline-item p { margin: .2rem 0 0; color: var(--muted); }
.contact-panel { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; padding: clamp(1.5rem, 5vw, 3rem); border: 1px solid var(--line); border-radius: 32px; background: linear-gradient(135deg, color-mix(in srgb, var(--brand) 12%, var(--surface-solid)), var(--surface)); box-shadow: var(--shadow); }
.contact-panel h2 { font-size: clamp(2rem, 5vw, 3.5rem); margin-bottom: .8rem; }
.contact-panel p { color: var(--muted); }
.contact-address { padding: 1.2rem; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-solid); word-break: break-word; }
.contact-address small { display: block; color: var(--muted); }
.contact-address strong { font-size: clamp(1rem, 3vw, 1.25rem); }
.page-hero { padding: clamp(4rem, 8vw, 7rem) 0 3rem; text-align: center; }
.page-hero h1 { max-width: 14ch; margin-inline: auto; font-size: clamp(3rem, 8vw, 6rem); }
.page-hero .lead { margin-inline: auto; }
.filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: 1.5rem 0 2.2rem; }
.filter-chip { padding: .5rem .75rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); font-weight: 750; font-size: .85rem; }
.detail-hero { padding: 4.5rem 0 2rem; }
.detail-hero h1 { font-size: clamp(3rem, 7vw, 5.5rem); }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 1.2rem; align-items: start; }
.prose-card h2 { font-size: 2rem; margin-top: 2.3rem; }
.prose-card h2:first-child { margin-top: 0; }
.prose-card p, .prose-card li { color: var(--muted); }
.prose-card ul { padding-left: 1.2rem; }
.sidebar-card { position: sticky; top: 100px; }
.key-list { display: grid; gap: .75rem; }
.key-list div { padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.key-list div:last-child { border-bottom: 0; }
.key-list small { color: var(--muted); display: block; }
.key-list strong { display: block; margin-top: .12rem; }
.notice { padding: 1rem 1.1rem; border-left: 4px solid var(--accent); border-radius: 0 14px 14px 0; background: color-mix(in srgb, var(--accent) 9%, var(--surface)); color: var(--muted); }
.site-footer { padding: 3rem 0 2rem; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, .7fr); gap: 2rem; }
.footer-title { font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: .8rem; }
.footer-links { display: grid; gap: .5rem; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }
.reveal { animation: rise .65s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }
@media (max-width: 920px) {
  .nav { display: none; }
  .mobile-nav { display: block; }
  .hero-grid, .section-head, .contact-panel, .detail-layout { grid-template-columns: 1fr; }
  .profile-card { min-height: 400px; }
  .profile-visual { min-height: 370px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .container { width: min(calc(100% - 1.2rem), var(--max)); }
  .header-inner { border-radius: 14px; padding-left: .7rem; }
  .brand-text small { display: none; }
  .theme-select { max-width: 84px; }
  h1 { font-size: clamp(2.7rem, 15vw, 4.5rem); }
  .grid-2, .grid-3, .grid-4, .stats, .footer-grid { grid-template-columns: 1fr; }
  .hero-actions .btn, .button-row .btn { width: 100%; }
  .footer-bottom { flex-direction: column; }
}
