:root {
  --bg: #0b1220;
  --bg-elevated: #121a2b;
  --bg-soft: #182338;
  --text: #f4f7fb;
  --text-muted: #a8b3c7;
  --accent: #2f7df4;
  --accent-soft: rgba(47, 125, 244, 0.18);
  --line: rgba(255, 255, 255, 0.1);
  --white: #ffffff;
  --success: #3ecf8e;
  --danger: #ff6b7a;
  --radius: 14px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --font-display: "Sora", "Segoe UI", sans-serif;
  --font-body: "Manrope", "Segoe UI", sans-serif;
  --max: 1120px;
  --header-h: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.88);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  height: 36px;
  width: auto;
  background: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav a {
  position: relative;
  color: var(--text-muted);
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav a:hover,
.nav a.is-active {
  color: var(--white);
}

.nav a:hover::after,
.nav a.is-active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  align-items: end;
  padding: calc(var(--header-h) + 4rem) 0 5rem;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(11, 18, 32, 0.92) 18%, rgba(11, 18, 32, 0.55) 55%, rgba(11, 18, 32, 0.75) 100%),
    url("../img/hero.png") center / cover no-repeat;
  transform: scale(1.02);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 180px;
  background: linear-gradient(transparent, var(--bg));
}

@keyframes heroDrift {
  from { transform: scale(1.02) translateY(0); }
  to { transform: scale(1.06) translateY(-1.5%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
}

.hero-brand {
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.hero-brand img {
  height: 64px;
  width: auto;
  background: transparent;
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.hero p {
  margin: 0 0 2rem;
  color: var(--text-muted);
  font-size: 1.08rem;
  max-width: 34rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.8rem 1.35rem;
  border-radius: 10px;
  border: 1px solid transparent;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
}

.btn-primary:hover {
  background: #4a8ff7;
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

.btn-ghost:hover {
  border-color: var(--white);
  background: rgba(255, 255, 255, 0.06);
}

.section {
  padding: 5.5rem 0;
  position: relative;
}

.section-head {
  max-width: 640px;
  margin-bottom: 2.75rem;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-head h2,
.about-copy h2 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p,
.about-copy p,
.about-lead {
  margin: 0;
  color: var(--text-muted);
}

.about-lead {
  margin-top: 1rem;
}

.services {
  background:
    radial-gradient(circle at top right, rgba(47, 125, 244, 0.12), transparent 40%),
    var(--bg);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.principles-grid {
  margin-bottom: 2rem;
}

.criteria-note {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.5rem;
  align-items: stretch;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
}

.criteria-note-media {
  min-height: 280px;
}

.criteria-note-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.criteria-note-copy {
  padding: 1.75rem 1.6rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.criteria-note-copy h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.criteria-note-copy p {
  margin: 0;
  color: var(--text-muted);
}

.service-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent);
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 125, 244, 0.45);
  background: rgba(47, 125, 244, 0.06);
}

.service-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
}

.service-card h3 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.service-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.tech {
  background: var(--bg-elevated);
}

.tech-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: stretch;
}

.tech-visual {
  position: relative;
  min-height: 420px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.tech-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tech-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(11, 18, 32, 0.75));
}

.tech-list {
  display: grid;
  gap: 1rem;
}

.tech-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.02);
}

.tech-item img,
.tech-icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  background: transparent;
}

.tech-item h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1rem;
}

.tech-item p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.4rem;
}

.project-card {
  display: grid;
  grid-template-rows: 210px 1fr;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: var(--bg-elevated);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.project-card:hover {
  transform: translateY(-5px);
  border-color: rgba(47, 125, 244, 0.4);
  box-shadow: var(--shadow);
}

.project-media {
  position: relative;
  overflow: hidden;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover .project-media img {
  transform: scale(1.06);
}

.project-body {
  padding: 1.35rem 1.4rem 1.5rem;
}

.project-body h3 {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
}

.project-body p {
  margin: 0 0 1.1rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.project-link {
  color: var(--accent);
  font-weight: 700;
  font-size: 0.92rem;
}

.about {
  background:
    radial-gradient(circle at left center, rgba(47, 125, 244, 0.1), transparent 35%),
    var(--bg);
}

.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.about-media {
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 420px;
}

.about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-points {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.6rem;
}

.about-points li {
  position: relative;
  padding-left: 1.35rem;
  color: var(--text-muted);
}

.about-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
}

.contact {
  background: var(--bg-elevated);
}

.people-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.person-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.person-card h3 {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.person-role {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.92rem;
}

.person-phone {
  display: inline-block;
  margin-bottom: 1.1rem;
  color: var(--text-muted);
}

.person-phone:hover {
  color: var(--white);
}

.btn-whatsapp {
  background: #25d366;
  color: #062816;
  width: 100%;
}

.btn-whatsapp:hover {
  background: #36e075;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-card,
.contact-form {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
}

.contact-card {
  padding: 1.8rem;
}

.contact-card h3 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
}

.contact-card p {
  margin: 0 0 1.4rem;
  color: var(--text-muted);
}

.contact-meta {
  display: grid;
  gap: 1rem;
}

.contact-meta strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--font-display);
}

.contact-meta span,
.contact-meta a {
  color: var(--text-muted);
}

.contact-form {
  padding: 1.8rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(11, 18, 32, 0.65);
  color: var(--white);
  padding: 0.85rem 0.95rem;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field input:focus,
.field textarea:focus {
  border-color: rgba(47, 125, 244, 0.7);
  box-shadow: 0 0 0 3px rgba(47, 125, 244, 0.18);
}

.field textarea {
  min-height: 140px;
  resize: vertical;
}

.hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.form-status {
  min-height: 1.4rem;
  margin: 0.4rem 0 0.9rem;
  font-size: 0.92rem;
}

.form-status.is-ok { color: var(--success); }
.form-status.is-err { color: var(--danger); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  background: var(--bg);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
}

.footer-brand img {
  height: 30px;
  width: auto;
  background: transparent;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 980px) {
  .services-grid,
  .projects-grid,
  .tech-grid,
  .about-grid,
  .contact-grid,
  .people-grid,
  .criteria-note {
    grid-template-columns: 1fr;
  }

  .tech-visual,
  .about-media,
  .criteria-note-media {
    min-height: 280px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: grid;
    place-items: center;
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 1rem auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(11, 18, 32, 0.96);
    backdrop-filter: blur(12px);
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.85rem 0.9rem;
    border-radius: 10px;
  }

  .nav a:hover {
    background: rgba(255, 255, 255, 0.04);
  }

  .nav a::after {
    display: none;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .hero {
    align-items: center;
    padding-top: calc(var(--header-h) + 3rem);
  }
}
