/*
 * DotCity Technologies brand refinements
 * Kept separate from the original stylesheet so page-specific legacy styles
 * remain easy to maintain.
 */
:root {
  --ink: #171421;
  --ink-soft: #241f30;
  --purple: #76559f;
  --purple-bright: #cbb5ed;
  --purple-pale: #f0eafb;
  --lilac: #f8f6fa;
  --muted: #66616d;
  --line: #e7e3eb;
  --shadow: 0 22px 60px rgba(28, 20, 40, 0.1);
}

html[data-theme="light"] {
  --ink: #171421;
  --ink-soft: #241f30;
  --purple: #76559f;
  --purple-bright: #cbb5ed;
  --purple-pale: #f0eafb;
  --lilac: #f8f6fa;
  --muted: #66616d;
  --line: #e7e3eb;
}

html {
  scroll-padding-top: 90px;
}

body {
  color: var(--ink);
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  color: var(--ink);
  background: var(--purple-bright);
}

:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
}

.site-header {
  height: 78px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom-color: rgba(231, 227, 235, 0.72);
}

.header-inner {
  gap: 18px;
}

.brand {
  gap: 11px;
  flex: 0 0 auto;
  font: inherit;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border: 1px solid var(--purple);
  border-radius: 50%;
  color: var(--purple);
  font-size: 0;
}

.brand-mark::before {
  content: "D";
  font: 600 13px/1 var(--display);
  letter-spacing: -0.04em;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  color: var(--ink);
  font: 600 20px/1 var(--display);
  letter-spacing: -0.055em;
  white-space: nowrap;
}

.brand-name .brand-light {
  color: var(--purple);
  font-weight: 400;
}

.brand-name small {
  margin: 0 0 1px 5px;
  color: #716b78;
  font: 500 8px/1 var(--mono);
  letter-spacing: 0.13em;
}

.desktop-nav {
  gap: clamp(18px, 2vw, 29px);
  margin-left: auto;
}

.desktop-nav a {
  color: #605b67;
  font-size: 12px;
  letter-spacing: 0.005em;
}

.header-cta {
  padding: 12px 18px;
  background: var(--ink);
  font-size: 12px;
}

.header-cta:hover {
  background: var(--purple);
  color: #fff;
}

.header-login {
  font-size: 12px;
}

.hero-home {
  min-height: 660px;
  padding: 94px 0 80px;
  background:
    radial-gradient(ellipse at 78% 20%, rgba(118, 85, 159, 0.24), transparent 34%),
    var(--ink);
}

.hero-grid {
  gap: clamp(36px, 6vw, 78px);
}

.hero h1 {
  max-width: 660px;
  font-size: clamp(50px, 6vw, 78px);
  line-height: 0.99;
  letter-spacing: -0.075em;
}

.hero-home h1 em {
  color: #cbb5ed;
}

.hero-lead {
  max-width: 480px;
  color: #d0cbd5;
  font-size: 15px;
  line-height: 1.8;
}

.hero-home .button {
  min-height: 49px;
  padding-inline: 20px;
}

.hero-home .button-secondary,
.cta-section .button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.44);
  background: transparent;
  color: #fff;
}

.hero-home .button-secondary:hover,
.cta-section .button-secondary:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

.hero-home .button-ghost-light {
  border-color: rgba(255, 255, 255, 0.38);
  color: #fff;
}

.hero-home .button-ghost-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.09);
}

.hero-note {
  margin-top: 34px;
  color: #b9b2c2;
  font-size: 10px;
  letter-spacing: 0.09em;
}

.section {
  padding-block: 112px;
}

.section-soft {
  background: var(--lilac);
}

.section-kicker {
  color: #706a77;
  letter-spacing: 0.11em;
}

.section-kicker span:first-child,
.section-kicker i {
  color: var(--purple);
}

.service-grid {
  gap: 12px;
  border: 0;
  background: transparent;
}

.service-card {
  min-height: 262px;
  padding: 27px 26px 28px;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.service-card:hover {
  border-color: #3d344b;
  background: #211b2d;
  box-shadow: 0 18px 38px rgba(20, 14, 29, 0.13);
  transform: translateY(-3px);
}

.service-card h3 {
  letter-spacing: -0.045em;
}

.service-card p {
  color: #5e5966;
  font-size: 12px;
}

.service-tags span {
  color: #5f5966;
}

.page-hero {
  padding: 106px 0 88px;
  background:
    radial-gradient(ellipse at 79% 28%, rgba(118, 85, 159, 0.22), transparent 31%),
    var(--ink);
}

.page-hero:after {
  right: 8%;
  top: 22px;
  color: rgba(203, 181, 237, 0.12);
  font-size: 230px;
}

.page-hero h1 {
  max-width: 760px;
  font-size: clamp(48px, 6.5vw, 74px);
  line-height: 1;
  letter-spacing: -0.075em;
}

.page-hero p {
  max-width: 570px;
  color: #d0cbd5;
  font-size: 15px;
  line-height: 1.8;
}

.pricing-jump {
  position: sticky;
  top: 78px;
  z-index: 12;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(14px);
}

.pricing-jump-inner {
  min-height: 68px;
}

.pricing-jump-label,
.pricing-card-type,
.pricing-disclosure-label,
.pricing-cost-label {
  letter-spacing: 0.13em;
}

.pricing-jump-links a {
  border-color: #e5e0e9;
  color: #393342;
  font-size: 11px;
}

.pricing-jump-links a:hover,
.pricing-jump-links a:focus-visible {
  border-color: var(--purple);
  background: var(--purple-pale);
}

.pricing-section[id],
#outside-costs {
  scroll-margin-top: 164px;
}

.pricing-section-heading h2 {
  letter-spacing: -0.07em;
}

.pricing-section-heading > p {
  color: #5d5864;
  font-size: 13px;
}

.pricing-card {
  padding: 23px 20px 19px;
  border-color: #e7e2ec;
  border-radius: 13px;
  box-shadow: 0 4px 18px rgba(28, 20, 40, 0.025);
}

.pricing-card-featured {
  border-color: #a38ac4;
  background: linear-gradient(180deg, #fcfaff 0%, #fff 100%);
  box-shadow: 0 0 0 1px rgba(118, 85, 159, 0.14);
}

.pricing-featured-label {
  position: static;
  display: inline-flex;
  align-self: flex-start;
  margin: 0 0 11px;
  padding: 5px 8px;
  border-radius: 100px;
  background: var(--purple-pale);
  color: #624582;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.pricing-card-type {
  color: #696371;
  font-size: 9px;
}

.pricing-card h3 {
  min-height: 0;
  margin: 13px 0 14px;
  font-size: 20px;
}

.pricing-amount {
  font-size: clamp(17px, 1.55vw, 21px);
  overflow-wrap: anywhere;
}

.pricing-usd,
.pricing-detail {
  color: #645e6c;
  font-size: 10px;
}

.pricing-features {
  gap: 11px;
  color: #45404c;
  font-size: 11px;
  line-height: 1.65;
}

.pricing-card-link {
  color: #2a2432;
  font-size: 11px;
}

.pricing-context-note {
  border: 1px solid #e7e2ec;
  border-radius: 12px;
  background: #f2eef7;
}

.pricing-context-note p {
  color: #514b58;
  font-size: 12px;
}

.pricing-disclosure p {
  color: #e4dfea;
}

.pricing-disclosure {
  background: #211b2d;
  color: #fff;
}

.pricing-disclosure-label {
  color: #cbb5ed;
}

.pricing-cost-row h3 {
  font-size: 14px;
}

.pricing-cost-row p,
.pricing-cost-aside p {
  font-size: 12px;
}

.site-footer {
  background: #f5f3f7;
}

.brand-footer .brand-name {
  font-size: 21px;
}

.footer-label {
  color: #4e4855;
}

.footer-col > a,
.footer-contact p,
.footer-brand-col > p,
.footer-bottom,
.footer-bottom a {
  color: #55505b;
}

.menu-toggle:focus-visible,
.slider-button:focus-visible,
.slider-dots button:focus-visible {
  outline-offset: 4px;
}

.contact-grid {
  gap: clamp(36px, 7vw, 88px);
}

.contact-direct > span:nth-child(2),
.contact-location > span:last-child,
.work-meta > div {
  min-width: 0;
}

.contact-direct b {
  overflow-wrap: anywhere;
}

.contact-form {
  border: 1px solid var(--line);
  border-radius: 12px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-width: 0;
}

.contact-form .button {
  width: 100%;
  min-height: 50px;
}

.contact-form-note {
  margin: -1px 0 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.contact-form-note a {
  color: #624582;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-feedback:not([hidden]) {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--purple);
  border-radius: 8px;
  background: var(--purple-pale);
  color: #30263f;
  font-size: 12px;
  line-height: 1.6;
}

.filter {
  white-space: nowrap;
}

.work-meta h3,
.work-meta p {
  overflow-wrap: anywhere;
}

@media (max-width: 1000px) {
  .desktop-nav {
    gap: 16px;
  }

  .brand-name {
    font-size: 19px;
  }

  .pricing-card {
    min-height: 100%;
  }
}

@media (max-width: 760px) {
  html {
    scroll-padding-top: 76px;
  }

  .site-header {
    height: 70px;
  }

  .brand {
    gap: 9px;
  }

  .brand-mark {
    width: 26px;
    height: 26px;
    flex-basis: 26px;
  }

  .brand-name {
    font-size: 18px;
  }

  .brand-name small {
    font-size: 7px;
  }

  .mobile-nav {
    top: 69px;
    padding: 10px max(18px, calc((100vw - 560px) / 2)) 20px;
    background: rgba(255, 255, 255, 0.985);
  }

  .hero-home {
    min-height: 0;
    padding: 68px 0 58px;
  }

  .hero-grid {
    gap: 24px;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .hero h1 {
    max-width: 12ch;
    margin: 21px 0 19px;
    font-size: clamp(45px, 11.5vw, 58px);
  }

  .hero-lead {
    font-size: 14px;
  }

  .hero-home .button-row {
    gap: 10px;
    margin-top: 25px;
  }

  .hero-home .button {
    min-height: 47px;
    padding-inline: 16px;
    font-size: 12px;
  }

  .hero-note {
    margin-top: 24px;
    font-size: 9px;
  }

  .hero-art {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 7px 0;
  }

  .art-glow {
    width: 260px;
    height: 260px;
  }

  .art-window {
    width: 100%;
    grid-column: 1 / -1;
    grid-row: 1;
    transform: none;
  }

  .floating-card {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    width: fit-content;
    max-width: 100%;
    min-height: 46px;
    padding: 9px 10px;
    transform: none;
  }

  .floating-card-top {
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
  }

  .floating-card-bottom {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .floating-card b {
    font-size: 10px;
  }

  .floating-card small {
    font-size: 8px;
  }

  .section {
    padding-block: 76px;
  }

  .service-grid {
    gap: 10px;
  }

  .service-card {
    min-height: 0;
    padding: 23px 21px 24px;
    border-radius: 10px;
  }

  .service-card p {
    max-width: 42ch;
    font-size: 13px;
  }

  .pricing-jump {
    top: 70px;
  }

  .pricing-jump-inner {
    display: block;
    min-height: 0;
    padding: 12px 0 10px;
  }

  .pricing-jump-label {
    display: block;
    margin-bottom: 6px;
  }

  .pricing-jump-links {
    gap: 7px;
    margin-right: 0;
    padding: 4px 0 7px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .pricing-jump-links a {
    padding: 8px 11px;
    font-size: 10px;
  }

  .pricing-section[id],
  #outside-costs {
    scroll-margin-top: 150px;
  }

  .page-hero {
    padding: 72px 0 65px;
  }

  .page-hero h1 {
    max-width: 12ch;
    margin: 21px 0 18px;
    font-size: clamp(44px, 11vw, 58px);
  }

  .page-hero p {
    font-size: 14px;
  }

  .page-hero:after {
    top: 23px;
    right: -23px;
    font-size: 145px;
  }

  .pricing-overview {
    padding-bottom: 4px;
  }

  .pricing-section {
    padding-block: 60px;
  }

  .pricing-section-heading {
    margin-bottom: 23px;
  }

  .pricing-section-heading h2 {
    font-size: clamp(34px, 9vw, 43px);
  }

  .pricing-card {
    padding: 21px;
  }

  .pricing-features {
    font-size: 12px;
  }

  .pricing-costs {
    padding-block: 62px;
  }

  .pricing-cost-row {
    gap: 4px;
    padding: 13px 0;
  }

  .footer-top {
    gap: 34px 20px;
  }
}

@media (max-width: 400px) {
  .hero-art {
    gap: 9px;
  }

  .floating-card {
    padding: 8px;
    gap: 7px;
  }

  .floating-card .pulse-ring,
  .floating-card .spark-icon {
    flex: 0 0 23px;
  }

  .floating-card small {
    max-width: 16ch;
  }

  .hero-home .button-row .button {
    padding-inline: 13px;
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Services page: clearer navigation and a more useful service-card grid. */
.services-page .header-inner {
  gap: 12px;
}

.services-page .desktop-nav {
  gap: 3px;
  margin-left: auto;
}

.services-page .desktop-nav a {
  padding: 9px 11px;
  border-radius: 999px;
  color: #625d68;
  font-size: 11px;
  font-weight: 600;
}

.services-page .desktop-nav a::after {
  display: none;
}

.services-page .desktop-nav a:hover {
  background: #f8f6fa;
  color: var(--ink);
}

.services-page .desktop-nav a.active {
  background: var(--purple-pale);
  color: #624582;
}

.services-page .pricing-jump {
  border-bottom: 1px solid rgba(231, 227, 235, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px rgba(28, 20, 40, 0.055);
  backdrop-filter: blur(16px);
}

.services-page .pricing-jump-inner {
  min-height: 74px;
  gap: 22px;
}

.services-page .pricing-jump-label {
  color: #746b7e;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.14em;
}

.services-page .pricing-jump-links {
  flex: 1 1 auto;
  justify-content: flex-end;
  gap: 7px;
  scrollbar-width: none;
}

.services-page .pricing-jump-links::-webkit-scrollbar {
  display: none;
}

.services-page .pricing-jump-links a {
  min-height: 36px;
  padding: 8px 12px;
  border-color: transparent;
  background: #f7f5f9;
  color: #504957;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.services-page .pricing-jump-links a:hover,
.services-page .pricing-jump-links a:focus-visible {
  border-color: #d8cbe8;
  background: #efe8f6;
  color: #402d58;
  transform: translateY(-1px);
}

.services-page .pricing-jump-links a.is-current {
  border-color: #261d31;
  background: #261d31;
  color: #fff;
}

.services-page .pricing-jump-links a.is-current:focus-visible {
  outline-color: var(--purple);
}

.services-page .pricing-disclosure {
  padding: 19px 0;
  border-bottom: 1px solid #e9e4ee;
  background: #f6f3f8;
  color: var(--ink);
}

.services-page .pricing-disclosure-inner {
  grid-template-columns: 1fr;
  gap: 0;
}

.services-page .pricing-disclosure-label {
  color: #725592;
}

.services-page .pricing-disclosure p {
  max-width: 760px;
  margin-top: 5px;
  color: #554e5b;
  font-size: 11px;
}

.services-page .service-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
  background: transparent;
}

.services-page .service-card {
  position: relative;
  min-height: 326px;
  overflow: hidden;
  padding: 24px 23px 19px;
  border: 1px solid #e7e2ec;
  border-radius: 15px;
  background: linear-gradient(150deg, #fff 0%, #fbf9fd 100%);
  box-shadow: 0 5px 20px rgba(28, 20, 40, 0.035);
  color: var(--ink);
  transition: border-color 0.24s ease, background 0.24s ease, box-shadow 0.24s ease, transform 0.24s ease;
}

.services-page .service-card::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(90deg, #76559f, #cbb5ed);
  content: "";
  opacity: 0;
  transition: opacity 0.24s ease;
}

.services-page .service-card-featured,
.services-page .service-card-specialist {
  border-color: #d9cce9;
}

.services-page .service-card-featured::before,
.services-page .service-card-specialist::before {
  opacity: 1;
}

.services-page .service-card:hover {
  border-color: #3d344b;
  background: #211b2d;
  box-shadow: 0 18px 38px rgba(20, 14, 29, 0.13);
  color: #fff;
  transform: translateY(-3px);
}

.services-page .service-card:hover p {
  color: #d0c9d8;
}

.services-page .service-card:hover .service-number,
.services-page .service-card:hover .service-tags span {
  border-color: #554765;
  color: #cbb5ed;
}

.services-page .service-card:hover .service-icon {
  background: rgba(203, 181, 237, 0.13);
  color: #d7c4f0;
}

.services-page .service-top {
  align-items: center;
}

.services-page .service-number {
  color: #817889;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.services-page .service-arrow {
  color: #76559f;
  font-size: 18px;
}

.services-page .service-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 18px 0 14px;
  border-radius: 14px;
  background: #f0eafb;
  color: #76559f;
  font-size: 23px;
  place-items: center;
}

.services-page .service-icon.icon-mobile,
.services-page .service-icon.icon-spark {
  font-size: 25px;
}

.services-page .service-card h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.2;
  letter-spacing: -0.045em;
}

.services-page .service-card p {
  max-width: 38ch;
  margin-top: 9px;
  color: #625c68;
  font-size: 11px;
  line-height: 1.7;
}

.services-page .service-tags {
  flex-wrap: wrap;
  gap: 6px;
  padding-top: 16px;
}

.services-page .service-tags span {
  padding: 5px 8px;
  border-color: #e7e2ec;
  border-radius: 999px;
  background: #f8f6fa;
  color: #625c68;
  font-size: 8px;
}

.services-page .service-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 15px;
  padding-top: 12px;
  border-top: 1px solid #e7e2ec;
  color: #493b5c;
  font-size: 9px;
  font-weight: 800;
  line-height: 1.4;
}

.services-page .service-card-link span:last-child {
  flex: 0 0 auto;
  color: #76559f;
  font-size: 16px;
  transition: transform 0.2s ease;
}

.services-page .service-card-link:hover span:last-child {
  transform: translateX(4px);
}

.services-page .service-card:hover .service-card-link {
  border-top-color: #554765;
  color: #f4effa;
}

.services-page .service-card:hover .service-card-link span:last-child {
  color: #d7c4f0;
}

.services-page #school-management-system,
.services-page #billing-system,
.services-page #wifi-billing-system,
.services-page #capabilities {
  scroll-margin-top: 164px;
}

@media (max-width: 1000px) {
  .services-page .desktop-nav {
    gap: 0;
  }

  .services-page .desktop-nav a {
    padding-inline: 8px;
    font-size: 10px;
  }

  .services-page .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .services-page .pricing-jump-inner {
    gap: 14px;
  }

  .services-page .pricing-jump-links {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .services-page .mobile-nav a[href="/services/"] {
    border-radius: 9px;
    background: #f0eafb;
    color: #624582;
    font-weight: 700;
  }

  .services-page .pricing-jump-inner {
    display: block;
    min-height: 0;
    padding: 9px 0 10px;
  }

  .services-page .pricing-jump-label {
    display: block;
    margin-bottom: 5px;
  }

  .services-page .pricing-jump-links {
    justify-content: flex-start;
    gap: 6px;
    margin-right: -18px;
    padding: 4px 18px 4px 0;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .services-page .pricing-jump-links a {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 9px;
  }

  .services-page .service-grid {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  .services-page .service-card {
    min-height: 0;
    padding: 22px 20px 18px;
  }

  .services-page .service-card p {
    max-width: 44ch;
    font-size: 12px;
  }

  .services-page #school-management-system,
  .services-page #billing-system,
  .services-page #wifi-billing-system,
  .services-page #capabilities {
    scroll-margin-top: 150px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .services-page .service-card,
  .services-page .service-card::before,
  .services-page .service-card-link span:last-child,
  .services-page .pricing-jump-links a {
    transition: none;
  }
}

@media (max-width: 760px) {
  .pricing-preview .price-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .pricing-preview .price-card .text-link {
    position: static;
    margin-top: auto;
    padding-top: 14px;
  }
}
