:root {
  --brand: #f15822;
  --ink: #2f3640;
  --muted: #5f7d92;
  --bar: #353b48;
  --paper: #fafafa;
  --line: rgba(47, 54, 64, 0.12);
  --pass: #1f8a4c;
  --warn: #c47b12;
  --fail: #d64545;
  --accent: var(--brand);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Rubik, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

button, input { font: inherit; }

a { color: inherit; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.hero-wrap {
  position: relative;
  overflow: hidden;
  background: var(--brand);
  color: #fff;
  min-height: 78vh;
}

.hero-wrap:before,
.hero-wrap:after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 340px;
  height: 340px;
  border-radius: 18px;
  background: #fff;
  opacity: 0.16;
  transform: rotate(-20deg);
}

.hero-wrap:before { top: -160px; left: -120px; }
.hero-wrap:after { right: -140px; bottom: -170px; }

.topbar,
.hero { position: relative; z-index: 2; }

.steps,
.site-footer,
.report { position: relative; z-index: 1; }

.bots {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.bot {
  position: absolute;
  top: 0;
  left: 0;
  width: 68px;
  animation: roam-x 18s linear infinite;
}

.bot svg { display: block; width: 100%; height: auto; overflow: visible; }

.antenna { transform-box: fill-box; transform-origin: center bottom; animation: antenna 1.4s ease-in-out infinite alternate; }
.foot { transform-box: fill-box; transform-origin: center top; }
.foot-l { animation: step 0.32s ease-in-out infinite alternate; }
.foot-r { animation: step 0.32s ease-in-out infinite alternate-reverse; }

.bot-1 { width: 74px; animation-duration: 22s; }
.bot-2 { width: 52px; opacity: 0.8; animation-name: roam-y; animation-duration: 19s; animation-delay: -6s; }
.bot-3 { width: 60px; animation-name: roam-z; animation-duration: 26s; animation-delay: -11s; }
.bot-4 { width: 46px; opacity: 0.72; animation-name: roam-w; animation-duration: 17s; animation-delay: -3s; }
.bot-5 { width: 64px; animation-name: roam-v; animation-duration: 24s; animation-delay: -15s; }

@keyframes roam-x {
  0% { transform: translate(6vw, 18vh) scaleX(1); }
  42% { transform: translate(82vw, 24vh) scaleX(1); }
  50% { transform: translate(82vw, 24vh) scaleX(-1); }
  92% { transform: translate(4vw, 58vh) scaleX(-1); }
  100% { transform: translate(6vw, 18vh) scaleX(1); }
}

@keyframes roam-y {
  0% { transform: translate(88vw, 62vh) scaleX(-1); }
  46% { transform: translate(8vw, 70vh) scaleX(-1); }
  54% { transform: translate(8vw, 70vh) scaleX(1); }
  100% { transform: translate(90vw, 46vh) scaleX(1); }
}

@keyframes roam-z {
  0% { transform: translate(18vw, 8vh) scaleX(1); }
  30% { transform: translate(70vw, 12vh) scaleX(1); }
  38% { transform: translate(70vw, 12vh) scaleX(-1); }
  70% { transform: translate(12vw, 48vh) scaleX(-1); }
  78% { transform: translate(12vw, 48vh) scaleX(1); }
  100% { transform: translate(18vw, 8vh) scaleX(1); }
}

@keyframes roam-w {
  0% { transform: translate(-6vw, 40vh) scaleX(1); }
  48% { transform: translate(92vw, 36vh) scaleX(1); }
  56% { transform: translate(92vw, 36vh) scaleX(-1); }
  100% { transform: translate(-6vw, 40vh) scaleX(-1); }
}

@keyframes roam-v {
  0% { transform: translate(74vw, 78vh) scaleX(-1); }
  40% { transform: translate(16vw, 14vh) scaleX(-1); }
  48% { transform: translate(16vw, 14vh) scaleX(1); }
  100% { transform: translate(80vw, 72vh) scaleX(1); }
}

@keyframes antenna {
  from { transform: rotate(-10deg); }
  to { transform: rotate(10deg); }
}

@keyframes step {
  from { transform: translateY(0) rotate(-12deg); }
  to { transform: translateY(-4px) rotate(14deg); }
}

.topbar {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand img { height: 34px; width: auto; display: block; }

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 0.92rem;
  font-weight: 600;
}

.nav a { text-decoration: none; }

.nav a:hover { opacity: 0.85; }

.phone { letter-spacing: 0.02em; }

.hero {
  width: min(860px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 88px;
  text-align: center;
}

h1 {
  margin: 0;
  font-family: Montserrat, Rubik, sans-serif;
  font-weight: 800;
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  letter-spacing: -0.03em;
  line-height: 1;
}

.sub {
  margin: 14px auto 0;
  max-width: 34rem;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  font-weight: 600;
}

.searchbar {
  display: flex;
  align-items: center;
  width: min(640px, 100%);
  height: 64px;
  margin: 28px auto 0;
  padding: 8px 8px 8px 22px;
  background: var(--bar);
  border-radius: 999px;
}

.searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.05rem;
}

.searchbar input::placeholder { color: rgba(255, 255, 255, 0.55); }

.searchbar input:focus { outline: none; }

.searchbar button {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex: none;
}

.searchbar button svg { width: 22px; height: 22px; }

.searchbar button:hover { transform: scale(1.04); }

.searchbar button:disabled { cursor: progress; opacity: 0.7; }

.searchbar button:focus-visible,
.nav a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

.form-error {
  margin: 14px 0 0;
  font-weight: 600;
}

.chips {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.chips li {
  min-width: 84px;
  min-height: 84px;
  padding: 12px;
  border-radius: 50%;
  background: #fff;
  color: var(--brand);
  display: grid;
  place-items: center;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

main { background: var(--paper); }

.report {
  width: min(1080px, calc(100% - 32px));
  margin: -42px auto 0;
  padding: 28px 28px 8px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 50px -28px rgba(47, 54, 64, 0.45);
}

.report[data-band="guclu"] { --accent: #1f8a4c; }
.report[data-band="iyi"] { --accent: #218a62; }
.report[data-band="orta"] { --accent: #c47b12; }
.report[data-band="zayif"] { --accent: #d64545; }

.report-top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
}

.ring {
  width: 156px;
  height: 156px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), rgba(47, 54, 64, 0.08) 0);
}

.ring-inner {
  width: 122px;
  height: 122px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  align-content: center;
}

.score-number {
  font-family: Montserrat, Rubik, sans-serif;
  font-weight: 800;
  font-size: 3rem;
  line-height: 0.9;
  color: var(--ink);
}

.score-label {
  margin-top: 4px;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.summary {
  margin: 0;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 1.2rem;
  font-weight: 600;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.92rem;
}

.categories {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin: 28px 0 8px;
}

.category { padding-top: 10px; border-top: 1px solid var(--line); }

.category-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.92rem;
}

.meter {
  height: 5px;
  margin-top: 10px;
  border-radius: 99px;
  background: rgba(47, 54, 64, 0.08);
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.group h2 {
  margin: 26px 0 0;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.check {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.status {
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status.pass { color: var(--pass); }
.status.warn { color: var(--warn); }
.status.fail { color: var(--fail); }

.check h3 { margin: 0; font-size: 1rem; }

.check p { margin: 4px 0 0; color: var(--muted); }

.check .fix { color: var(--ink); }

.loading-bar {
  height: 3px;
  margin-bottom: 16px;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, var(--brand), transparent);
  background-size: 40% 100%;
  animation: slide 1.1s linear infinite;
}

.loading-copy {
  margin: 0 0 12px;
  font-family: Montserrat, Rubik, sans-serif;
  font-weight: 600;
}

.steps {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 54px 0 28px;
}

.steps h2 {
  margin: 0 0 18px;
  text-align: center;
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 1.6rem;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.step-grid article {
  background: #fff;
  border-radius: 12px;
  padding: 22px 18px;
  box-shadow: 0 18px 40px -24px rgba(47, 54, 64, 0.55);
}

.step-grid h3 {
  margin: 0 0 8px;
  color: var(--brand);
  font-family: Montserrat, Rubik, sans-serif;
  font-size: 1.05rem;
}

.step-grid p { margin: 0; color: var(--muted); }

.note {
  margin: 22px auto 0;
  max-width: 46rem;
  text-align: center;
  color: var(--muted);
}

.site-footer {
  background: var(--ink);
  color: #fff;
  margin-top: 24px;
}

.footer-grid {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 36px 0;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 24px;
}

.site-footer img { height: 30px; width: auto; margin-bottom: 12px; }

.site-footer p { margin: 0 0 8px; }

.site-footer a { text-decoration: none; }

.site-footer a:hover { color: #ffd2c2; }

.footer-links { display: grid; gap: 8px; align-content: start; }

@keyframes slide {
  from { background-position: -40% 0; }
  to { background-position: 140% 0; }
}

@media (max-width: 800px) {
  .topbar, .report-top, .categories, .check, .step-grid, .footer-grid { display: grid; grid-template-columns: 1fr; }
  .nav { gap: 12px 16px; flex-wrap: wrap; justify-content: flex-end; }
  .hero { padding-top: 28px; }
  .hero-wrap { min-height: 0; }
  .chips li { min-width: 72px; min-height: 72px; }
  .brand img { height: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loading-bar, .bot, .antenna, .foot { animation: none; }
  .bot-1 { transform: translate(8vw, 20vh); }
  .bot-2 { transform: translate(78vw, 62vh); }
  .bot-3 { transform: translate(70vw, 14vh); }
  .bot-4 { transform: translate(6vw, 58vh); }
  .bot-5 { transform: translate(46vw, 72vh); }
  .searchbar button:hover { transform: none; }
}
