/* styles.css */

body {
  background: #0e0e1a;
  color: #fff;
  font-family: "Inter", Arial, sans-serif;
  margin: 0;
  min-height: 100vh;
}

header {
  text-align: center;
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.header-title-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

@media (max-width: 900px) {
  header {
    flex-direction: column;
    align-items: center;
  }
  .header-title-wrapper {
    align-items: center;
    text-align: center;
  }
  .header-wrapper {
    flex-direction: row;
    align-items: center;
    padding: 10px 20px;
  }
}

@media (max-width: 600px) {
  .header-title-wrapper {
    align-items: center;
    text-align: center;
  }
  header > .cta-btn {
    width: fit-content;
    max-width: 100%;
    align-self: center;
    margin: 16px auto 0 auto;
    display: block;
  }
}

.header-title-wrapper {
  display: inline-block;
  text-align: center;
  position: relative;
}

.main-title {
  display: block;
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 0.2em;
  letter-spacing: 2px;
}

.subtitle-powered {
  font-size: 0.8rem;
  font-weight: 800;
  color: #e0e0e0;
  text-align: center;
  margin-bottom: 2em;
  letter-spacing: 1.5px;
}

.gradient-text {
  background: linear-gradient(90deg, #fafbfb, #f8f7f9, #f7f5f6);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 2.8rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.cta-btn {
  background: linear-gradient(90deg, #ff4ecd, #a259f7);
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 14px 38px;
  font-size: 1rem;
  font-weight: 700;
  margin: 24px auto;
  cursor: pointer;
  box-shadow: 0 2px 16px #a259f733;
  transition: background 0.2s, transform 0.2s;
  display: block;
  width: fit-content;
  align-self: center;
}
.cta-btn:hover {
  background: linear-gradient(90deg, #a259f7, #ff4ecd);
  transform: translateY(-2px) scale(1.03);
}

main {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 48vh;
}

.desc {
  margin-top: 20px;
  font-size: 1.4rem;
  font-weight: 700;
  color: #e0e0e0;
  text-align: center;
  line-height: 1.4;
}

.tools {
  display: flex;
  gap: 48px;
  margin-top: 40px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
}

@media (max-width: 900px) {
  .tools {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
}

.tool-card {
  background: #18182b;
  border-radius: 22px;
  box-shadow: 0 4px 32px #2ecbfa22;
  padding: 28px 20px 24px 20px;
  min-width: 224px;
  max-width: 256px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: box-shadow 0.2s, transform 0.2s;
}
.tool-card:hover {
  box-shadow: 0 8px 40px #a259f755;
  transform: translateY(-4px) scale(1.03);
}

.icon {
  width: 120px;
  height: 120px;
  margin-bottom: 14px;
  display: block;
  object-fit: contain;
}

.tool-card h2 {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
  margin-bottom: 25px;
  color: #fff;
  letter-spacing: 0.5px;
}

.tool-card input[type="text"],
.tool-card input[type="file"],
.tool-card select {
  width: 100%;
  padding: 10px 11px;
  margin-bottom: 14px;
  border-radius: 12px;
  border: none;
  background: #232342;
  color: #fff;
  font-size: 0.8rem;
  outline: none;
  transition: background 0.2s;
}
.tool-card input[type="text"]:focus,
.tool-card select:focus {
  background: #2ecbfa22;
}

.tool-card button {
  width: 100%;
  padding: 11px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #2ecbfa, #a259f7);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px #2ecbfa33;
}

.tool-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: 12px;
  background: linear-gradient(90deg, #2ecbfa, #a259f7);
  color: #fff;
  font-weight: 700;
  font-size: 0.84rem;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  box-shadow: 0 2px 12px #2ecbfa33;
  margin-top: 0;
  margin-bottom: 0;
}
.tool-btn:hover {
  background: linear-gradient(90deg, #a259f7, #2ecbfa);
  transform: translateY(-2px) scale(1.03);
}

.tool-card button:hover {
  background: linear-gradient(90deg, #a259f7, #2ecbfa);
  transform: translateY(-2px) scale(1.03);
}

/* Responsywność */
@media (max-width: 900px) {
  .tools {
    flex-direction: column;
    align-items: center;
    gap: 24px;
  }
  main {
    min-height: unset;
  }
}

/* Nowy przycisk do strony głównej */
.header-wrapper {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  margin-top: 60px;
}

.home-btn {
  background: linear-gradient(90deg, #2ecbfa, #a259f7);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 10px 20px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 2px 12px #2ecbfa33;
  transition: background 0.2s, transform 0.2s;
  position: fixed;

  right: 20px;
  top: 20px;
  z-index: 100;
}

.home-btn:hover {
  background: linear-gradient(90deg, #a259f7, #2ecbfa);
  transform: translateY(-2px) scale(1.03);
}

@media (max-width: 600px) {
  .header-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .home-btn {
    position: fixed;
    top: 20px;
    right: 20px;
  }
}
