/* ============================================================
   Textera - Marka tasarim sistemi
   Cyan - Mavi - Mor akiskan gradient kimligi, light theme
   ============================================================ */

:root {
  /* Marka renkleri (logodan) */
  --cyan:   #22D3EE;
  --sky:    #38BDF8;
  --blue:   #3B82F6;
  --indigo: #6366F1;
  --violet: #8B5CF6;
  --purple: #A855F7;

  /* Gradientler */
  --grad: linear-gradient(120deg, #22D3EE 0%, #3B82F6 48%, #8B5CF6 100%);
  --grad-rev: linear-gradient(120deg, #8B5CF6 0%, #3B82F6 52%, #22D3EE 100%);
  --grad-text: linear-gradient(105deg, #0EA5C8 0%, #3B82F6 46%, #8B5CF6 100%);
  --grad-soft: linear-gradient(135deg, #ECFEFF 0%, #EFF6FF 50%, #F5F3FF 100%);

  /* Notr tonlar */
  --bg:            #FBFCFE;
  --surface:       #FFFFFF;
  --surface-soft:  #F6F8FC;
  --border:        #E7EBF2;
  --border-strong: #D4DAE6;
  --text:          #121826;
  --text-soft:     #5A6478;
  --text-muted:    #98A1B4;

  /* Anlamsal */
  --accent:       #3B82F6;
  --accent-deep:  #6366F1;
  --accent-soft:  #EEF4FF;
  --accent-tint:  #E6F0FF;
  --accent-ring:  rgba(59, 130, 246, 0.20);
  --cyan-soft:    #E0FBFF;
  --success:      #0EA67B;
  --success-soft: #DFF7EF;
  --danger:       #E5483D;
  --danger-soft:  #FDEDEB;
  --warning:      #B7791F;

  /* Golge */
  --shadow-sm: 0 1px 3px rgba(18, 24, 38, 0.05);
  --shadow-md: 0 12px 32px -12px rgba(30, 58, 110, 0.18);
  --shadow-lg: 0 30px 70px -24px rgba(40, 60, 130, 0.28);
  --shadow-brand: 0 16px 40px -12px rgba(59, 130, 246, 0.42);

  /* Bicim */
  --radius-sm: 11px;
  --radius:    17px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  /* Yumusatma */
  --ease:      cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --spring:    cubic-bezier(0.34, 1.46, 0.64, 1);

  /* Inter tam Turkce glif destegi saglar; sistem fontlari yedek olarak kalir */
  --font: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { min-height: 100%; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ============================================================
   Mesh arka plan
   ============================================================ */
.mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.mesh-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.5;
}
.mb-1 {
  width: 560px; height: 560px;
  background: #9FECF7;
  top: -200px; left: -160px;
  animation: float1 24s ease-in-out infinite;
}
.mb-2 {
  width: 520px; height: 520px;
  background: #BBD3FF;
  top: 8%; right: -200px;
  animation: float2 28s ease-in-out infinite;
}
.mb-3 {
  width: 480px; height: 480px;
  background: #D9C9FF;
  bottom: -220px; left: 14%;
  animation: float3 32s ease-in-out infinite;
}
.mb-4 {
  width: 360px; height: 360px;
  background: #C4F2FA;
  bottom: 12%; right: 18%;
  animation: float1 30s ease-in-out infinite reverse;
}
@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(70px, 56px) scale(1.12); }
}
@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(-66px, 48px) scale(1.14); }
}
@keyframes float3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(54px, -52px) scale(0.9); }
}

/* ============================================================
   Ekranlar ve gecisler
   ============================================================ */
.screen {
  position: relative;
  z-index: 1;
  min-height: 100vh;
}
.screen[hidden] { display: none; }
.screen-landing { animation: screenIn 0.6s var(--ease) both; }
.screen-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 22px 20px 44px;
  animation: appIn 0.65s var(--ease) both;
}
@keyframes screenIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes appIn {
  from { opacity: 0; transform: translateY(24px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.screen-landing.leaving {
  animation: screenOut 0.4s var(--ease-soft) both;
}
@keyframes screenOut {
  from { opacity: 1; transform: scale(1); }
  to   { opacity: 0; transform: scale(1.04); }
}

/* ============================================================
   Navigasyon
   ============================================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(20px, 5vw, 60px);
  backdrop-filter: blur(14px);
  background: rgba(251, 252, 254, 0.72);
  border-bottom: 1px solid rgba(231, 235, 242, 0.7);
  animation: fadeDown 0.7s var(--ease) both;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  cursor: pointer;
}
.nav-logo {
  width: 34px; height: 34px;
  object-fit: contain;
  filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.28));
}
.nav-name {
  font-size: 19px;
  font-weight: 720;
  letter-spacing: -0.02em;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(48px, 9vw, 110px) 20px clamp(60px, 8vw, 96px);
  max-width: 880px;
  margin: 0 auto;
}
.hero-glow {
  position: absolute;
  top: -40px; left: 50%;
  transform: translateX(-50%);
  width: 620px; height: 620px;
  max-width: 120vw;
  background: radial-gradient(circle, rgba(94, 160, 246, 0.20) 0%, rgba(255, 255, 255, 0) 64%);
  pointer-events: none;
}

.hero-logo {
  position: relative;
  width: clamp(108px, 17vw, 156px);
  height: clamp(108px, 17vw, 156px);
  display: grid;
  place-items: center;
  margin-bottom: 26px;
  animation: floaty 5.5s ease-in-out infinite;
}
.hero-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 16px 30px rgba(59, 130, 246, 0.34));
}
.hero-logo-ring {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, rgba(168, 85, 247, 0.10) 50%, rgba(255, 255, 255, 0) 72%);
  animation: pulseRing 4s ease-in-out infinite;
}
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
@keyframes pulseRing {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50%      { transform: scale(1.12); opacity: 0.4; }
}

.hero-title {
  font-size: clamp(46px, 9vw, 86px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 22px;
}
.wordmark {
  background: linear-gradient(105deg, #0EA5C8, #3B82F6, #8B5CF6, #3B82F6, #0EA5C8);
  background-size: 220% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 7s linear infinite;
}
@keyframes shimmer {
  to { background-position: 220% center; }
}

.hero-tag {
  font-size: clamp(15px, 2.3vw, 19px);
  color: var(--text-soft);
  line-height: 1.6;
  max-width: 540px;
  margin-bottom: 34px;
}
.hero-tag strong {
  font-weight: 700;
  color: var(--text);
}

.hero-cta { margin-bottom: 24px; }

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
  color: var(--text-soft);
}
.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.trust-item svg { color: var(--success); }
.trust-dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--border-strong);
}

/* Hero ekolayzir dalgasi */
.hero-wave {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 5px;
  height: 64px;
  margin-top: 46px;
  width: 100%;
  max-width: 460px;
}
.hero-wave span {
  flex: 1;
  border-radius: 99px;
  background: var(--grad);
  opacity: 0.55;
  animation: eq 1.4s ease-in-out infinite;
}
.hero-wave span:nth-child(odd)  { animation-duration: 1.7s; }
.hero-wave span:nth-child(3n)   { animation-duration: 1.1s; }
.hero-wave span:nth-child(1)  { animation-delay: -0.2s; }
.hero-wave span:nth-child(2)  { animation-delay: -0.6s; }
.hero-wave span:nth-child(3)  { animation-delay: -1.0s; }
.hero-wave span:nth-child(4)  { animation-delay: -0.4s; }
.hero-wave span:nth-child(5)  { animation-delay: -0.8s; }
.hero-wave span:nth-child(6)  { animation-delay: -1.2s; }
.hero-wave span:nth-child(7)  { animation-delay: -0.3s; }
.hero-wave span:nth-child(8)  { animation-delay: -0.9s; }
.hero-wave span:nth-child(9)  { animation-delay: -0.5s; }
.hero-wave span:nth-child(10) { animation-delay: -1.1s; }
.hero-wave span:nth-child(11) { animation-delay: -0.7s; }
.hero-wave span:nth-child(12) { animation-delay: -0.2s; }
.hero-wave span:nth-child(13) { animation-delay: -1.3s; }
.hero-wave span:nth-child(14) { animation-delay: -0.6s; }
.hero-wave span:nth-child(15) { animation-delay: -1.0s; }
@keyframes eq {
  0%, 100% { height: 16%; }
  50%      { height: 100%; }
}

/* ============================================================
   Bolum basliklari
   ============================================================ */
.section-eyebrow {
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 10px;
}
.section-title {
  text-align: center;
  font-size: clamp(26px, 4.4vw, 38px);
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 44px;
}
.section-sub {
  text-align: center;
  max-width: 640px;
  margin: -28px auto 42px;
  color: var(--text-soft);
  font-size: clamp(15px, 1.7vw, 17px);
  line-height: 1.65;
}

/* ============================================================
   Cikti demosu (ana sayfa, format onizlemeleri)
   ============================================================ */
.demo {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 40px) clamp(20px, 5vw, 48px) clamp(40px, 6vw, 80px);
}
.demo .section-title { margin-bottom: 12px; }
.demo .section-sub { margin-top: 0; }

.demo-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.demo-tabs {
  display: flex;
  gap: 4px;
  padding: 10px;
  background: var(--surface-soft);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  scrollbar-width: none;
}
.demo-tabs::-webkit-scrollbar { display: none; }
.demo-tab {
  flex: 1 0 auto;
  min-width: 64px;
  padding: 9px 14px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13px;
  font-weight: 680;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.demo-tab:hover { color: var(--accent); }
.demo-tab.active {
  background: var(--surface);
  color: var(--accent);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}

.demo-stage {
  display: grid;
  padding: clamp(18px, 3vw, 30px);
  min-height: 300px;
  align-items: center;
  background: radial-gradient(130% 120% at 50% 0%, var(--surface-soft) 0%, var(--surface) 72%);
}
.demo-pane {
  grid-area: 1 / 1;
  width: 100%;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease);
}
.demo-pane.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* Belge: Word ve PDF */
.doc-page {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 32px);
  box-shadow: 0 16px 40px rgba(17, 24, 39, 0.10);
  max-width: 520px;
  margin: 0 auto;
}
.doc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.doc-badge {
  display: grid;
  place-items: center;
  width: 30px; height: 30px;
  border-radius: 7px;
  color: #fff;
  font-weight: 800;
}
.doc-badge.word { background: #2B579A; font-size: 14px; }
.doc-badge.pdf { background: #D93831; font-size: 10px; }
.doc-name { font-weight: 680; color: var(--text); font-size: 14px; }
.doc-text { color: #1f2733; line-height: 1.85; font-size: 15px; }
.doc-page.word .doc-text { font-family: Georgia, "Times New Roman", serif; }
.pdf-foot {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 11.5px;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* TXT */
.txt-view {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13.5px;
  line-height: 1.9;
  color: var(--text);
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(18px, 3vw, 26px);
  max-width: 560px;
  margin: 0 auto;
}

/* Altyazi: SRT ve VTT (koyu "altyazi editoru" gorunumu) */
.sub-view {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  background: #0F1729;
  border-radius: 12px;
  padding: clamp(18px, 3vw, 24px);
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 16px 40px rgba(15, 23, 41, 0.28);
}
.vtt-head { color: #7DD3FC; font-weight: 700; margin-bottom: 14px; letter-spacing: 0.08em; }
.cue { margin-bottom: 14px; }
.cue:last-child { margin-bottom: 0; }
.cue-idx { display: block; color: #64748B; }
.cue-time { display: block; color: #38BDF8; margin-bottom: 3px; }
.cue-text { display: block; color: #F1F5F9; }

/* MP3 oynatici */
.mp3-player {
  display: flex;
  align-items: center;
  gap: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  max-width: 520px;
  margin: 0 auto;
  box-shadow: var(--shadow-md);
}
.mp3-play {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 8px 22px var(--accent-ring);
  transition: transform 0.2s var(--ease);
}
.mp3-play:hover { transform: scale(1.06); }
.mp3-body { flex: 1; min-width: 0; }
.mp3-name { font-size: 13px; font-weight: 650; color: var(--text-soft); margin-bottom: 9px; }
.wave { display: flex; align-items: center; gap: 3px; height: 42px; }
.wave span {
  flex: 1;
  min-width: 2px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--cyan) 0%, var(--violet) 100%);
  height: calc(var(--h, 0.3) * 100%);
  opacity: 0.85;
}
.demo-pane[data-fmt="mp3"].show .wave span {
  animation: wavePulse 1.1s var(--ease) infinite alternate;
  animation-delay: var(--d, 0s);
}
.mp3-time {
  display: flex;
  justify-content: space-between;
  margin-top: 9px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
}
@keyframes wavePulse {
  from { height: calc(var(--h, 0.3) * 100%); }
  to   { height: calc(var(--h2, 0.85) * 100%); }
}

@media (max-width: 560px) {
  .demo-tab { min-width: 56px; padding: 8px 10px; font-size: 12px; }
  .demo-stage { min-height: 340px; }
}
@media (prefers-reduced-motion: reduce) {
  .demo-pane[data-fmt="mp3"].show .wave span { animation: none; }
}

/* ============================================================
   Ozellikler
   ============================================================ */
.features {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 48px);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease),
              border-color 0.35s var(--ease);
}
.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-tint);
}
.fc-glyph {
  display: grid;
  place-items: center;
  width: 50px; height: 50px;
  border-radius: 14px;
  background: var(--grad);
  color: #fff;
  margin-bottom: 16px;
  box-shadow: 0 10px 22px -8px rgba(59, 130, 246, 0.5);
  transition: transform 0.35s var(--spring);
}
.feature-card:hover .fc-glyph { transform: scale(1.1) rotate(-6deg); }
.feature-card h3 {
  font-size: 16.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}
.feature-card p {
  font-size: 13.5px;
  color: var(--text-soft);
  line-height: 1.6;
}

/* ============================================================
   Nasil calisir
   ============================================================ */
.how {
  max-width: 940px;
  margin: 0 auto;
  padding: clamp(30px, 5vw, 60px) clamp(20px, 5vw, 48px) clamp(50px, 7vw, 90px);
}
.how-track {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.how-step {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.how-num {
  display: inline-grid;
  place-items: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--grad-soft);
  border: 1.5px solid var(--accent-tint);
  font-size: 18px;
  font-weight: 800;
  background-clip: padding-box;
  color: var(--accent);
  margin-bottom: 14px;
}
.how-step h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
}
.how-step p {
  font-size: 13px;
  color: var(--text-soft);
  line-height: 1.55;
}
.how-line {
  align-self: center;
  flex: 0 0 38px;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  border-radius: 2px;
  opacity: 0.5;
}
.how-cta {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

/* ============================================================
   Landing footer
   ============================================================ */
.landing-foot {
  max-width: 1080px;
  margin: 0 auto;
  padding: 30px clamp(20px, 5vw, 48px) 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--border);
}
.lf-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 15px;
}
.lf-brand img { width: 26px; height: 26px; object-fit: contain; }
.lf-note { font-size: 12.5px; color: var(--text-muted); }
.lf-col { display: flex; flex-direction: column; gap: 8px; }
.lf-links { display: flex; flex-wrap: wrap; gap: 18px; }
.lf-links a {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  text-decoration: none;
  transition: color 0.2s var(--ease);
}
.lf-links a:hover { color: var(--accent); }
@media (max-width: 560px) {
  .landing-foot { flex-direction: column; align-items: flex-start; }
}

/* Destek modali */
.support-text {
  width: 100%;
  resize: vertical;
  min-height: 110px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-soft);
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 12px;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.support-text:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ring);
  background: var(--surface);
}
.support-error { color: var(--danger); font-size: 13px; margin-top: 10px; text-align: center; }
.support-mail { color: var(--accent); font-weight: 650; text-decoration: none; }
.support-mail:hover { text-decoration: underline; }

/* ============================================================
   Yasal / bilgi sayfalari (privacy, terms, refund, contact)
   ============================================================ */
.legal-wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) clamp(20px, 5vw, 40px) 80px;
}
.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  color: var(--text-soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}
.legal-back:hover { color: var(--accent); }
.legal-wrap h1 {
  font-size: clamp(28px, 5vw, 40px);
  font-weight: 760;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}
.legal-updated { color: var(--text-muted); font-size: 13px; margin-bottom: 30px; }
.legal-wrap h2 {
  font-size: 19px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 10px;
}
.legal-wrap p, .legal-wrap li { color: var(--text-soft); line-height: 1.75; font-size: 15px; }
.legal-wrap ul { margin: 8px 0 8px 22px; }
.legal-wrap a { color: var(--accent); text-decoration: none; }
.legal-wrap a:hover { text-decoration: underline; }

/* ============================================================
   Giris animasyonlari
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  animation: revealIn 0.8s var(--ease) forwards;
}
.reveal[data-delay="0"] { animation-delay: 0.05s; }
.reveal[data-delay="1"] { animation-delay: 0.18s; }
.reveal[data-delay="2"] { animation-delay: 0.31s; }
.reveal[data-delay="3"] { animation-delay: 0.44s; }
.reveal[data-delay="4"] { animation-delay: 0.57s; }
@keyframes revealIn {
  to { opacity: 1; transform: translateY(0); }
}

.reveal-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-up.in { opacity: 1; transform: translateY(0); }
.reveal-up[data-delay="1"] { transition-delay: 0.08s; }
.reveal-up[data-delay="2"] { transition-delay: 0.16s; }
.reveal-up[data-delay="3"] { transition-delay: 0.24s; }
.reveal-up[data-delay="4"] { transition-delay: 0.32s; }
.reveal-up[data-delay="5"] { transition-delay: 0.40s; }

@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-14px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   Uygulama ust cubugu
   ============================================================ */
.app-topbar {
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 26px;
}
/* Marka solda kalsin; dil secici + giris/aksiyon kutusu saga itilsin */
.app-topbar .nav-brand { margin-right: auto; }

/* Landing nav'inda dil secici ve "Sign in" butonunu hizala */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stage {
  width: 100%;
  max-width: 640px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---- Is listesi (sihirbazin altinda, arsiv) ---- */
.jobs-panel {
  width: 100%;
  margin-top: 26px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}
.jobs-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.jobs-title {
  font-size: 18px;
  font-weight: 740;
  letter-spacing: -0.02em;
}
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.jobs-empty {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-muted);
}
.job-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}
.job-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.job-status {
  width: max-content;
  padding: 3px 8px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
}
.job-item.done .job-status {
  background: var(--success-soft);
  color: var(--success);
}
.job-item.error .job-status,
.job-item.expired .job-status {
  background: var(--danger-soft);
  color: var(--danger);
}
.job-name {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-sub {
  font-size: 12px;
  color: var(--text-muted);
}
.job-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  flex-wrap: wrap;
}
.job-download {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.job-download svg { flex: none; }
.job-download:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ---- Auth ve odeme ---- */
.auth-box {
  display: flex;
  align-items: center;
  gap: 10px;
}
.auth-email {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
}
.pay-mark {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  margin: 0 auto 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.pay-summary {
  max-width: 460px;
  margin: 0 auto 20px;
}
.auth-pane,
.pay-pane {
  max-width: 380px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* display:flex above overrides the [hidden] attribute's UA display:none,
   so the hidden pane must be re-hidden with a higher-specificity rule. */
.auth-pane[hidden],
.pay-pane[hidden] { display: none; }
.auth-pane .field { margin: 0; }
.auth-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
}
.auth-divider::before,
.auth-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}
.auth-actions {
  display: flex;
  gap: 10px;
}
.auth-actions .btn { flex: 1; }
.auth-error {
  margin: 0;
  font-size: 13px;
  color: var(--danger);
  text-align: center;
}
.signed-as {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
}
.pay-pane .btn-lg { width: 100%; }

/* Kilitli kart odeme dugmesi */
.job-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 34px;
  padding: 8px 14px;
  border-radius: 8px;
  border: none;
  background: var(--grad);
  color: #fff;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
}
.job-pay:hover { opacity: 0.92; transform: translateY(-1px); }
.job-pay:disabled { opacity: 0.6; cursor: wait; }

/* Tamamlandi ekrani format dugmeleri */
.done-formats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 18px;
  max-width: 520px;
}

/* Yeniden baslat dugmesi */
.job-retry {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 32px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.job-retry:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}
.job-retry:disabled {
  opacity: 0.6;
  cursor: wait;
}

/* Kayit silme dugmesi */
.job-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 32px;
  min-width: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), color 0.2s var(--ease),
              background 0.2s var(--ease);
}
.job-delete:hover {
  border-color: var(--danger);
  color: var(--danger);
  background: var(--danger-soft);
}
.job-delete.arm {
  border-color: var(--danger);
  background: var(--danger);
  color: #fff;
}
.job-delete:disabled {
  opacity: 0.5;
  cursor: wait;
}
.job-download.zip {
  color: #fff;
  border-color: transparent;
  background: var(--grad);
}
.job-working,
.job-error {
  font-size: 12px;
  color: var(--text-muted);
}
.job-error { color: var(--danger); }

/* Calisan is karti: canli durum + ilerleme cubugu */
.job-live {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
  min-width: 180px;
  max-width: 320px;
}
.job-live .job-working {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.job-progress {
  position: relative;
  width: 100%;
  height: 5px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
}
.job-progress-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: 99px;
  background: var(--grad);
  transition: width 0.6s var(--ease);
}
.job-progress.indeterminate .job-progress-fill {
  width: 36%;
  animation: jobSlide 1.4s ease-in-out infinite;
}
@keyframes jobSlide {
  0%   { transform: translateX(-110%); }
  100% { transform: translateX(310%); }
}

/* Yeni eklenen / tamamlanan kart vurgusu */
.job-item.flash {
  animation: jobFlash 2.2s var(--ease);
}
@keyframes jobFlash {
  0%   { box-shadow: 0 0 0 3px var(--accent-soft); border-color: var(--accent); }
  100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0); }
}

/* ---- Ilerleme noktalari ---- */
.progress {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 22px;
  height: 8px;
}
.progress-dot {
  width: 8px; height: 8px;
  border-radius: 99px;
  background: var(--border-strong);
  transition: width 0.5s var(--spring), background 0.4s var(--ease-soft);
}
.progress-dot.done { background: var(--accent); }
.progress-dot.active {
  width: 32px;
  background: var(--grad);
}

/* ============================================================
   Kart
   ============================================================ */
.card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
}
.card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad);
  background-size: 200% auto;
  animation: shimmer 6s linear infinite;
}

.viewport {
  position: relative;
  padding: 40px 40px 8px;
}

/* ---- Adim gecisleri ---- */
.step { display: none; }
.step.active {
  display: block;
  animation: stepIn 0.5s var(--ease) both;
}
.step.active.from-back { animation: stepInBack 0.5s var(--ease) both; }
@keyframes stepIn {
  from { opacity: 0; transform: translateX(36px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes stepInBack {
  from { opacity: 0; transform: translateX(-36px); }
  to   { opacity: 1; transform: translateX(0); }
}

.step-head { margin-bottom: 26px; }
.step-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 9px;
}
.step-title {
  font-size: 25px;
  font-weight: 740;
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.step-desc {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.55;
}

/* ============================================================
   Dropzone
   ============================================================ */
.dropzone {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 44px 24px;
  border-radius: var(--radius);
  border: 2px dashed var(--border-strong);
  background: var(--surface-soft);
  cursor: pointer;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.dropzone:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.dropzone:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.dropzone.dragging {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: scale(1.015);
  box-shadow: 0 0 0 4px var(--accent-ring);
}

/* Ana sayfa hero'sundaki dropzone */
.dropzone-hero {
  width: min(640px, 100%);
  margin: 0 auto;
  padding: 38px 24px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
}
.dz-icon {
  display: grid;
  place-items: center;
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  box-shadow: var(--shadow-brand);
  margin-bottom: 8px;
  transition: transform 0.35s var(--spring);
}
.dropzone:hover .dz-icon,
.dropzone.dragging .dz-icon { transform: translateY(-5px) scale(1.05); }
.dz-title { font-size: 15.5px; font-weight: 660; }
.dz-sub { font-size: 13.5px; color: var(--text-soft); }
.dz-formats { font-size: 12px; color: var(--text-muted); margin-top: 8px; }

/* ---- Dosya bilgisi ---- */
.file-chip {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  border: 1px solid var(--accent-tint);
  animation: chipIn 0.4s var(--spring) both;
}
.file-chip[hidden] { display: none; }
@keyframes chipIn {
  from { opacity: 0; transform: translateY(10px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.fc-icon {
  display: grid; place-items: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--grad);
  color: #fff;
  flex-shrink: 0;
}
.fc-meta { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.fc-name {
  font-size: 14px; font-weight: 640;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fc-size { font-size: 12.5px; color: var(--text-soft); }
.fc-remove {
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--text-soft);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.fc-remove:hover { background: #fff; color: var(--danger); }

/* ============================================================
   Secenek kartlari
   ============================================================ */
.option-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.option-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 22px 18px;
  text-align: left;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
              box-shadow 0.25s var(--ease), background 0.25s var(--ease);
}
.option-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.option-card:disabled {
  cursor: not-allowed;
  opacity: 0.52;
  transform: none;
  box-shadow: none;
}
.option-card:disabled:hover {
  transform: none;
  border-color: var(--border);
  box-shadow: none;
}
.option-card.selected {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    var(--grad) border-box;
  box-shadow: 0 10px 28px -14px var(--accent-ring);
}
.oc-icon {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--accent-soft);
  color: var(--accent);
  transition: background 0.25s var(--ease), color 0.25s var(--ease),
              transform 0.3s var(--spring);
}
.option-card.selected .oc-icon {
  background: var(--grad);
  color: #fff;
  transform: scale(1.06);
}
.oc-title { font-size: 15.5px; font-weight: 680; }
.oc-desc { font-size: 12.8px; color: var(--text-soft); line-height: 1.5; }
.oc-badge {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 99px;
  background: var(--grad);
  color: #fff;
}
.oc-check {
  position: absolute;
  top: 14px; right: 14px;
  display: grid; place-items: center;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  opacity: 0;
  transform: scale(0.3);
  transition: opacity 0.25s var(--ease), transform 0.35s var(--spring);
}
.option-card.selected .oc-check { opacity: 1; transform: scale(1); }
.option-card.selected .oc-badge { opacity: 0; }

/* ---- Model listesi ---- */
.model-list { display: flex; flex-direction: column; gap: 9px; }
.model-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease),
              transform 0.22s var(--ease);
}
.model-row:hover { border-color: var(--border-strong); transform: translateX(4px); }
.model-row.selected {
  border-color: transparent;
  background:
    linear-gradient(var(--accent-soft), var(--accent-soft)) padding-box,
    var(--grad) border-box;
}
.mr-name { font-size: 14px; font-weight: 680; min-width: 74px; }
.mr-desc { font-size: 12.6px; color: var(--text-soft); flex: 1; }
.mr-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  flex-shrink: 0;
  position: relative;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.model-row.selected .mr-dot {
  border-color: transparent;
  background: var(--grad);
}
.model-row.selected .mr-dot::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: #fff;
}

/* ============================================================
   Form alanlari
   ============================================================ */
.field { margin-bottom: 20px; }
.field-label {
  display: block;
  font-size: 13px;
  font-weight: 640;
  margin-bottom: 8px;
}
.label-opt { font-weight: 500; color: var(--text-muted); font-size: 12px; }
.input-wrap { position: relative; }
.text-input {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--text);
  padding: 12px 14px;
  background: var(--surface-soft);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              box-shadow 0.2s var(--ease);
}
.text-input::placeholder { color: var(--text-muted); }
.text-input:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.input-wrap .text-input { padding-right: 46px; }
.input-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border: none; border-radius: 8px;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.input-toggle:hover { color: var(--accent); background: var(--accent-soft); }
.field-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 7px;
  line-height: 1.5;
}

.info-banner {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: #0A7355;
  font-size: 13.5px;
  line-height: 1.5;
}
.ib-icon {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  flex-shrink: 0;
}

/* ---- Dil cipleri ---- */
.chip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.chip {
  padding: 13px 10px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 580;
  color: var(--text-soft);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.chip:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.chip.selected {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
  box-shadow: 0 8px 20px -10px var(--accent-ring);
}

/* ---- Cikti formatlari ---- */
.output-field { margin-top: 18px; }
.format-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.format-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 10px 8px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 680;
  color: var(--text-soft);
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
              color 0.2s var(--ease), transform 0.2s var(--ease);
}
.format-chip svg { flex: none; }
.format-chip:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.format-chip:disabled {
  cursor: not-allowed;
  opacity: 0.5;
  transform: none;
}
.format-chip.selected {
  border-color: transparent;
  background: var(--grad);
  color: #fff;
}

/* Format marka renkleri: uzerine gelince ikon ve metin renklenir */
.format-chip.fmt-docx:hover:not(.selected):not(:disabled),
.job-download.fmt-docx:hover {
  border-color: #2b579a; color: #2b579a; background: #eaf1f8;
}
.format-chip.fmt-pdf:hover:not(.selected):not(:disabled),
.job-download.fmt-pdf:hover {
  border-color: #dc2626; color: #dc2626; background: #fdecec;
}
.format-chip.fmt-txt:hover:not(.selected):not(:disabled),
.job-download.fmt-txt:hover {
  border-color: #475569; color: #475569; background: #eef2f6;
}
.format-chip.fmt-srt:hover:not(.selected):not(:disabled),
.job-download.fmt-srt:hover {
  border-color: #7c3aed; color: #7c3aed; background: #f3eefd;
}
.format-chip.fmt-vtt:hover:not(.selected):not(:disabled),
.job-download.fmt-vtt:hover {
  border-color: #0891b2; color: #0891b2; background: #e6f6fa;
}
.format-chip.fmt-mp3:hover:not(.selected):not(:disabled),
.job-download.fmt-mp3:hover {
  border-color: #16a34a; color: #16a34a; background: #eaf7ee;
}

/* ---- Anahtarlar ---- */
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-soft);
  margin-bottom: 12px;
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease),
              opacity 0.25s var(--ease);
}
.switch-row.on { border-color: var(--accent-tint); background: var(--accent-soft); }
.switch-row.disabled { opacity: 0.5; pointer-events: none; }
.switch {
  position: relative;
  flex-shrink: 0;
  width: 44px; height: 25px;
  border-radius: 99px;
  background: var(--border-strong);
  cursor: pointer;
  transition: background 0.3s var(--ease);
  margin-top: 1px;
}
.switch.on { background: var(--grad); }
.switch:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px var(--accent-ring);
}
.switch-knob {
  position: absolute;
  top: 3px; left: 3px;
  width: 19px; height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s var(--spring);
}
.switch.on .switch-knob { transform: translateX(19px); }
.switch-text { display: flex; flex-direction: column; gap: 3px; }
.switch-title { font-size: 14px; font-weight: 640; }
.switch-desc { font-size: 12.5px; color: var(--text-soft); line-height: 1.5; }

/* ---- Ozet ---- */
.summary {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 18px;
  border-bottom: 1px solid var(--border);
  animation: rowIn 0.45s var(--ease) both;
}
.summary-row:last-child { border-bottom: none; }
@keyframes rowIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sr-label { font-size: 13px; color: var(--text-soft); }
.sr-value {
  font-size: 13.5px; font-weight: 640;
  text-align: right;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  max-width: 60%;
}

/* ============================================================
   Isleniyor
   ============================================================ */
.step-wide { text-align: center; }
.proc-visual {
  position: relative;
  width: 100px; height: 100px;
  margin: 8px auto 22px;
  display: grid;
  place-items: center;
}
.proc-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent-soft);
  border-top-color: var(--accent);
  border-right-color: var(--violet);
  animation: spin 1s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.proc-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 32px;
}
.proc-wave i {
  width: 4px;
  border-radius: 99px;
  background: var(--grad);
  animation: wave 1.1s ease-in-out infinite;
}
.proc-wave i:nth-child(1) { height: 10px; animation-delay: 0s; }
.proc-wave i:nth-child(2) { height: 22px; animation-delay: 0.12s; }
.proc-wave i:nth-child(3) { height: 30px; animation-delay: 0.24s; }
.proc-wave i:nth-child(4) { height: 18px; animation-delay: 0.36s; }
.proc-wave i:nth-child(5) { height: 11px; animation-delay: 0.48s; }
@keyframes wave {
  0%, 100% { transform: scaleY(0.5); opacity: 0.6; }
  50%      { transform: scaleY(1); opacity: 1; }
}
.proc-title { text-align: center; margin-bottom: 6px; }
.proc-status {
  font-size: 14px;
  color: var(--text-soft);
  min-height: 21px;
  margin-bottom: 18px;
  transition: opacity 0.2s var(--ease);
}
.proc-bar {
  width: 100%;
  height: 6px;
  border-radius: 99px;
  background: var(--border);
  overflow: hidden;
  margin-bottom: 22px;
}
.proc-bar-fill {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 99px;
  background: var(--grad);
  background-size: 200% auto;
  animation: slide 1.5s var(--ease-soft) infinite, shimmer 3s linear infinite;
  transition: width 0.5s var(--ease);
}
@keyframes slide {
  0%   { transform: translateX(-120%); }
  100% { transform: translateX(360%); }
}
.log-panel {
  text-align: left;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  margin-bottom: 16px;
}
.log-panel summary {
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 620;
  color: var(--text-soft);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.log-panel summary::-webkit-details-marker { display: none; }
.log-panel summary::before {
  content: "+";
  display: inline-block;
  width: 16px;
  font-weight: 700;
  color: var(--accent);
}
.log-panel[open] summary::before { content: "\2212"; }
.log-scroll {
  max-height: 180px;
  overflow-y: auto;
  padding: 4px 16px 14px;
  font-family: "Consolas", "SF Mono", Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.7;
  color: var(--text-soft);
}
.log-line { animation: logIn 0.3s var(--ease) both; white-space: pre-wrap; word-break: break-word; }
.log-line.ok   { color: var(--success); }
.log-line.err  { color: var(--danger); }
.log-line.warn { color: var(--warning); }
.log-line.head { color: var(--accent); font-weight: 620; }
@keyframes logIn {
  from { opacity: 0; transform: translateX(-6px); }
  to   { opacity: 1; transform: translateX(0); }
}
.proc-note { font-size: 12px; color: var(--text-muted); line-height: 1.5; }

/* ============================================================
   Tamamlandi / Hata
   ============================================================ */
.done-mark, .error-mark {
  display: grid; place-items: center;
  margin: 6px auto 20px;
}
.dm-circle {
  stroke: var(--success);
  stroke-width: 2.5;
  stroke-dasharray: 151;
  stroke-dashoffset: 151;
  animation: drawCircle 0.6s var(--ease) forwards;
}
.dm-check {
  stroke: var(--success);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: drawCheck 0.4s var(--ease) 0.5s forwards;
}
@keyframes drawCircle { to { stroke-dashoffset: 0; } }
@keyframes drawCheck  { to { stroke-dashoffset: 0; } }
[data-view="done"] { text-align: center; }
[data-view="done"] .step-title,
[data-view="done"] .step-desc { text-align: center; }
.done-title { margin-bottom: 8px; }
.done-desc { margin-bottom: 26px; }
.done-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.error-mark { color: var(--danger); }
[data-view="error"] { text-align: center; }
[data-view="error"] .step-title,
[data-view="error"] .step-desc { text-align: center; }
.error-title { margin-bottom: 8px; }
.error-desc {
  margin-bottom: 24px;
  background: var(--danger-soft);
  color: #A8362D;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  word-break: break-word;
}

/* ============================================================
   Butonlar
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 640;
  padding: 11px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.14s var(--ease), box-shadow 0.25s var(--ease),
              background 0.3s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), opacity 0.2s var(--ease),
              background-position 0.5s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: var(--grad);
  background-size: 170% auto;
  color: #fff;
  box-shadow: 0 10px 24px -10px var(--accent-ring);
}
.btn-primary:hover {
  background-position: right center;
  box-shadow: var(--shadow-brand);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-ghost {
  background: var(--surface);
  color: var(--text-soft);
  border-color: var(--border);
}
.btn-ghost:hover {
  background: var(--surface-soft);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-sm { padding: 8px 16px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 15px; }
.btn-xl {
  padding: 17px 34px;
  font-size: 16.5px;
  font-weight: 700;
  border-radius: var(--radius);
}
.btn:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn:disabled:hover { transform: none; }
.btn[hidden] { display: none; }

/* ---- Kart alt navigasyon ---- */
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 40px 28px;
}

/* ============================================================
   Toast
   ============================================================ */
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  background: var(--text);
  color: #fff;
  font-size: 13.5px;
  font-weight: 560;
  padding: 12px 20px;
  border-radius: 99px;
  box-shadow: var(--shadow-lg);
  z-index: 50;
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast[hidden] { display: flex; }
.toast {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(480px, 90vw);
}
.toast-ico {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  flex: none;
}
.toast.success .toast-ico { background: #059669; }
.toast.error .toast-ico { background: #dc2626; }
.toast.info .toast-ico { background: var(--accent); }

/* ============================================================
   Modals
   ============================================================ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(17, 24, 39, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.24s var(--ease);
}
.modal-backdrop.open { opacity: 1; }
.modal-backdrop[hidden] { display: none; }
body.modal-open { overflow: hidden; }

.modal {
  position: relative;
  width: min(420px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  padding: 34px 30px 26px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 24px 70px rgba(17, 24, 39, 0.28);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.28s var(--spring, cubic-bezier(0.34, 1.56, 0.64, 1));
}
.modal-backdrop.open .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 50%;
  background: var(--surface-soft);
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.modal-close:hover {
  background: var(--danger-soft);
  color: var(--danger);
  transform: rotate(90deg);
}
.modal-logo {
  width: 52px;
  height: 52px;
  margin: 0 auto;
}
.modal-lock {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
}
.modal-title {
  font-size: 21px;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.modal-sub {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin-top: -6px;
}
.modal .auth-google,
.modal-pay-btn { width: 100%; }
.modal .field { margin: 0; }
.modal .pay-summary { margin: 0; }
.modal-foot {
  font-size: 11.5px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ============================================================
   Hesap menusu (topbar popover)
   ============================================================ */
.auth-box { position: relative; }
.account-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px 4px 4px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.account-chip:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.account-avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-size: 14px;
  font-weight: 760;
}
.account-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 230px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 60;
}
.account-pop.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.ap-head {
  padding: 9px 12px;
  font-size: 12.5px;
  font-weight: 650;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}
.ap-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.ap-item:hover { background: var(--accent-soft); color: var(--accent); }
.ap-item.danger:hover { background: var(--danger-soft); color: var(--danger); }

/* ============================================================
   Dil seçici (globe): nav'da, account-pop ile aynı dil
   ============================================================ */
.lang-picker { position: relative; display: inline-flex; }
.lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 99px;
  background: var(--surface);
  color: var(--text-soft);
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 650;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), color 0.2s var(--ease);
}
.lang-btn:hover { border-color: var(--border-strong); color: var(--accent); box-shadow: var(--shadow-md); }
.lang-btn svg { opacity: 0.8; }
.lang-code { line-height: 1; }
.lang-pop {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 168px;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.16);
  opacity: 0;
  transform: translateY(-6px) scale(0.97);
  pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 60;
}
.lang-pop.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.lang-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 10px 12px;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 620;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s var(--ease), color 0.16s var(--ease);
}
.lang-item:hover { background: var(--accent-soft); color: var(--accent); }
.lang-item.active {
  background: var(--accent-soft);
  color: var(--accent);
}
.lang-item.active::after {
  content: "✓";
  margin-left: auto;
  font-weight: 800;
}

/* ============================================================
   Tooltipler (CSS-only, data-tip)
   ============================================================ */
[data-tip] { position: relative; }
[data-tip]::after {
  content: attr(data-tip);
  position: absolute;
  bottom: calc(100% + 9px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--text);
  color: #fff;
  font-size: 11.5px;
  font-weight: 620;
  line-height: 1;
  padding: 7px 10px;
  border-radius: 7px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease), transform 0.18s var(--ease);
  z-index: 70;
}
[data-tip]::before {
  content: "";
  position: absolute;
  bottom: calc(100% + 3px);
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--text);
  border-bottom: none;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s var(--ease);
  z-index: 70;
}
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
[data-tip]:hover::before,
[data-tip]:focus-visible::before { opacity: 1; }

/* ============================================================
   Mikro etkilesimler
   ============================================================ */
.btn:active:not(:disabled) { transform: scale(0.97); }
.job-item {
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease),
              transform 0.2s var(--ease);
}
.job-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

/* ============================================================
   Duyarli
   ============================================================ */
@media (max-width: 880px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .viewport { padding: 30px 22px 6px; }
  .card-foot { padding: 18px 22px 24px; }
  .step-title { font-size: 22px; }
  .jobs-head, .job-item { align-items: stretch; flex-direction: column; }
  .job-actions { justify-content: flex-start; }
  .job-live { align-items: flex-start; max-width: 100%; }
  .option-grid { grid-template-columns: 1fr; }
  .chip-grid { grid-template-columns: repeat(3, 1fr); }
  .format-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-grid { grid-template-columns: 1fr; }
  .how-track { flex-direction: column; }
  .how-line { width: 2px; height: 26px; flex-basis: 26px; }
  .landing-foot { flex-direction: column; gap: 12px; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .reveal-up { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   Akiskan hareket katmani: her sey animatif
   ============================================================ */
html { scroll-behavior: smooth; }

@keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
body { animation: pageIn 0.45s ease both; }

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

/* Kartlar sahneye sirayla girer; yenilemelerde tekrar oynamaz */
.job-item {
  animation: riseIn 0.45s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 50ms);
}
.job-item.no-anim { animation: none; }

/* Sihirbaz adimi acilinca secenekler dalga halinde belirir */
.step.active .chip,
.step.active .format-chip,
.step.active .model-row,
.step.active .option-card,
.step.active .switch-row {
  animation: riseIn 0.4s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 40ms);
}
.step.active .done-formats .job-download {
  animation: riseIn 0.4s var(--spring) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}

/* Adim gecisi: yumusak yay */
.step.active { animation: stepIn 0.5s var(--spring) both; }
.step.active.from-back { animation: stepInBack 0.5s var(--spring) both; }

/* Secim aninda kucuk ziplama */
@keyframes selectPop {
  0% { transform: scale(0.94); }
  60% { transform: scale(1.04); }
  100% { transform: scale(1); }
}
.chip.selected,
.format-chip.selected,
.option-card.selected,
.model-row.selected { animation: selectPop 0.28s var(--ease); }

/* Birincil dugmede isik suzulmesi */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 42%, rgba(255, 255, 255, 0.28) 50%, transparent 58%);
  transform: translateX(-130%);
  pointer-events: none;
  transition: transform 0.65s var(--ease);
}
.btn-primary:hover::after { transform: translateX(130%); }

/* Ilerleme cubugu parlamasi */
.proc-bar-fill { position: relative; overflow: hidden; }
.proc-bar-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  animation: barShine 1.5s linear infinite;
}
@keyframes barShine {
  from { transform: translateX(-100%); }
  to   { transform: translateX(100%); }
}

/* Hero dropzone ikonu nefes alir */
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.dropzone-hero .dz-icon { animation: floaty 3.4s ease-in-out infinite; }

/* Kilit/odeme isaretleri yumusak nabiz atar */
@keyframes pulseSoft {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 70, 229, 0.25); }
  55% { box-shadow: 0 0 0 14px rgba(79, 70, 229, 0); }
}
.pay-mark, .modal-lock { animation: pulseSoft 2.4s ease-in-out infinite; }

/* Anahtar dugmesi yayli kayar */
.switch-knob { transition-timing-function: var(--spring) !important; }

/* Ilerleme noktalari akici buyur */
.progress-dot { transition: width 0.35s var(--spring), background 0.3s var(--ease), transform 0.3s var(--spring); }
.progress-dot.active { transform: scale(1.06); }

/* Indirme dugmeleri uzerinde minik kalkis */
.job-download:hover, .job-retry:hover, .job-delete:hover { transform: translateY(-2px); }
.job-download, .job-retry, .job-delete { transition: border-color 0.2s var(--ease), color 0.2s var(--ease), background 0.2s var(--ease), transform 0.2s var(--spring); }
