:root {
  --qics-navy: #0B2D5C;
  --qics-navy-deep: #062347;
  --qics-gold: #C8A05A;
  --qics-bg: #F8F6F2;
  --qics-dark: #1A1A1A;
  --qics-muted: #5D6572;
  --qics-white: #FFFFFF;
  --qics-line: rgba(11, 45, 92, 0.12);
  --qics-radius: 8px;
  --qics-shadow-soft: 0 18px 50px rgba(11, 45, 92, 0.10);
  --qics-shadow-card: 0 12px 28px rgba(11, 45, 92, 0.08);
  --qics-font-heading: "Playfair Display", Georgia, serif;
  --qics-font-body: "Inter", Arial, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body.qics-home {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--qics-bg);
  color: var(--qics-dark);
  font-family: var(--qics-font-body);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: 0;
}

.qics-home *,
.qics-home *::before,
.qics-home *::after {
  box-sizing: border-box;
}

.qics-home a {
  color: inherit;
  text-decoration: none;
}

.qics-home br {
  display: initial;
}

.qics-home button,
.qics-home input {
  font: inherit;
}

.qics-home svg {
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.2;
}

.qics-symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.qics-container {
  width: calc(100% - 64px);
  max-width: 1780px;
  margin: 0 auto;
}

.qics-screen-reader {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.qics-topbar {
  background: var(--qics-navy-deep);
  color: var(--qics-white);
}

.qics-topbar-inner {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.qics-topbar-message,
.qics-email,
.qics-follow-text {
  margin: 0;
  color: var(--qics-white);
  font-size: 15px;
  font-weight: 500;
}

.qics-topbar-message {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.qics-topbar-dot {
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--qics-gold);
  border-radius: 3px;
  position: relative;
  flex: 0 0 auto;
}

.qics-topbar-dot::before,
.qics-topbar-dot::after {
  content: "";
  position: absolute;
  background: var(--qics-gold);
}

.qics-topbar-dot::before {
  width: 5px;
  height: 1.5px;
  left: 3px;
  top: 5px;
}

.qics-topbar-dot::after {
  width: 1.5px;
  height: 5px;
  left: 5px;
  top: 3px;
}

.qics-topbar-right,
.qics-email,
.qics-social-list {
  display: flex;
  align-items: center;
}

.qics-topbar-right {
  gap: 18px;
}

.qics-email {
  gap: 8px;
  color: var(--qics-white);
}

.qics-email svg {
  width: 16px;
  height: 16px;
  color: var(--qics-gold);
}

.qics-topbar-divider {
  width: 1px;
  height: 18px;
  background: rgba(255, 255, 255, 0.22);
}

.qics-social-list {
  list-style: none;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.qics-social-list a {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  color: var(--qics-white);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  transition: color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.qics-social-list a:hover {
  color: var(--qics-gold);
  border-color: var(--qics-gold);
  transform: translateY(-2px);
}

.qics-play-icon {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid currentColor;
  margin-left: 2px;
}

.qics-camera-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid currentColor;
  border-radius: 4px;
  position: relative;
}

.qics-camera-icon::before {
  content: "";
  position: absolute;
  width: 4px;
  height: 4px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  left: 2.5px;
  top: 2.5px;
}

.qics-main-header {
  position: relative;
  z-index: 51;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid rgba(11, 45, 92, 0.08);
  transition: box-shadow 0.25s ease, min-height 0.25s ease;
}

.qics-site-header {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
}

.qics-main-header.is-stuck {
  box-shadow: 0 12px 30px rgba(11, 45, 92, 0.10);
}

.qics-nav-shell {
  min-height: 104px;
  display: flex;
  align-items: center;
  gap: 36px;
  position: relative;
}

.qics-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--qics-navy);
  flex: 0 0 auto;
}

.qics-brand:hover {
  color: var(--qics-navy);
}

body.qics-home .qics-brand-logo,
body.qics-system-page .qics-brand-logo {
  display: block;
  width: 96px;
  height: auto;
  max-width: none;
  object-fit: contain;
}

.qics-brand-mark {
  width: 94px;
  height: 72px;
  color: var(--qics-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.qics-brand-mark svg {
  width: 94px;
  height: 72px;
  stroke-width: 2.7;
}

.qics-brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.qics-brand-copy strong {
  color: var(--qics-navy);
  font-family: var(--qics-font-heading);
  font-size: 43px;
  font-weight: 800;
}

.qics-brand-copy span {
  color: var(--qics-gold);
  font-family: var(--qics-font-heading);
  font-size: 29px;
  font-weight: 700;
}

.qics-brand-copy em {
  margin-top: 5px;
  color: var(--qics-navy);
  font-size: 14px;
  font-style: normal;
  font-weight: 600;
}

.qics-menu-panel {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 34px;
}

.qics-nav-list {
  display: flex;
  align-items: center;
  gap: 26px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.qics-nav-list a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  color: var(--qics-dark);
  font-size: 15px;
  font-weight: 600;
  padding: 8px 0;
}

.qics-nav-list a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -7px;
  height: 2px;
  background: var(--qics-gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.qics-nav-list a:hover,
.qics-nav-list a.is-active {
  color: var(--qics-navy);
}

.qics-nav-list a:hover::after,
.qics-nav-list a.is-active::after {
  transform: scaleX(1);
}

.qics-nav-caret {
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}

.qics-header-actions {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.qics-search {
  width: clamp(230px, 18vw, 330px);
  flex: 1 1 260px;
  height: 54px;
  display: flex;
  align-items: center;
  border: 1px solid rgba(11, 45, 92, 0.12);
  border-radius: 16px;
  background: var(--qics-white);
  box-shadow: 0 6px 18px rgba(11, 45, 92, 0.04);
  overflow: hidden;
}

.qics-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  padding: 0 16px 0 22px;
  color: var(--qics-dark);
  background: transparent;
}

.qics-search input::placeholder {
  color: #9DA3AD;
}

.qics-search button {
  width: 54px;
  height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--qics-dark);
  background: transparent;
  border: 0;
}

.qics-search button svg {
  width: 19px;
  height: 19px;
}

.qics-btn {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-radius: var(--qics-radius);
  padding: 0 30px;
  font-size: 16px;
  font-weight: 700;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, color 0.25s ease, background 0.25s ease;
}

.qics-btn svg {
  width: 21px;
  height: 21px;
}

.qics-btn-primary {
  color: var(--qics-white) !important;
  background: var(--qics-navy);
  box-shadow: 0 14px 30px rgba(11, 45, 92, 0.22);
}

.qics-btn-primary:hover {
  color: var(--qics-white) !important;
  background: var(--qics-navy-deep);
  transform: translateY(-2px);
}

.qics-btn-secondary {
  color: var(--qics-gold) !important;
  border: 1.5px solid var(--qics-gold);
  background: rgba(255, 255, 255, 0.70);
}

.qics-btn-secondary:hover {
  color: var(--qics-navy) !important;
  background: var(--qics-white);
  transform: translateY(-2px);
  box-shadow: var(--qics-shadow-card);
}

.qics-btn-primary span,
.qics-btn-primary svg {
  color: var(--qics-white);
}

.qics-btn-secondary span,
.qics-btn-secondary svg {
  color: currentColor;
}

.qics-menu-toggle {
  width: 48px;
  height: 48px;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  border: 1px solid var(--qics-line);
  border-radius: var(--qics-radius);
  background: var(--qics-white);
  color: var(--qics-navy);
}

.qics-menu-toggle span:not(.qics-screen-reader) {
  width: 22px;
  height: 2px;
  background: currentColor;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.qics-menu-toggle.is-open span:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.qics-menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.qics-menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

.qics-hero {
  position: relative;
  min-height: 648px;
  overflow: hidden;
  background-color: var(--qics-bg);
  background-image:
    linear-gradient(90deg, rgba(248, 246, 242, 0.99) 0%, rgba(248, 246, 242, 0.95) 34%, rgba(248, 246, 242, 0.38) 53%, rgba(248, 246, 242, 0.02) 72%, rgba(248, 246, 242, 0) 100%),
    url("../img/qics/qics-hero-scholar.png");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
  border-bottom: 1px solid rgba(200, 160, 90, 0.18);
}

.qics-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(200, 160, 90, 0.10) 0 1px, transparent 1px),
    linear-gradient(60deg, rgba(11, 45, 92, 0.06) 0 1px, transparent 1px);
  background-size: 54px 94px;
  opacity: 0.16;
  pointer-events: none;
}

.qics-hero-inner {
  position: relative;
  z-index: 1;
  min-height: 648px;
  display: flex;
  align-items: center;
}

.qics-hero-copy {
  width: min(940px, 58%);
  padding: 58px 0 34px;
}

.qics-eyebrow {
  margin: 0 0 12px;
  color: var(--qics-gold);
  font-family: var(--qics-font-heading);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
}

.qics-hero h1 {
  margin: 0;
  color: var(--qics-navy);
  font-family: var(--qics-font-heading);
  font-size: 82px;
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
}

.qics-founder {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0 0 20px;
  color: var(--qics-gold);
  font-family: var(--qics-font-heading);
  font-size: 42px;
  line-height: 1.12;
  font-weight: 600;
}

.qics-founder span {
  width: 88px;
  height: 1px;
  background: var(--qics-gold);
  flex: 0 0 auto;
}

.qics-description,
.qics-book-line {
  margin: 0;
}

.qics-description {
  color: #374051;
  font-size: 20px;
  font-weight: 500;
}

.qics-book-line {
  color: var(--qics-navy);
  font-family: var(--qics-font-heading);
  font-size: 36px;
  font-weight: 800;
  line-height: 1.2;
}

.qics-feature-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 28px 0 40px;
  width: min(900px, 100%);
}

.qics-feature-card {
  min-height: 126px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 10px;
  text-align: center;
  color: var(--qics-navy);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid rgba(11, 45, 92, 0.08);
  border-radius: var(--qics-radius);
  box-shadow: var(--qics-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.qics-feature-card:hover {
  color: var(--qics-navy);
  border-color: rgba(200, 160, 90, 0.58);
  transform: translateY(-7px);
  box-shadow: 0 20px 36px rgba(11, 45, 92, 0.14);
}

.qics-feature-icon {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--qics-navy);
}

.qics-feature-icon svg {
  width: 40px;
  height: 40px;
  stroke-width: 2.15;
  vector-effect: non-scaling-stroke;
}

.qics-feature-card:nth-child(odd) .qics-feature-icon,
.qics-category-card:nth-child(even) .qics-category-icon {
  color: var(--qics-gold);
}

.qics-feature-card span:last-child {
  color: var(--qics-navy);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}

.qics-feature-card br {
  display: block;
}

.qics-hero-actions {
  display: flex;
  align-items: center;
  gap: 34px;
}

.qics-stats {
  padding: 18px 0 34px;
  background: var(--qics-bg);
}

.qics-stats-panel {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  overflow: hidden;
  background: var(--qics-navy);
  border-radius: 10px;
  box-shadow: 0 22px 55px rgba(11, 45, 92, 0.18);
}

.qics-stat-item {
  min-height: 150px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 26px 28px;
  color: var(--qics-white);
  border-right: 1px solid rgba(255, 255, 255, 0.16);
}

.qics-stat-item:last-child {
  border-right: 0;
}

.qics-stat-icon {
  width: 72px;
  height: 72px;
  color: var(--qics-gold);
  flex: 0 0 auto;
}

.qics-stat-icon svg {
  width: 72px;
  height: 72px;
  stroke-width: 2.15;
  vector-effect: non-scaling-stroke;
}

.qics-stat-item h2 {
  margin: 0 0 6px;
  color: var(--qics-white);
  font-family: var(--qics-font-heading);
  font-size: 21px;
  line-height: 1.16;
  font-weight: 800;
}

.qics-stat-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 15px;
  line-height: 1.38;
}

.qics-categories {
  padding: 22px 0 70px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(248, 246, 242, 0.86)),
    var(--qics-bg);
}

.qics-section-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin: 0 auto 24px;
  text-align: center;
}

.qics-section-heading > span {
  width: 82px;
  height: 1px;
  background: var(--qics-gold);
  position: relative;
}

.qics-section-heading > span::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px;
  height: 7px;
  border: 1px solid var(--qics-gold);
  border-radius: 50%;
  background: var(--qics-bg);
}

.qics-section-heading > span:first-child::after {
  right: -3px;
}

.qics-section-heading > span:last-child::after {
  left: -3px;
}

.qics-section-heading h2 {
  margin: 0;
  color: var(--qics-navy);
  font-family: var(--qics-font-heading);
  font-size: 25px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.qics-section-heading p {
  margin: 6px 0 0;
  color: var(--qics-muted);
  font-size: 16px;
  font-weight: 500;
}

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

.qics-category-card {
  min-height: 205px;
  display: flex;
  align-items: center;
  gap: 22px;
  padding: 32px 30px;
  color: var(--qics-navy);
  background: var(--qics-white);
  border: 1px solid rgba(11, 45, 92, 0.08);
  border-radius: var(--qics-radius);
  box-shadow: var(--qics-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.qics-category-card:hover {
  color: var(--qics-navy);
  border-color: rgba(200, 160, 90, 0.48);
  transform: translateY(-7px);
  box-shadow: 0 22px 38px rgba(11, 45, 92, 0.13);
}

.qics-category-icon {
  width: 54px;
  height: 54px;
  color: var(--qics-navy);
  flex: 0 0 auto;
}

.qics-category-icon svg {
  width: 54px;
  height: 54px;
  stroke-width: 2.05;
  vector-effect: non-scaling-stroke;
}

.qics-category-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--qics-navy);
  font-family: var(--qics-font-heading);
  font-size: 18px;
  line-height: 1.22;
  font-weight: 800;
  overflow-wrap: break-word;
}

.qics-category-card small {
  display: block;
  color: var(--qics-muted);
  font-size: 14px;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.qics-category-card > span:last-child {
  min-width: 0;
}

[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.qics-scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--qics-white);
  background: var(--qics-navy);
  border: 0;
  border-radius: 50%;
  box-shadow: 0 14px 30px rgba(11, 45, 92, 0.25);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.qics-scroll-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.qics-scroll-top:hover {
  background: var(--qics-gold);
}

.qics-scroll-top svg {
  width: 22px;
  height: 22px;
  stroke-width: 2.4;
}

@media (max-width: 1599px) {
  .qics-nav-shell {
    gap: 28px;
  }

  .qics-menu-panel {
    gap: 30px;
  }

  .qics-nav-list {
    gap: 26px;
  }

  .qics-search {
    width: clamp(220px, 18vw, 300px);
  }

  .qics-hero h1 {
    font-size: 72px;
  }

  .qics-founder {
    font-size: 37px;
  }

  .qics-feature-grid {
    width: min(820px, 100%);
  }

  .qics-category-card {
    min-height: 178px;
    gap: 14px;
    padding: 24px 16px;
  }

  .qics-category-icon,
  .qics-category-icon svg {
    width: 44px;
    height: 44px;
  }

  .qics-category-card strong {
    font-size: 16px;
  }

  .qics-category-card small {
    font-size: 12.5px;
    line-height: 1.4;
  }

  .qics-stat-item {
    padding: 24px 20px;
    gap: 16px;
  }
}

@media (max-width: 1399px) {
  .qics-container {
    width: calc(100% - 48px);
    max-width: 1220px;
  }

  body.qics-home .qics-brand-logo,
  body.qics-system-page .qics-brand-logo {
    width: 86px;
  }

  .qics-brand-mark {
    width: 76px;
    height: 58px;
  }

  .qics-brand-mark svg {
    width: 76px;
    height: 58px;
  }

  .qics-brand-copy strong {
    font-size: 34px;
  }

  .qics-brand-copy span {
    font-size: 23px;
  }

  .qics-brand-copy em {
    font-size: 12px;
  }

  .qics-nav-list {
    gap: 18px;
  }

  .qics-nav-list a {
    font-size: 14px;
  }

  .qics-header-actions {
    gap: 12px;
  }

  .qics-search {
    width: clamp(200px, 17vw, 260px);
  }

  .qics-header-cta {
    padding: 0 22px;
  }

  .qics-category-card {
    min-height: 168px;
    gap: 12px;
    padding: 22px 14px;
  }

  .qics-category-icon,
  .qics-category-icon svg {
    width: 42px;
    height: 42px;
  }

  .qics-category-card strong {
    font-size: 15.5px;
  }

  .qics-category-card small {
    font-size: 12px;
  }

  .qics-stat-icon,
  .qics-stat-icon svg {
    width: 54px;
    height: 54px;
  }
}

@media (max-width: 1199px) {
  .qics-topbar-inner {
    justify-content: center;
  }

  .qics-topbar-right {
    display: none;
  }

  .qics-nav-shell {
    min-height: 96px;
    justify-content: space-between;
    padding-right: 62px;
  }

  .qics-menu-toggle {
    display: inline-flex !important;
    position: absolute;
    right: 0;
    top: 50%;
    z-index: 3;
    transform: translateY(-50%);
  }

  .qics-menu-panel {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    z-index: 70;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 24px;
    background: var(--qics-white);
    border: 1px solid rgba(11, 45, 92, 0.10);
    border-radius: 0 0 var(--qics-radius) var(--qics-radius);
    box-shadow: 0 22px 50px rgba(11, 45, 92, 0.13);
  }

  .qics-menu-panel.is-open {
    display: flex;
    visibility: visible;
  }

  .qics-nav-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
  }

  .qics-nav-list a {
    padding: 12px 0;
  }

  .qics-nav-list a::after {
    bottom: 2px;
  }

  .qics-header-actions {
    align-items: stretch;
  }

  .qics-search {
    width: 100%;
    flex: 1 1 auto;
  }

  .qics-hero {
    min-height: 0;
    background-image:
      linear-gradient(180deg, rgba(248, 246, 242, 0.03) 0%, rgba(248, 246, 242, 0.18) 60%, rgba(248, 246, 242, 1) 100%),
      url("../img/qics/qics-hero-scholar.png");
    background-size: auto 500px;
    background-position: center top;
    padding-top: 500px;
  }

  .qics-hero-inner {
    min-height: 0;
    display: block;
  }

  .qics-hero-copy {
    width: 100%;
    padding: 36px 0 42px;
  }

  .qics-hero h1 {
    font-size: 58px;
  }

  .qics-founder {
    font-size: 31px;
  }

  .qics-feature-grid,
  .qics-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qics-feature-card {
    min-height: 118px;
  }

  .qics-category-card {
    min-height: 150px;
    gap: 18px;
    padding: 24px;
  }

  .qics-category-icon,
  .qics-category-icon svg {
    width: 50px;
    height: 50px;
  }

  .qics-category-card strong {
    font-size: 17px;
  }

  .qics-category-card small {
    font-size: 13px;
  }

  .qics-stats-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qics-stat-item {
    min-height: 138px;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  }

  .qics-stat-item:nth-last-child(-n + 1) {
    border-bottom: 0;
  }
}

@media (max-width: 767px) {
  .qics-container {
    width: calc(100% - 32px);
    max-width: 720px;
  }

  .qics-topbar-inner {
    min-height: 40px;
  }

  .qics-topbar-message {
    font-size: 13px;
    text-align: center;
  }

  .qics-nav-shell {
    min-height: 76px;
    gap: 16px;
  }

  .qics-brand {
    gap: 10px;
  }

  body.qics-home .qics-brand-logo,
  body.qics-system-page .qics-brand-logo {
    width: 66px;
  }

  .qics-brand-mark {
    width: 54px;
    height: 42px;
  }

  .qics-brand-mark svg {
    width: 54px;
    height: 42px;
    stroke-width: 3;
  }

  .qics-brand-copy strong {
    font-size: 25px;
  }

  .qics-brand-copy span {
    font-size: 17px;
  }

  .qics-brand-copy em {
    font-size: 10px;
  }

  .qics-menu-panel {
    padding: 20px;
  }

  .qics-menu-toggle {
    right: max(0px, calc(100vw - 390px + 16px));
  }

  .qics-nav-list,
  .qics-header-actions,
  .qics-hero-actions,
  .qics-feature-grid,
  .qics-category-grid,
  .qics-stats-panel {
    grid-template-columns: 1fr;
  }

  .qics-nav-list {
    display: grid;
  }

  .qics-header-actions,
  .qics-hero-actions {
    display: flex;
    flex-direction: column;
  }

  .qics-header-cta,
  .qics-hero-actions .qics-btn {
    width: 100%;
  }

  .qics-hero {
    background-size: auto 330px;
    padding-top: 330px;
  }

  .qics-hero-copy {
    padding-top: 30px;
  }

  .qics-eyebrow {
    font-size: 17px;
  }

  .qics-hero h1 {
    font-size: 42px;
  }

  .qics-founder {
    gap: 12px;
    font-size: 25px;
  }

  .qics-founder span {
    width: 40px;
  }

  .qics-description {
    font-size: 17px;
    max-width: 330px;
  }

  .qics-book-line {
    font-size: 28px;
  }

  .qics-stat-item {
    min-height: 0;
    flex-direction: row;
    padding: 24px;
  }

  .qics-stat-item:nth-last-child(-n + 1) {
    border-bottom: 0;
  }

  .qics-section-heading {
    gap: 12px;
  }

  .qics-section-heading > span {
    width: 36px;
  }

  .qics-section-heading h2 {
    font-size: 22px;
  }

  .qics-category-card {
    min-height: 130px;
  }
}

@media (max-width: 479px) {
  .qics-container {
    width: calc(100% - 24px);
    max-width: 440px;
  }

  .qics-brand-copy em {
    display: none;
  }

  body.qics-home .qics-brand-logo,
  body.qics-system-page .qics-brand-logo {
    width: 58px;
  }

  .qics-menu-toggle {
    width: 44px;
    height: 44px;
  }

  .qics-hero {
    background-size: auto 280px;
    padding-top: 280px;
  }

  .qics-hero h1 {
    font-size: 36px;
  }

  .qics-founder {
    font-size: 22px;
  }

  .qics-founder span {
    display: none;
  }

  .qics-feature-card {
    min-height: 110px;
  }

  .qics-stat-item {
    align-items: flex-start;
    gap: 18px;
  }

  .qics-stat-icon,
  .qics-stat-icon svg {
    width: 50px;
    height: 50px;
  }
}

.qics-home img,
.qics-home video,
.qics-home iframe,
.qics-home embed,
.qics-home object,
.qics-system-page img,
.qics-system-page video,
.qics-system-page iframe,
.qics-system-page embed,
.qics-system-page object {
  max-width: 100%;
}

.qics-home img,
.qics-system-page img {
  height: auto;
}

.qics-home iframe,
.qics-system-page iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
}

@media (max-width: 1199px) {
  .qics-menu-panel {
    max-height: calc(100vh - 98px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .qics-menu-panel,
  .qics-nav-list,
  .qics-header-actions,
  .qics-search,
  .qics-feature-card,
  .qics-category-card,
  .qics-stat-item {
    min-width: 0;
    max-width: 100%;
  }

  .qics-nav-list a {
    width: 100%;
    white-space: normal;
  }

  .qics-stat-item > div,
  .qics-feature-card span:last-child,
  .qics-category-card > span:last-child {
    min-width: 0;
    max-width: 100%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .qics-container {
    width: calc(100% - 40px);
  }

  .qics-hero {
    background-size: auto 460px;
    padding-top: 460px;
  }

  .qics-hero h1 {
    font-size: clamp(52px, 7.2vw, 58px);
  }

  .qics-founder {
    flex-wrap: wrap;
    font-size: clamp(28px, 4.1vw, 31px);
  }

  .qics-feature-grid,
  .qics-category-grid {
    gap: 14px;
  }
}

@media (max-width: 767px) {
  html,
  body.qics-home,
  body.qics-system-page {
    max-width: 100%;
    overflow-x: hidden;
  }

  .qics-topbar {
    overflow: hidden;
  }

  .qics-topbar-inner {
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .qics-topbar-message {
    min-width: 0;
    justify-content: center;
    flex-wrap: wrap;
    white-space: normal;
    line-height: 1.3;
  }

  .qics-nav-shell {
    padding-right: 56px;
  }

  .qics-menu-toggle {
    right: 0;
    flex: 0 0 auto;
  }

  .qics-menu-panel {
    left: 0;
    right: 0;
    width: 100%;
    gap: 16px;
    padding: 16px;
    max-height: calc(100vh - 86px);
  }

  .qics-nav-list a {
    min-height: 44px;
    align-items: center;
  }

  .qics-search {
    height: 50px;
    border-radius: 12px;
  }

  .qics-search input {
    min-width: 0;
    padding-left: 14px;
  }

  .qics-search button {
    width: 50px;
    height: 50px;
    flex: 0 0 50px;
  }

  .qics-btn {
    min-height: 52px;
    padding: 0 20px;
    white-space: normal;
    text-align: center;
  }

  .qics-hero-copy {
    min-width: 0;
  }

  .qics-hero h1 {
    max-width: 100%;
    font-size: clamp(30px, 9.5vw, 42px);
    line-height: 1.05;
  }

  .qics-founder {
    flex-wrap: wrap;
    line-height: 1.18;
  }

  .qics-description,
  .qics-book-line {
    max-width: 100%;
    overflow-wrap: break-word;
  }

  .qics-book-line {
    font-size: clamp(24px, 7.6vw, 28px);
  }

  .qics-feature-card span:last-child,
  .qics-stat-item h2,
  .qics-stat-item p,
  .qics-category-card strong,
  .qics-category-card small {
    overflow-wrap: anywhere;
  }

  .qics-hero-actions {
    gap: 14px;
  }

  .qics-section-heading {
    max-width: 100%;
  }

  .qics-section-heading h2,
  .qics-section-heading p {
    overflow-wrap: break-word;
  }
}

@media (max-width: 479px) {
  .qics-nav-shell {
    min-height: 76px;
    padding-right: 52px;
  }

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

  .qics-brand-copy strong {
    font-size: 22px;
  }

  .qics-brand-copy span {
    font-size: 15px;
  }

  .qics-hero {
    background-size: auto 260px;
    padding-top: 260px;
  }

  .qics-hero h1 {
    font-size: clamp(28px, 8.9vw, 33px);
  }

  .qics-founder {
    font-size: clamp(20px, 6.4vw, 22px);
  }

  .qics-description {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .qics-book-line {
    font-size: clamp(23px, 7.2vw, 26px);
    overflow-wrap: anywhere;
  }

  .qics-stat-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 20px 18px;
  }

  .qics-category-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .qics-section-heading {
    gap: 8px;
  }

  .qics-section-heading > span {
    display: none;
  }

  .qics-scroll-top {
    right: 14px;
    bottom: 14px;
  }
}

@media (max-width: 359px) {
  .qics-container {
    width: calc(100% - 20px);
  }

  .qics-topbar-message {
    display: block;
    font-size: 11px;
  }

  .qics-topbar-dot {
    display: none;
  }

  body.qics-home .qics-brand-logo,
  body.qics-system-page .qics-brand-logo {
    width: 52px;
  }

  .qics-brand-mark {
    width: 48px;
    height: 38px;
  }

  .qics-brand-mark svg {
    width: 48px;
    height: 38px;
  }

  .qics-brand-copy strong {
    font-size: 20px;
  }

  .qics-brand-copy span {
    font-size: 14px;
  }

  .qics-menu-toggle {
    width: 42px;
    height: 42px;
  }

  .qics-hero h1 {
    font-size: 28px;
  }

  .qics-stat-icon,
  .qics-stat-icon svg {
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .qics-home *,
  .qics-home *::before,
  .qics-home *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
  }
}
