:root {
  color-scheme: light;
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #eef2f7;
  --surface-3: #e5ebf3;
  --text: #0a101b;
  --text-soft: #586475;
  --text-faint: #8590a0;
  --line: #dce2ea;
  --blue: #245fa8;
  --blue-light: #dceaff;
  --blue-deep: #0c2545;
  --navy: #0b1424;
  --success: #2a9d68;
  --danger: #d34e4e;
  --warning: #c27a21;
  --shadow: 0 24px 70px rgba(20, 37, 61, 0.1);
  --container: 1180px;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #080d15;
  --surface: #0d1521;
  --surface-2: #111c2b;
  --surface-3: #172438;
  --text: #f5f8fc;
  --text-soft: #a2adbc;
  --text-faint: #707d90;
  --line: #223044;
  --blue: #5d9eea;
  --blue-light: #172c47;
  --blue-deep: #aacdf6;
  --navy: #050910;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
  text-decoration: none;
}

svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin: 0 auto;
}

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  border-bottom: 1px solid transparent;
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
  transition: border-color 0.2s;
}

.site-header.scrolled {
  border-color: var(--line);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-mark {
  display: grid;
  width: 31px;
  height: 31px;
  place-items: center;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 600;
}

.nav-links > a:not(.button):hover {
  color: var(--text);
}

.icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  cursor: pointer;
}

.icon-button svg {
  width: 18px;
}

.theme-toggle .moon-icon,
[data-theme="dark"] .theme-toggle .sun-icon {
  display: none;
}

[data-theme="dark"] .theme-toggle .moon-icon {
  display: block;
}

.mobile-toggle {
  display: none;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 1px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.2s, background 0.2s, border-color 0.2s;
}

.button:hover {
  transform: translateY(-2px);
}

.button svg {
  width: 17px;
}

.button-small {
  min-height: 39px;
  padding: 0 17px;
  font-size: 13px;
}

.button-primary {
  background: var(--blue);
  color: #fff;
}

.button-primary:hover {
  background: color-mix(in srgb, var(--blue) 85%, #07111f);
}

.button-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--text);
}

.button-text {
  padding-right: 8px;
  padding-left: 8px;
  color: var(--text-soft);
}

.button-light {
  background: #fff;
  color: #0b1424;
}

.hero {
  overflow: hidden;
  padding: 180px 0 105px;
}

.hero-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 1.04fr 0.96fr;
  gap: 78px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 25px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--success) 16%, transparent);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

h1 {
  max-width: 670px;
  font-size: clamp(50px, 6vw, 78px);
  font-weight: 800;
}

.accent-text {
  color: var(--blue);
}

.hero-copy > p {
  max-width: 590px;
  margin: 26px 0 32px;
  color: var(--text-soft);
  font-size: 19px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.hero-proof {
  display: flex;
  margin-top: 55px;
  gap: 0;
}

.hero-proof > div {
  display: flex;
  min-width: 130px;
  flex-direction: column;
  border-right: 1px solid var(--line);
  margin-right: 26px;
  padding-right: 26px;
}

.hero-proof > div:last-child {
  border: 0;
}

.hero-proof strong {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.hero-proof span {
  color: var(--text-faint);
  font-size: 12px;
}

.hero-visual {
  position: relative;
}

.code-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid #24354d;
  background: #0b1424;
  box-shadow: 0 35px 100px rgba(9, 22, 40, 0.22);
  color: #c8d2e1;
}

.window-bar {
  display: flex;
  height: 48px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid #1c2a3d;
  padding: 0 17px;
  background: #101b2b;
}

.window-bar > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #435067;
}

.window-bar > span:first-child {
  background: #d9605e;
}

.window-bar > span:nth-child(2) {
  background: #d8a648;
}

.window-bar > span:nth-child(3) {
  background: #4caf73;
}

.window-bar small {
  margin-left: auto;
  color: #718097;
  font-family: monospace;
}

.code-lines {
  min-height: 300px;
  padding: 42px 24px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
  line-height: 2.2;
}

.code-lines p {
  display: flex;
  margin: 0;
  white-space: nowrap;
}

.code-lines i {
  width: 34px;
  color: #40516a;
  font-style: normal;
}

.code-lines .indent {
  margin-left: 24px;
}

.code-blue {
  color: #70aef1;
}

.code-green {
  color: #84ca9c;
}

.code-purple {
  color: #c099e7;
}

.code-orange {
  color: #e8aa74;
}

.code-gray {
  color: #8795aa;
}

.window-status {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1c2a3d;
  padding: 0 18px;
  color: #718097;
  font-size: 11px;
}

.window-status span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
}

.window-status b {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #4caf73;
}

.visual-glow {
  position: absolute;
  right: -70px;
  bottom: -100px;
  width: 390px;
  height: 300px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--blue) 20%, transparent);
  filter: blur(90px);
}

.section {
  padding: 112px 0;
}

.section-muted {
  border-block: 1px solid var(--line);
  background: var(--surface-2);
}

.section-index {
  display: block;
  margin-bottom: 22px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.section-heading {
  display: grid;
  align-items: end;
  margin-bottom: 55px;
  grid-template-columns: 1fr 0.66fr;
  gap: 70px;
}

h2 {
  font-size: clamp(37px, 4.2vw, 55px);
}

.section-heading > p,
.section-description,
.about-copy > p {
  color: var(--text-soft);
  font-size: 17px;
  line-height: 1.75;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.service-card {
  position: relative;
  display: flex;
  min-height: 350px;
  flex-direction: column;
  grid-column: span 6;
  overflow: hidden;
  border: 1px solid var(--line);
  padding: 30px 32px 0;
  background: var(--surface);
  box-shadow: 0 0 0 rgba(20, 37, 61, 0);
  transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  transform: scaleX(0);
  transform-origin: left;
  background: var(--blue);
  content: "";
  transition: transform 0.25s;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--blue) 35%, var(--line));
  box-shadow: var(--shadow);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card.featured {
  grid-column: span 7;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue-light) 65%, var(--surface)), var(--surface) 62%);
}

.service-card.featured + .service-card {
  grid-column: span 5;
}

.service-card-head {
  display: flex;
  align-items: center;
}

.service-number {
  color: var(--text-faint);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.service-badge {
  margin-left: 14px;
  padding: 5px 9px;
  background: var(--blue);
  color: #fff;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.service-icon {
  display: grid;
  width: 44px;
  height: 44px;
  margin-left: auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--blue) 18%, var(--line));
  background: color-mix(in srgb, var(--blue-light) 75%, var(--surface));
  color: var(--blue);
}

.service-icon svg {
  width: 20px;
}

.service-card-content {
  margin-top: 54px;
}

.service-card h3 {
  max-width: 410px;
  margin-bottom: 14px;
  font-size: 25px;
}

.service-card p {
  max-width: 460px;
  margin: 0;
  color: var(--text-soft);
  line-height: 1.7;
}

.service-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.service-footer > div {
  display: flex;
  flex-direction: column;
}

.service-footer > div > span {
  color: var(--text-faint);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-footer strong {
  margin-top: 1px;
  color: var(--text);
  font-size: 14px;
}

.service-footer a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.service-footer a svg {
  width: 16px;
  transition: transform 0.2s;
}

.service-footer a:hover svg {
  transform: translateX(4px);
}

.service-card-loading {
  min-height: 350px;
  animation: pulse 1.5s infinite;
  background: var(--surface-2);
}

@keyframes pulse {
  50% {
    opacity: 0.55;
  }
}

.process-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 120px;
}

.section-description {
  max-width: 450px;
  margin-top: 25px;
}

.process-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.process-list li {
  display: grid;
  border-top: 1px solid var(--line);
  padding: 28px 0;
  grid-template-columns: 66px 1fr;
}

.process-list li:last-child {
  border-bottom: 1px solid var(--line);
}

.process-list > li > span {
  color: var(--blue);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
}

.process-list h3 {
  margin-bottom: 8px;
  font-size: 19px;
}

.process-list p {
  margin: 0;
  color: var(--text-soft);
}

.about-grid {
  display: grid;
  align-items: center;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 120px;
}

.about-panel {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 40px;
  background: var(--navy);
  color: #fff;
}

.about-monogram {
  font-family: "Manrope", sans-serif;
  font-size: 80px;
  font-weight: 800;
  letter-spacing: -0.08em;
}

.about-panel div {
  display: flex;
  flex-direction: column;
}

.about-panel div span {
  color: #8190a5;
  font-size: 13px;
}

.about-copy > p {
  max-width: 590px;
  margin: 24px 0 0;
}

.text-link {
  display: inline-flex;
  gap: 12px;
  margin-top: 30px;
  border-bottom: 1px solid var(--blue);
  padding-bottom: 4px;
  color: var(--blue);
  font-weight: 700;
}

.cta-section {
  padding: 40px 0 110px;
}

.cta-box {
  padding: 70px;
  background: #173d6b;
  color: #fff;
}

.cta-box .section-index {
  color: #a9cef8;
}

.cta-box h2 {
  max-width: 700px;
}

.cta-box p {
  max-width: 530px;
  margin: 24px 0 32px;
  color: #c2d7ee;
  font-size: 17px;
}

footer {
  border-top: 1px solid var(--line);
}

.footer-inner {
  display: flex;
  min-height: 110px;
  align-items: center;
  justify-content: space-between;
  color: var(--text-faint);
  font-size: 13px;
}

.footer-inner .brand {
  color: var(--text);
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 14px 18px;
  transform: translateY(20px);
  background: var(--text);
  color: var(--bg);
  opacity: 0;
  pointer-events: none;
  transition: 0.2s;
}

.toast.visible {
  transform: translateY(0);
  opacity: 1;
}

.dashboard-body {
  min-height: 100vh;
  background: var(--surface-2);
}

.dashboard-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--surface) 91%, transparent);
  backdrop-filter: blur(16px);
}

.dashboard-header .nav-wrap {
  min-height: 68px;
}

.user-menu {
  display: flex;
  align-items: center;
  gap: 12px;
}

.user-avatar {
  width: 34px;
  height: 34px;
  object-fit: cover;
  background: var(--surface-3);
}

.user-identity {
  display: flex;
  flex-direction: column;
  margin-right: 8px;
  line-height: 1.25;
}

.user-identity strong {
  font-size: 13px;
}

.user-identity span {
  color: var(--text-faint);
  font-size: 11px;
}

.dashboard-main {
  padding: 55px 0 90px;
}

.dashboard-title {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 35px;
}

.dashboard-title h1 {
  font-size: clamp(34px, 5vw, 48px);
}

.dashboard-title p {
  margin: 8px 0 0;
  color: var(--text-soft);
}

.dashboard-actions {
  display: flex;
  gap: 10px;
}

.dashboard-grid {
  display: grid;
  min-height: 620px;
  grid-template-columns: 360px 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
}

.ticket-sidebar {
  border-right: 1px solid var(--line);
}

.ticket-sidebar-header {
  display: flex;
  min-height: 66px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}

.ticket-sidebar-header strong {
  font-family: "Manrope", sans-serif;
}

.ticket-count {
  min-width: 25px;
  padding: 2px 7px;
  background: var(--surface-2);
  color: var(--text-soft);
  text-align: center;
  font-size: 11px;
}

.ticket-list {
  max-height: 553px;
  overflow-y: auto;
}

.ticket-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 20px 22px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.ticket-item:hover,
.ticket-item.active {
  background: var(--surface-2);
}

.ticket-item.active {
  box-shadow: inset 3px 0 var(--blue);
}

.ticket-item-top,
.ticket-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.ticket-item strong {
  overflow: hidden;
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-item-bottom {
  margin-top: 8px;
  color: var(--text-faint);
  font-size: 11px;
}

.status-badge {
  flex: 0 0 auto;
  padding: 3px 7px;
  background: var(--blue-light);
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.status-badge.pending {
  background: color-mix(in srgb, var(--warning) 14%, transparent);
  color: var(--warning);
}

.status-badge.closed {
  background: var(--surface-3);
  color: var(--text-faint);
}

.ticket-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.empty-state {
  display: grid;
  min-height: 100%;
  place-items: center;
  padding: 40px;
  text-align: center;
}

.empty-state svg {
  width: 42px;
  margin: 0 auto 18px;
  color: var(--blue);
}

.empty-state h2 {
  font-size: 24px;
}

.empty-state p {
  max-width: 380px;
  margin: 12px auto 22px;
  color: var(--text-soft);
}

.conversation {
  display: none;
  min-height: 618px;
  flex-direction: column;
}

.conversation.visible {
  display: flex;
}

.conversation-header {
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding: 14px 26px;
}

.conversation-header h2 {
  font-size: 19px;
  letter-spacing: -0.02em;
}

.conversation-header p {
  margin: 3px 0 0;
  color: var(--text-faint);
  font-size: 11px;
}

.status-select {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0 10px;
  background: var(--surface);
  font-size: 12px;
}

.messages {
  display: flex;
  min-height: 390px;
  max-height: 420px;
  flex: 1;
  flex-direction: column;
  gap: 22px;
  overflow-y: auto;
  padding: 28px;
}

.message {
  display: grid;
  align-items: start;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 12px;
}

.message img {
  width: 35px;
  height: 35px;
  object-fit: cover;
  background: var(--surface-3);
}

.message-meta {
  display: flex;
  align-items: center;
  gap: 9px;
}

.message-meta strong {
  font-size: 13px;
}

.message-meta span {
  color: var(--text-faint);
  font-size: 10px;
}

.staff-label {
  padding: 1px 5px;
  background: var(--blue);
  color: #fff !important;
  font-size: 8px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.message p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  white-space: pre-wrap;
  word-break: break-word;
}

.reply-form {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 18px 22px;
}

.reply-form textarea {
  min-height: 48px;
  max-height: 130px;
  flex: 1;
  resize: vertical;
}

.form-control {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  padding: 12px 14px;
  background: var(--surface);
  transition: border-color 0.2s;
}

.form-control:focus {
  border-color: var(--blue);
}

.modal {
  position: fixed;
  z-index: 80;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(4, 9, 16, 0.72);
}

.modal.open {
  display: flex;
}

.modal-card {
  width: min(100%, 590px);
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  border: 1px solid var(--line);
  padding: 32px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 26px;
}

.modal-header h2 {
  font-size: 25px;
}

.modal-header p {
  margin: 6px 0 0;
  color: var(--text-soft);
  font-size: 13px;
}

.close-button {
  border: 0;
  padding: 6px;
  background: none;
  cursor: pointer;
}

.close-button svg {
  width: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
}

.form-group textarea {
  min-height: 145px;
  resize: vertical;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 24px;
  gap: 10px;
}

.error-text {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 12px;
}

.service-manager-card {
  width: min(100%, 980px);
}

.service-manager {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
}

.admin-service-list {
  max-height: 570px;
  overflow-y: auto;
  border: 1px solid var(--line);
}

.admin-service-item {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 15px;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.admin-service-item:last-child {
  border-bottom: 0;
}

.admin-service-item:hover,
.admin-service-item.active {
  background: var(--surface-2);
}

.admin-service-item.active {
  box-shadow: inset 3px 0 var(--blue);
}

.admin-service-item strong,
.admin-service-item span {
  display: block;
}

.admin-service-item strong {
  font-size: 13px;
}

.admin-service-item span {
  margin-top: 3px;
  color: var(--text-faint);
  font-size: 10px;
}

.check-group {
  align-self: end;
  gap: 9px;
  padding-bottom: 5px;
}

.check-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.check-group input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.service-form-actions .danger-button {
  margin-right: auto;
  border-color: color-mix(in srgb, var(--danger) 45%, var(--line));
  color: var(--danger);
}

@media (max-width: 960px) {
  .hero-grid,
  .section-heading,
  .process-layout,
  .about-grid {
    grid-template-columns: 1fr;
    gap: 60px;
  }

  .hero {
    padding-top: 145px;
  }

  .hero-visual {
    max-width: 650px;
  }

  .section-heading {
    align-items: start;
  }

  .section-heading > p {
    max-width: 600px;
  }

  .process-layout,
  .about-grid {
    gap: 55px;
  }

  .about-panel {
    min-height: 330px;
  }

  .dashboard-grid {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 720px) {
  .container {
    width: min(calc(100% - 32px), var(--container));
  }

  .mobile-toggle {
    display: grid;
  }

  .nav-links {
    position: fixed;
    top: 76px;
    right: 0;
    left: 0;
    display: none;
    height: calc(100vh - 76px);
    align-items: stretch;
    flex-direction: column;
    gap: 4px;
    padding: 28px 24px;
    background: var(--bg);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links > a:not(.button) {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
  }

  .nav-links .theme-toggle {
    margin-top: 12px;
  }

  h1 {
    font-size: clamp(44px, 13vw, 62px);
  }

  .hero {
    padding: 130px 0 80px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-text {
    min-height: 38px;
  }

  .hero-proof {
    flex-wrap: wrap;
    gap: 18px;
  }

  .hero-proof > div {
    min-width: 110px;
    margin-right: 0;
    padding-right: 18px;
  }

  .code-lines {
    overflow-x: auto;
    padding: 30px 16px;
  }

  .section {
    padding: 80px 0;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .service-card.featured,
  .service-card.featured + .service-card {
    min-height: 280px;
    grid-column: 1 / -1;
    padding: 30px;
  }

  .service-icon {
    margin-bottom: 0;
  }

  .cta-section {
    padding-bottom: 80px;
  }

  .cta-box {
    padding: 45px 28px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 30px 0;
  }

  .footer-inner p {
    margin: 0;
  }

  .user-identity {
    display: none;
  }

  .dashboard-main {
    padding-top: 35px;
  }

  .dashboard-title {
    align-items: stretch;
    flex-direction: column;
    gap: 22px;
  }

  .dashboard-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dashboard-grid {
    display: block;
    min-height: 0;
  }

  .ticket-sidebar {
    border-right: 0;
  }

  .ticket-list {
    max-height: 290px;
  }

  .ticket-content {
    min-height: 500px;
    border-top: 1px solid var(--line);
  }

  .conversation-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .messages {
    min-height: 350px;
    padding: 20px;
  }

  .reply-form {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-group.full {
    grid-column: auto;
  }

  .service-manager {
    grid-template-columns: 1fr;
  }

  .admin-service-list {
    max-height: 190px;
  }

  .service-form-actions {
    flex-wrap: wrap;
  }
}

/* Interface refresh */
:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f0f2f7;
  --surface-3: #e7eaf1;
  --text: #111827;
  --text-soft: #667085;
  --text-faint: #98a2b3;
  --line: #e4e7ec;
  --blue: #5b5ee8;
  --blue-light: #ececff;
  --blue-deep: #292c7c;
  --navy: #101322;
  --success: #12a66a;
  --danger: #dc4c64;
  --warning: #dc8a24;
  --shadow: 0 24px 70px rgba(28, 35, 67, 0.1);
  --shadow-soft: 0 8px 30px rgba(28, 35, 67, 0.07);
  --radius: 18px;
}

[data-theme="dark"] {
  --bg: #0b0d14;
  --surface: #12151f;
  --surface-2: #0f121b;
  --surface-3: #1b1f2c;
  --text: #f7f8fc;
  --text-soft: #a6adbd;
  --text-faint: #747d91;
  --line: #252a38;
  --blue: #8587ff;
  --blue-light: #232442;
  --blue-deep: #c5c6ff;
  --navy: #080a10;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 8px 30px rgba(0, 0, 0, 0.22);
}

body {
  overflow-x: hidden;
}

.brand-mark,
.icon-button,
.button,
.service-icon,
.user-avatar,
.status-badge,
.ticket-count,
.status-select,
.form-control,
.modal-card,
.toast {
  border-radius: 10px;
}

.button {
  min-height: 50px;
  padding-inline: 23px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}

.button-primary {
  background: linear-gradient(135deg, #686bf0, #4f52d8);
  box-shadow: 0 10px 25px color-mix(in srgb, var(--blue) 25%, transparent);
}

.button-primary:hover {
  background: linear-gradient(135deg, #7477f5, #5558df);
}

.site-header {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
}

.site-header.scrolled {
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  box-shadow: 0 8px 30px rgba(25, 31, 54, 0.05);
}

.nav-links {
  gap: 34px;
}

.hero {
  position: relative;
  padding: 184px 0 108px;
}

.hero::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    radial-gradient(circle at 75% 35%, color-mix(in srgb, var(--blue) 13%, transparent), transparent 32%),
    linear-gradient(color-mix(in srgb, var(--line) 42%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--line) 42%, transparent) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  content: "";
  mask-image: linear-gradient(to bottom, #000 20%, transparent 92%);
}

.eyebrow {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  box-shadow: 0 4px 18px rgba(32, 38, 66, 0.04);
}

h1 {
  font-size: clamp(52px, 6vw, 80px);
}

.accent-text {
  background: linear-gradient(135deg, var(--blue), #8b5cf6);
  background-clip: text;
  color: transparent;
}

.hero-assurance {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0 !important;
  color: var(--text-faint) !important;
  font-size: 12px !important;
}

.hero-assurance svg {
  width: 15px;
  color: var(--success);
}

.hero-proof {
  margin-top: 45px;
}

.code-window {
  border-color: #293047;
  border-radius: 20px;
  box-shadow: 0 36px 100px rgba(27, 27, 76, 0.24);
  transform: perspective(1200px) rotateY(-3deg) rotateX(1deg);
}

.visual-glow {
  background: color-mix(in srgb, var(--blue) 30%, transparent);
}

.trust-strip {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.trust-grid article {
  display: grid;
  min-height: 148px;
  align-items: center;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  border-right: 1px solid var(--line);
  padding: 28px 34px;
}

.trust-grid article:first-child {
  border-left: 1px solid var(--line);
}

.trust-grid article > span {
  color: var(--blue);
  font: 800 11px "Manrope", sans-serif;
}

.trust-grid strong {
  display: block;
  margin-bottom: 4px;
  font-family: "Manrope", sans-serif;
  font-size: 15px;
}

.trust-grid p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.55;
}

.section-muted {
  background:
    radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--blue) 8%, transparent), transparent 30%),
    var(--surface-2);
}

.service-card {
  border-radius: var(--radius);
  padding: 32px 34px 0;
  box-shadow: var(--shadow-soft);
}

.service-card::before {
  height: 4px;
}

.service-card.featured {
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--blue-light) 78%, var(--surface)), var(--surface) 65%);
}

.service-badge {
  border-radius: 999px;
}

.about-panel,
.cta-box {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
}

.about-panel::after,
.cta-box::after {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  content: "";
}

.about-panel::after {
  top: -110px;
  right: -120px;
}

.cta-box {
  background:
    radial-gradient(circle at 85% 15%, rgba(143, 146, 255, 0.36), transparent 28%),
    linear-gradient(135deg, #292c7c, #4b4fd1);
}

.cta-box::after {
  right: 8%;
  bottom: -190px;
}

/* Dashboard */
.dashboard-body {
  background:
    radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--blue) 9%, transparent), transparent 25%),
    var(--surface-2);
}

.dashboard-header {
  background: color-mix(in srgb, var(--surface) 88%, transparent);
}

.dashboard-main {
  padding: 48px 0 90px;
}

.dashboard-title {
  margin-bottom: 28px;
}

.dashboard-title h1 {
  font-size: clamp(35px, 4vw, 50px);
}

.dashboard-title h1 span {
  color: var(--blue);
}

.dashboard-overview {
  display: grid;
  margin-bottom: 22px;
  grid-template-columns: 1.35fr repeat(3, 1fr);
  gap: 14px;
}

.metric-card {
  display: flex;
  min-height: 112px;
  align-items: center;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.metric-card > div:last-child {
  display: flex;
  flex-direction: column-reverse;
}

.metric-card span {
  color: var(--text-soft);
  font-size: 12px;
}

.metric-card strong {
  color: var(--text);
  font: 800 29px/1.1 "Manrope", sans-serif;
}

.metric-icon {
  display: grid !important;
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 13px;
  background: var(--blue-light);
  color: var(--blue);
}

.metric-icon svg {
  width: 21px;
}

.metric-status {
  width: 11px;
  height: 11px;
  flex: 0 0 auto;
  border-radius: 50%;
  box-shadow: 0 0 0 7px color-mix(in srgb, currentColor 12%, transparent);
}

.metric-open {
  background: var(--success);
  color: var(--success) !important;
}

.metric-pending {
  background: var(--warning);
  color: var(--warning) !important;
}

.metric-closed {
  background: var(--text-faint);
  color: var(--text-faint) !important;
}

.dashboard-grid {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
}

.ticket-sidebar {
  background: color-mix(in srgb, var(--surface) 97%, var(--surface-2));
}

.ticket-sidebar-header {
  min-height: 76px;
}

.ticket-sidebar-header > div {
  display: flex;
  flex-direction: column;
}

.sidebar-label {
  margin-bottom: 2px;
  color: var(--text-faint);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.ticket-tools {
  border-bottom: 1px solid var(--line);
  padding: 14px 16px 13px;
}

.ticket-search {
  display: flex;
  height: 40px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0 11px;
  background: var(--surface-2);
}

.ticket-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--blue) 10%, transparent);
}

.ticket-search svg {
  width: 16px;
  color: var(--text-faint);
}

.ticket-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 12px;
}

.ticket-filters {
  display: flex;
  gap: 3px;
  margin-top: 10px;
  overflow-x: auto;
}

.ticket-filters button {
  border: 0;
  border-radius: 7px;
  padding: 6px 9px;
  background: transparent;
  color: var(--text-faint);
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.ticket-filters button:hover,
.ticket-filters button.active {
  background: var(--blue-light);
  color: var(--blue);
}

.ticket-list {
  max-height: 500px;
}

.ticket-item {
  position: relative;
  padding: 18px 20px;
}

.ticket-item.active {
  background: var(--blue-light);
  box-shadow: inset 3px 0 var(--blue);
}

.ticket-customer {
  display: block;
  overflow: hidden;
  margin-top: 5px;
  color: var(--text-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-list-empty {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 28px;
  text-align: center;
}

.ticket-list-empty strong {
  font-size: 13px;
}

.ticket-list-empty span {
  margin-top: 5px;
  color: var(--text-faint);
  font-size: 11px;
}

.conversation-header {
  min-height: 88px;
}

.messages {
  background:
    radial-gradient(circle at 50% 0%, color-mix(in srgb, var(--blue) 4%, transparent), transparent 38%);
}

.message img {
  border-radius: 10px;
}

.message > div {
  max-width: 86%;
}

.message p {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 4px 13px 13px;
  padding: 10px 13px;
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 3px 12px rgba(30, 36, 60, 0.04);
}

.reply-form {
  background: var(--surface);
}

.reply-form textarea {
  border-radius: 12px;
  background: var(--surface-2);
}

.modal {
  backdrop-filter: blur(7px);
}

.modal-card {
  border-radius: 20px;
}

.admin-service-list {
  border-radius: 12px;
}

.admin-service-item.active {
  background: var(--blue-light);
}

@media (max-width: 960px) {
  .dashboard-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-grid article {
    padding-inline: 22px;
  }
}

@media (max-width: 720px) {
  .hero {
    padding-top: 138px;
  }

  .code-window {
    transform: none;
  }

  .trust-grid {
    grid-template-columns: 1fr;
  }

  .trust-grid article,
  .trust-grid article:first-child {
    min-height: 110px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-left: 1px solid var(--line);
  }

  .trust-grid article:last-child {
    border-bottom: 0;
  }

  .dashboard-overview {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .metric-card {
    min-height: 94px;
    padding: 16px;
  }

  .metric-card-primary {
    grid-column: 1 / -1;
  }

  .dashboard-grid {
    border-radius: 14px;
  }

  .ticket-list {
    max-height: 350px;
  }
}
