/* public/assets/css/index.css */

:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;

  color: #171717;
  background: #f7f7f5;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
}

button,
a {
  font: inherit;
}

button {
  border: 0;
}

.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.navbar {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;

  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;

  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 38px;
  height: 38px;

  display: grid;
  place-items: center;

  border-radius: 11px;
  background: #171717;
  color: #fff;

  font-size: 20px;
  font-weight: 800;
}

.brand-name {
  font-size: 21px;
  font-weight: 750;
  letter-spacing: -0.4px;
}

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: auto;

  display: grid;
  grid-template-columns:
    minmax(0, 1fr) minmax(340px, 480px);

  align-items: center;
  gap: 80px;

  padding: 70px 0 100px;
}

.hero-content {
  max-width: 660px;
}

.badge {
  width: fit-content;

  padding: 7px 12px;

  border: 1px solid #deded9;
  border-radius: 999px;

  background: rgba(255, 255, 255, 0.65);

  color: #666;
  font-size: 13px;
  font-weight: 650;
}

h1 {
  margin: 24px 0 22px;

  font-size: clamp(54px, 7vw, 92px);
  line-height: 0.96;
  letter-spacing: -5px;

  font-weight: 790;
}

h1 span {
  display: block;
  color: #8c8c87;
}

.hero-description {
  max-width: 560px;

  margin: 0;

  color: #5e5e59;

  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.55;
}

.hero-actions {
  margin-top: 38px;

  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}

.login-button {
  cursor: pointer;

  padding: 14px 22px;

  border-radius: 12px;

  background: #171717;
  color: #fff;

  font-weight: 700;

  transition:
    transform 120ms ease,
    opacity 120ms ease;
}

.login-button:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.login-button-small {
  padding: 10px 17px;
  border-radius: 10px;
}

.register-link {
  color: #555;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

.register-link:hover {
  text-decoration: underline;
}

.account-note {
  margin-top: 16px;

  color: #999;
  font-size: 13px;
}

.note-preview {
  position: relative;

  min-height: 530px;

  padding: 34px;

  border: 1px solid #dddcd7;
  border-radius: 30px;

  background:
    linear-gradient(145deg,
      rgba(255, 255, 255, 0.95),
      rgba(238, 238, 233, 0.85));

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.1);
}

.preview-top {
  display: flex;
  gap: 7px;

  margin-bottom: 52px;
}

.preview-top span {
  width: 9px;
  height: 9px;

  border-radius: 50%;
  background: #d4d4cf;
}

.preview-title {
  margin-bottom: 25px;

  font-size: 34px;
  font-weight: 760;
  letter-spacing: -1.4px;
}

.preview-line {
  width: 76%;
  height: 9px;

  margin: 13px 0;

  border-radius: 999px;
  background: #dddcd6;
}

.preview-line-long {
  width: 94%;
}

.preview-line-short {
  width: 58%;
}

.preview-card {
  position: absolute;

  right: 28px;
  bottom: 34px;
  left: 28px;

  padding: 24px;

  border-radius: 19px;

  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e1e1dc;
}

.preview-card-title {
  margin-bottom: 10px;

  font-size: 17px;
  font-weight: 720;
}

.preview-card-text {
  color: #777;
  line-height: 1.45;
}

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;

  padding: 26px 0;

  display: flex;
  gap: 8px;

  border-top: 1px solid #e4e4df;

  color: #888;
  font-size: 13px;
}

.footer-dot {
  color: #bbb;
}

@media (max-width: 850px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 55px;

    padding-top: 45px;
  }

  h1 {
    letter-spacing: -3px;
  }

  .note-preview {
    min-height: 430px;
  }
}

@media (max-width: 520px) {

  .navbar,
  .hero,
  footer {
    width: min(100% - 28px, 1180px);
  }

  .navbar {
    height: 70px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-name {
    font-size: 19px;
  }

  .login-button-small {
    padding: 9px 13px;
  }

  .hero {
    padding: 42px 0 70px;
  }

  h1 {
    font-size: 52px;
    letter-spacing: -2.8px;
  }

  .hero-description {
    font-size: 17px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .note-preview {
    min-height: 380px;
    padding: 26px;
  }

  footer {
    flex-wrap: wrap;
  }
}