/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

:root {
  --bg: #040b1a;
  --bg-alt: #0c1427;
  --card: #101b33;
  --accent: #6c5ee6;
  --accent-strong: #9c7cff;
  --text: #f4f6ff;
  --text-muted: #c6cbe0;
  --success: #30d158;
  --warning: #ffb347;
  font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color-scheme: dark;
}

@import url("https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600&display=swap");

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.landing {
  display: flex;
  flex-direction: column;
  gap: 4rem;
  padding: 3rem clamp(1rem, 4vw, 5rem);
}

.flash {
  padding: 1rem 1.25rem;
  border-radius: 0.75rem;
  font-weight: 500;
  background: rgba(156, 124, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.flash--alert {
  background: rgba(255, 105, 97, 0.15);
  border-color: rgba(255, 105, 97, 0.4);
}

.flash--notice {
  background: rgba(48, 209, 88, 0.12);
  border-color: rgba(48, 209, 88, 0.35);
}

.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2.5rem;
  align-items: center;
}

.hero__content {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero__eyebrow,
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent-strong);
  font-size: 0.85rem;
  font-weight: 600;
}

.hero__lead {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.hero__benefits li::before {
  content: "•";
  color: var(--accent-strong);
  margin-right: 0.4rem;
}

.hero__metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1rem;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.hero__metrics dt {
  font-size: 2rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.hero__metrics dd {
  margin: 0;
  color: var(--text-muted);
}

.hero__panel {
  background: linear-gradient(160deg, var(--card), #182243);
  border-radius: 1.5rem;
  padding: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}

.panel__title {
  margin: 0;
}

.panel__subtitle {
  margin-top: 0.5rem;
  color: var(--text-muted);
}

.upload-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 1.5rem;
}

.upload-form__dropzone {
  border: 2px dashed rgba(255, 255, 255, 0.3);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.upload-form__dropzone:hover {
  border-color: var(--accent-strong);
  transform: translateY(-2px);
}

.upload-form__dropzone .icon {
  font-size: 2rem;
}

.upload-form__filename {
  font-size: 0.95rem;
  color: var(--text-muted);
  text-align: center;
  margin: 0;
}

.upload-form__hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.9rem 1.5rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 30px rgba(108, 94, 230, 0.35);
}

.btn--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn--secondary {
  background: #ffffff;
  color: #090e21;
}

.btn--ghost {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--text);
}

.btn--full {
  width: 100%;
}

.section {
  background: var(--bg-alt);
  padding: 2.5rem;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.section--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
}

.feature-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.5rem;
}

.feature-list h3 {
  margin-bottom: 0.3rem;
}

.section--steps {
  background: linear-gradient(120deg, rgba(108, 94, 230, 0.2), rgba(9, 14, 33, 0.9));
}

.steps {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.5rem;
}

.steps li {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}

.steps__index {
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--accent-strong);
}

.section--testimonial {
  text-align: center;
  background: radial-gradient(circle at top, rgba(108, 94, 230, 0.2), transparent),
    var(--bg-alt);
}

.section--testimonial blockquote {
  font-size: 1.3rem;
  font-weight: 500;
  margin: 0;
}

.testimonial__author {
  margin-top: 1rem;
  color: var(--text-muted);
}

.section--faq .faq {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
}

.section--faq article {
  background: rgba(255, 255, 255, 0.03);
  border-radius: 1rem;
  padding: 1rem;
}

.section--cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, rgba(108, 94, 230, 0.5), rgba(9, 14, 33, 0.95));
}

.download-ready {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: rgba(48, 209, 88, 0.1);
  border: 1px solid rgba(48, 209, 88, 0.4);
}

.download-ready.is-hidden {
  display: none;
}

.section--progress {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.1);
}

.progress-bar {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-bar__fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  transition: width 0.3s ease;
}

.progress-bar__status {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .landing {
    padding: 2rem 1rem;
  }

  .hero__metrics {
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  }

  .section {
    padding: 1.75rem;
  }
}
