:root {
  --paper: #ffffff;
  --navy: #0a2a5e;
  --blue: #1787e0;
  --water: #eaf4fd;
  --dust: #c9cdd3;
  --muted: #47597a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--navy);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
}

/* ---------- Sayfa düzeni ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 1rem;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 1rem;
  text-align: center;
}

.logo img {
  display: block;
  width: min(68vw, 300px);
  height: auto;
  /* JPG'nin beyaza yakın zemini sayfayla birleşsin */
  mix-blend-mode: multiply;
  filter: brightness(1.04) contrast(1.02);
}

.intro {
  display: grid;
  justify-items: center;
  gap: 1.25rem;
}

/* ---------- Başlık: tozlu → temiz silme geçişi ---------- */

.headline {
  position: relative;
  margin: 0;
  font-size: clamp(3.5rem, 9vw, 7rem);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 0.95;
  letter-spacing: -0.02em;
}

.headline-dusty {
  display: block;
  color: var(--dust);
}

.headline-clean {
  position: absolute;
  inset: 0;
  color: var(--navy);
  clip-path: inset(-10% 100% -10% 0);
  animation: wipe 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.45s forwards;
}

.headline::after {
  content: "";
  position: absolute;
  top: -4%;
  bottom: -4%;
  left: 0;
  width: 5px;
  border-radius: 3px;
  background: var(--blue);
  opacity: 0;
  animation: wand 1.3s cubic-bezier(0.65, 0, 0.35, 1) 0.45s forwards;
}

@keyframes wipe {
  to {
    clip-path: inset(-10% 0 -10% 0);
  }
}

@keyframes wand {
  0% {
    left: 0;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  100% {
    left: 100%;
    opacity: 0;
  }
}

.lead {
  margin: 0;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.125rem;
}

/* ---------- Butonlar ---------- */

.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  border: 2px solid var(--navy);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: currentColor;
  flex: none;
}

.btn-call {
  background: var(--navy);
  color: #fff;
}

.btn-call:hover {
  background: var(--blue);
  border-color: var(--blue);
}

.btn-whatsapp {
  background: transparent;
  color: var(--navy);
}

.btn-whatsapp:hover {
  background: var(--water);
}

.btn:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

@media (max-width: 480px) {
  .actions {
    flex-direction: column;
    width: min(100%, 20rem);
  }

  .btn {
    justify-content: center;
  }
}

/* ---------- Dalga ve alt bilgi ---------- */

.footer {
  margin-top: 1.5rem;
}

.wave {
  display: block;
  width: 100%;
  height: clamp(60px, 9vw, 120px);
  margin-bottom: -1px;
}

.wave-back {
  fill: var(--blue);
}

.wave-front {
  fill: var(--navy);
}

.footer-bar {
  background: var(--navy);
  color: #fff;
  padding: 0.5rem 1.5rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.5rem 2rem;
  font-size: 0.9375rem;
}

.footer-bar p {
  margin: 0;
  color: #b9cbe8;
}

.services {
  display: flex;
  gap: 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

/* ---------- Geniş ekran: logo solda, metin sağda ---------- */

@media (min-width: 860px) {
  .page {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 4rem;
    padding: 3rem 2.5rem 1rem;
    text-align: left;
  }

  .logo img {
    width: min(100%, 460px);
  }

  .intro {
    justify-items: start;
  }

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

  .footer-bar {
    justify-content: space-between;
    padding-inline: max(2.5rem, calc((100vw - 1120px) / 2 + 2.5rem));
  }
}

@media (prefers-reduced-motion: reduce) {
  .headline-clean {
    animation: none;
    clip-path: none;
  }

  .headline::after {
    display: none;
  }

  .btn {
    transition: none;
  }
}
