:root {
  --bg: #f4f7fb;
  --bg-deep: #e8eef6;
  --ink: #0b1424;
  --muted: #4a5a6e;
  --line: rgba(11, 20, 36, 0.1);
  --brand: #1a7fd4;
  --brand-dark: #0f5fa8;
  --accent: #3ec6f0;
  --surface: rgba(255, 255, 255, 0.94);
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font-display: Sora, "Segoe UI", sans-serif;
  --font-body: "DM Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse at 12% 0%, rgba(26, 127, 212, 0.1), transparent 42%),
    radial-gradient(ellipse at 90% 18%, rgba(62, 198, 240, 0.12), transparent 40%),
    var(--bg);
  line-height: 1.65;
  font-size: 1.02rem;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 40;
  background: rgba(11, 20, 36, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: #fff;
  font-weight: 600;
}

.brand-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  box-shadow: 0 0 0 1px rgba(62, 198, 240, 0.35);
}

.brand-text {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.site-nav a {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 500;
  font-size: 0.95rem;
}

.site-nav a:hover { color: #fff; }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #fff;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--brand);
  color: #fff !important;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), background 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--brand) !important;
  border-color: var(--brand);
}

.btn-outline:hover { background: rgba(26, 127, 212, 0.08); }
.btn-sm { padding: 0.55rem 1rem; font-size: 0.9rem; }

.btn-whatsapp {
  background: #25d366;
  border-color: #25d366;
}

.btn-whatsapp:hover {
  background: #1ebe57;
  border-color: #1ebe57;
}

.contact-hint {
  font-size: 0.85rem;
  color: var(--muted);
}

.contact-actions .btn-whatsapp {
  width: 100%;
}

/* —— Hero: full-bleed photo —— */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.06);
  animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-shade {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(8, 14, 28, 0.4) 0%, rgba(8, 14, 28, 0.58) 42%, rgba(8, 14, 28, 0.9) 100%),
    linear-gradient(90deg, rgba(8, 14, 28, 0.62) 0%, transparent 55%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 8rem 0 4.5rem;
  max-width: 720px;
  margin-left: max(1rem, calc((100% - var(--max)) / 2));
  margin-right: auto;
}

.brand-hero {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.6vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

.brand-hero img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5.4vw, 3.75rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  max-width: 14ch;
}

.hero .lead {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.86);
  max-width: 42ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

.section { padding: 5rem 0; }

.section-label {
  display: inline-block;
  margin: 0 0 0.75rem;
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h2, h3 {
  font-family: var(--font-display);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 700;
}

h3 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  font-weight: 600;
}

.section-head {
  margin-bottom: 2.5rem;
  max-width: 560px;
}

.section-head.center {
  margin-inline: auto;
  text-align: center;
  max-width: 640px;
}

.section-intro {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.lead { color: var(--muted); }

/* Clients logo marquee */
.section-clients {
  padding-bottom: 3.5rem;
  overflow: hidden;
}

.logo-marquee {
  position: relative;
  margin-top: 0.5rem;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.logo-track {
  display: flex;
  width: max-content;
  animation: logo-scroll 40s linear infinite;
}

.logo-marquee:hover .logo-track {
  animation-play-state: paused;
}

.logo-set {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-right: 1rem;
}

.logo-item {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  width: 160px;
  padding: 1rem 1.1rem;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.logo-item:hover {
  transform: translateY(-3px);
  border-color: rgba(26, 127, 212, 0.45);
  box-shadow: 0 14px 28px rgba(11, 20, 36, 0.1);
  color: inherit;
}

.logo-item img {
  width: 96px;
  height: 56px;
  object-fit: contain;
}

.logo-item span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}

@keyframes logo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .logo-track { animation: none; }
  .logo-marquee {
    overflow-x: auto;
    mask-image: none;
    -webkit-mask-image: none;
  }
}

/* About */
.about-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 2.5rem;
  align-items: center;
}

.about-copy p {
  color: var(--muted);
  margin: 0 0 1rem;
  max-width: 48ch;
}

.about-figure {
  margin: 0;
  overflow: hidden;
  border-radius: 4px 28px 4px 28px;
  box-shadow: 0 30px 60px rgba(19, 34, 31, 0.14);
}

.about-figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.about-figure:hover img { transform: scale(1.04); }

/* Services — list, not card grid */
.section-services {
  background: linear-gradient(180deg, var(--bg-deep), var(--bg));
}

.service-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.service-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 1rem;
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.service-num {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--brand);
  font-size: 1.05rem;
}

.service-row p {
  margin: 0;
  color: var(--muted);
  max-width: 60ch;
}

/* Work / products — interactive image cards */
.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.work-card {
  display: flex;
  flex-direction: column;
  color: inherit;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.work-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 28px 50px rgba(19, 34, 31, 0.14);
  color: inherit;
}

.work-media {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #d8d2c4;
}

.work-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.work-card:hover .work-media img { transform: scale(1.06); }

.work-body { padding: 1.25rem 1.35rem 1.5rem; }

.work-tag {
  display: inline-block;
  margin-bottom: 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.work-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.work-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-weight: 600;
  color: var(--brand);
}

/* Demo — WhatsApp project requests */
.section-demo {
  background:
    radial-gradient(ellipse at 80% 0%, rgba(37, 211, 102, 0.12), transparent 45%),
    linear-gradient(180deg, var(--bg-deep), var(--bg));
}

.demo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.demo-chip {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: inherit;
  transition: transform 0.25s var(--ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.demo-chip:hover {
  transform: translateY(-3px);
  border-color: #25d366;
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.15);
  color: inherit;
}

.demo-chip img {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
}

.demo-chip span {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.demo-chip strong {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
}

.demo-chip em {
  font-style: normal;
  font-size: 0.88rem;
  color: #1ebe57;
  font-weight: 600;
}

.demo-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.85rem;
  margin: 1.75rem 0 0;
  color: var(--muted);
}

@media (max-width: 960px) {
  .demo-grid {
    grid-template-columns: 1fr;
  }
}

/* Process */
.section-process {
  background:
    linear-gradient(135deg, #0b1424 0%, #12304f 55%, #0f4f8a 100%);
  color: #fff;
}

.section-process .section-label { color: var(--accent); }
.section-process h2 { color: #fff; }

.process-track {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: step;
}

.process-track li {
  position: relative;
  padding: 1.35rem 1.2rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  counter-increment: step;
}

.process-track li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--accent);
}

.process-track strong {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--font-display);
  font-weight: 600;
}

.process-track span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

/* Contact */
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 2rem;
  align-items: start;
}

.contact-panel {
  padding: 1.5rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.contact-row {
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-row:last-of-type { border-bottom: 0; }

.contact-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  font-weight: 700;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.site-footer {
  padding: 2.25rem 0 2.5rem;
  background: #0b1424;
  color: #c5d2e0;
}

.footer-inner { display: grid; gap: 1rem; }
.footer-inner strong { color: #fff; font-family: var(--font-display); font-weight: 700; }
.footer-inner p { margin: 0.35rem 0 0; color: #8496ab; }
.footer-inner p a { color: #c5d2e0; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a { color: #c5d2e0; }
.copyright { font-size: 0.9rem; }

/* Motion */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@keyframes hero-drift {
  from { transform: scale(1.06) translate3d(0, 0, 0); }
  to { transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-media img { animation: none; transform: none; }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 960px) {
  .about-grid,
  .work-grid,
  .contact-layout,
  .process-track {
    grid-template-columns: 1fr;
  }

  .hero-content {
    margin-left: 1rem;
    padding-bottom: 3.5rem;
  }

  .hero h1 { max-width: none; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-block; }

  .site-nav {
    position: absolute;
    top: 72px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: #0b1424;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
  }

  .site-nav.open { display: flex; }
  .site-nav .btn { width: 100%; }

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