:root {
  color-scheme: dark;
  background: #050505;
  color: #f5f5f5;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "SF Pro Display",
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

main {
  width: min(100% - 40px, 560px);
  display: grid;
  place-items: center;
  text-align: center;
}

.frame {
  position: relative;
  width: 100%;
  min-height: 340px;
  display: grid;
  place-items: center;
  padding: 56px 34px;
  border: 1px solid rgba(255, 255, 255, 0.105);
  border-radius: 34px;
}

.frame::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background:
    conic-gradient(
      from var(--angle, 0deg),
      transparent 0deg,
      transparent 286deg,
      rgba(255, 255, 255, 0.08) 308deg,
      rgba(255, 255, 255, 0.82) 326deg,
      rgba(255, 255, 255, 0.08) 344deg,
      transparent 360deg
    );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  animation: trace 9s linear infinite;
}

.content {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.code {
  color: rgba(245, 245, 245, 0.46);
  font-size: 14px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  max-width: 440px;
  color: #f5f5f5;
  font-size: clamp(40px, 8vw, 72px);
  font-weight: 860;
  line-height: 0.94;
  letter-spacing: -0.065em;
  text-wrap: balance;
  font-feature-settings:
    "kern" 1,
    "liga" 1;
}

.title-cut {
  display: inline;
  background:
    linear-gradient(
      180deg,
      rgba(245, 245, 245, 0.99) 0%,
      rgba(245, 245, 245, 0.99) 52%,
      rgba(245, 245, 245, 0.62) 53%,
      rgba(245, 245, 245, 0.90) 100%
    );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

p {
  margin: 0;
  max-width: 330px;
  color: rgba(245, 245, 245, 0.48);
  font-size: 14px;
  font-weight: 450;
  line-height: 1.58;
  letter-spacing: -0.014em;
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@keyframes trace {
  to {
    --angle: 360deg;
  }
}

@media (max-width: 640px) {
  main {
    width: min(100% - 28px, 420px);
  }

  .frame {
    min-height: 310px;
    padding: 44px 26px;
    border-radius: 28px;
  }

  h1 {
    font-size: clamp(38px, 13vw, 56px);
    line-height: 0.96;
    letter-spacing: -0.055em;
  }

  p {
    max-width: 290px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .frame::before {
    animation: none;
  }
}
