:root {
  --bg: #050509;
  --tile: #0b0b12;
  --accent: #e4ff52;
  --accent-soft: #c2f06a;
  --text: #f5f5f7;
  --muted: #9494a1;
  --border: #1a1a23;
  --danger: #ff4d4d;
  --safe: #4dffb5;
  --layout-columns: repeat(4, minmax(0, 1fr));
  --fs-base: 15px;
  --fs-small: 13px;
  --fs-xs: 11px;
  --fs-h1: 34px;
  --fs-h2: 20px;
  --fs-h3: 15px;
  --lh-base: 1.6;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
    "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  font-size: var(--fs-base);
  line-height: var(--lh-base);
}

p,
.tile p,
.project-desc,
.pricing p,
.about p,
.contact p {
  font-size: var(--fs-base);
  line-height: var(--lh-base);
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--border);
}

.nav-shell {
  display: block;
}

.nav-left,
.nav-right {
  padding: 0.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--tile);
  border-bottom: 1px solid var(--border);
}

.nav-right {
  width: 100%;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  width: 100%;
}

.logo-mark {
  width: 32px;
  height: 32px;
  border: 1px solid var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.nav-title {
  font-size: var(--fs-base);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
}

.nav-main .nav-link {
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.nav-link {
  position: relative;
  cursor: pointer;
  transition: color 0.15s ease-out;
  white-space: nowrap;
  font-size: var(--fs-small);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 1px;
  background: var(--accent);
  transition: width 0.18s ease-out;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--text);
}

.nav-meta {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.nav-social,
.nav-lang {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: var(--fs-small);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-lang {
  margin-left: auto;
  text-align: right;
}

.nav-social span,
.nav-lang span {
  color: var(--muted);
}

.nav-social-link {
  font-weight: 300;
}

.nav-lang .lang-active,
.nav-lang .is-active {
  color: var(--accent);
}

/* Main grid */

.grid {
  flex: 1;
  display: grid;
  background: var(--border); /* acts like grid lines between tiles */
  gap: 1px;
  grid-template-columns: var(--layout-columns);
  grid-auto-rows: minmax(180px, auto);
}

.tile {
  background: var(--tile);
  padding: 2rem 2.25rem;
  display: flex;
  flex-direction: column;
}

.tile-body {
  width: 100%;
  max-width: 38rem;
}

.col-left .tile-body {
  margin-left: auto;
  margin-right: 2.25rem;
}

.col-right .tile-body {
  margin-left: 2.25rem;
  margin-right: auto;
}

.projects .tile-body,
.contact .tile-body {
  max-width: 46rem;
}

/* Desktop poravnanje kolona */
.col-left {
  align-items: flex-end;
  text-align: right;
}

.col-left .tile-label,
.col-left .tile-title,
.col-left p,
.col-left li {
  text-align: right;
}

.col-left .btn {
  align-self: flex-end;
}

.col-right {
  align-items: flex-start;
  text-align: left;
}

.col-right .tile-label,
.col-right .tile-title,
.col-right p,
.col-right li {
  text-align: left;
}

.col-right .btn {
  align-self: flex-start;
}

.hero.col-left {
  align-items: flex-end;
  text-align: right;
}

.hero.col-left .hero-tag,
.hero.col-left .hero-heading,
.hero.col-left .hero-sub,
.hero.col-left .tile-title,
.hero.col-left p {
  text-align: right;
}

.hero.col-left .hero-labels {
  justify-content: flex-end;
  text-align: right;
}

.tile .tile-label {
  margin-bottom: 0.75rem;
}

.tile .tile-title {
  margin-bottom: 1.25rem;
}

.tile p + p {
  margin-top: 0.5rem;
}

.tile-footer {
  margin-top: 1.5rem;
}

/* Areas */

.hero {
  grid-column: 1 / span 2;
  grid-row: 1 / span 2;
  padding: 2.5rem 2.25rem;
  position: relative;
  overflow: hidden;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 1.5rem;
}

.hero-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--safe);
  box-shadow: 0 0 12px rgba(77, 255, 181, 0.8);
}

.hero-heading {
  font-size: var(--fs-h1);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  line-height: 1.2;
}

.hero-heading span {
  display: block;
}

.hero-sub {
  margin-top: 1.25rem;
  max-width: 32rem;
  font-size: var(--fs-base);
  color: var(--muted);
}

.hero-sub strong {
  color: var(--text);
}

.hero-actions {
  margin-top: 2.25rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.hero-actions .btn {
  align-self: auto;
}

.btn {
  font-size: var(--fs-small);
  padding: 0.8rem 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  border: 1px solid var(--border);
  background: transparent;
  cursor: pointer;
  transition: background-color 0.15s ease-out, color 0.15s ease-out,
    border-color 0.15s ease-out;
}

.btn-primary {
  border-color: var(--accent);
  background: var(--accent);
  color: #111;
}

.btn-primary:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
}

.btn-outlined {
  border-style: dashed;
  color: var(--muted);
}

.btn-outlined:hover {
  border-color: var(--accent-soft);
  color: var(--text);
}

.hero-labels {
  margin-top: auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 2rem;
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-label-pill {
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: default;
}

.hero-label-pill:hover {
  border-color: var(--border);
}

.hero-visual {
  position: absolute;
  right: -4%;
  bottom: -8%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  border: 1px solid var(--accent-soft);
  background: radial-gradient(circle at 20% 10%, var(--accent), transparent 55%);
  opacity: 0.4;
  pointer-events: none;
}

/* Services tile */

.services {
  grid-column: 3 / span 2;
}

.tile-label,
.nav-small,
.nav-lang,
.nav-social-link {
  font-size: var(--fs-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.tile-label {
  color: var(--muted);
}

.tile-title {
  font-size: var(--fs-h2);
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

h3,
.project-title,
.pricing h3,
.contact h3 {
  font-size: var(--fs-h3);
  line-height: 1.35;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin: 0;
}

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.pill {
  border: 1px solid var(--border);
  padding: 0.35rem 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: background-color 0.15s ease-out, border-color 0.15s ease-out,
    color 0.15s ease-out;
}

.pill-accent {
  background: var(--accent);
  color: #111;
  border-color: var(--accent);
}

.services .pill:hover {
  border-color: var(--accent-soft);
}

.service-desc {
  display: none;
}

.service-desc.active {
  display: block;
}

.tile-note {
  margin-top: 1.5rem;
  color: var(--muted);
  max-width: 26rem;
}

/* Process tile */

.process {
  grid-column: 3 / span 2;
}

.steps {
  display: grid;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.step {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-base);
}

.step-name {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.step-icon {
  font-size: 1rem;
  line-height: 1;
}

.step-desc {
  color: var(--muted);
  max-width: 16rem;
  font-size: var(--fs-base);
  text-align: right;
}

/* Projects tile */

.projects {
  grid-column: 1 / span 2;
  grid-row: 3 / span 1;
}

.projects-slider {
  margin-top: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.projects-viewport {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.projects-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 1.25rem 1.75rem;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0) 80%
  );
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.projects .project-title {
  font-size: var(--fs-h3);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

.projects .project-desc {
  font-size: var(--fs-base);
  max-width: 30rem;
  color: var(--muted);
  margin: 0;
}

.projects .project-btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.projects-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid var(--border);
  padding: 0.3rem 0.55rem;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--text);
  z-index: 2;
}

.projects-prev {
  left: 0.75rem;
}

.projects-next {
  right: 0.75rem;
}

.projects-arrow:hover {
  background: rgba(0, 0, 0, 0.7);
}

.projects-dots {
  margin-top: 0.6rem;
  display: flex;
  justify-content: center;
  gap: 0.4rem;
}

.projects-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.projects-dot.is-active {
  background: var(--accent);
  border-color: var(--accent);
}

@media (max-width: 900px) {
  .projects-overlay {
    padding: 1rem 1.35rem;
  }
}

/* Pricing & FAQ tile */

.pricing {
  grid-column: 3 / span 2;
  grid-row: 3 / span 1;
}

.pricing .tile-title {
  margin-bottom: 1rem;
}

.price-highlight {
  font-size: 1.4rem;
  margin: 0 0 0.75rem;
}

.price-caption {
  font-size: var(--fs-base);
  color: var(--muted);
}

.pricing-row {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  font-size: var(--fs-base);
}

.pricing p {
  margin: 0 0 0.5rem;
}

.pricing-item-label {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-size: var(--fs-xs);
  margin-bottom: 0.35rem;
}

/* About tile */

.about {
  grid-column: 1 / span 2;
  grid-row: 4 / span 1;
}

.about-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.about-text {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
}

.about-text .tile-label {
  margin-bottom: 0.75rem;
}

.about-text .tile-title {
  margin-bottom: 1.25rem;
}

.about-main {
  font-size: var(--fs-base);
  color: var(--muted);
  max-width: 34rem;
  margin-top: 0.85rem;
}

.about-main strong {
  color: var(--text);
}

.about-portrait {
  flex: 0 0 auto;
  margin: 0;
}

.about-portrait img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid var(--border);
}


/* Contact tile */

.contact {
  grid-column: 3 / span 2;
  grid-row: 4 / span 1;
}

.contact-inner {
  max-width: 46rem;
  margin-left: auto;
  margin-right: 0;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.contact-main {
  font-size: var(--fs-base);
  color: var(--muted);
  margin-top: 0.8rem;
  max-width: 26rem;
}

.contact-form {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  font-size: var(--fs-small);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  font-size: var(--fs-xs);
}

input,
textarea {
  padding: 0.6rem 0.7rem;
  border-radius: 0;
  border: 1px solid var(--border);
  background: #05050a;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-base);
}

textarea {
  min-height: 3.4rem;
  resize: vertical;
}

.field-full {
  grid-column: 1 / span 2;
}

.contact-foot {
  margin-top: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: var(--fs-small);
  color: var(--muted);
}

.contact-foot .btn-primary {
  align-self: flex-end;
  margin-left: auto;
}

.contact-foot a {
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.contact-foot .btn-primary {
  font-size: var(--fs-small);
  padding-inline: 1.4rem;
}

/* Footer */

.footer {
  border-top: 1px solid var(--border);
  padding: 0.9rem 1.75rem;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
  font-size: var(--fs-small);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

/* Responsive */

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

  .hero {
    grid-column: 1 / span 2;
  }

  .services,
  .process,
  .projects,
  .pricing,
  .about,
  .contact {
    grid-column: 1 / -1;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .field-full {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .tile {
    padding: 1.5rem 1.5rem;
  }

  .tile > .tile-title {
    margin-bottom: 1rem;
  }

  .home-section {
    width: 100%;
    align-items: flex-start;
    text-align: left;
  }

  .home-section .tile-label,
  .home-section .tile-title,
  .home-section p,
  .home-section li {
    text-align: left;
  }

  .home-section .btn {
    align-self: flex-start;
  }

  .grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
  }

  .hero {
    padding: 2rem 1.5rem;
  }

  .tile-body {
    max-width: 100%;
  }

  .col-left .tile-body,
  .col-right .tile-body {
    margin-left: 0;
    margin-right: 0;
  }

  .hero.col-left {
    align-items: flex-start;
    text-align: left;
  }

  .hero.col-left .hero-tag,
  .hero.col-left .hero-heading,
  .hero.col-left .hero-sub,
  .hero.col-left .tile-title,
  .hero.col-left p {
    text-align: left;
  }

  .hero.col-left .hero-labels {
    justify-content: flex-start;
    text-align: left;
  }

  #hero,
  #services,
  #process,
  #projects,
  #pricing,
  #about,
  #contact {
    grid-column: auto !important;
    grid-row: auto !important;
    position: static;
    margin: 0 0 2rem;
  }

  .hero,
  .projects,
  .pricing,
  .about,
  .contact {
    margin-left: 0;
    margin-right: 0;
    max-width: 100%;
  }

  .hero-visual {
    opacity: 0.25;
    width: 170px;
    height: 170px;
  }

  .projects-viewport {
    width: 100%;
  }

  .projects-overlay {
    padding: 0.95rem 1.1rem;
  }

  .hero-actions {
    justify-content: flex-start;
  }

  .about-inner {
    flex-direction: column-reverse;
    align-items: flex-start;
    gap: 1.25rem;
  }

  .about-portrait img {
    width: 140px;
    height: 140px;
  }

  .contact-inner {
    max-width: 100%;
    margin: 0;
  }

  .contact-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-foot .btn-primary {
    align-self: flex-start;
    margin-left: 0;
    width: 100%;
  }

  .pricing-row {
    grid-template-columns: 1fr;
  }

  .footer {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (min-width: 721px) and (max-width: 1100px) {
  .nav-shell {
    display: block;
  }

  .nav-left,
  .nav-right {
    padding: 0.75rem 2rem;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .nav-left {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-brand {
    width: 100%;
  }

  .nav-main {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
  }

  .nav-main .nav-link {
    display: inline-block;
    white-space: nowrap;
  }

  .nav-right {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .nav-meta {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
  }

  .nav-social {
    display: flex;
    align-items: center;
    gap: 0.35rem;
  }

  .nav-lang {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.35rem;
    text-align: right;
  }
}

@media (min-width: 1101px) {
  .nav-shell {
    display: grid;
    grid-template-columns: var(--layout-columns);
    gap: 1px;
  }

  .nav-left,
  .nav-right {
    flex-direction: row;
    align-items: center;
    gap: 2rem;
    padding: 0.75rem 2.25rem;
    border-bottom: none;
  }

  .nav-left {
    grid-column: 1 / span 2;
    border-right: 1px solid var(--border);
    justify-content: space-between;
  }

  .nav-right {
    grid-column: 3 / span 2;
    justify-content: flex-start;
  }

  .nav-main {
    flex-wrap: nowrap;
    gap: 1.75rem;
  }

  .nav-meta {
    width: 100%;
    gap: 1.5rem;
  }

  .nav-lang {
    margin-left: auto;
  }
}
