:root {
  --bg: #07110f;
  --bg-soft: #0d1916;
  --bg-panel: rgba(13, 25, 22, 0.9);
  --bg-elevated: rgba(255, 255, 255, 0.06);
  --bg-glass: rgba(255, 255, 255, 0.04);
  --surface: rgba(255, 255, 255, 0.05);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --line: rgba(226, 199, 143, 0.16);
  --line-soft: rgba(255, 255, 255, 0.08);
  --gold: #c8a96b;
  --gold-strong: #ead7af;
  --mint: #9fcec1;
  --danger: #ff8a80;
  --success: #8fd9b2;
  --text: #f8f3ea;
  --muted: rgba(248, 243, 234, 0.72);
  --muted-strong: rgba(248, 243, 234, 0.86);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.36);
  --shadow-soft: 0 18px 40px rgba(0, 0, 0, 0.2);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 1240px;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-sans: "Avenir Next", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(200, 169, 107, 0.14), transparent 24%),
    radial-gradient(circle at left 20%, rgba(97, 169, 149, 0.12), transparent 28%),
    linear-gradient(180deg, #07110f 0%, #050908 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

body.portal-app {
  background:
    radial-gradient(circle at top left, rgba(200, 169, 107, 0.08), transparent 20%),
    radial-gradient(circle at right 10%, rgba(125, 193, 173, 0.08), transparent 20%),
    linear-gradient(180deg, #06100f 0%, #040807 100%);
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.page-shell {
  position: relative;
}

.page-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 0%, rgba(234, 215, 175, 0.08), transparent 22%),
    radial-gradient(circle at 0% 35%, rgba(159, 206, 193, 0.05), transparent 24%);
  pointer-events: none;
}

.container {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
}

.section {
  position: relative;
  padding: 42px 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 28px;
}

.section-head h2,
.cta-copy h2,
.hero-copy h1,
.app-page-title h1,
.app-card h2,
.showcase h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.section-head h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.96;
}

.section-head p,
.hero-copy p,
.cta-copy p,
.body-copy,
.app-card p,
.feature-card p,
.metric-card p,
.stack-card p,
.timeline-item p,
.list-card p,
.showcase p {
  color: var(--muted);
  line-height: 1.75;
}

.body-copy {
  font-size: 16px;
}

.section-head p {
  max-width: 560px;
  margin: 0;
}

.eyebrow,
.label-pill,
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--gold-strong);
  padding: 10px 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.status-pill {
  padding: 8px 12px;
  letter-spacing: 0.08em;
}

.status-pill.success {
  color: var(--success);
  border-color: rgba(143, 217, 178, 0.18);
  background: rgba(143, 217, 178, 0.1);
}

.status-pill.warning {
  color: var(--gold-strong);
}

.status-pill.danger {
  color: var(--danger);
  border-color: rgba(255, 138, 128, 0.2);
  background: rgba(255, 138, 128, 0.1);
}

.topbar {
  position: relative;
  z-index: 5;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(90deg, rgba(200, 169, 107, 0.16), rgba(255, 255, 255, 0.02), rgba(159, 206, 193, 0.08));
}

.topbar-inner {
  min-height: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 8px 0;
  font-size: 12px;
  color: var(--muted);
}

.pill-row span {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(6, 12, 11, 0.76);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-inner {
  min-height: 82px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.brand-mark img {
  width: auto;
  height: 34px;
}

.brand-copy {
  min-width: 0;
}

.brand-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1;
}

.brand-copy small {
  display: block;
  margin-top: 4px;
  color: var(--gold-strong);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 26px;
}

.menu-only {
  display: none;
}

.nav-menu a,
.sidebar-nav a,
.subnav a {
  color: var(--muted);
  transition: color 0.22s ease, background 0.22s ease, border-color 0.22s ease, transform 0.22s ease;
}

.nav-menu a {
  position: relative;
  padding: 6px 0;
  font-size: 14px;
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 0;
  height: 1px;
  background: var(--gold-strong);
  transition: width 0.22s ease;
}

.nav-menu a:hover,
.nav-menu a.is-active {
  color: var(--gold-strong);
}

.nav-menu a:hover::after,
.nav-menu a.is-active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.menu-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.menu-toggle span,
.menu-toggle span::before,
.menu-toggle span::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  position: relative;
  transition: transform 0.22s ease, top 0.22s ease, opacity 0.22s ease;
}

.menu-toggle span::before {
  position: absolute;
  top: -6px;
}

.menu-toggle span::after {
  position: absolute;
  top: 6px;
}

.menu-toggle.is-active span {
  background: transparent;
}

.menu-toggle.is-active span::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle.is-active span::after {
  top: 0;
  transform: rotate(-45deg);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #1b140b;
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, #ba975c, #ead7af);
  box-shadow: 0 14px 28px rgba(200, 169, 107, 0.16);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.06);
  color: var(--muted-strong);
}

.btn-full {
  width: 100%;
}

.hero {
  position: relative;
  padding: 78px 0 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy {
  padding: 16px 0;
}

.hero-copy h1 {
  margin: 22px 0 18px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.95;
}

.hero-copy .highlight {
  color: var(--gold-strong);
}

.hero-copy p {
  max-width: 720px;
  margin: 0 0 30px;
  font-size: 18px;
}

.hero-actions,
.pill-row,
.dashboard-actions,
.footer-links,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.glass-card,
.feature-card,
.metric-card,
.stack-card,
.list-card,
.app-card,
.timeline-item,
.showcase,
.login-side,
.login-panel,
.calendar-card,
.document-card,
.status-card {
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.025));
  box-shadow: var(--shadow-soft);
}

.glass-card {
  padding: 22px;
}

.hero-point strong,
.metric-card strong,
.stack-card strong,
.list-card strong,
.app-card h2,
.showcase h2 {
  display: block;
  color: var(--gold-strong);
}

.hero-point strong,
.metric-card strong,
.stack-card strong {
  font-size: 24px;
  margin-bottom: 8px;
}

.hero-panel {
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 17, 15, 0.14), rgba(7, 17, 15, 0.88)),
    linear-gradient(140deg, rgba(200, 169, 107, 0.18), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hero-panel > * {
  position: relative;
  z-index: 1;
}

.hero-panel .panel-visual {
  min-height: 520px;
  border-radius: 26px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    linear-gradient(180deg, rgba(6, 11, 10, 0.15), rgba(6, 11, 10, 0.9)),
    url("../../mae.jpeg") center center / cover no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.panel-stack {
  display: grid;
  gap: 14px;
}

.floating-metric {
  width: fit-content;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(6, 11, 10, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.floating-metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.floating-metric strong {
  display: block;
  margin-top: 6px;
  font-size: 26px;
}

.hero-preview {
  display: grid;
  gap: 14px;
}

.preview-row,
.document-row,
.timeline-row,
.agenda-row,
.mini-stat-row,
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.preview-row div,
.document-row div,
.timeline-row div,
.agenda-row div,
.list-row div {
  display: grid;
  gap: 4px;
}

.preview-row strong,
.document-row strong,
.timeline-row strong,
.agenda-row strong,
.list-row strong {
  font-size: 15px;
}

.preview-row span,
.document-row span,
.timeline-row span,
.agenda-row span,
.list-row span {
  color: var(--muted);
  font-size: 13px;
}

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

.feature-card {
  padding: 26px;
}

.feature-card h3,
.stack-card h3,
.list-card h3,
.login-side h1,
.login-panel h1,
.app-page-title h1 {
  margin: 14px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1;
}

.feature-card ul,
.list-card ul,
.stack-card ul,
.app-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.showcase {
  padding: 34px;
}

.showcase-grid,
.login-layout,
.cta-grid,
.app-grid,
.dual-grid,
.documents-layout,
.agenda-layout {
  display: grid;
  gap: 20px;
}

.showcase-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
}

.showcase-copy h2 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 0.96;
  margin-bottom: 14px;
}

.showcase-side {
  display: grid;
  gap: 16px;
}

.stack-card,
.list-card,
.metric-card,
.status-card {
  padding: 22px;
}

.metric-grid,
.status-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.timeline {
  display: grid;
  gap: 14px;
}

.timeline-item {
  padding: 20px;
}

.timeline-item strong {
  display: block;
  margin-bottom: 8px;
  font-size: 18px;
}

.cta-wrap {
  padding: 44px;
}

.cta-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: center;
}

.cta-copy h2 {
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.96;
  margin: 16px 0;
}

.footer {
  position: relative;
  z-index: 2;
  padding: 26px 0 70px;
}

.footer-bar {
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: rgba(248, 243, 234, 0.62);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--gold-strong);
}

.floating-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 24;
  width: 58px;
  height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #d7bc84, #b58d53);
  color: #12110d;
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.24);
  font-size: 20px;
  font-weight: 700;
}

.floating-contact span {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.login-main {
  padding: 48px 0 60px;
}

.login-layout {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  align-items: stretch;
}

.login-side,
.login-panel {
  padding: 28px;
}

.login-panel h1 {
  margin-top: 16px;
}

.login-form {
  display: grid;
  gap: 16px;
}

.field-group {
  display: grid;
  gap: 8px;
}

.field-group label {
  color: var(--muted-strong);
  font-size: 13px;
  font-weight: 700;
}

.field-group input {
  width: 100%;
  min-height: 54px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 0 16px;
}

.field-group input::placeholder {
  color: rgba(248, 243, 234, 0.44);
}

.role-switch {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.role-card {
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.role-card:hover,
.role-card.is-selected {
  transform: translateY(-2px);
  border-color: rgba(234, 215, 175, 0.3);
  background: rgba(234, 215, 175, 0.08);
}

.role-card strong {
  display: block;
  margin-bottom: 6px;
  font-size: 16px;
}

.role-card p {
  margin: 0;
  font-size: 14px;
}

.quick-access {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.mini-note {
  color: var(--muted);
  font-size: 13px;
}

.app-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 22px;
  width: min(calc(100% - 32px), 1400px);
  margin: 0 auto;
  padding: 22px 0 40px;
}

.app-sidebar {
  position: sticky;
  top: 104px;
  align-self: start;
  padding: 24px;
  border-radius: 30px;
  background: rgba(7, 17, 15, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.sidebar-head {
  display: grid;
  gap: 14px;
  margin-bottom: 28px;
}

.sidebar-user {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.sidebar-user strong {
  display: block;
  font-size: 17px;
}

.sidebar-user span {
  display: block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 13px;
}

.sidebar-nav {
  display: grid;
  gap: 8px;
}

.sidebar-nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid transparent;
}

.sidebar-nav a:hover,
.sidebar-nav a.is-active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
}

.sidebar-foot {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.app-main {
  display: grid;
  gap: 20px;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 28px;
  border-radius: 30px;
  background: rgba(7, 17, 15, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-soft);
}

.app-page-title h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin: 14px 0 12px;
}

.app-page-title p {
  margin: 0;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.78;
}

.subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.subnav a {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.subnav a:hover,
.subnav a.is-active {
  color: var(--gold-strong);
  border-color: rgba(234, 215, 175, 0.22);
  background: rgba(234, 215, 175, 0.06);
}

.app-grid {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.95fr);
}

.app-stack {
  display: grid;
  gap: 20px;
}

.app-card {
  padding: 24px;
}

.app-card h2 {
  font-size: 28px;
  margin-bottom: 12px;
}

.app-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 18px;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.calendar-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.calendar-card {
  padding: 20px;
}

.calendar-card h3,
.document-card h3,
.status-card h3 {
  margin: 0 0 16px;
  font-family: var(--font-display);
  font-size: 25px;
  line-height: 1;
}

.calendar-slot,
.check-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.calendar-slot:first-of-type,
.check-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.calendar-slot strong,
.check-row strong {
  font-size: 14px;
}

.calendar-slot span,
.check-row span {
  color: var(--muted);
  font-size: 13px;
}

.documents-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.document-list,
.timeline-list,
.check-list {
  display: grid;
  gap: 12px;
}

.document-card,
.status-card {
  padding: 22px;
}

.document-card .document-row,
.status-card .timeline-row {
  padding-left: 0;
  padding-right: 0;
  background: transparent;
  border-radius: 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.document-card .document-row:first-of-type,
.status-card .timeline-row:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.agenda-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
}

.agenda-panel {
  display: grid;
  gap: 18px;
}

.week-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.day-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.day-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 16px;
}

.slot-chip {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-strong);
  font-size: 13px;
}

.divider {
  width: 100%;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

.muted {
  color: var(--muted);
}

@media (max-width: 1180px) {
  .feature-grid,
  .metric-grid,
  .status-grid,
  .calendar-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .showcase-grid,
  .cta-grid,
  .documents-layout,
  .agenda-layout,
  .app-grid,
  .hero-grid,
  .login-layout {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    position: static;
  }

  .sidebar-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .week-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 12px;
    border-radius: 24px;
    background: rgba(7, 17, 15, 0.98);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-soft);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-menu a {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.02);
  }

  .menu-only {
    display: block;
  }

  .nav-menu a::after {
    display: none;
  }

  .nav-actions .btn {
    display: none;
  }

  .header-inner {
    min-height: 78px;
  }

  .feature-grid,
  .metric-grid,
  .status-grid,
  .calendar-board,
  .mini-grid,
  .week-grid {
    grid-template-columns: 1fr;
  }

  .hero-points,
  .sidebar-nav {
    grid-template-columns: 1fr;
  }

  .app-topbar {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 680px) {
  .container,
  .app-shell {
    width: min(calc(100% - 24px), var(--max-width));
  }

  .hero {
    padding-top: 56px;
    padding-bottom: 36px;
  }

  .hero-copy h1 {
    font-size: clamp(36px, 11vw, 54px);
    line-height: 1.02;
  }

  .section {
    padding: 32px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: start;
    margin-bottom: 22px;
  }

  .section-head h2,
  .showcase-copy h2,
  .cta-copy h2,
  .app-page-title h1,
  .feature-card h3,
  .login-panel h1 {
    font-size: clamp(30px, 8vw, 42px);
  }

  .hero-copy p,
  .section-head p,
  .app-page-title p,
  .app-card p,
  .feature-card p,
  .showcase p,
  .body-copy {
    font-size: 15px;
  }

  .hero-panel,
  .feature-card,
  .glass-card,
  .showcase,
  .cta-wrap,
  .login-side,
  .login-panel,
  .app-card,
  .app-topbar,
  .document-card,
  .status-card,
  .calendar-card {
    padding: 20px;
  }

  .hero-panel .panel-visual {
    min-height: 420px;
    padding: 18px;
  }

  .role-switch {
    grid-template-columns: 1fr;
  }

  .footer {
    padding-bottom: 86px;
  }

  .floating-contact {
    right: 14px;
    bottom: 14px;
    width: 56px;
    height: 56px;
  }
}
