:root {
  --background: #f7f8fc;
  --surface: #ffffff;
  --text: #14151a;
  --muted: #6f7280;
  --border: #e7e9ef;

  --primary: #5f63f2;
  --primary-dark: #494dcc;

  --radius: 20px;

  --shadow:
    0 20px 60px rgba(25, 30, 60, 0.08);
}


* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}


html {
  scroll-behavior: smooth;
}


body {
  font-family: "Inter", sans-serif;
  background: var(--background);
  color: var(--text);
}


button,
input {
  font-family: inherit;
}


button {
  border: 0;
}


a {
  color: inherit;
  text-decoration: none;
}


.container {
  width: min(1120px, 92%);
  margin: auto;
}


/* NAVBAR */

.navbar {
  position: sticky;
  top: 0;
  z-index: 50;

  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}


.nav-content {
  min-height: 72px;

  display: flex;
  align-items: center;
  justify-content: space-between;
}


.logo {
  display: flex;
  align-items: center;
  gap: 10px;

  font-size: 20px;
  font-weight: 800;
}


.logo-icon {
  width: 36px;
  height: 36px;

  border-radius: 12px;

  display: grid;
  place-items: center;

  background: var(--primary);
  color: white;
}


nav {
  display: flex;
  gap: 28px;

  font-size: 14px;
  color: var(--muted);
}


nav a:hover {
  color: var(--primary);
}


/* HERO */

.hero {
  padding: 100px 0 80px;
}


.hero-content {
  text-align: center;
  max-width: 850px;
}


.badge {
  display: inline-flex;

  padding: 8px 14px;

  border-radius: 100px;

  background: #ededff;
  color: var(--primary);

  font-size: 13px;
  font-weight: 700;

  margin-bottom: 24px;
}


.hero h1 {
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.05;

  max-width: 850px;
  margin: auto;

  letter-spacing: -4px;
}


.hero h1 span {
  color: var(--primary);
}


.hero-description {
  max-width: 570px;

  margin: 24px auto 40px;

  color: var(--muted);

  line-height: 1.8;
  font-size: 17px;
}


/* UPLOAD */

.upload-box {
  max-width: 720px;

  margin: auto;

  background: white;

  border: 2px dashed #d9dce7;
  border-radius: 26px;

  padding: 50px 30px;

  transition: 0.25s;

  box-shadow: var(--shadow);
}


.upload-box.dragging {
  border-color: var(--primary);
  background: #f5f5ff;

  transform: translateY(-2px);
}


.upload-icon {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  margin: 0 auto 20px;

  border-radius: 18px;

  background: #eeeeff;
  color: var(--primary);

  font-size: 30px;
  font-weight: 700;
}


.upload-box h3 {
  font-size: 22px;
  margin-bottom: 8px;
}


.upload-box p {
  color: var(--muted);
  margin-bottom: 24px;
}


.upload-box small {
  display: block;

  color: #9295a1;

  margin-top: 18px;
}


.primary-button {
  cursor: pointer;

  background: var(--primary);
  color: white;

  padding: 14px 24px;

  border-radius: 13px;

  font-size: 14px;
  font-weight: 700;

  transition: 0.2s;
}


.primary-button:hover {
  background: var(--primary-dark);
  transform: translateY(-1px);
}


.full-width {
  width: 100%;
}


/* FILE CARD */

.file-card {
  max-width: 720px;

  margin: 16px auto 0;

  background: white;

  border: 1px solid var(--border);
  border-radius: 18px;

  padding: 16px;

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: var(--shadow);
}


.file-info {
  display: flex;
  align-items: center;

  gap: 12px;
}


.file-info div:last-child {
  display: flex;
  flex-direction: column;

  text-align: left;
}


.file-info span {
  font-size: 12px;
  color: var(--muted);

  margin-top: 4px;
}


.file-icon {
  width: 46px;
  height: 46px;

  display: grid;
  place-items: center;

  border-radius: 12px;

  background: #eeeeff;
  color: var(--primary);

  font-size: 12px;
  font-weight: 800;
}


.remove-button {
  cursor: pointer;

  width: 36px;
  height: 36px;

  border-radius: 10px;

  background: #f3f4f7;

  color: #777;

  font-size: 20px;
}


/* TOOLS */

.tools-section {
  padding: 90px 0;
}


.section-heading {
  text-align: center;
  margin-bottom: 48px;
}


.section-heading span {
  font-size: 12px;
  font-weight: 800;

  color: var(--primary);

  letter-spacing: 1.5px;
}


.section-heading h2 {
  font-size: clamp(30px, 4vw, 46px);

  margin: 12px auto;

  letter-spacing: -1.8px;
}


.section-heading p {
  color: var(--muted);
}


.tools-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 18px;
}


.tool-card {
  cursor: pointer;

  position: relative;

  background: white;

  padding: 24px;

  border: 1px solid var(--border);
  border-radius: 20px;

  text-align: left;

  min-height: 190px;

  transition: 0.25s;
}


.tool-card:hover {
  transform: translateY(-5px);

  box-shadow: var(--shadow);

  border-color: transparent;
}


.tool-card h3 {
  font-size: 17px;

  margin-top: 20px;
  margin-bottom: 8px;
}


.tool-card p {
  color: var(--muted);

  line-height: 1.6;

  font-size: 13px;

  padding-right: 24px;
}


.tool-icon {
  width: 48px;
  height: 48px;

  border-radius: 14px;

  display: grid;
  place-items: center;

  font-size: 14px;
  font-weight: 800;
}


.red {
  background: #fff0f0;
  color: #ef4444;
}


.blue {
  background: #eef5ff;
  color: #3b82f6;
}


.purple {
  background: #f3efff;
  color: #7c3aed;
}


.orange {
  background: #fff2e7;
  color: #f97316;
}


.yellow {
  background: #fff8dc;
  color: #d49b00;
}


.green {
  background: #eafbf1;
  color: #16a34a;
}


.arrow {
  position: absolute;

  right: 20px;
  bottom: 20px;

  color: #aaa;
}


/* FEATURES */

.features {
  padding: 70px 0 110px;
}


.features-grid {
  display: grid;

  grid-template-columns:
    repeat(3, minmax(0, 1fr));

  gap: 24px;
}


.features article {
  text-align: center;

  padding: 32px;
}


.feature-icon {
  width: 52px;
  height: 52px;

  margin: 0 auto 18px;

  display: grid;
  place-items: center;

  border-radius: 15px;

  background: white;

  box-shadow: var(--shadow);
}


.features h3 {
  margin-bottom: 10px;
}


.features p {
  color: var(--muted);

  line-height: 1.7;

  font-size: 14px;
}


/* MODAL */

.modal {
  position: fixed;

  inset: 0;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(17, 20, 35, 0.42);

  backdrop-filter: blur(8px);

  padding: 20px;

  z-index: 100;
}


.modal-card {
  position: relative;

  background: white;

  width: min(470px, 100%);

  border-radius: 24px;

  padding: 40px;

  text-align: center;

  box-shadow:
    0 40px 100px rgba(0, 0, 0, 0.18);
}


.modal-close {
  cursor: pointer;

  position: absolute;

  right: 16px;
  top: 16px;

  width: 34px;
  height: 34px;

  border-radius: 50%;

  background: #f2f3f6;

  color: #666;

  font-size: 20px;
}


.modal-icon {
  width: 64px;
  height: 64px;

  display: grid;
  place-items: center;

  margin: auto auto 20px;

  border-radius: 18px;

  background: #eeeeff;
  color: var(--primary);

  font-size: 24px;
  font-weight: 800;
}


.modal-card h2 {
  margin-bottom: 10px;
}


.modal-card > p {
  color: var(--muted);

  margin-bottom: 24px;

  line-height: 1.6;
}


.selected-document {
  background: #f7f8fb;

  padding: 15px;

  border-radius: 13px;

  display: flex;
  justify-content: space-between;

  gap: 12px;

  margin-bottom: 18px;

  font-size: 13px;
}


.selected-document span {
  color: var(--muted);
}


/* PROGRESS */

.progress-container {
  margin: 20px 0;
}


.progress-bar {
  height: 8px;

  background: #eceef3;

  border-radius: 999px;

  overflow: hidden;
}


.progress {
  width: 0;

  height: 100%;

  background: var(--primary);

  transition: width 0.2s;
}


.progress-container span {
  display: block;

  margin-top: 8px;

  color: var(--muted);

  font-size: 12px;
}


/* FOOTER */

footer {
  background: #11131a;
  color: white;

  padding: 50px 0 20px;
}


.footer-content {
  display: flex;

  align-items: center;
  justify-content: space-between;

  gap: 30px;

  padding-bottom: 40px;
}


.footer-content p {
  margin-top: 8px;

  color: #858894;

  font-size: 13px;
}


.footer-links {
  display: flex;
  gap: 24px;

  color: #aaaeb9;

  font-size: 13px;
}


.copyright {
  width: min(1120px, 92%);
  margin: auto;

  padding-top: 20px;

  border-top: 1px solid #262a34;

  color: #686c78;

  font-size: 12px;

  text-align: center;
}


/* UTILITIES */

.hidden {
  display: none !important;
}


/* RESPONSIVE */

@media (max-width: 850px) {

  .tools-grid {
    grid-template-columns: repeat(2, 1fr);
  }


  .features-grid {
    grid-template-columns: 1fr;
  }

}


@media (max-width: 620px) {

  nav {
    display: none;
  }


  .hero {
    padding-top: 70px;
  }


  .hero h1 {
    letter-spacing: -2px;
  }


  .upload-box {
    padding: 38px 20px;
  }


  .tools-grid {
    grid-template-columns: 1fr;
  }


  .footer-content {
    flex-direction: column;
    align-items: flex-start;
  }

}
