@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

:root {
  font-family: "DM Sans", sans-serif;
  color: #22213a;
  background: #f7f8fc;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --purple: #6d5ce7;
  --muted: #85849a;
  --border: #eeedf4;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; min-width: 320px; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.topbar {
  height: 96px;
  padding: 0 max(6.5%, calc((100% - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid #f0eff5;
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(12px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font: 800 19px "Manrope", sans-serif; letter-spacing: -.7px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; color: white; background: var(--purple); border-radius: 11px; font-size: 17px; }
.brand-period { color: var(--purple); }
.company-brand { display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0; }
.company-emblem { display: block; width: 94px; height: 94px; flex: 0 0 94px; outline: 2px solid #000; outline-offset: 3px; border-radius: 50%; object-fit: contain; }
.company-name { display: grid; gap: 2px; text-transform: uppercase; letter-spacing: .7px; line-height: 1.2; }
.company-name span { color: #77768b; font-size: 12px; font-weight: 700; }
.company-name strong { color: #343249; font: 800 16px "Manrope", sans-serif; letter-spacing: .25px; }
.navigation { display: flex; align-items: center; gap: 34px; height: 100%; }
.nav-link { color: #77768b; font-size: 13px; font-weight: 600; height: 100%; display: inline-flex; align-items: center; position: relative; transition: color .2s; }
.nav-link:hover, .nav-link.active { color: var(--purple); }
.nav-link.active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: 0; background: var(--purple); border-radius: 2px; }
.menu-toggle { display: none; }

.section-wrap { width: min(1050px, 87%); margin-inline: auto; }
.hero { min-height: 388px; margin-top: 38px; padding: 52px 8%; border-radius: 22px; background: #f0edff; display: flex; align-items: center; justify-content: space-between; overflow: hidden; position: relative; }
.hero-copy { position: relative; z-index: 1; max-width: 510px; }
.eyebrow { color: var(--purple); font-size: 10px; font-weight: 700; letter-spacing: 1.15px; }
.hero .eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; background: white; border-radius: 20px; letter-spacing: .25px; font-size: 11px; }
.status-dot { width: 7px; height: 7px; background: #65cda1; border-radius: 50%; }
h1, h2, p { margin-top: 0; }
h1, h2 { font-family: "Manrope", sans-serif; letter-spacing: -1.5px; }
h1 { margin: 20px 0 12px; font-size: clamp(34px, 4vw, 48px); line-height: 1.13; font-weight: 800; }
.hero h1 { font-size: clamp(30px, 3.5vw, 42px); }
h1 span { color: var(--purple); }
.hero-copy > p { max-width: 440px; margin-bottom: 24px; color: #77758e; font-size: 14px; line-height: 1.8; }
.button { min-height: 45px; padding: 0 18px; border: 0; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; font-weight: 600; font-size: 12px; cursor: pointer; transition: transform .2s, box-shadow .2s; }
.button:hover { transform: translateY(-2px); box-shadow: 0 7px 18px #6250df40; }
.button-primary { background: var(--purple); color: #fff; }
.button span { font-size: 17px; }
.hero-art { width: 310px; height: 270px; flex: 0 0 310px; position: relative; display: grid; place-items: center; }
.art-orbit { position: absolute; border: 1px solid #d9d3ff; border-radius: 50%; }
.orbit-one { width: 255px; height: 255px; }
.orbit-two { width: 205px; height: 205px; }
.art-card { width: 222px; padding: 21px; background: white; border-radius: 16px; box-shadow: 0 18px 45px #5140b51a; transform: rotate(-4deg); position: relative; z-index: 1; }
.art-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.art-avatar { width: 47px; height: 47px; display: grid; place-items: center; background: #fff1e9; border-radius: 14px; font-size: 24px; }
.art-badge { background: #f1edff; color: var(--purple); padding: 6px 9px; border-radius: 12px; font-size: 10px; font-weight: 700; }
.art-line { height: 8px; background: #efedf7; border-radius: 8px; margin-bottom: 8px; }
.line-long { width: 75%; }.line-short { width: 48%; }
.art-card-bottom { display: flex; align-items: center; margin-top: 20px; }
.art-mini-avatar { width: 26px; height: 26px; border: 2px solid white; border-radius: 50%; display: grid; place-items: center; margin-right: -6px; background: #d8d0ff; color: #5c4acb; font-size: 10px; font-weight: 700; }
.avatar-two { background: #ffe1cf; color: #c6784c; }.avatar-three { background: #d8f2e8; color: #42886b; }
.art-count { margin-left: 13px; color: #85849a; font-size: 9px; }
.art-sparkle { position: absolute; color: var(--purple); }.sparkle-one { top: 16px; right: 46px; font-size: 22px; }.sparkle-two { bottom: 20px; left: 22px; color: #f5a876; font-size: 20px; }

.quick-actions { padding-top: 53px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 21px; }
.section-heading h2 { margin: 6px 0 0; font-size: 23px; line-height: 1.25; letter-spacing: -.8px; }
.section-heading > p { margin: 0 0 3px; color: var(--muted); font-size: 12px; }
.action-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.action-card { min-height: 90px; padding: 18px 20px; display: flex; align-items: center; gap: 15px; background: white; border: 1px solid #f0eff5; border-radius: 13px; transition: transform .2s, box-shadow .2s; }
.action-card:hover { transform: translateY(-3px); box-shadow: 0 10px 26px #2820470c; }
.action-icon { width: 43px; height: 43px; display: grid; place-items: center; border-radius: 12px; font-size: 22px; }
.icon-purple { color: #6754df; background: #f0edff; }.icon-peach { color: #d8875c; background: #fff1e9; }
.action-text { display: grid; gap: 5px; flex: 1; }.action-text strong { font-size: 13px; }.action-text span { color: var(--muted); font-size: 11px; }
.action-arrow { color: #aaa8ba; font-size: 17px; }

.content-section { padding-top: 54px; }
.form-card, .table-card { padding: 25px; background: white; border: 1px solid #f0eff5; border-radius: 13px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; }
.field { display: grid; gap: 8px; color: #46445d; font-size: 11px; font-weight: 600; }
.required { color: #e87474; }
.field input, .field select { height: 43px; width: 100%; padding: 0 13px; border: 1px solid #e9e8f0; border-radius: 8px; outline: none; color: #29273e; font: inherit; font-size: 12px; transition: border-color .2s, box-shadow .2s; }
.field input::placeholder { color: #b3b1c0; }
.field input:focus, .field select:focus { border-color: #9589f2; box-shadow: 0 0 0 3px #6d5ce71a; }
.form-footer { margin-top: 22px; padding-top: 18px; border-top: 1px solid #f1f0f5; display: flex; align-items: center; justify-content: space-between; }
.form-footer p { margin: 0; color: var(--muted); font-size: 11px; }
.form-message { min-height: 0; margin: 0; color: #28845f; font-size: 12px; }.form-message:not(:empty) { margin-top: 13px; }
.form-message.message-error { color: #bd4141; }
.registration-page { min-height: calc(100vh - 166px); padding-bottom: 60px; }
.registration-page .section-heading { align-items: center; }
.registration-page .section-heading h1 { margin: 6px 0 0; font-size: 30px; line-height: 1.2; }
.back-link { display: inline-block; margin-top: 18px; color: var(--purple); font-size: 12px; font-weight: 600; }
.directory-page { min-height: calc(100vh - 166px); }
.directory-page .section-heading h1 { margin: 6px 0 0; font-size: 30px; line-height: 1.2; }
.directory-login { max-width: 620px; margin: 28px auto 0; }
.directory-login h2 { margin: 0 0 8px; font-size: 19px; letter-spacing: -.5px; }
.directory-login > p:not(.form-message) { margin-bottom: 20px; color: var(--muted); font-size: 12px; }
#directory-content[hidden], #directory-login[hidden] { display: none; }
.directory-login .form-footer { justify-content: flex-end; }
.people-heading { margin-top: 28px; }
.people-section { padding-bottom: 60px; }
.people-heading { align-items: center; }
.count-pill { padding: 7px 11px; border-radius: 18px; background: #f0edff; color: var(--purple); font-size: 11px; font-weight: 600; }
.table-card { padding: 0; overflow: hidden; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th { padding: 15px 20px; background: #fbfaff; color: #88869b; font-size: 10px; font-weight: 600; }
td { padding: 14px 20px; border-top: 1px solid #f2f1f6; color: #5f5d72; font-size: 12px; }
.person-name { display: flex; align-items: center; gap: 10px; color: #302e46; font-weight: 600; }
.person-avatar { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: #f0edff; color: #6754df; font-size: 11px; font-weight: 700; }
.empty-state { min-height: 190px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--muted); font-size: 11px; }
.empty-icon { width: 37px; height: 37px; margin-bottom: 4px; border-radius: 12px; display: grid; place-items: center; background: #f3f0ff; color: var(--purple); font-size: 21px; }
.empty-state strong { color: #46445d; font-size: 12px; }.empty-state a { margin-top: 3px; color: var(--purple); font-weight: 600; }
.footer { min-height: 70px; padding: 15px max(6.5%, calc((100% - 1160px) / 2)); border-top: 1px solid #eeedf4; background: white; display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }
.small-brand { gap: 7px; color: #36344b; font-size: 14px; }.small-brand .brand-mark { width: 25px; height: 25px; border-radius: 8px; font-size: 13px; }
.footer-logo { width: 32px; height: 32px; border-radius: 50%; object-fit: contain; }

@media (max-width: 700px) {
  .topbar { height: 76px; padding-inline: 6.5%; }
  .company-emblem { width: 70px; height: 70px; flex-basis: 70px; }
  .company-name span { font-size: 10px; }
  .company-name strong { font-size: 13px; }
  .menu-toggle { width: 38px; height: 38px; padding: 9px; display: flex; flex-direction: column; justify-content: center; gap: 5px; border: 0; background: transparent; cursor: pointer; }
  .menu-toggle span { width: 20px; height: 2px; background: #55536b; border-radius: 2px; }
  .navigation { display: none; position: absolute; top: 75px; left: 0; right: 0; height: auto; padding: 10px 6.5% 16px; background: white; border-bottom: 1px solid var(--border); align-items: stretch; gap: 0; }
  .navigation.open { display: flex; flex-direction: column; }
  .nav-link { min-height: 43px; }.nav-link.active::after { left: auto; width: 24px; }
  .section-wrap { width: 88%; }
  .hero { margin-top: 22px; padding: 37px 8%; min-height: 0; }
  .hero-art { display: none; }
  h1 { font-size: clamp(33px, 8vw, 43px); }
  .hero h1 { font-size: clamp(30px, 7vw, 38px); }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-heading h2 { font-size: 21px; }
  .registration-page .section-heading h1 { font-size: 25px; }
  .directory-page .section-heading h1 { font-size: 25px; }
  .section-heading > p { font-size: 11px; }
  .quick-actions, .content-section { padding-top: 40px; }
  .action-grid { grid-template-columns: 1fr; gap: 10px; }
  .form-card { padding: 19px; }
  .form-grid { grid-template-columns: 1fr; gap: 16px; }
  .form-footer { align-items: flex-start; gap: 14px; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .people-heading { align-items: flex-start; }
  .table-card { margin-inline: -1px; }
  th, td { padding-inline: 13px; white-space: nowrap; }
  .footer { padding-inline: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
