:root {
  --purple: #6c3a83;
  --black: #000000;
  --white: #f8f8ff;
  --header-height: 76px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--black);
  color: var(--white);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 9999;
  padding: 10px 14px;
  background: var(--white);
  color: var(--black);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--container));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  height: var(--header-height);
  border-bottom: 1px solid var(--purple);
  background: var(--black);
}

.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  text-decoration: none;
  min-width: 0;
}

.brand-mark {
  width: 29px;
  height: auto;
  flex: none;
}

.brand-name {
  font-family: "Fira Code", monospace;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(22px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  color: var(--white);
  text-decoration: none;
  font-family: "Fira Code", monospace;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -7px;
  width: 100%;
  height: 2px;
  background: var(--purple);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid var(--purple);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
  transition: transform 180ms ease;
}

.hero {
  position: relative;
  min-height: 100svh;
  padding: calc(var(--header-height) + clamp(54px, 8vw, 96px)) 0 clamp(62px, 8vw, 96px);
  overflow: hidden;
  background: var(--black);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.hero::before {
  width: min(38vw, 480px);
  aspect-ratio: 1;
  right: -8vw;
  top: 18%;
  border: 1px solid var(--purple);
  transform: rotate(45deg);
  opacity: 0.45;
}

.hero::after {
  left: 0;
  bottom: 0;
  width: 36%;
  height: 1px;
  background: var(--purple);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
}

.tech-line,
.contact-role,
.role {
  font-family: "Fira Code", monospace;
}

.tech-line {
  margin: 0 0 34px;
  color: var(--white);
  font-size: clamp(0.68rem, 1vw, 0.82rem);
  font-weight: 500;
  letter-spacing: 0.05em;
  line-height: 1.7;
}

.tech-line span,
.site-footer p span {
  color: var(--purple);
}

.role {
  margin: 0 0 12px;
  color: var(--purple);
  font-size: clamp(0.78rem, 1.1vw, 0.94rem);
  font-weight: 600;
  letter-spacing: 0.12em;
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: var(--white);
  font-size: clamp(3rem, 7.4vw, 7.2rem);
  font-weight: 800;
  letter-spacing: -0.075em;
  line-height: 0.84;
}

.hero-service-title {
  display: inline-grid;
  gap: 8px;
  margin-top: clamp(28px, 4vw, 46px);
}

.hero-service-title strong {
  color: var(--white);
  font-size: clamp(1.5rem, 3.5vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
}

.hero-service-title span {
  width: max-content;
  max-width: 100%;
  padding: 8px 12px;
  background: var(--purple);
  color: var(--white);
  font-size: clamp(0.82rem, 1.5vw, 1.08rem);
  font-weight: 700;
  letter-spacing: 0.03em;
}

.hero-intro {
  max-width: 560px;
  margin: 28px 0 0;
  color: var(--white);
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border: 1px solid var(--purple);
  text-decoration: none;
  font-family: "Fira Code", monospace;
  font-size: 0.84rem;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

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

.button-primary {
  background: var(--purple);
  color: var(--white);
}

.button-outline {
  background: transparent;
  color: var(--white);
}

.button-outline:hover {
  background: var(--white);
  color: var(--black);
}


.section {
  padding: clamp(76px, 10vw, 132px) 0;
}

.section-light {
  background: var(--white);
  color: var(--black);
}

.section-dark {
  background: var(--black);
  color: var(--white);
}

.section-heading {
  max-width: 800px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.section-heading h2 {
  margin: 0;
  color: var(--black);
  font-size: clamp(2rem, 5vw, 4.8rem);
  font-weight: 800;
  letter-spacing: -0.055em;
  line-height: 1.02;
}

.section-heading-dark h2 {
  color: var(--white);
  font-size: clamp(2rem, 4.2vw, 4rem);
  overflow-wrap: normal;
}

.section-heading-dark h2 span {
  color: var(--purple);
}

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

.card {
  border: 1px solid var(--black);
  background: var(--white);
}

.service-card {
  min-height: 300px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 30px;
  padding: 24px;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.service-card:hover {
  transform: translateY(-5px);
  border-color: var(--purple);
  background: var(--purple);
  color: var(--white);
}


.service-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--purple);
  transition: color 180ms ease, transform 180ms ease;
}

.service-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card:hover .service-icon {
  color: var(--white);
  transform: translateY(-2px);
}

.service-content {
  display: grid;
  gap: 12px;
}

.service-card h3 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.38rem);
  font-weight: 800;
  line-height: 1.18;
}

.service-card p {
  margin: 0;
  color: currentColor;
  font-size: 0.94rem;
  line-height: 1.58;
  opacity: 0.78;
}

.service-card:hover p {
  opacity: 1;
}

.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--purple);
}

.feature-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 94px;
  padding: 20px 0;
  border-bottom: 1px solid var(--purple);
  color: var(--white);
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 600;
}

.feature-check {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid var(--purple);
  color: var(--purple);
  font-family: "Fira Code", monospace;
  font-weight: 700;
  transition: background 180ms ease, color 180ms ease;
}

.feature-list li:hover .feature-check {
  background: var(--purple);
  color: var(--white);
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(46px, 8vw, 110px);
  align-items: start;
}

.contact-role {
  margin: 18px 0 0;
  color: var(--purple);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
}

.contact-list {
  border-top: 1px solid var(--black);
}

.contact-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  align-items: center;
  min-height: 112px;
  padding: 24px 0;
  border-bottom: 1px solid var(--black);
  color: var(--black);
  text-decoration: none;
  transition: color 180ms ease, padding-left 180ms ease;
}

.contact-item:hover {
  color: var(--purple);
  padding-left: 10px;
}

.contact-item strong {
  min-width: 0;
  font-size: clamp(1rem, 2.3vw, 1.65rem);
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}


.whatsapp-float {
  position: fixed;
  right: max(20px, env(safe-area-inset-right));
  bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 1200;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 2px solid var(--purple);
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.whatsapp-float svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
}

.whatsapp-float:hover {
  transform: translateY(-3px) scale(1.03);
  background: var(--black);
  color: var(--white);
}

.whatsapp-float:focus-visible {
  outline-color: var(--white);
}

.site-footer {
  border-top: 1px solid var(--purple);
  background: var(--black);
  color: var(--white);
}

.footer-inner {
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 30px;
  padding-block: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
}

.footer-brand img {
  width: 23px;
  height: auto;
}

.site-footer p {
  margin: 0;
  font-family: "Fira Code", monospace;
  font-size: 0.68rem;
  line-height: 1.6;
  text-align: right;
}

@media (max-width: 1100px) {
  .service-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    padding: 10px 20px 18px;
    border-bottom: 1px solid var(--purple);
    background: var(--black);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--purple);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .hero {
    min-height: auto;
  }

  .features-layout,
  .contact-grid {
    grid-template-columns: 1fr;
  }

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

  .section-heading {
    margin-bottom: 36px;
  }
}

@media (max-width: 620px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .brand-name {
    font-size: 0.72rem;
  }

  .hero {
    padding-top: calc(var(--header-height) + 48px);
  }

  .tech-line {
    margin-bottom: 26px;
  }

  h1 {
    font-size: clamp(3rem, 17vw, 5rem);
  }

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


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

  .service-card {
    min-height: 230px;
    gap: 24px;
  }

  .service-icon {
    width: 40px;
    height: 40px;
  }

  .whatsapp-float {
    right: max(14px, env(safe-area-inset-right));
    bottom: max(14px, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }

  .whatsapp-float svg {
    width: 28px;
    height: 28px;
  }

  .feature-list li {
    grid-template-columns: 36px minmax(0, 1fr);
    min-height: 82px;
  }

  .feature-check {
    width: 32px;
    height: 32px;
  }

  .contact-item {
    grid-template-columns: 1fr;
    gap: 8px;
    min-height: 100px;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-footer p {
    text-align: left;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

}
