:root {
  color-scheme: dark;
  --bg: #05070b;
  --bg-soft: #0a0f18;
  --panel: #101722;
  --panel-strong: #172232;
  --line: rgba(255, 255, 255, 0.12);
  --text: #eef7ff;
  --muted: #a8b7c7;
  --faint: #748396;
  --blue: #106eca;
  --teal: #07d3cd;
  --navy: #0e1d36;
  --danger: #ef5350;
  --radius: 18px;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 80% 0%, rgba(7, 211, 205, 0.12), transparent 26rem),
    radial-gradient(circle at 12% 20%, rgba(16, 110, 202, 0.18), transparent 22rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(5, 7, 11, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 800;
  text-decoration: none;
  letter-spacing: 0;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(7, 211, 205, 0.18);
}

.site-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.site-nav a,
.site-footer a {
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.site-nav .nav-director-link {
  margin-left: 8px;
  padding: 9px 14px;
  border: 1px solid rgba(7, 211, 205, 0.32);
  border-radius: 999px;
  background: rgba(7, 211, 205, 0.1);
  color: var(--text);
  box-shadow: 0 10px 28px rgba(7, 211, 205, 0.1);
}

.site-nav .nav-director-link:hover {
  border-color: rgba(7, 211, 205, 0.7);
  background: rgba(7, 211, 205, 0.18);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
  min-height: calc(100vh - 72px);
  padding: clamp(56px, 8vw, 108px) clamp(18px, 6vw, 88px) 48px;
}

.hero-copy {
  min-width: 0;
  max-width: 710px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--teal);
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(3.25rem, 8vw, 7.4rem);
  line-height: 0.91;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 9px;
  font-size: 1.1rem;
}

.hero-text,
.request-copy p,
.page-card p,
.legal-card p,
.feature-card p {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  margin-bottom: 28px;
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button:disabled {
  cursor: progress;
  filter: grayscale(0.35);
  opacity: 0.7;
}

.button.primary {
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 16px 34px rgba(7, 211, 205, 0.18);
}

.button.secondary {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--line);
}

.button.danger {
  background: var(--danger);
}

.hero-panel {
  display: flex;
  justify-content: center;
  min-width: 0;
}

.phone-shell {
  width: min(100%, 520px);
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(145deg, #162237, #06080d);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
}

.screen {
  display: grid;
  grid-template-columns: 42px 1fr;
  min-width: 0;
  min-height: 310px;
  overflow: hidden;
  border-radius: 22px;
  background: #000;
}

.mock-sidebar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 18px;
  background: #2f333a;
}

.mock-sidebar span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
}

.mock-sidebar span:nth-child(2) {
  background: #63d17a;
}

.mock-sidebar span:nth-child(3) {
  margin-top: auto;
  margin-bottom: 18px;
  background: #fff;
}

.mock-main {
  min-width: 0;
  padding: 18px;
}

.mock-topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.mock-topbar strong {
  color: var(--text);
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mock-sheet {
  margin-top: 18px;
  min-height: 220px;
  padding: 22px;
  border-radius: 10px;
  background: #fff;
}

.mock-sheet i,
.mock-sheet b {
  display: block;
  height: 3px;
  margin-bottom: 13px;
  background: #111;
  opacity: 0.75;
}

.mock-sheet i:nth-child(2),
.mock-sheet b:nth-child(6) {
  width: 74%;
}

.mock-sheet i:nth-child(4),
.mock-sheet b:nth-child(7) {
  width: 58%;
}

.section,
.page,
.legal {
  padding: 34px clamp(18px, 6vw, 88px);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 24px;
}

.feature-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.info-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.feature-card,
.page-card,
.legal-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.82);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.feature-card {
  padding: 22px;
}

.feature-card a {
  color: var(--teal);
  font-weight: 800;
  text-decoration: none;
}

.request-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(320px, 1fr);
  gap: 28px;
  align-items: start;
  padding-bottom: 72px;
}

.request-copy {
  position: sticky;
  top: 100px;
}

.request-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.9);
}

.request-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.request-form .wide {
  grid-column: 1 / -1;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #070b12;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus {
  outline: 2px solid rgba(7, 211, 205, 0.35);
  border-color: rgba(7, 211, 205, 0.55);
}

.form-note {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--faint);
  font-size: 0.9rem;
}

.form-status {
  min-height: 22px;
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 750;
}

.form-status:empty {
  display: none;
}

.form-status[data-kind="success"] {
  color: #63d17a;
}

.form-status[data-kind="error"] {
  color: #ff8c8c;
}

.page,
.legal {
  max-width: 1080px;
  margin: 0 auto;
  padding-top: 72px;
  padding-bottom: 72px;
}

.page-card,
.legal-card {
  padding: clamp(24px, 5vw, 44px);
}

.page-card h1,
.legal-card h1 {
  font-size: clamp(2.2rem, 6vw, 4.8rem);
}

.muted-card {
  margin-top: 18px;
  background: rgba(14, 29, 54, 0.7);
}

.legal-card {
  max-width: 860px;
  margin: 0 auto;
}

.legal-card h2 {
  margin-top: 28px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.legal-card a {
  color: var(--teal);
}

.director-page {
  padding: 48px clamp(18px, 5vw, 72px) 72px;
}

.director-auth {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: 28px;
  align-items: start;
  min-height: calc(100vh - 220px);
}

.director-app {
  display: grid;
  gap: 18px;
}

.portal-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.portal-topbar h1,
.director-auth h1 {
  margin-bottom: 12px;
  font-size: clamp(2.4rem, 6vw, 5.6rem);
}

.portal-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) minmax(0, 1fr);
  gap: 18px;
}

.portal-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(16, 23, 34, 0.9);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.panel-heading-inline {
  display: flex;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading-inline h2 {
  margin-bottom: 0;
  font-size: clamp(1.35rem, 3vw, 2.1rem);
}

.portal-card label,
.portal-form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #070b12;
  color: var(--text);
  font: inherit;
  padding: 12px 13px;
}

select:focus {
  outline: 2px solid rgba(7, 211, 205, 0.35);
  border-color: rgba(7, 211, 205, 0.55);
}

.portal-form-grid {
  display: grid;
  gap: 14px;
}

.portal-form-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.portal-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.member-list {
  display: grid;
  gap: 8px;
  max-height: 320px;
  overflow: auto;
}

.member-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.045);
}

.member-row span,
.muted {
  color: var(--muted);
}

.file-picker.smart {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 22px;
  border: 1px dashed rgba(7, 211, 205, 0.38);
  border-radius: var(--radius);
  background: rgba(7, 211, 205, 0.055);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
}

.file-picker.smart strong {
  color: var(--text);
}

.file-picker.smart input {
  display: none;
}

.rights-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.rights-check input {
  width: 18px;
  min-width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: var(--teal);
}

.upload-review {
  overflow-x: auto;
}

.review-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

.review-table th,
.review-table td {
  padding: 11px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.review-table th {
  color: var(--faint);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.review-table small {
  display: block;
  color: var(--faint);
  margin-top: 4px;
}

.review-table select[multiple] {
  min-height: 132px;
}

.portal-records {
  display: grid;
  gap: 10px;
}

.portal-record {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
}

.portal-record h3 {
  margin-bottom: 3px;
}

.portal-record p {
  margin-bottom: 0;
  color: var(--muted);
}

.record-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.button.compact {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 0.86rem;
}

.code-step {
  display: grid;
  gap: 12px;
}

.updated {
  color: var(--faint);
  font-weight: 700;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px clamp(18px, 4vw, 56px);
  border-top: 1px solid var(--line);
  color: var(--faint);
}

.site-footer span {
  font-weight: 850;
  color: var(--text);
}

.director-login-body,
.director-portal-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(14, 29, 54, 0.58), transparent 42%),
    radial-gradient(circle at 85% 16%, rgba(7, 211, 205, 0.12), transparent 24rem),
    #020409;
}

.director-login-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px clamp(22px, 5vw, 70px);
}

.director-exit-link {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.director-exit-link:hover {
  color: var(--text);
}

.director-login-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 440px);
  gap: clamp(26px, 6vw, 76px);
  align-items: center;
  min-height: calc(100vh - 86px);
  padding: clamp(28px, 6vw, 80px) clamp(22px, 7vw, 96px);
}

.director-login-copy {
  max-width: 720px;
}

.director-login-copy h1 {
  margin-bottom: 18px;
  font-size: clamp(3.7rem, 9vw, 8rem);
}

.director-login-copy p:not(.eyebrow) {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
}

.director-login-card {
  display: grid;
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(10, 15, 24, 0.88);
  box-shadow: var(--shadow);
}

.director-login-card h2 {
  margin-bottom: 0;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}

.director-login-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 800;
}

.director-portal {
  min-height: 100vh;
}

.portal-shell-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px clamp(18px, 4vw, 44px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(2, 4, 9, 0.9);
  backdrop-filter: blur(18px);
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 850;
  text-decoration: none;
}

.portal-topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.portal-email {
  max-width: 34vw;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.portal-loading {
  padding: 28px clamp(18px, 4vw, 44px) 54px;
}

.portal-loading {
  display: grid;
  place-content: center start;
  min-height: calc(100vh - 68px);
}

.portal-loading h1 {
  margin-bottom: 12px;
  font-size: clamp(2.5rem, 6vw, 5.7rem);
}

.director-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 18px;
  min-height: calc(100vh - 69px);
  padding: 18px clamp(18px, 4vw, 44px) 44px;
}

.director-sidebar {
  position: sticky;
  top: 87px;
  align-self: start;
  display: grid;
  gap: 18px;
  max-height: calc(100vh - 112px);
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(13, 18, 27, 0.94);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.24);
}

.director-sidebar-title h1 {
  margin-bottom: 0;
  font-size: 1.65rem;
  line-height: 1.06;
}

.director-tabs {
  display: grid;
  gap: 8px;
}

.director-tab {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 42px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 850;
  padding: 10px 12px;
  cursor: pointer;
}

.director-tab:hover {
  background: rgba(255, 255, 255, 0.055);
  color: var(--text);
}

.director-tab.is-active {
  border-color: rgba(7, 211, 205, 0.42);
  background: rgba(7, 211, 205, 0.12);
  color: var(--text);
}

.portal-band-switcher {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 800;
}

.director-main {
  min-width: 0;
}

.director-tab-panel {
  display: grid;
  gap: 16px;
}

.portal-section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  min-height: 76px;
}

.portal-section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.9rem, 4vw, 3.35rem);
}

.portal-summary-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1fr);
  gap: 16px;
}

.summary-card h2 {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.director-portal-body .portal-card {
  border-radius: 12px;
  background: rgba(13, 18, 27, 0.94);
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero,
  .request-section,
  .director-login-page,
  .director-auth,
  .portal-grid,
  .director-workspace,
  .portal-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero {
    min-height: auto;
    overflow: hidden;
  }

  .hero-copy,
  .request-copy,
  .section-heading {
    width: 100%;
    min-width: 0;
  }

  .hero-panel {
    justify-content: flex-start;
  }

  .phone-shell {
    width: 100%;
    max-width: 520px;
    transform: none;
  }

  .feature-grid,
  .info-grid,
  .portal-form-grid.four {
    grid-template-columns: 1fr 1fr;
  }

  .request-copy {
    position: static;
  }

  .director-login-page {
    align-items: start;
    min-height: auto;
  }

  .director-sidebar {
    position: static;
    max-height: none;
  }

  .director-tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .director-tab {
    justify-content: center;
    min-width: max-content;
    width: auto;
  }

  .portal-section-heading {
    min-height: auto;
  }
}

@media (max-width: 620px) {
  .site-nav {
    gap: 12px;
  }

  .feature-grid,
  .info-grid,
  .request-form,
  .portal-form-grid.four {
    grid-template-columns: 1fr;
  }

  .hero,
  .section,
  .page,
  .legal,
  .director-page,
  .director-login-page,
    .portal-loading,
  .director-workspace {
    padding-left: 30px;
    padding-right: 30px;
  }

  .hero-copy,
  .hero-text,
  .section-heading,
  .request-copy,
  .phone-shell,
  .feature-card,
  .page-card,
  .legal-card,
  .portal-card {
    max-width: calc(100vw - 60px);
  }

  .portal-topbar,
  .portal-record,
  .member-row,
  .portal-shell-topbar,
  .portal-topbar-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-email {
    max-width: calc(100vw - 60px);
  }

  .director-sidebar,
  .director-main {
    max-width: calc(100vw - 60px);
  }

  .screen {
    min-height: 250px;
  }

  .mock-sheet {
    min-height: 165px;
  }
}
