:root {
  --black: #050505;
  --white: #ffffff;
  --ink: #151515;
  --muted: #666666;
  --line: #dedede;
  --soft: #f4f4f4;
  --soft-2: #ececec;
  --accent: #b62931;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-color: var(--line);
}

.brand {
  width: 208px;
  flex: 0 0 auto;
}

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

.site-nav a {
  padding: 10px 12px;
  color: #252525;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  background: var(--soft);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: var(--white);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: var(--black);
}

.hero {
  max-width: var(--max);
  min-height: calc(100vh - 80px);
  margin: 0 auto;
  padding: 64px 24px 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: 54px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 22px;
  color: var(--black);
  font-size: clamp(64px, 11vw, 142px);
  line-height: 0.88;
  font-weight: 850;
  letter-spacing: 0;
}

h2 {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--black);
  font-size: clamp(34px, 5vw, 70px);
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 23px;
  line-height: 1.1;
  letter-spacing: 0;
}

.hero-copy,
.section-text,
.contact-copy > p {
  max-width: 670px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.6;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  border: 1px solid var(--black);
  font-size: 15px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
}

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

.button.secondary {
  background: var(--white);
}

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

.button:focus-visible,
.site-nav a:focus-visible,
.nav-toggle:focus-visible,
.project-card:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero-visual {
  align-self: stretch;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: var(--white);
  background: var(--black);
  border: 1px solid var(--black);
  padding: 24px;
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  gap: 8px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.terminal-bar span {
  width: 12px;
  height: 12px;
  background: var(--white);
  opacity: 0.9;
}

.build-preview {
  position: relative;
  flex: 1;
  min-height: 360px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.build-preview::before {
  content: "";
  position: absolute;
  inset: 30px -42px 12px 36px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  opacity: 0.75;
  z-index: -2;
}

.build-preview::after {
  content: "</>";
  position: absolute;
  right: -24px;
  top: 38px;
  color: rgba(255, 255, 255, 0.05);
  font-size: 150px;
  font-weight: 850;
  line-height: 1;
  z-index: -1;
}

.code-lines {
  position: absolute;
  top: 34px;
  left: 0;
  display: grid;
  gap: 10px;
  color: rgba(255, 255, 255, 0.56);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 13px;
}

.code-lines span:first-child {
  color: var(--white);
}

.wireframe-card {
  width: min(360px, 86%);
  min-height: 230px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--black);
  box-shadow: 22px 22px 0 rgba(255, 255, 255, 0.08);
  transform: rotate(-2deg);
}

.wire-nav,
.wire-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.wire-nav i,
.wire-grid i,
.wire-hero b,
.wire-hero em {
  display: block;
  background: var(--black);
}

.wire-nav i {
  height: 8px;
}

.wire-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.75fr;
  gap: 18px;
  align-items: center;
  min-height: 132px;
  margin: 22px 0;
  padding: 18px;
  border: 1px solid #d7d7d7;
}

.wire-hero div {
  display: grid;
  gap: 10px;
}

.wire-hero b {
  height: 12px;
}

.wire-hero b:first-child {
  width: 86%;
  height: 22px;
}

.wire-hero b:nth-child(2) {
  width: 68%;
  background: #777777;
}

.wire-hero b:nth-child(3) {
  width: 44%;
  background: var(--accent);
}

.wire-hero em {
  aspect-ratio: 1;
  border-radius: 50%;
}

.wire-grid i {
  height: 54px;
  background: #161616;
}

.brand-chip {
  position: absolute;
  min-width: 82px;
  padding: 9px 13px;
  color: var(--black);
  background: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}

.chip-one {
  right: 16px;
  top: 72px;
}

.chip-two {
  left: 10px;
  bottom: 92px;
  background: var(--accent);
  color: var(--white);
}

.chip-three {
  right: 46px;
  bottom: 54px;
}

.cursor-mark {
  position: absolute;
  right: 110px;
  bottom: 118px;
  width: 22px;
  height: 22px;
  border-right: 4px solid var(--accent);
  border-bottom: 4px solid var(--accent);
  transform: rotate(-45deg);
}

.terminal-lines {
  display: grid;
  gap: 10px;
  padding-top: 8px;
}

.terminal-lines p {
  display: grid;
  grid-template-columns: 42px 1fr;
  align-items: center;
  column-gap: 14px;
  margin: 0;
  min-height: 58px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #e9e9e9;
  font-size: 17px;
  line-height: 1.4;
}

.terminal-lines strong {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: var(--black);
  background: var(--white);
  font-size: 14px;
  line-height: 1;
}

.terminal-lines p:nth-child(3) strong {
  color: var(--white);
  background: var(--accent);
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 86px 24px;
}

.intro-band {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 48px;
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

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

.steps,
.service-grid,
.pricing-grid,
.project-grid {
  display: grid;
  gap: 18px;
}

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

.step,
.service-card,
.price-card {
  padding: 26px;
  border: 1px solid var(--line);
  background: var(--white);
}

.step span {
  display: block;
  margin-bottom: 34px;
  color: var(--accent);
  font-weight: 850;
}

.step p,
.service-card p,
.price-card li,
.note {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

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

.dark-section > * {
  max-width: var(--max);
  margin-left: auto;
  margin-right: auto;
}

.dark-section h2,
.dark-section h3 {
  color: var(--white);
}

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

.service-card {
  background: #111111;
  border-color: #303030;
}

.service-card p {
  color: #c8c8c8;
}

.pricing-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.price-card {
  position: relative;
  min-height: 430px;
}

.price-card.featured {
  color: var(--white);
  background: var(--black);
  border-color: var(--black);
}

.price-card.featured .price-label,
.price-card.featured .price,
.price-card.featured li {
  color: var(--white);
}

.price-label {
  color: var(--accent);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.price {
  margin: 22px 0;
  font-size: clamp(34px, 3.2vw, 42px);
  font-weight: 850;
  letter-spacing: 0;
}

.price-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.price-card li {
  padding: 12px 0;
  border-top: 1px solid rgba(120, 120, 120, 0.25);
}

.note {
  max-width: 760px;
  margin: 18px 0 0;
}

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

.project-card {
  position: relative;
  overflow: hidden;
  color: var(--black);
  text-decoration: none;
  border: 1px solid #171717;
  background: var(--black);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card::after {
  content: "Otvoriť projekt";
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 8px 10px;
  color: var(--black);
  background: var(--white);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-6px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.project-card figure {
  position: relative;
  margin: 0;
  background: #111111;
  border-bottom: 1px solid #2b2b2b;
}

.project-card figure::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, 0.38));
  pointer-events: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: top center;
  filter: saturate(0.85) contrast(1.08);
  transform: scale(1.01);
  transition: filter 180ms ease, transform 180ms ease;
}

.project-card span {
  display: block;
  padding: 0 20px 8px;
  color: var(--white);
  font-size: 23px;
  font-weight: 750;
}

.project-card small {
  display: block;
  min-height: 0;
  padding: 20px 20px 10px;
  color: #a7a7a7;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-card p {
  margin: 0;
  padding: 0 20px 22px;
  color: #c9c9c9;
  font-size: 14px;
  line-height: 1.5;
}

.faq-section {
  border-top: 1px solid var(--line);
}

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

.faq-grid article {
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.faq-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.project-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.18);
}

.project-card:hover::after {
  opacity: 1;
  transform: translateY(0);
}

.project-card:hover img {
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.045);
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.8fr);
  gap: 48px;
  border-top: 1px solid var(--line);
}

.contact-details {
  margin-top: 30px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.contact-details p {
  margin-bottom: 10px;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 24px;
  background: var(--soft);
  border: 1px solid var(--line);
}

label {
  display: grid;
  gap: 8px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #cfcfcf;
  background: var(--white);
  color: var(--black);
  font: inherit;
  font-size: 15px;
  padding: 13px 14px;
}

textarea {
  resize: vertical;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 24px;
  color: var(--white);
  background: var(--black);
}

.site-footer img {
  width: 190px;
}

.site-footer p {
  margin: 0;
  color: #c8c8c8;
  font-size: 14px;
}

.scroll-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 30;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: var(--black);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  opacity: 0.32;
  transform: translateY(0);
  transition: opacity 180ms ease, transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.scroll-top.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-top:hover {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.24);
}

.scroll-top span {
  font-size: 22px;
  font-weight: 850;
  line-height: 1;
}

@media (max-width: 920px) {
  .hero,
  .intro-band,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .steps,
  .service-grid,
  .pricing-grid,
  .project-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 921px) and (max-width: 1120px) {
  .pricing-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .site-header {
    padding: 14px 16px;
  }

  .brand {
    width: 176px;
  }

  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 70px;
    left: 16px;
    right: 16px;
    display: none;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 13px 12px;
  }

  .hero,
  .section {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  h1 {
    font-size: clamp(48px, 16vw, 76px);
    line-height: 0.95;
  }

  h2 {
    font-size: clamp(30px, 9vw, 44px);
    line-height: 1.05;
  }

  .hero-copy,
  .section-text,
  .contact-copy > p {
    font-size: 17px;
  }

  .hero-actions {
    display: grid;
  }

  .button {
    width: 100%;
  }

  .terminal-lines p {
    display: grid;
    gap: 6px;
    font-size: 16px;
  }

  .terminal-lines strong {
    width: auto;
  }

  .hero-visual {
    min-height: 360px;
  }

  .build-preview {
    min-height: 300px;
  }

  .code-lines {
    display: none;
  }

  .wireframe-card {
    width: min(310px, 90%);
  }

  .brand-chip {
    font-size: 11px;
    min-width: 72px;
  }

  .contact-form {
    padding: 18px;
  }

  .site-footer {
    display: grid;
  }

  .scroll-top {
    right: 16px;
    bottom: 16px;
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 150px;
  }

  .site-nav {
    top: 64px;
  }

  .hero-visual {
    padding: 18px;
  }

  .wireframe-card {
    width: 94%;
    padding: 14px;
  }

  .chip-one,
  .chip-three,
  .cursor-mark {
    display: none;
  }
}

@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;
  }
}
