:root {
  color-scheme: light;
  --ink: #18202a;
  --muted: #657182;
  --line: #dfe5ec;
  --soft: #f5f7f9;
  --paper: #ffffff;
  --teal: #0f766e;
  --green: #2f8f46;
  --gold: #b7791f;
  --red: #b42318;
  --shadow: 0 16px 40px rgba(24, 32, 42, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
}

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

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

.site-header,
.admin-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
  padding: 12px clamp(18px, 4vw, 64px);
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--teal), var(--green));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.nav-link,
.text-button {
  padding: 8px 10px;
  border-radius: 6px;
  color: var(--muted);
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-link:hover,
.nav-link.is-active,
.text-button:hover {
  color: var(--teal);
  background: #e8f4f1;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(320px, 0.98fr);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 112px);
  padding: clamp(34px, 6vw, 84px) clamp(18px, 5vw, 78px) clamp(30px, 5vw, 64px);
  background: linear-gradient(180deg, #ffffff 0%, #eef4f3 100%);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

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

.hero h1 {
  margin: 14px 0 10px;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero-title {
  margin-bottom: 12px;
  font-size: clamp(21px, 2.6vw, 34px);
  font-weight: 700;
  line-height: 1.28;
}

.hero-text,
.section-heading p,
.page-title p,
.contact-panel p,
.muted {
  color: var(--muted);
}

.hero-text {
  max-width: 640px;
  font-size: 17px;
}

.hero-actions,
.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 7px;
  cursor: pointer;
  font-weight: 700;
}

.button.primary {
  color: #fff;
  background: var(--teal);
}

.button.secondary {
  color: var(--teal);
  background: #e8f4f1;
  border-color: #b9dcd5;
}

.button.danger {
  color: #fff;
  background: var(--red);
}

.button.small {
  min-height: 34px;
  padding: 6px 12px;
  font-size: 14px;
}

.quick-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 28px 0 0;
}

.quick-facts div,
.service-card,
.message-card,
.metric,
.admin-panel,
.admin-message,
.service-edit,
.login-box {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.quick-facts div {
  padding: 14px;
}

.quick-facts dt {
  color: var(--muted);
  font-size: 12px;
}

.quick-facts dd {
  margin: 4px 0 0;
  font-weight: 700;
}

.hero-visual img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.section,
.page-title,
.table-wrap,
.contact-panel,
.process-band,
.board-layout,
.admin-main,
.narrow {
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
}

.section,
.page-title,
.table-wrap,
.contact-panel,
.board-layout,
.narrow {
  padding: clamp(34px, 6vw, 74px) 0;
}

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

.section-heading h2,
.page-title h1,
.admin-title h1 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.12;
}

.section-heading p {
  max-width: 560px;
}

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

.service-card {
  min-height: 230px;
  padding: 20px;
}

.service-card h3 {
  margin: 14px 0 10px;
  font-size: 21px;
}

.service-card p {
  color: var(--muted);
}

.service-card strong {
  display: block;
  margin-top: 18px;
  color: var(--gold);
}

.badge {
  display: inline-flex;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--teal);
  background: #e8f4f1;
  font-size: 12px;
  font-weight: 700;
}

.process-band {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.process-band div {
  padding: 24px;
  background: #fff;
}

.process-band span {
  color: var(--gold);
  font-weight: 800;
}

.process-band strong {
  display: block;
  margin: 8px 0;
  font-size: 20px;
}

.process-band p,
.message-card p,
.admin-message p {
  margin-bottom: 0;
  color: var(--muted);
}

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

.promise-grid article {
  min-height: 150px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.promise-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 20px;
}

.promise-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}

.message-list {
  display: grid;
  gap: 12px;
}

.message-card,
.admin-message,
.service-edit,
.admin-panel {
  padding: 18px;
}

.message-card div,
.message-meta,
.panel-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.message-card span,
.message-meta span,
.private-line {
  color: var(--muted);
  font-size: 13px;
}

.message-category {
  color: var(--teal) !important;
  font-weight: 700;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

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

.price-table th {
  background: #eef4f3;
}

.price-table td span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

.contact-panel {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  margin-bottom: 52px;
  padding: 26px;
  background: #18202a;
  color: #fff;
  border-radius: 8px;
}

.contact-panel p {
  margin-bottom: 0;
  color: #cdd6df;
}

.board-layout {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 24px;
  align-items: start;
}

.public-form,
.admin-form {
  display: grid;
  gap: 14px;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid #c8d2dc;
  border-radius: 7px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 116px;
  resize: vertical;
}

.hp-field {
  position: absolute;
  left: -9999px;
}

.notice {
  width: min(1160px, calc(100% - 36px));
  margin: 18px auto 0;
  padding: 12px 14px;
  border-radius: 7px;
  font-weight: 700;
}

.notice.success {
  color: #14532d;
  background: #dcfce7;
}

.notice.error {
  color: #7f1d1d;
  background: #fee2e2;
}

.inline-notice {
  width: 100%;
  margin: 0 0 16px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 24px clamp(18px, 4vw, 64px);
  color: var(--muted);
  background: #fff;
  border-top: 1px solid var(--line);
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background: #eef4f3;
}

.login-box {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 26px;
  box-shadow: var(--shadow);
}

.admin-body {
  background: #f5f7f9;
}

.admin-main {
  padding-top: 34px;
  padding-bottom: 74px;
}

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

.metric {
  padding: 20px;
}

.metric span {
  display: block;
  color: var(--teal);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.tabs {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.tab {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.tab.is-active {
  color: #fff;
  background: var(--teal);
  border-color: var(--teal);
}

.admin-list {
  display: grid;
  gap: 14px;
}

.inline-form {
  margin: 0;
}

.admin-form {
  margin-bottom: 16px;
}

.compact-form {
  max-width: 520px;
}

.service-edit {
  display: grid;
  gap: 14px;
}

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

.check-line {
  display: flex;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
}

.check-line input {
  width: auto;
}

@media (max-width: 980px) {
  .site-header,
  .admin-header,
  .hero,
  .section-heading,
  .contact-panel {
    align-items: flex-start;
  }

  .site-header,
  .admin-header {
    position: static;
    flex-direction: column;
  }

  .site-nav {
    justify-content: flex-start;
  }

  .hero,
  .split,
  .board-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .quick-facts,
  .service-grid,
  .process-band,
  .promise-grid,
  .metric-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .section-heading,
  .contact-panel {
    flex-direction: column;
  }

  .price-table,
  .price-table tbody,
  .price-table tr,
  .price-table td,
  .price-table th {
    display: block;
  }

  .price-table thead {
    display: none;
  }
}

@media (max-width: 560px) {
  .hero h1 {
    font-size: 44px;
  }

  .button {
    width: 100%;
  }

  .hero-actions,
  .action-row {
    width: 100%;
  }
}

/* 2026 AI tech theme */
:root {
  --ink: #edf8ff;
  --muted: #9fb3c8;
  --line: rgba(130, 231, 255, 0.22);
  --soft: #03050a;
  --paper: rgba(9, 18, 31, 0.78);
  --teal: #00e5ff;
  --green: #7cffc7;
  --gold: #ffd166;
  --red: #ff5c7a;
  --magenta: #ff4ecd;
  --shadow: 0 22px 80px rgba(0, 229, 255, 0.14);
}

body {
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.08), transparent 30%),
    linear-gradient(315deg, rgba(255, 78, 205, 0.08), transparent 28%),
    #03050a;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(130, 231, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(130, 231, 255, 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.site-header,
.admin-header {
  background: rgba(3, 8, 16, 0.76);
  border-bottom-color: rgba(130, 231, 255, 0.18);
  box-shadow: 0 1px 0 rgba(124, 255, 199, 0.12);
}

.brand-mark {
  color: #021017;
  background: linear-gradient(135deg, var(--teal), var(--green) 58%, var(--gold));
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.42);
}

.brand small,
.nav-link,
.text-button,
.hero-text,
.section-heading p,
.page-title p,
.contact-panel p,
.muted {
  color: var(--muted);
}

.nav-link:hover,
.nav-link.is-active,
.text-button:hover {
  color: var(--green);
  background: rgba(0, 229, 255, 0.12);
}

.ai-hero {
  position: relative;
  min-height: 760px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 92px clamp(22px, 5vw, 84px) 86px;
  background: #02050a;
}

.ai-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.84;
}

.ai-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 5, 10, 0.18), rgba(3, 5, 10, 0.62) 56%, rgba(3, 5, 10, 0.18)),
    linear-gradient(180deg, transparent 72%, #03050a 100%);
}

.ai-hero-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 7px);
  opacity: 0.18;
  pointer-events: none;
}

.ai-hero .hero-copy {
  position: relative;
  z-index: 2;
  max-width: 860px;
}

.ai-hero h1 {
  margin: 14px 0 12px;
  font-size: 78px;
  line-height: 0.98;
  letter-spacing: 0;
  text-shadow: 0 0 34px rgba(0, 229, 255, 0.34);
}

.hero-title {
  max-width: 760px;
  font-size: 30px;
  color: #ffffff;
}

.hero-text {
  max-width: 720px;
  font-size: 17px;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
}

.button {
  border-radius: 8px;
  border-color: rgba(130, 231, 255, 0.24);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  color: #021017;
  background: linear-gradient(135deg, var(--teal), var(--green));
  box-shadow: 0 0 28px rgba(0, 229, 255, 0.34);
}

.button.secondary {
  color: var(--green);
  background: rgba(124, 255, 199, 0.1);
  border-color: rgba(124, 255, 199, 0.38);
}

.button.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.18);
}

.download-button::before {
  content: "↓";
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-right: 8px;
  border-radius: 50%;
  color: #021017;
  background: rgba(255, 255, 255, 0.76);
}

.quick-facts div,
.service-card,
.message-card,
.metric,
.admin-panel,
.admin-message,
.service-edit,
.login-box,
.public-form,
.admin-form,
.price-table,
.promise-grid article {
  background: linear-gradient(180deg, rgba(12, 24, 40, 0.86), rgba(7, 14, 25, 0.82));
  border-color: rgba(130, 231, 255, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 18px 70px rgba(0, 0, 0, 0.24);
}

.quick-facts dt,
.message-card span,
.message-meta span,
.private-line,
.service-card p,
.process-band p,
.message-card p,
.admin-message p,
.promise-grid p {
  color: var(--muted);
}

.quick-facts dd,
.service-card h3,
.process-band strong,
.promise-grid strong,
.metric strong {
  color: var(--ink);
}

.section,
.page-title,
.table-wrap,
.contact-panel,
.board-layout,
.narrow {
  padding-top: 70px;
  padding-bottom: 70px;
}

.section-heading h2,
.page-title h1,
.admin-title h1 {
  font-size: 42px;
  line-height: 1.12;
}

.service-card {
  position: relative;
  overflow: hidden;
}

.service-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-top: 1px solid rgba(0, 229, 255, 0.38);
  pointer-events: none;
}

.service-card strong {
  color: var(--gold);
}

.badge {
  color: #031017;
  background: linear-gradient(135deg, var(--green), var(--teal));
}

.tutorial-section {
  width: 100%;
  padding-left: clamp(18px, 5vw, 78px);
  padding-right: clamp(18px, 5vw, 78px);
  background:
    linear-gradient(90deg, rgba(0, 229, 255, 0.08), transparent 40%),
    linear-gradient(270deg, rgba(255, 78, 205, 0.07), transparent 34%);
}

.tutorial-layout {
  width: min(1160px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.82fr 1.18fr;
  gap: 28px;
  align-items: center;
}

.tutorial-copy h2 {
  margin: 10px 0 12px;
  font-size: 42px;
  line-height: 1.12;
}

.video-shell {
  overflow: hidden;
  border: 1px solid rgba(130, 231, 255, 0.28);
  border-radius: 8px;
  background: rgba(4, 10, 18, 0.92);
  box-shadow: 0 26px 90px rgba(0, 229, 255, 0.16);
}

.video-topbar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 14px;
  color: var(--muted);
  border-bottom: 1px solid rgba(130, 231, 255, 0.18);
  background: rgba(255, 255, 255, 0.05);
  font-size: 12px;
}

.video-topbar span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--teal);
}

.video-topbar span:nth-child(2) {
  background: var(--green);
}

.video-topbar span:nth-child(3) {
  background: var(--magenta);
}

.video-topbar strong {
  margin-left: auto;
  font-weight: 700;
}

.tutorial-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #02050a;
}

.video-placeholder {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  color: var(--muted);
  border-top: 1px solid rgba(130, 231, 255, 0.18);
  font-size: 13px;
}

.video-placeholder strong {
  color: var(--green);
}

.process-band {
  border-color: rgba(130, 231, 255, 0.22);
  background: rgba(130, 231, 255, 0.22);
}

.process-band div,
.price-table th,
.price-table td {
  background: rgba(8, 18, 30, 0.9);
  border-color: rgba(130, 231, 255, 0.16);
}

.price-table th {
  color: var(--green);
}

.contact-panel {
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.18), rgba(255, 78, 205, 0.08)),
    rgba(5, 12, 22, 0.92);
  border: 1px solid rgba(130, 231, 255, 0.22);
}

input,
textarea,
select {
  color: var(--ink);
  background: rgba(2, 8, 15, 0.86);
  border-color: rgba(130, 231, 255, 0.28);
}

input::placeholder,
textarea::placeholder {
  color: #6f8499;
}

.site-footer {
  color: var(--muted);
  background: rgba(3, 8, 16, 0.9);
  border-top-color: rgba(130, 231, 255, 0.18);
}

.login-page {
  background: #03050a;
}

@media (max-width: 980px) {
  .ai-hero {
    min-height: 680px;
    padding-top: 68px;
  }

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

  .hero-title,
  .tutorial-copy h2,
  .section-heading h2,
  .page-title h1,
  .admin-title h1 {
    font-size: 32px;
  }

  .tutorial-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .ai-hero {
    min-height: 720px;
    padding: 48px 18px 58px;
  }

  .ai-hero h1 {
    font-size: 46px;
  }

  .hero-title {
    font-size: 24px;
  }

  .video-placeholder {
    display: grid;
  }
}

/* Template-inspired rebuild based on the referenced AI agency style */
:root {
  --ink: #f8fafc;
  --muted: #94a3b8;
  --line: rgba(148, 163, 184, 0.2);
  --soft: #020617;
  --paper: rgba(15, 23, 42, 0.72);
  --teal: #3b82f6;
  --green: #34d399;
  --gold: #facc15;
  --magenta: #8b5cf6;
  --shadow: 0 24px 90px rgba(2, 6, 23, 0.48);
}

body {
  background:
    linear-gradient(180deg, #020617 0%, #0f172a 46%, #020617 100%);
  color: var(--ink);
}

body::before {
  background:
    linear-gradient(rgba(59, 130, 246, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.7;
}

.site-header,
.admin-header {
  min-height: 64px;
  padding: 10px clamp(18px, 4vw, 64px);
  background: rgba(2, 6, 23, 0.82);
  border-bottom: 1px solid rgba(30, 41, 59, 0.86);
  backdrop-filter: blur(18px);
  box-shadow: none;
}

.brand-mark {
  color: #fff;
  background: #3b82f6;
  box-shadow: 0 12px 28px rgba(59, 130, 246, 0.28);
}

.nav-link,
.text-button {
  color: #cbd5e1;
}

.nav-link:hover,
.nav-link.is-active,
.text-button:hover {
  color: #fff;
  background: rgba(59, 130, 246, 0.12);
}

.template-hero {
  display: block;
  min-height: auto;
  padding: 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(59, 130, 246, 0.08), transparent 34%),
    linear-gradient(315deg, rgba(139, 92, 246, 0.08), transparent 32%),
    #020617;
}

.hero-accent {
  position: absolute;
  pointer-events: none;
  width: 420px;
  height: 220px;
  filter: blur(70px);
  opacity: 0.28;
  transform: rotate(-14deg);
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.68), rgba(52, 211, 153, 0.3));
}

.hero-accent-one {
  top: 88px;
  right: 3%;
}

.hero-accent-two {
  left: 4%;
  bottom: 120px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.46), rgba(59, 130, 246, 0.24));
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: min(1160px, calc(100% - 36px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 54px;
  align-items: center;
  padding: 88px 0 74px;
}

.template-hero .hero-copy {
  max-width: 640px;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.hero-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 16px rgba(52, 211, 153, 0.8);
}

.template-hero h1 {
  margin: 24px 0 16px;
  font-size: 64px;
  line-height: 1.02;
  letter-spacing: 0;
  color: #fff;
  text-shadow: none;
}

.template-hero h1 span {
  display: block;
  color: #60a5fa;
}

.hero-title {
  max-width: 680px;
  font-size: 24px;
  line-height: 1.45;
  color: #e2e8f0;
  font-weight: 700;
}

.hero-text {
  max-width: 640px;
  color: #94a3b8;
  font-size: 16px;
}

.button {
  min-height: 44px;
  border-radius: 999px;
  padding: 11px 18px;
}

.button.primary {
  color: #fff;
  background: #3b82f6;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 16px 34px rgba(59, 130, 246, 0.28);
}

.button.primary:hover {
  background: #2563eb;
}

.button.secondary,
.button.ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.28);
}

.download-button::before {
  color: #1e3a8a;
  background: #dbeafe;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 30px 0 0;
}

.hero-stats div {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(14px);
}

.hero-stats dt {
  color: #fff;
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.hero-stats dd {
  margin: 6px 0 0;
  color: #94a3b8;
  font-size: 12px;
}

.hero-composition {
  position: relative;
}

.hero-showcase {
  position: relative;
  aspect-ratio: 4 / 5;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-showcase img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  opacity: 0.94;
}

.floating-card {
  position: absolute;
  max-width: 245px;
  padding: 13px 15px;
  border: 1px solid rgba(148, 163, 184, 0.26);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.76);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px rgba(2, 6, 23, 0.32);
}

.floating-card strong,
.floating-card span {
  display: block;
}

.floating-card strong {
  color: #f8fafc;
  font-size: 14px;
}

.floating-card span {
  margin-top: 4px;
  color: #94a3b8;
  font-size: 12px;
}

.floating-card-top {
  left: -18px;
  top: 34px;
}

.floating-card-bottom {
  right: -20px;
  bottom: 38px;
}

.client-bar {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  padding: 22px 18px;
  color: #94a3b8;
  border-top: 1px solid rgba(30, 41, 59, 0.86);
  border-bottom: 1px solid rgba(30, 41, 59, 0.86);
  background: rgba(2, 6, 23, 0.72);
  backdrop-filter: blur(12px);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.section,
.page-title,
.table-wrap,
.contact-panel,
.board-layout,
.narrow {
  padding-top: 84px;
  padding-bottom: 84px;
}

.section-heading h2,
.page-title h1,
.admin-title h1,
.tutorial-copy h2 {
  font-size: 40px;
  line-height: 1.14;
  color: #fff;
}

.quick-facts div,
.service-card,
.message-card,
.metric,
.admin-panel,
.admin-message,
.service-edit,
.login-box,
.public-form,
.admin-form,
.price-table,
.promise-grid article,
.video-shell {
  background: rgba(15, 23, 42, 0.72);
  border-color: rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 54px rgba(2, 6, 23, 0.24);
}

.service-card::after {
  border-top-color: rgba(59, 130, 246, 0.32);
}

.badge {
  color: #bfdbfe;
  background: rgba(59, 130, 246, 0.14);
  border: 1px solid rgba(96, 165, 250, 0.22);
}

.tutorial-section {
  background: rgba(15, 23, 42, 0.34);
}

.video-topbar {
  background: rgba(2, 6, 23, 0.62);
}

.video-topbar span {
  background: #60a5fa;
}

.video-topbar span:nth-child(2) {
  background: #34d399;
}

.video-topbar span:nth-child(3) {
  background: #8b5cf6;
}

.process-band div,
.price-table th,
.price-table td {
  background: rgba(15, 23, 42, 0.76);
}

.contact-panel {
  background: rgba(15, 23, 42, 0.82);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: 1fr;
    padding-top: 58px;
  }

  .template-hero h1 {
    font-size: 48px;
  }

  .hero-showcase {
    max-width: 520px;
    margin: 0 auto;
  }

  .floating-card-top {
    left: 12px;
  }

  .floating-card-bottom {
    right: 12px;
  }
}

@media (max-width: 560px) {
  .template-hero h1 {
    font-size: 38px;
  }

  .hero-title {
    font-size: 20px;
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

  .floating-card {
    position: static;
    max-width: none;
    margin-top: 10px;
  }

  .hero-showcase {
    aspect-ratio: auto;
  }

  .hero-showcase img {
    aspect-ratio: 4 / 5;
  }
}

/* Quantum AI reference layout */
[hidden] {
  display: none !important;
}

.quantum-hero {
  position: relative;
  overflow: hidden;
  min-height: 760px;
  padding-top: 48px;
  background:
    radial-gradient(700px 420px at 69% 48%, rgba(0, 195, 255, 0.12), transparent 65%),
    linear-gradient(180deg, #0a0a12 0%, #07070d 100%);
}

.quantum-shell {
  width: min(1120px, calc(100% - 36px));
  min-height: 610px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(420px, 1.06fr);
  gap: 70px;
  align-items: center;
}

.quantum-copy {
  padding-top: 22px;
}

.release-pill {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  padding: 10px 18px;
  border-radius: 999px;
  color: #cbd5e1;
  background: rgba(7, 43, 58, 0.78);
  font-size: 14px;
  font-weight: 800;
}

.release-pill strong {
  color: #00c8ff;
}

.release-pill span {
  color: #e2e8f0;
}

.quantum-copy h1 {
  margin: 32px 0 24px;
  max-width: 620px;
  color: #fff;
  font-size: 58px;
  line-height: 1.18;
  letter-spacing: 0;
}

.quantum-copy h1 span {
  display: block;
  background: linear-gradient(90deg, #00c8ff 0%, #8b5cf6 86%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.quantum-copy p {
  max-width: 560px;
  color: #8c8ca3;
  font-size: 18px;
  line-height: 1.75;
}

.quantum-copy .hero-actions {
  margin-top: 26px;
}

.quantum-copy .button {
  min-width: 176px;
  border-radius: 8px;
  font-size: 16px;
}

.quantum-copy .button.primary {
  color: #07111c;
  background: linear-gradient(90deg, #14c8ff, #8b5cf6);
  border: 0;
  box-shadow: 0 18px 50px rgba(20, 200, 255, 0.2);
}

.quantum-copy .button.secondary {
  color: #00d9ff;
  background: transparent;
  border: 2px solid #00c8ff;
}

.quantum-stats {
  display: flex;
  gap: 42px;
  margin: 44px 0 0;
}

.quantum-stats dt {
  color: #24b9ff;
  font-size: 36px;
  font-weight: 900;
  line-height: 1;
}

.quantum-stats dd {
  margin: 10px 0 0;
  color: #77778c;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.quantum-visual {
  position: relative;
  min-height: 430px;
}

.dashboard-mockup,
.dashboard-video {
  position: relative;
  width: min(560px, 100%);
  margin-left: auto;
  padding: 28px;
  border-radius: 8px;
  background: #17172a;
  box-shadow:
    0 0 0 14px rgba(24, 24, 43, 0.72),
    0 42px 110px rgba(0, 195, 255, 0.2);
}

.mockup-screen {
  overflow: hidden;
  border-radius: 8px;
  background: #0c0d1b;
}

.mockup-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mockup-screen-large {
  height: 170px;
  border: 12px solid #22223b;
}

.mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 14px;
  margin-top: 16px;
}

.mockup-screen-small {
  height: 132px;
  border: 10px solid #22223b;
}

.metric-tile {
  display: grid;
  place-items: center;
  min-height: 132px;
  border-radius: 8px;
  color: #07111c;
  background: linear-gradient(135deg, #18c9ff, #8b5cf6);
  text-align: center;
}

.metric-tile strong,
.metric-tile span {
  display: block;
}

.metric-tile strong {
  font-size: 36px;
  line-height: 1;
}

.metric-tile span {
  margin-top: 10px;
  font-weight: 800;
}

.dashboard-video {
  padding: 0;
  overflow: hidden;
}

.dashboard-video .tutorial-video {
  width: 100%;
  aspect-ratio: 16 / 9;
}

.dashboard-video .video-placeholder {
  background: rgba(12, 13, 27, 0.95);
}

.quantum-hero .client-bar {
  margin-top: 0;
  color: rgba(148, 148, 169, 0.46);
  background: rgba(10, 10, 18, 0.85);
  border-color: rgba(255, 255, 255, 0.06);
}

@media (max-width: 980px) {
  .quantum-shell {
    grid-template-columns: 1fr;
    gap: 42px;
    padding: 34px 0 60px;
  }

  .quantum-copy h1 {
    font-size: 44px;
  }

  .dashboard-mockup,
  .dashboard-video {
    margin: 0 auto;
  }
}

@media (max-width: 560px) {
  .quantum-hero {
    padding-top: 26px;
  }

  .quantum-copy h1 {
    font-size: 34px;
  }

  .quantum-copy p {
    font-size: 15px;
  }

  .quantum-stats {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .dashboard-mockup,
  .dashboard-video {
    padding: 14px;
    box-shadow:
      0 0 0 8px rgba(24, 24, 43, 0.72),
      0 28px 80px rgba(0, 195, 255, 0.14);
  }

  .mockup-screen-large {
    height: 150px;
  }

  .mockup-grid {
    grid-template-columns: 1fr;
  }
}

/* 23151-inspired final styling: mature dark creative agency rhythm */
:root {
  --ink: #f8fafc;
  --muted: #a5b4c7;
  --line: rgba(148, 163, 184, 0.18);
  --soft: #020617;
  --paper: rgba(15, 23, 42, 0.72);
  --teal: #2563eb;
  --green: #34d399;
  --gold: #facc15;
  --magenta: #8b5cf6;
}

.site-header {
  background: rgba(2, 6, 23, 0.86);
  border-bottom: 1px solid rgba(30, 41, 59, 0.84);
  backdrop-filter: blur(20px);
}

.brand-mark {
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.quantum-hero {
  padding-top: 38px;
  background:
    radial-gradient(520px 320px at 18% 30%, rgba(37, 99, 235, 0.18), transparent 70%),
    radial-gradient(620px 360px at 76% 52%, rgba(37, 99, 235, 0.16), transparent 70%),
    #020617;
}

.quantum-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(148, 163, 184, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.9), rgba(0,0,0,0.25) 72%, transparent);
}

.quantum-shell {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 0.96fr) minmax(420px, 1.04fr);
  gap: 82px;
  padding: 88px 0 78px;
}

.release-pill {
  background: rgba(15, 23, 42, 0.76);
  border: 1px solid rgba(148, 163, 184, 0.22);
  backdrop-filter: blur(14px);
}

.release-pill strong {
  color: #60a5fa;
}

.quantum-copy h1 {
  max-width: 680px;
  font-size: 60px;
  line-height: 1.08;
  font-weight: 900;
}

.quantum-copy h1 span {
  background: linear-gradient(90deg, #60a5fa, #8b5cf6);
  -webkit-background-clip: text;
  background-clip: text;
}

.quantum-copy p {
  color: #a5b4c7;
}

.quantum-copy .button.primary {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
}

.quantum-copy .button.secondary,
.quantum-copy .button.ghost {
  color: #e2e8f0;
  background: rgba(15, 23, 42, 0.68);
  border-color: rgba(148, 163, 184, 0.28);
}

.self-service-button {
  border-color: rgba(52, 211, 153, 0.38) !important;
  color: #bbf7d0 !important;
}

.quantum-stats dt {
  color: #60a5fa;
}

.visual-label {
  position: absolute;
  z-index: 3;
  left: 22px;
  top: -42px;
  color: #e2e8f0;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.visual-label::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 9px;
  border-radius: 999px;
  background: #34d399;
  box-shadow: 0 0 18px rgba(52, 211, 153, 0.75);
}

.dashboard-mockup,
.dashboard-video {
  background: rgba(15, 23, 42, 0.86);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  box-shadow:
    0 0 0 14px rgba(15, 23, 42, 0.55),
    0 38px 100px rgba(37, 99, 235, 0.22);
}

.mockup-screen,
.metric-tile {
  border-radius: 8px;
}

.metric-tile {
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #8b5cf6);
}

.client-bar {
  position: relative;
  z-index: 1;
}

.section {
  width: min(1160px, calc(100% - 36px));
}

.section-heading {
  align-items: flex-start;
}

.section-heading h2 {
  max-width: 620px;
}

.service-card,
.promise-grid article,
.message-card,
.admin-panel,
.admin-message,
.service-edit,
.public-form,
.login-box {
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.84), rgba(8, 13, 27, 0.84));
  border-color: rgba(148, 163, 184, 0.18);
}

.service-card {
  min-height: 255px;
}

.cases-section {
  width: 100%;
  max-width: none;
  padding-left: max(18px, calc((100vw - 1160px) / 2));
  padding-right: 0;
}

.cases-section .section-heading {
  width: min(1160px, calc(100% - 36px));
  margin-right: auto;
}

.case-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(320px, 440px);
  gap: 18px;
  overflow-x: auto;
  padding: 10px max(18px, calc((100vw - 1160px) / 2)) 20px 0;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.case-card {
  scroll-snap-align: start;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 8px;
  background: rgba(15, 23, 42, 0.78);
  box-shadow: 0 22px 80px rgba(2, 6, 23, 0.34);
}

.case-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #020617;
}

.case-card div {
  padding: 18px;
}

.case-card strong {
  display: block;
  color: #fff;
  font-size: 18px;
}

.case-card p {
  margin: 8px 0 0;
  color: var(--muted);
}

.case-placeholder {
  display: grid;
  min-height: 260px;
  place-items: center;
}

.case-edit-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 18px;
  align-items: start;
}

.case-edit-layout img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.22);
}

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

  .visual-label {
    position: static;
    margin-bottom: 16px;
  }

  .case-edit-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .quantum-copy h1 {
    font-size: 38px;
  }

  .case-carousel {
    grid-auto-columns: minmax(280px, 84vw);
  }
}
