/* Form layout */
#lorem-form {
  margin-bottom: 1em;
  display: flex;
  gap: 0.5em;
  align-items: center;
}
#lorem-form select,
#lorem-form input {
  padding: 0.5em;
  border: 1px solid #ccc;
  border-radius: 4px;
}
#lorem-form button {
  padding: 0.5em 1em;
  border-radius: 4px;
  border: 1px solid #7c3aed;
  background: #7c3aed;
  color: #fff;
  cursor: pointer;
}
#lorem-form button:disabled {
  opacity: 0.6;
  cursor: default;
}
#lorem-form #lorem-copy {
  margin-left: auto;
  background: #fff;
  color: #7c3aed;
}
/* Output area */
#lorem-output {
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 1em;
  background: #fafafa;
  max-height: 600px;
  overflow-y: auto;
}
#lorem-output p {
  margin: 1em 0;
  line-height: 1.6;
}
#lorem-output ul {
  margin: 1em 0;
  padding-left: 2em;
}
#lorem-output li {
  margin: 0.5em 0;
  line-height: 1.6;
}

/* Center main card in the page */
.main-card {
  background: #7c3aed;
  border-radius: 36px;
  box-shadow: 0 12px 44px rgba(50, 20, 100, 0.18);
  max-width: 900px;
  width: 100vw;
  margin: 60px auto;
  padding: 56px 38px 44px 38px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
  overflow: hidden;
  color: #fff !important;
}

/* Subtle glass reflection on top */
.main-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 64px;
  border-top-left-radius: 36px;
  border-top-right-radius: 36px;
  pointer-events: none;
  z-index: 1;
  color: #fff;
}

.main-card h2 {
  color: #fff !important;
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 18px;
  letter-spacing: 0.5px;
}
.main-card > p {
  color: #fff !important;
  font-size: 1.13rem;
  margin-bottom: 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  justify-content: center;
  align-items: stretch;
  width: 100%;
}

@media (max-width: 950px) {
  .main-card {
    padding: 36px 10px 28px 10px;
    max-width: 90vw;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 800px) {
  .main-card {
    padding: 36px 10px 28px 10px;
    max-width: 90vw;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.feature-card {
  background: rgba(255, 255, 255, 0.16);
  border: 1.6px solid rgba(255, 255, 255, 0.13);
  border-radius: 20px;
  box-shadow: 0 1px 8px rgba(30, 10, 80, 0.09);
  padding: 34px 18px 26px 20px;
  text-align: left;
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: background 0.22s cubic-bezier(0.5, 1.5, 0.4, 1),
    box-shadow 0.22s cubic-bezier(0.5, 1.5, 0.4, 1),
    transform 0.22s cubic-bezier(0.5, 1.5, 0.4, 1),
    border-color 0.22s cubic-bezier(0.5, 1.5, 0.4, 1);
  position: relative;
  min-height: 120px;
  color: #000;
}
.feature-card:hover,
.feature-card:focus {
  background: rgba(255, 255, 255, 0.28);
  box-shadow: 0 12px 32px rgba(80, 40, 150, 0.18);
  transform: translateY(-6px) scale(1.03);
  border-color: #fff;
  z-index: 1;
}
.feature-icon {
  font-size: 2.3rem;
  margin-top: 5px;
  flex-shrink: 0;
  filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.1));
}
.feature-content h3 {
  margin: 0 0 7px 0;
  font-size: 1.13rem;
  font-weight: 700;
  color: #fff !important;
}
.feature-content p {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.01em;
}

.card {
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 2px 8px rgba(35, 52, 89, 0.15);
  padding: 2rem 1.5rem 1.7rem 1.5rem;
  margin: 2.5rem auto;
  max-width: 1040px;
  width: 100%;
  box-sizing: border-box;
}
.card h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.7rem 0;
  color: #151e32;
}
.card p {
  font-size: 1.07rem;
  color: #000000aa;
  margin: 0;
  line-height: 1.6;
}

/* Responsive tweak */
@media (max-width: 600px) {
  .card {
    padding: 1.2rem 4vw 1rem 4vw;
    max-width: 98vw;
  }
  .card h4 {
    font-size: 1.12rem;
  }
}

#lorem-cta-block {
  background: #8d47fa; /* Brand purple */
  border-radius: 40px;
  box-shadow: 0 8px 40px rgba(120, 60, 190, 0.14);
  padding: 56px 32px 44px 32px;
  width: 900px;
  max-width: 920px;
  margin: 48px auto 0 auto;
  text-align: center;
  color: #fff !important;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#lorem-cta-title {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 22px;
  letter-spacing: 0.01em;
  line-height: 1.18;
  color: #fff !important;
}

#lorem-cta-btn {
  background: #fff;
  color: #8d47fa;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.88em 2.8em;
  border: none;
  border-radius: 15px;
  box-shadow: 0 3px 12px rgba(80, 30, 160, 0.07);
  cursor: pointer;
  transition: background 0.17s, color 0.17s, box-shadow 0.17s, transform 0.16s;
  margin-top: 10px;
  letter-spacing: 0.01em;
}

#lorem-cta-btn:hover {
  background: #fff;
  color: #7c3aed;
  box-shadow: 0 8px 32px rgba(120, 60, 190, 0.16);
  transform: translateY(-2px) scale(1.045);
}

@media (max-width: 950px) {
  #lorem-cta-block {
    padding: 28px 4vw 22px 4vw;
    border-radius: 22px;
    max-width: 90vw;
  }
}

@media (max-width: 650px) {
  #lorem-cta-block {
    padding: 28px 4vw 22px 4vw;
    border-radius: 22px;
    max-width: 90vw;
  }
  #lorem-cta-title {
    font-size: 1.2rem;
  }
  #lorem-cta-desc {
    font-size: 1rem;
    margin-bottom: 18px;
  }
  #lorem-cta-btn {
    font-size: 1.06rem;
    padding: 0.65em 1.5em;
  }
}
