@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;500;600&display=swap');

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

html,
body,
#root {
  margin: 0;
  padding: 0;
  height: 100%;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: #0f172a;
  background: #f7f8fa;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.9em;
  background: #f1f3f6;
  padding: 2px 6px;
  border-radius: 4px;
}

button {
  font-family: inherit;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

input:focus,
select:focus,
textarea:focus {
  border-color: #2563eb !important;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12) !important;
  outline: none;
}

button:focus-visible {
  outline: 3px solid #2563EB;
  outline-offset: 3px;
}

select,
option {
  background: #ffffff !important;
  color: #0f172a !important;
}

input,
textarea {
  color: #0f172a;
  background: #ffffff;
}

input::placeholder,
textarea::placeholder {
  color: #94a3b8;
}

button {
  transition: all 0.15s ease;
  cursor: pointer;
}

button:active {
  transform: scale(0.98);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

tr {
  transition: background 0.15s;
}

tr:hover {
  background: #f1f3f6;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes liveBlink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes heroEnter {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prototip satır 72 — bayi formu hero animasyonu (panel'deki heroEnter'dan farklı isim) */

@keyframes heroFadeIn {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Prototip satır 73 — floating network dots */

@keyframes nodeFloat {
  0%, 100% {
    transform: translateY(0) scale(1);
    opacity: 0.4;
  }
  50% {
    transform: translateY(-15px) scale(1.05);
    opacity: 0.7;
  }
}

/* Prototip satır 74 — shine sweep animasyonu */

@keyframes btnShine {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Prototip satır 75 */

@keyframes checkPop {
  0% {
    transform: scale(0);
  }
  60% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

/* Prototip satır 76 */

@keyframes stepComplete {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.15);
  }
  100% {
    transform: scale(1);
  }
}

/* Prototip satır 87-88 — shine efekti, welcome-cta ve diğer parlak butonlar */

.shine {
  position: relative;
  overflow: hidden;
}

.shine::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  animation: btnShine 4s ease infinite;
}

/* Prototip satır 89-90 — step card hover */

.welcome-step-card {
  transition: all 0.3s cubic-bezier(0.19, 1, 0.22, 1) !important;
}

.welcome-step-card:hover {
  transform: translateY(-4px) !important;
  border-color: rgba(204, 0, 0, 0.2) !important;
  box-shadow: 0 10px 30px rgba(204, 0, 0, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

/* Prototip satır 91 — CTA button hover */

.welcome-cta:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 40px rgba(204, 0, 0, 0.25), 0 6px 16px rgba(204, 0, 0, 0.18) !important;
}

/* Prototip satır 92 — consent box hover */

.consent-box:hover {
  border-color: #cbd5e1 !important;
}

.stag > * {
  animation: fadeUp 0.45s ease both;
}

.stag > *:nth-child(1) {
  animation-delay: 0.03s;
}

.stag > *:nth-child(2) {
  animation-delay: 0.06s;
}

.stag > *:nth-child(3) {
  animation-delay: 0.09s;
}

.stag > *:nth-child(4) {
  animation-delay: 0.12s;
}

.stag > *:nth-child(5) {
  animation-delay: 0.15s;
}

.stag > *:nth-child(6) {
  animation-delay: 0.18s;
}

.stag > *:nth-child(7) {
  animation-delay: 0.21s;
}

.stag > *:nth-child(8) {
  animation-delay: 0.24s;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

/* Prototip bayi-onboarding.html breakpoint'i 768px — CLAUDE.md'nin 640/1024 kuralından kasıtlı sapma, prototip sadakati korundu */

@media (max-width: 768px) {
  .form-shell {
    padding: 16px 12px !important;
  }
  .form-card {
    padding: 28px 20px !important;
  }
  .hero-logos {
    flex-direction: column !important;
    gap: 16px !important;
  }
  .hero-connector {
    display: none !important;
  }
  .step-bar {
    gap: 4px !important;
  }
  .step-bar-label {
    font-size: 10px !important;
  }
  .two-col {
    grid-template-columns: 1fr !important;
  }
  .consent-box {
    padding: 16px !important;
  }
  .welcome-h1 {
    font-size: 34px !important;
  }
  .welcome-lead {
    font-size: 15px !important;
  }
  .welcome-steps {
    grid-template-columns: 1fr !important;
  }
  .welcome-step-card {
    padding: 24px 20px !important;
  }
  .welcome-cta {
    min-width: 100% !important;
    width: 100% !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
