:root {
  --bg: #f8f8ff;
  --panel: #ffffff;
  --primary: #7f38e8;
  --primary-soft: #9e67f5;
  --secondary: #c3ceff;
  --deep: #171421;
  --muted: #2f2e3c;
  --line: #7f38e8;
  --shadow: 6px 6px 0 #c3ceff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Consolas", "Lucida Console", "Courier New", monospace;
  background: var(--bg);
  color: var(--deep);
  line-height: 1.7;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: none;
  font-smooth: never;
  image-rendering: pixelated;
  border-radius: 0;
  font-weight: 700;
  letter-spacing: 0.01em;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(127, 56, 232, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(127, 56, 232, 0.04) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1180px, calc(100% - 5.5rem));
  margin: 0 auto;
}

main {
  position: relative;
  padding-bottom: 4rem;
}

main::before {
  content: "";
  position: absolute;
  left: 34px;
  top: 0;
  bottom: 20px;
  width: 5px;
  background: linear-gradient(to bottom, var(--primary), rgba(127, 56, 232, 0.45));
  z-index: 0;
}

main > .section,
main > .section > .container,
.site-footer .container {
  position: relative;
  z-index: 1;
}

.section {
  position: relative;
  padding: 4rem 0;
}

.eyebrow {
  margin: 0 0 1rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--primary);
  font-size: 0.73rem;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  font-weight: 700;
}

p,
.lead,
.service-card p,
.step p,
.about p,
.footer-copy,
.site-footer li,
.site-footer a,
.window-body p {
  font-weight: 700;
  letter-spacing: 0.02em;
}

h1,
h2,
h3,
.brand,
.button,
.main-nav a,
.site-footer h3,
.site-footer li {
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.94;
  margin-bottom: 1rem;
  letter-spacing: 0.04em;
  color: var(--deep);
  text-shadow: 4px 4px 0 var(--secondary);
}

h2 {
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.05;
  margin-bottom: 1rem;
  letter-spacing: 0.06em;
}

.hero {
  padding-top: 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 2rem;
  position: relative;
  z-index: 1;
}

.hero-copy {
  padding-left: 2.7rem;
}

.lead {
  max-width: 580px;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.8;
  letter-spacing: 0.05em;
  font-weight: 800;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.4rem;
  border: 3px solid var(--primary);
  background: var(--panel);
  color: var(--primary);
  font-weight: 700;
  box-shadow: 4px 4px 0 var(--secondary);
  transition: transform 0.15s ease;
  border-radius: 0;
}

.button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--secondary);
}

.button-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #ffffff;
  box-shadow: 4px 4px 0 var(--secondary);
}

.button-secondary {
  background: var(--panel);
  border: 2px solid var(--primary);
  color: var(--deep);
  box-shadow: 4px 4px 0 var(--secondary);
}

.hero-card {
  display: flex;
  justify-content: center;
}

.card-window {
  width: min(100%, 430px);
  background: var(--panel);
  border: 3px solid var(--primary);
  box-shadow: var(--shadow);
  position: relative;
}

.card-window::before {
  content: "";
  position: absolute;
  right: 18px;
  top: 18px;
  width: 16px;
  height: 16px;
  background: var(--secondary);
  clip-path: polygon(50% 0%, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0% 50%, 38% 38%);
  box-shadow: 0 0 0 3px var(--primary);
}

.window-header {
  display: flex;
  gap: 0.5rem;
  padding: 1rem;
  border-bottom: 3px solid var(--primary);
  background: rgba(124, 58, 232, 0.08);
}

.window-header span {
  width: 0.9rem;
  height: 0.9rem;
  display: block;
  background: var(--secondary);
  border: 2px solid var(--primary);
}

.window-header span:nth-child(1) {
  background: #ffffff;
}

.window-header span:nth-child(2) {
  background: var(--secondary);
}

.window-header span:nth-child(3) {
  background: var(--primary);
}

.window-body {
  padding: 1.5rem;
  display: grid;
  gap: 0.85rem;
  background: var(--panel);
}

.window-body p {
  margin: 0;
  padding: 0.8rem 1rem;
  background: rgba(124, 58, 232, 0.08);
  border: 2px solid var(--primary);
  color: var(--primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.section-heading {
  margin-bottom: 2rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
  max-width: 980px;
  margin: 0 auto;
}

.service-card {
  background: var(--panel);
  border: 3px solid var(--primary);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  position: relative;
}

.service-card::before {
  content: "✦";
  position: absolute;
  top: 16px;
  right: 16px;
  color: var(--secondary);
  font-size: 1.1rem;
}

.service-card.wide {
  grid-column: span 2;
}

.service-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 3rem;
  height: 3rem;
  padding: 0 0.9rem;
  background: var(--primary);
  color: #ffffff;
  border: 2px solid var(--primary);
  font-weight: 700;
  margin-bottom: 1rem;
  box-shadow: 3px 3px 0 var(--secondary);
}

.service-card h3,
.step h3 {
  margin-bottom: 0.8rem;
  color: var(--primary);
  letter-spacing: 0.08em;
}

.service-card p,
.step p,
.about p,
.footer-copy,
.site-footer li,
.site-footer a {
  color: var(--muted);
  letter-spacing: 0.03em;
  font-weight: 800;
}

.about {
  background: rgba(124, 58, 232, 0.05);
  border-top: 3px solid var(--primary);
  border-bottom: 3px solid var(--primary);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.step {
  background: var(--panel);
  border: 3px solid var(--primary);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.step span {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--primary);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.contact-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem 2.5rem;
  border: 3px solid var(--primary);
  background: rgba(124, 58, 232, 0.05);
  box-shadow: var(--shadow);
}

.contact-box h2 {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
}

@media (max-width: 960px) {
  .hero-grid,
  .about-grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }

  .service-grid {
    grid-template-columns: 1fr;
  }

  .service-card.wide {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  main::before {
    left: 12px;
    bottom: 30px;
  }

  .hero-grid,
  .about-grid,
  .steps,
  .contact-box {
    grid-template-columns: 1fr;
    display: grid;
  }

  .hero-copy {
    padding-left: 0;
  }

  .service-card,
  .step,
  .contact-box {
    box-shadow: var(--shadow);
  }

  .contact-box {
    justify-content: start;
    padding: 1.5rem;
  }
}
