/* Temel sıfırlama, tipografi ve çerçeve */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  overflow-x: clip;
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.55;
  letter-spacing: .003em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; text-align: inherit; }
h1, h2, h3, h4, p, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 400; }
ul, ol { margin: 0; padding: 0; list-style: none; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
[hidden] { display: none !important; }
::selection { background: rgba(249, 126, 41, .22); }

:focus-visible { outline: 2px solid var(--akin-plum); outline-offset: 3px; border-radius: 8px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  padding: 10px 18px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-dark);
}
.skip-link:focus { top: 12px; }

/* Çerçeve: içerik kenarlarında ince dikey çizgiler, bölüm sınırlarında nokta */
.frame {
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  border-inline: 1px solid var(--line);
}

.section {
  position: relative;
  padding: var(--section-pad) var(--gutter);
  border-top: 1px solid var(--line);
}
.section::before,
.section::after {
  content: "";
  position: absolute;
  top: -3px;
  z-index: 2;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 5px var(--bg);
}
.section::before { left: -3px; }
.section::after { right: -3px; }

/* Tipografi ölçeği */
.eyebrow { font-size: var(--fs-lead); color: var(--muted); }

.display {
  font-size: var(--fs-display);
  line-height: 1.02;
  letter-spacing: -.042em;
  text-wrap: balance;
}

.h2 {
  font-size: var(--fs-h2);
  line-height: 1.08;
  letter-spacing: -.032em;
  text-wrap: balance;
}
.h2 .soft { display: block; color: var(--muted-2); }

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--muted);
  letter-spacing: .006em;
  text-wrap: pretty;
}

/* Küçük etiketler ana yazı tipinde ve normal yazımla: büyük harfli eşit aralıklı yazı makine çıktısı gibi duruyordu */
.kicker {
  font-size: var(--fs-micro);
  font-weight: 500;
  color: var(--muted);
}

/* Gradyanlı yazı ve ışıltı: 7 saniyede bir yazının üzerinden sıcak bir ışık şeridi geçer (ikinci arka plan katmanı),
   şerit geçerken 70'ler tarzı dört köşeli bir yıldız parlar. Yalnızca arka plan konumu, saydamlık ve dönüşüm canlanır. */
.grad-text {
  position: relative;
  background-image: var(--isilti), var(--grad-text);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation: isilti 7s var(--ease-in-out) 1.2s infinite;
}
/* Yıldız varsayılan olarak vurgunun sağ üst köşesinde; ana başlıkta "d" harfinin ucunda (layout.css) */
.grad-text::after { left: 100%; top: .12em; width: .42em; animation-delay: .6s; }

/* 70'ler parıltısı: dört uzun, dört kısa kollu yıldız. Logo (k harfinin ucu), gradyanlı yazı ve alt bilgideki büyük "akın" */
.grad-text::after,
.logo::before,
.footer-word span::after {
  content: "";
  position: absolute;
  z-index: 1;
  aspect-ratio: 1;
  background: radial-gradient(circle, #FFF8EC 0 12%, #FFC27A 32%, var(--akin-orange) 58%, var(--akin-orchid) 100%);
  clip-path: polygon(50% 0, 52.3% 44.5%, 67% 33%, 55.5% 47.7%, 100% 50%, 55.5% 52.3%, 67% 67%, 52.3% 55.5%,
                     50% 100%, 47.7% 55.5%, 33% 67%, 44.5% 52.3%, 0 50%, 44.5% 47.7%, 33% 33%, 47.7% 44.5%);
  opacity: 0;
  pointer-events: none;
  animation: yildiz 7s var(--ease-out) infinite;
}

/* Işık şeridi soldan sağa geçer (katman 2,5 kat geniş: %100 konumunda şerit solda, %0 konumunda sağda kalır) */
@keyframes isilti {
  0%, 62% { background-position: 100% 0; }
  82%, 100% { background-position: 0 0; }
}
/* Yıldız açılırken döner, tepe anında kolları dik ve yatay durur, sonra küçülerek söner */
@keyframes yildiz {
  0%, 70% { opacity: 0; transform: translate(-50%, -50%) scale(0) rotate(-35deg); }
  78% { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  88%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(.3) rotate(35deg); }
}
@media (prefers-reduced-motion: reduce) {
  .grad-text, .hook__n, .footer-word span, .logo::after { animation: none; }
  .grad-text::after, .logo::before, .footer-word span::after { display: none; }
}
/* Yazıcı arka planı basmayabilir: gradyanlı yazı düz mora döner, kaybolmaz; ışıltı basılmaz */
@media print {
  .grad-text { background: none; color: var(--akin-plum); -webkit-text-fill-color: currentColor; animation: none; }
  .grad-text::after, .logo::before, .logo::after, .footer-word span::after { display: none; }
}

.tabular { font-variant-numeric: tabular-nums; }
