/* =========================================================
   YG Global Yazılım — "Yakında" sayfası
   ========================================================= */

:root {
  --brand: #ff1e2d;
  --brand-deep: #b3000c;
  --accent: #22c98a;
  --bg: #05070c;

  --ink: #f4f6fb;
  --ink-soft: rgba(228, 234, 246, 0.66);
  --ink-dim: rgba(228, 234, 246, 0.42);

  --glass: rgba(255, 255, 255, 0.045);
  --glass-line: rgba(255, 255, 255, 0.1);

  --radius: 28px;
  --shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9);
  --font-display: "Sora", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

.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;
}

/* =========================================================
   Arka plan katmanları
   ========================================================= */

.bg-stack {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(120% 90% at 50% -20%, rgba(255, 30, 45, 0.16), transparent 60%),
    radial-gradient(90% 70% at 100% 110%, rgba(34, 201, 138, 0.12), transparent 60%),
    var(--bg);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  mix-blend-mode: screen;
  will-change: transform;
}

.aurora--1 {
  width: 52vmax; height: 52vmax;
  top: -18vmax; left: -12vmax;
  background: radial-gradient(circle at 40% 40%, var(--brand), transparent 62%);
  animation: drift1 24s ease-in-out infinite;
}

.aurora--2 {
  width: 44vmax; height: 44vmax;
  right: -14vmax; top: 8vmax;
  background: radial-gradient(circle at 60% 40%, #ffffff, transparent 60%);
  opacity: 0.14;
  animation: drift2 30s ease-in-out infinite;
}

.aurora--3 {
  width: 46vmax; height: 46vmax;
  bottom: -20vmax; left: 30%;
  background: radial-gradient(circle at 50% 50%, var(--accent), transparent 62%);
  opacity: 0.34;
  animation: drift3 36s ease-in-out infinite;
}

@keyframes drift1 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50%      { transform: translate3d(14vmax, 8vmax, 0) scale(1.15); }
}
@keyframes drift2 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1.05); }
  50%      { transform: translate3d(-12vmax, 12vmax, 0) scale(0.9); }
}
@keyframes drift3 {
  0%, 100% { transform: translate3d(0, 0, 0) scale(0.95); }
  50%      { transform: translate3d(10vmax, -12vmax, 0) scale(1.2); }
}

/* Perspektifli ızgara zemin */
.grid-floor {
  position: absolute;
  left: -25%; right: -25%; bottom: -12%;
  height: 62%;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 68px 68px;
  transform: perspective(520px) rotateX(72deg);
  transform-origin: bottom center;
  mask-image: linear-gradient(to top, #000 5%, transparent 78%);
  -webkit-mask-image: linear-gradient(to top, #000 5%, transparent 78%);
  animation: floorScroll 9s linear infinite;
}

@keyframes floorScroll {
  to { background-position: 0 68px, 0 68px; }
}

#particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scanline {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0.028) 0 1px,
    transparent 1px 4px
  );
  opacity: 0.6;
}

.noise {
  position: absolute;
  inset: -200px;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 700ms steps(3) infinite;
}

@keyframes grain {
  0%   { transform: translate(0, 0); }
  33%  { transform: translate(-18px, 12px); }
  66%  { transform: translate(14px, -16px); }
  100% { transform: translate(0, 0); }
}

.vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(115% 85% at 50% 45%, transparent 42%, rgba(0, 0, 0, 0.72) 100%);
}

.spotlight {
  position: absolute;
  width: 620px; height: 620px;
  margin: -310px 0 0 -310px;
  left: 50%; top: 40%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 30, 45, 0.16), transparent 62%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 700ms ease;
}

/* =========================================================
   Sahne + kart
   ========================================================= */

.stage {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 40px);
  perspective: 1400px;
}

.card {
  position: relative;
  width: min(960px, 100%);
  padding: clamp(24px, 3.4vw, 44px) clamp(20px, 4vw, 60px) clamp(20px, 2.6vw, 32px);
  text-align: center;
  border-radius: var(--radius);
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.015) 42%, rgba(255, 255, 255, 0.05));
  border: 1px solid var(--glass-line);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
  transform-style: preserve-3d;
  /* fill-mode "backwards": animasyon bittikten sonra transform'u serbest bırakır,
     böylece JS ile uygulanan 3D fare eğimi çalışabilir */
  animation: cardIn 1100ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(38px) scale(0.965); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Dönen ışıklı çerçeve */
.card__border {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: conic-gradient(
    from var(--angle, 0deg),
    transparent 0deg,
    var(--brand) 46deg,
    #ffffff 74deg,
    var(--accent) 108deg,
    transparent 170deg,
    transparent 360deg
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.85;
  animation: spinBorder 7s linear infinite;
  pointer-events: none;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes spinBorder {
  to { --angle: 360deg; }
}

/* Tarayıcı @property desteklemezse yumuşak nefes efektine düş */
@supports not (background: conic-gradient(from var(--angle), red, blue)) {
  .card__border {
    background: linear-gradient(130deg, var(--brand), transparent 45%, var(--accent));
    animation: breathe 4s ease-in-out infinite;
  }
}

@keyframes breathe {
  0%, 100% { opacity: 0.35; }
  50%      { opacity: 0.9; }
}

/* =========================================================
   Marka / logo
   ========================================================= */

.brand { margin-bottom: clamp(14px, 2vw, 20px); }

.brand__logo {
  display: inline-block;
  animation: float 6s ease-in-out infinite;
}

.brand__logo img {
  display: block;
  width: clamp(170px, 26vw, 240px);
  height: auto;
  filter: drop-shadow(0 14px 34px rgba(255, 30, 45, 0.42));
  transition: transform 400ms cubic-bezier(0.16, 1, 0.3, 1), filter 400ms ease;
}

.brand__logo:hover img {
  transform: scale(1.04);
  filter: drop-shadow(0 18px 48px rgba(255, 30, 45, 0.66));
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-9px); }
}

.brand__company {
  margin: 10px 0 0;
  font-size: clamp(9.5px, 1.15vw, 11.5px);
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* =========================================================
   Etiket (pill)
   ========================================================= */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 auto clamp(12px, 1.6vw, 18px);
  padding: 7px 17px;
  border-radius: 999px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.04);
  font-size: clamp(11px, 1.35vw, 13px);
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pill__dot {
  width: 8px; height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(34, 201, 138, 0.6);
  animation: ping 2s ease-out infinite;
}

@keyframes ping {
  0%   { box-shadow: 0 0 0 0 rgba(34, 201, 138, 0.55); }
  70%  { box-shadow: 0 0 0 12px rgba(34, 201, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 201, 138, 0); }
}

/* =========================================================
   Başlıklar
   ========================================================= */

.headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(38px, min(8.6vw, 12vh), 92px);
  line-height: 0.95;
  letter-spacing: -0.03em;
  text-transform: uppercase;
}

.headline__shine {
  background: linear-gradient(
    100deg,
    #ffffff 0%,
    #cfd6e6 22%,
    var(--brand) 44%,
    #ffffff 58%,
    #b9c2d4 74%,
    #ffffff 100%
  );
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shine 6s linear infinite;
  filter: drop-shadow(0 10px 40px rgba(255, 30, 45, 0.32));
}

@keyframes shine {
  0%   { background-position: 220% 50%; }
  100% { background-position: -40% 50%; }
}

.subline {
  margin: clamp(10px, 1.4vw, 14px) 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(15px, 2.4vw, 24px);
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 0 10px;
  justify-content: center;
  min-height: 1.4em;
}

.subline__static { color: var(--ink-soft); }

.typer {
  display: inline-flex;
  align-items: baseline;
  color: var(--accent);
  text-shadow: 0 0 26px rgba(34, 201, 138, 0.35);
}

.typer__caret {
  display: inline-block;
  width: 2px;
  align-self: stretch;
  margin-left: 4px;
  background: var(--brand);
  animation: caret 1s steps(1) infinite;
}

@keyframes caret {
  0%, 49%  { opacity: 1; }
  50%, 99% { opacity: 0; }
}

.lede {
  max-width: 58ch;
  margin: clamp(12px, 1.6vw, 18px) auto 0;
  font-size: clamp(13.5px, 1.6vw, 15.5px);
  line-height: 1.7;
  font-weight: 300;
  color: var(--ink-soft);
}

/* =========================================================
   Geri sayım
   ========================================================= */

.countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 14px);
  margin: clamp(20px, 2.6vw, 30px) auto 0;
  max-width: 580px;
}

.unit { display: grid; gap: 8px; justify-items: center; }

.unit__box {
  position: relative;
  width: 100%;
  padding: clamp(10px, 1.5vw, 15px) 6px;
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.015));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 18px 40px -22px rgba(0, 0, 0, 0.9);
  overflow: hidden;
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), border-color 300ms ease;
}

.unit__box::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
}

.unit__box:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 30, 45, 0.45);
}

.unit__value {
  position: relative;
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5.4vw, 44px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #ffffff, #9aa5bb);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.unit__value.tick {
  animation: tick 480ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes tick {
  0%   { transform: translateY(48%) scale(0.9); opacity: 0; filter: blur(4px); }
  100% { transform: none; opacity: 1; filter: none; }
}

.unit__glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.16) 48%, transparent 62%);
  transform: translateX(-120%);
  animation: glare 5.2s ease-in-out infinite;
}

@keyframes glare {
  0%, 62%  { transform: translateX(-120%); }
  85%, 100% { transform: translateX(120%); }
}

.unit__label {
  font-size: clamp(9px, 1.15vw, 11px);
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

/* =========================================================
   İlerleme çubuğu
   ========================================================= */

.progress {
  max-width: 580px;
  margin: clamp(18px, 2.2vw, 26px) auto 0;
  text-align: left;
}

.progress__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: clamp(10px, 1.2vw, 12px);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-dim);
  margin-bottom: 10px;
}

.progress__pct {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(12px, 1.5vw, 15px);
  letter-spacing: 0.04em;
  color: var(--ink);
}

.progress__track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.progress__bar {
  width: var(--target);
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-deep), var(--brand) 45%, #ffffff 78%, var(--accent));
  background-size: 220% 100%;
  box-shadow: 0 0 22px rgba(255, 30, 45, 0.6);
  animation:
    barFlow 3.4s linear infinite,
    barGrow 1700ms cubic-bezier(0.16, 1, 0.3, 1) 650ms both;
}

@keyframes barFlow {
  to { background-position: -220% 50%; }
}

@keyframes barGrow {
  from { width: 0; }
  to   { width: var(--target); }
}

.progress__note {
  margin: 10px 0 0;
  font-size: clamp(11px, 1.3vw, 13px);
  color: var(--ink-soft);
}

.progress__note strong { color: var(--ink); font-weight: 600; }

/* =========================================================
   Bülten formu
   ========================================================= */

.subscribe {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 580px;
  margin: clamp(18px, 2.4vw, 28px) auto 0;
}

.honeypot {
  position: absolute !important;
  left: -9999px;
  opacity: 0;
  width: 1px; height: 1px;
}

.subscribe__field {
  position: relative;
  flex: 1 1 260px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.045);
  transition: border-color 260ms ease, box-shadow 260ms ease, background 260ms ease;
}

.subscribe__field:focus-within {
  border-color: rgba(255, 30, 45, 0.6);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 4px rgba(255, 30, 45, 0.14);
}

.subscribe__icon {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  fill: var(--ink-dim);
}

.subscribe input[type="email"] {
  flex: 1;
  min-width: 0;
  padding: 13px 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
}

.subscribe input::placeholder { color: var(--ink-dim); }

.btn {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 26px;
  border: 0;
  border-radius: 16px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14.5px;
  letter-spacing: 0.01em;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  box-shadow: 0 14px 34px -12px rgba(255, 30, 45, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 220ms ease, filter 220ms ease;
}

.btn__label { position: relative; z-index: 2; }

.btn__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 34%, rgba(255, 255, 255, 0.45) 50%, transparent 66%);
  transform: translateX(-130%);
  transition: transform 700ms ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 44px -12px rgba(255, 30, 45, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.btn:hover .btn__glow { transform: translateX(130%); }
.btn:active { transform: translateY(0) scale(0.985); }

.btn[disabled] { filter: grayscale(0.35) brightness(0.85); cursor: progress; }

.subscribe__msg {
  flex: 1 0 100%;
  min-height: 1.2em;
  margin: 2px 0 0;
  font-size: 13px;
  color: var(--ink-soft);
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 260ms ease, transform 260ms ease;
}

.subscribe__msg.show { opacity: 1; transform: none; }
.subscribe__msg.ok { color: var(--accent); }
.subscribe__msg.err { color: #ff7b85; }

/* =========================================================
   Alt bölüm
   ========================================================= */

.foot {
  margin-top: clamp(20px, 2.6vw, 30px);
  padding-top: clamp(14px, 1.8vw, 20px);
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.socials {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 14px;
}

.socials a {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  border-radius: 12px;
  border: 1px solid var(--glass-line);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 260ms cubic-bezier(0.16, 1, 0.3, 1), background 260ms ease, border-color 260ms ease;
}

.socials svg { width: 18px; height: 18px; fill: var(--ink-soft); transition: fill 260ms ease; }

.socials a:hover {
  transform: translateY(-3px);
  background: rgba(255, 30, 45, 0.16);
  border-color: rgba(255, 30, 45, 0.5);
}

.socials a:hover svg { fill: #fff; }

.foot__meta, .foot__copy {
  margin: 0;
  font-size: clamp(11px, 1.25vw, 12.5px);
  color: var(--ink-dim);
  line-height: 1.75;
}

.foot__meta a, .foot__copy a {
  color: var(--ink-soft);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 220ms ease, border-color 220ms ease;
}

.foot__meta a:hover, .foot__copy a:hover {
  color: #fff;
  border-color: var(--brand);
}

.sep { opacity: 0.4; margin: 0 6px; }

/* =========================================================
   Görünüme girme animasyonu (JS'e bağlı değil)
   ========================================================= */

[data-reveal] {
  animation: revealIn 950ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes revealIn {
  from { opacity: 0; transform: translateY(18px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Kart içindeki sıraya göre kademeli gecikme */
.card > [data-reveal]:nth-child(3)  { animation-delay: 120ms; }
.card > [data-reveal]:nth-child(4)  { animation-delay: 240ms; }
.card > [data-reveal]:nth-child(5)  { animation-delay: 350ms; }
.card > [data-reveal]:nth-child(6)  { animation-delay: 460ms; }
.card > [data-reveal]:nth-child(7)  { animation-delay: 570ms; }
.card > [data-reveal]:nth-child(8)  { animation-delay: 670ms; }
.card > [data-reveal]:nth-child(9)  { animation-delay: 770ms; }
.card > [data-reveal]:nth-child(10) { animation-delay: 860ms; }

/* =========================================================
   Duyarlılık
   ========================================================= */

@media (max-width: 560px) {
  .countdown { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 340px; }
  .card { border-radius: 22px; }
  .btn { flex: 1 1 100%; }
  .pill { white-space: normal; }
  .grid-floor { height: 45%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
  .noise, .scanline { display: none; }
}
