:root {
  color-scheme: light;
  --paper: #f8f7fc;
  --ink: #161426;
  --violet: #5b40db;
  --soft-violet: #a99aff;
  --lime: #d9fa86;
  --slate: #605b70;
  --white: #fff;
  --page: var(--paper);
  --text: var(--ink);
  --muted: var(--slate);
  --accent: var(--violet);
  --line: #dfdce9;
  --surface: var(--white);
  --section-background: #efedf8;
  --accent-surface: #eee9ff;
  --track-border: #b6aec7;
  --contact-background: var(--ink);
  font-family: "Inter", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--page);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --page: var(--ink);
  --text: var(--paper);
  --muted: #d1ccdf;
  --accent: var(--soft-violet);
  --line: #413a54;
  --surface: #272238;
  --section-background: #1d192e;
  --accent-surface: #352b51;
  --track-border: #827397;
  --contact-background: #100e1e;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.container {
  width: min(100% - 5rem, 75rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  transform: translateY(-200%);
  padding: .75rem 1rem;
  background: var(--surface);
  border-radius: .5rem;
}

.skip-link:focus { transform: none; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
main:focus, .site-header:focus, .section:focus { outline: none; }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto auto auto;
  align-items: center;
  gap: clamp(1rem, 2.3vw, 2rem);
  min-height: 5.25rem;
}

.brand { display: inline-flex; width: fit-content; border-radius: .15rem; }
.brand img { width: 10rem; height: auto; }
.brand .brand-dark, [data-theme="dark"] .brand-light { display: none; }
[data-theme="dark"] .brand .brand-dark { display: block; }

.theme-toggle {
  padding: 0;
  min-height: 2.75rem;
  border: 0;
  border-radius: 2rem;
  background: transparent;
  color: var(--muted);
  font: inherit;
  cursor: pointer;
}

.theme-toggle:not([hidden]) { display: grid; place-items: center; }
.theme-track {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  place-items: center;
  width: 3.75rem;
  height: 1.875rem;
  border: 1px solid var(--track-border);
  border-radius: 2rem;
  background: var(--accent-surface);
}

.theme-track::before {
  content: "";
  position: absolute;
  inset: 2px auto 2px 2px;
  width: 1.5rem;
  border-radius: 50%;
  background: var(--accent);
  transition: transform .18s ease;
}

.theme-track > span { position: relative; font-size: 1rem; line-height: 1; }
.theme-sun { color: var(--white); }
.theme-toggle[aria-checked="true"] .theme-track::before { transform: translateX(1.75rem); }
.theme-toggle[aria-checked="true"] .theme-sun { color: inherit; }
.theme-toggle[aria-checked="true"] .theme-moon { color: var(--ink); }
.theme-toggle:hover .theme-track { border-color: var(--accent); }
.theme-toggle:focus-visible { outline: none; }
.theme-toggle:focus-visible .theme-track { outline: 3px solid var(--accent); outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .theme-track::before { transition: none; }
}

.header-inner > .button { justify-self: end; }
.site-nav { display: flex; gap: 2rem; }
.site-nav a {
  display: grid;
  place-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .92rem;
  font-weight: 600;
  text-decoration: none;
}

.site-nav a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: .25em; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .85rem;
  width: fit-content;
  min-height: 3.5rem;
  padding: .85rem 1.25rem;
  border-radius: .55rem;
  background: var(--violet);
  color: var(--white);
  font-weight: 650;
  text-decoration: none;
  line-height: 1.2;
}

.button:hover { background: #4930bd; }
[data-theme="dark"] .button:not(.button-call) { background: var(--soft-violet); color: var(--ink); }
[data-theme="dark"] .button:not(.button-call):hover { background: #c2b7ff; }
.button span { font-size: 1.15em; }
.button-small { min-height: 2.75rem; padding: .65rem .9rem; font-size: .875rem; }

.hero {
  display: grid;
  grid-template-columns: 1.08fr 1fr;
  align-items: center;
  gap: clamp(2.25rem, 5.3vw, 5rem);
  padding-block: clamp(3.75rem, 7.8vw, 7rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .11em;
  line-height: 1.45;
  text-transform: uppercase;
}

.hero-dot {
  width: .58rem;
  height: .58rem;
  flex: 0 0 auto;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 .19rem var(--accent-surface);
}

h1 {
  margin-top: 1.15rem;
  font-size: clamp(2.55rem, 4.55vw, 4.5rem);
  font-weight: 760;
  letter-spacing: -.067em;
  line-height: 1.01;
}

h1 span { color: var(--accent); }
.hero-description {
  max-width: 29rem;
  margin-block: 1.4rem 1.8rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.45vw, 1.2rem);
  line-height: 1.6;
}

.hero-art {
  position: relative;
  display: grid;
  align-content: center;
  gap: .9rem;
  min-width: 0;
  padding: clamp(1.1rem, 3vw, 2.5rem);
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 100% 0, #927afd 0, transparent 52%),
    repeating-linear-gradient(90deg, #ffffff17 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, #ffffff17 0 1px, transparent 1px 28px),
    var(--violet);
  color: var(--white);
}

.demo-window {
  overflow: hidden;
  border: 1px solid #ffffff65;
  border-radius: .75rem;
  background: #252136;
  box-shadow: 0 1.1rem 2.1rem #22135c60;
}

.demo-toolbar { position: relative; display: flex; align-items: center; height: 2rem; padding-inline: .65rem; }
.demo-dots { display: flex; gap: .24rem; }
.demo-dots i { width: .32rem; height: .32rem; border-radius: 50%; background: #b9adcb; }
.demo-address {
  position: absolute;
  width: 35%;
  height: .5rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: .4rem;
  background: #514963;
}

.demo-site {
  display: grid;
  align-content: space-between;
  min-height: clamp(13rem, 23vw, 21rem);
  padding: clamp(.95rem, 2.25vw, 1.75rem);
  background:
    linear-gradient(90deg, #11151ae8 0%, #11151a70 58%, #11151a2e 100%),
    url("assets/contractor-demo.jpg") center / cover,
    #333447;
}

.demo-brand { font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.demo-brand span { display: block; margin-top: .15rem; font-size: .48rem; letter-spacing: .21em; }
.demo-copy { padding-top: 2rem; }
.demo-headline { font-size: clamp(1.65rem, 3.3vw, 3rem); font-weight: 720; line-height: 1; letter-spacing: -.05em; }
.demo-action {
  display: inline-flex;
  gap: .5rem;
  margin-top: .85rem;
  padding: .35rem .5rem;
  border: 1px solid #ffffff75;
  border-radius: .18rem;
  background: #19191f80;
  font-size: .62rem;
}

.hero-art figcaption { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 600; }
.hero-art figcaption span { width: .42rem; height: .42rem; border-radius: 50%; background: var(--lime); }

.section { padding-block: clamp(3.75rem, 7vw, 6rem); }
.services { border-block: 1px solid var(--line); background: var(--section-background); }
h2 {
  margin-top: .55rem;
  font-size: clamp(2rem, 4.2vw, 3.65rem);
  line-height: 1.05;
  letter-spacing: -.057em;
  font-weight: 750;
}

.service-grid, .process-grid {
  display: grid;
  gap: 1.15rem;
  margin-top: 2rem;
}

.service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.service-card {
  padding: clamp(1.35rem, 3vw, 2.1rem);
  border: 1px solid var(--line);
  border-radius: .9rem;
  background: var(--surface);
}

.seo-card {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.service-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  margin-bottom: 1.15rem;
  border-radius: .52rem;
  background: var(--accent-surface);
  color: var(--accent);
}

.icon-window::before {
  content: "";
  width: 1.15rem;
  height: .95rem;
  border: 2px solid currentColor;
  border-radius: .18rem;
}

.icon-window::after {
  content: "";
  position: absolute;
  top: 1.12rem;
  width: 1rem;
  border-top: 2px solid currentColor;
}

.icon-refresh { font-size: 1.65rem; line-height: 1; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -.025em; }
.service-card p, .process-grid p { max-width: 34rem; margin-top: .55rem; color: var(--muted); line-height: 1.65; }

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0;
  padding: 0;
  list-style: none;
}

.process-grid li { padding: 1rem 1rem 0 0; border-top: 2px solid var(--line); }
.step { display: block; margin-bottom: .85rem; color: var(--accent); font-size: .85rem; font-weight: 750; }

.contact, .site-footer { color: var(--paper); background: var(--contact-background); }
.contact .eyebrow { color: var(--soft-violet); }
.contact-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 2rem;
}

.contact h2 { font-size: clamp(2.4rem, 5.4vw, 4.4rem); }
.contact h2 + p { max-width: 28rem; margin-top: 1.15rem; color: #d1ccdf; line-height: 1.6; }
.contact-actions { justify-self: end; }
.button-call { background: var(--lime); color: var(--ink); }
.button-call:hover { background: #e6ffab; }
.contact :focus-visible, .site-footer :focus-visible { outline-color: var(--soft-violet); }
.contact-email { margin-top: .95rem; color: #d1ccdf; font-size: .875rem; }
.contact-email span { margin-right: .45rem; color: var(--paper); font-weight: 700; }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5.5rem;
  padding-block: 1rem;
  border-top: 1px solid #393448;
}

.footer-inner .brand img { width: 8.5rem; }
.footer-inner p { color: #d1ccdf; font-size: .875rem; }

@media (max-width: 56rem) {
  .container { width: calc(100% - 3.5rem); }
  .hero { grid-template-columns: 1fr 1fr; gap: 1.75rem; }
}

@media (max-width: 44rem) {
  .container { width: calc(100% - 2.25rem); }
  .header-inner { grid-template-columns: 1fr auto; gap: .3rem .75rem; padding-block: .85rem .45rem; }
  .header-inner > .brand { grid-column: 1; grid-row: 1; }
  .header-inner > .theme-toggle { grid-column: 2; grid-row: 1; justify-self: end; }
  .header-inner > .site-nav { grid-column: 1; grid-row: 2; }
  .header-inner > .button { grid-column: 2; grid-row: 2; }
  .site-nav { gap: 1.2rem; }
  .brand img { width: clamp(7.2rem, 37vw, 9.3rem); }
  .hero { grid-template-columns: 1fr; gap: 2.25rem; padding-block: 3rem 3.5rem; }
  .hero-copy { max-width: 34rem; }
  h1 { font-size: clamp(2.35rem, 9.3vw, 4.2rem); text-wrap: balance; }
  .hero-art { max-width: 33rem; }
  .demo-site { min-height: clamp(13rem, 55vw, 18rem); }
  .service-grid, .process-grid, .contact-inner { grid-template-columns: 1fr; }
  .process-grid { gap: 1.55rem; }
  .contact-actions { justify-self: start; }
  .contact-break { display: none; }
  .footer-inner { flex-wrap: wrap; }
}
